Skip to content

Implement turning off text rules with code comments#316

Open
skjdbg wants to merge 1 commit intodalance:masterfrom
skjdbg:turn_off_textrule
Open

Implement turning off text rules with code comments#316
skjdbg wants to merge 1 commit intodalance:masterfrom
skjdbg:turn_off_textrule

Conversation

@skjdbg
Copy link
Copy Markdown
Contributor

@skjdbg skjdbg commented Dec 8, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant