ericcornelissen/js-regex-security-scanner

Ignore tests

Closed this issue · 0 comments

Relates to #12


Summary

In general regexes in tests with bad runtime performance aren't a big problem. So, to reduce noise, this scanner shouldn't report on bad regular expressions in tests.

Patterns to consider:

  • e2e/
  • test/
  • tests/
  • spec/
  • specs/
  • __mocks__/
  • __tests__/
  • __specs__/
  • .{spec,test}.{cjs,js,mjs,ts}