[x] I have checked there are no open requests referencing the same feature
Description
I would like to suppress a given rule only in a certain folder or subset of files. For example, I'd like to suppress refactoring:class-extract-method in my tests/ folder because it's important that each test clearly specify what behavior is under test without requiring the reader to understand context from elsewhere in the file. However, I want to continue running that check in the rest of code.
Checklist
Description
I would like to suppress a given rule only in a certain folder or subset of files. For example, I'd like to suppress
refactoring:class-extract-method
in mytests/
folder because it's important that each test clearly specify what behavior is under test without requiring the reader to understand context from elsewhere in the file. However, I want to continue running that check in the rest of code.Similar functionality can be found in Ruff's
per-file-ignores
and ESLint'soverrides
.