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

Add rule magic-number-in-array-size #236

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

ZedThree
Copy link
Member

Closes #180

This should expose a setting check.magic-number-in-array-size.ignored-values -- which I think really requires #235

Copy link
Collaborator

@LiamPattinson LiamPattinson left a comment

Choose a reason for hiding this comment

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

All looks good!

@ZedThree ZedThree merged commit 5181a67 into main Dec 16, 2024
25 checks passed
@ZedThree ZedThree deleted the magic-number-in-array-size branch December 16, 2024 10:04
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.

Warn about repeated literals, especially integers used to declare arrays
2 participants