svlint
svlint copied to clipboard
Implement turning off text rules with code 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.