static-analyser-check.sh 299 B

12345678910
  1. #!/bin/bash
  2. # Ensure we are at the project root
  3. cd "$(dirname $0)"/..
  4. # Collect scan-build output
  5. ninja scan-build -C builddir | tee builddir/meson-logs/scan-build.txt
  6. # Invert the output - if this string exists it's a fail
  7. exit ! grep -E '[0-9]+ bugs? found.' builddir/meson-logs/scan-build.txt