We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef8e8e3 + 38b3b9f commit f58910fCopy full SHA for f58910f
1 file changed
csreview/src/ignore.js
@@ -103,7 +103,9 @@ export function patternToMatcher(rawPattern) {
103
// user's own .csreview-ignore or built-in defaults (a local dev tool), and the
104
// behaviour is unit-tested (ignore.test.js "ReDoS H1"). The dynamic RegExp is
105
// intrinsic to a glob matcher, so this audit finding is suppressed inline.
106
- return { negate, re: new RegExp(prefix + body + suffix) }; // nosemgrep: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp
+ // Bare nosemgrep (not rule-id-scoped) so the suppression is robust to how the
107
+ // CI's `--config auto` resolves the rule's internal id.
108
+ return { negate, re: new RegExp(prefix + body + suffix) }; // nosemgrep
109
}
110
111
/**
0 commit comments