Commit graph

5 commits

Author SHA1 Message Date
Mick Grove
c0e4910d1f pattern_requirements for rules — Post-regex character-class gating to cut false positives without lookarounds. Authors can now require minimum counts of digits, uppercase, lowercase, and special characters, with an optional custom special-char set.
Why: Hyperscan doesn’t support lookaheads/behinds, so many “must contain X and Y” checks had to be baked into the regex (hurting readability) or were impossible. pattern_requirements applies lightweight, in-memory checks after a match is found, keeping patterns fast and clean.
2025-11-04 13:55:31 -05:00
Mick Grove
cefa69e426 Added test to prevent this and similar issues 2025-06-29 22:51:49 -07:00
Mick Grove
a3060ec144 Added test to prevent this and similar issues 2025-06-29 22:50:16 -07:00
Mick Grove
4ee98a6cb0 fixed sourcegraph rule 2025-06-29 21:45:43 -07:00
Mick Grove
26b5b7918f Added ruels for sonarcloud, sonarqube, sourcegraph 2025-06-28 08:34:15 -07:00