check-suppressing-instrumentation-docs.sh 538 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. # this script reports some false positives, but is helpful in comparing the keys listed
  3. # in suppressing-instrumentation.md with the keys listed in the source files
  4. set -e -u -o pipefail
  5. comm -3 \
  6. <(
  7. sed -n '/----------------------/,${p;/^$/q}' \
  8. docs/suppressing-instrumentation.md \
  9. | sed '1d;$d' \
  10. | cut -d '|' -f 3 \
  11. | tr -d ' ' \
  12. | sort -u
  13. ) \
  14. <(
  15. git ls-files '*Module.java' \
  16. | xargs grep super \
  17. | grep -oP '(?<=super\(")[^"]+' \
  18. | sort -u
  19. )