svlint icon indicating copy to clipboard operation
svlint copied to clipboard

Implement turning off text rules with code comments

Open skjdbg opened this issue 1 month ago • 0 comments

I noticed the feature to locally turn on/off rules with comments doesn't work with textrules. As there does not seem to be a particular reason, I decided to implement it.

One detail on which I'd like a second opinion: When receiving a StartOfFile event, I re-enable all text rules that were disabled. Since text rules are more file based, I thought it would be a mistake to have a disable propagate from one file to the next. However, If someone has a use for it, removing this safety net does not impact other use cases.

skjdbg avatar Dec 08 '25 13:12 skjdbg