Browse Source

Fix nonNull check
Fix spotbugs, in different location now

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>

tobiasKaminsky 4 years ago
parent
commit
61a0d21808
2 changed files with 2 additions and 2 deletions
  1. 1 1
      scripts/analysis/analysis-wrapper.sh
  2. 1 1
      scripts/analysis/findbugs-up.rb

+ 1 - 1
scripts/analysis/analysis-wrapper.sh

@@ -112,7 +112,7 @@ else
         exit $lintValue
         exit $lintValue
     fi
     fi
 
 
-    if [ $notNull -gt 0 ]; then
+    if [[ -n $notNull ]]; then
         exit 1
         exit 1
     fi
     fi
 
 

+ 1 - 1
scripts/analysis/findbugs-up.rb

@@ -67,7 +67,7 @@ end
 findbugs_report = String.new(findbugs_reports[0])
 findbugs_report = String.new(findbugs_reports[0])
 
 
 # find number of warnings
 # find number of warnings
-current_warning_count = `grep -A 3 "<b>Total</b>" build/reports/spotbugs/spotbugs.html | tail -n1 | cut -f2 -d">" | cut -f1 -d"<"`.to_i
+current_warning_count = `grep -A 3 "<b>Total</b>" app/build/reports/spotbugs/spotbugs.html | tail -n1 | cut -f2 -d">" | cut -f1 -d"<"`.to_i
 puts "found warnings: " + current_warning_count.to_s
 puts "found warnings: " + current_warning_count.to_s
 
 
 # get warning counts from last successful build
 # get warning counts from last successful build