Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can we standardize logical direction of rule options?#6101

JoshuaKGoldberg started this conversation inTechnical Discussions
Discussion options

Some rule options start with words likeallow orignore and make the rule more lenient. For example:

Other rule options start with words likecheck and make the rule more strict. For example:

Some rules includeboth options styles - including those two! 😩 This makes it hard to keep track of them.

Can I propose we prefer the 👐allow-prefixed names, and have their default values befalse? That way it won't be a breaking change to add them.

You must be logged in to vote

Replies: 1 comment

Comment options

In those cases "allow" wouldn't make sense because the rule isn't allowing something - it's expanding its set of checks.

You need two verbs to describe options I think:

  • "check" - turn on additional features in the rule.
  • "allow" OR "ignore" (we could pick one) - completely turn off a class of things from a check without disabling the check.
You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@JoshuaKGoldberg@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp