message: Adding static analysis to our CD
diff: @@ -261,6 +261,7 @@ def linuxLibindyBuild(file, env_name, network_name, stashBuildResults) {
  echo "${env_name} Libindy Test: Build"
  sh '''
  cd libindy
  + cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf
  cargo build --release --features "fatal_warnings sodium_static"
  '''
  @@ -285,6 +286,7 @@ def linuxLibindyBuild(file, env_name, network_name, stashBuildResults) {
  echo "${env_name} Libnullpay Test: Build"
  sh '''
  cd libnullpay
  + cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf
  LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release
  '''
  @@ -353,6 +355,7 @@ def linuxVcxBuild(file, env_name, network_name, stashBuildResults) {
  testEnv.inside {
  sh '''
  cd vcx/libvcx
  + cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf
  LIBRARY_PATH=./ cargo build --release --features fatal_warnings
  '''
  if (stashBuildResults) {
  @@ -424,6 +427,7 @@ def linuxCLITesting(env_name, network_name, testEnv, stashBuildResults) {
  testEnv.inside("--network=${network_name}") {
  sh '''
  cd cli
  + cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf
  LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo build --release --features fatal_warnings
  LIBRARY_PATH=./ RUST_BACKTRACE=1 cargo test --release --features "nullpay_plugin" --no-run
  LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_BACKTRACE=1 RUST_LOG=indy::=debug RUST_TEST_THREADS=1 TEST_POOL_IP=10.0.0.2 cargo test --release --features "nullpay_plugin"
  @@ -539,6 +543,7 @@ def windowsTesting() {
  "PATH=$WORKSPACE\\libindy\\prebuilt\\lib;$PATH",
  "RUST_BACKTRACE=1"
  ]) {
  + bat "cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf"
  bat "cargo build --release --features fatal_warnings"
  bat "cargo test --release --no-run"
  @@ -559,6 +564,7 @@ def windowsTesting() {
  withEnv([
  "RUST_BACKTRACE=1"
  ]) {
  + bat "cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf"
  bat "cargo build --release --features fatal_warnings"
  bat "cargo test --release --no-run"
  @@ -587,6 +593,7 @@ def windowsTesting() {
  withEnv([
  "RUST_BACKTRACE=1"
  ]) {
  + bat "cargo clippy -- -W clippy::style -W clippy::correctness -W clippy::complexity -W clippy::perf"
  bat "cargo build --release --features fatal_warnings"
  echo "Windows Indy Cli Test: Build tests"
  @@ -1235,6 +1242,7 @@ def downloadPackagingUtils() {
  def setupRust() {
  sh "rustup default 1.27.0"
  + sh "rustup component add clippy-preview"
  }
  def androidPublishing() {
  