Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore/override specific parts of styles #733

Open
1 task done
thernstig opened this issue Nov 29, 2023 · 1 comment
Open
1 task done

Ignore/override specific parts of styles #733

thernstig opened this issue Nov 29, 2023 · 1 comment

Comments

@thernstig
Copy link

Check for existing issues

  • Completed

Describe the feature

We have a setup where we prefer using open source styles, as to not maintain our own. Here is our config:

StylesPath = ./styles/
MinAlertLevel = warning

[*.md]
#  - Google
#  - Microsoft
#  - alex
BasedOnStyles = proselint,write-good,Readability,RedHat
write-good.Passive = OFF
write-good.TooWordy = OFF
# The following rule will suggest that "analysis" is replaced by
# "SmartState analysis".
RedHat.CaseSensitiveTerms = OFF

But the write-good style contains a file like write-good/Weasel.yml for weasel words. The definition for Weasel.yml can be found here: https://github.com/errata-ai/write-good/blob/master/write-good/Weasel.yml

We want to mark the term (token) only as being ok, but using the rest. This is not possible now in any way.

Is there any planned support for this, or is it a bad idea overall?

@ccoVeille
Copy link

The only solution I can see for the issue reported by @thernstig is to copy the weasel rules locally, as a new local package, and disable writegood one with write-good.Weasel=NO

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

No branches or pull requests

2 participants