Skip to content

v0.4.2

Choose a tag to compare

@f-klement f-klement released this 13 Nov 18:17
· 34 commits to main since this release

Changes

  • Rules that read the same files are faster: a run reads a file once, up to 64 MiB of files, and hands its bytes to every rule that names it.
  • Rules run at once on as many cores as the runner gives errata, so a config of many rules finishes sooner on a runner with more than one core.
  • A marker rule after a program check or a generated check that rewrites the marked file now reads what that check wrote.
  • A regex pattern with no literal prefix, such as a character class or an alternation, searches only near the places that hold a literal every match needs, the line of each place and up to three lines around it: a class of two dashes over a 29 MB tree takes 0.24 s where it took 1.6 s.
  • A regex extractor takes a skip key that lists comments, which searches each file with its comments blanked to spaces by the language its name chooses, so a comment cannot satisfy or break a rule about code; values keep their lines.
  • A false assert that is an all over an extractor prints only its offending values, or over by_file every value in its offending files, each with its file and line; errata check --all-values prints every value.
  • The SARIF result of a false assert that is an all over an extractor points at the first offending value its message shows.

All commits since v0.4.1: v0.4.1...v0.4.2