Skip to content

Add check for ambiguous bitwise not operations #371

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

Merged
merged 1 commit into from
May 6, 2025
Merged

Conversation

fourls
Copy link
Collaborator

@fourls fourls commented Apr 22, 2025

Fixes #97. This rule works by highlighting any in binary expression with one operand being a bitwise not. I haven't added it to the default quality profile I have now added it to the default quality profile, since it is a rare and admittedly confusing case.

@fourls fourls requested a review from Cirras April 22, 2025 07:03
@fourls fourls force-pushed the bitwise-not-parens branch from b3e1e24 to edcfb4f Compare April 24, 2025 03:28
@fourls fourls force-pushed the bitwise-not-parens branch from edcfb4f to 34a7619 Compare May 6, 2025 02:15
@fourls fourls requested a review from Cirras May 6, 2025 02:15
@fourls fourls force-pushed the bitwise-not-parens branch from 34a7619 to 9bc7e1d Compare May 6, 2025 03:03
@fourls fourls requested a review from Cirras May 6, 2025 03:04
@fourls fourls force-pushed the bitwise-not-parens branch from 9bc7e1d to 257e42e Compare May 6, 2025 03:24
@fourls fourls force-pushed the bitwise-not-parens branch from 257e42e to ec08411 Compare May 6, 2025 03:43
Copy link
Collaborator

@Cirras Cirras left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

@Cirras Cirras merged commit e74a5ac into master May 6, 2025
4 checks passed
@Cirras Cirras deleted the bitwise-not-parens branch May 6, 2025 03:50
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.

New rule: Set containment checks should be enclosed in parentheses
2 participants