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

rules: Add double negative rule #557

Merged
merged 3 commits into from
Feb 14, 2024
Merged

rules: Add double negative rule #557

merged 3 commits into from
Feb 14, 2024

Conversation

charlieegan3
Copy link
Member

@anderseknert this is 'your' rule so feel free to rebase this branch and take the commit.

Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! But thinking about it I think this is better kept in the custom category and not enabled by default. It's a bit pedantic even though I personally like it. WDYT?

@charlieegan3
Copy link
Member Author

Maybe... I think it's enough of a smell to leave it in though. For other custom rules we generally have some clear examples where it'd be a bad idea to turn on but I can't think of them here. not not_foo is just always bad as I see it. Maybe we'll have some community members with some good counter examples, but for now I think it's good enough to have in the default list.

@anderseknert
Copy link
Member

Alright, perhaps you're right. I'll have some time to ponder this before the next release :)

@anderseknert anderseknert merged commit ee2cd46 into main Feb 14, 2024
3 checks passed
@anderseknert anderseknert deleted the double-negative branch February 14, 2024 17:38
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
* rules: Add double negative rule
* Correct link for related resources

Signed-off-by: Charlie Egan <charlie@styra.com>
Co-authored-by: Anders Eknert <anders@styra.com>
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.

2 participants