static-analyser-check.sh 264 B

1234567891011121314
  1. #!/bin/bash
  2. # Exit on failure
  3. set -e
  4. # Build directly
  5. cd build/
  6. # Collect scan-build output
  7. ninja scan-build | tee /tmp/scan-build-results.txt
  8. # Invert the output - if this string exists it's a fail
  9. ! grep -E '[0-9]+ bugs? found.' /tmp/scan-build-results.txt