-
Notifications
You must be signed in to change notification settings - Fork 128
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
Magic number warning #190
base: develop
Are you sure you want to change the base?
Magic number warning #190
Conversation
I've removed |
@mushketyk Am I right in understanding that this rule intends to flag any numbers in the code being used without being declared as constants first? Like I'm confused because you only seem to pass on the number if its declared as a constant state variable. |
8c7c5ba
to
62dd518
Compare
5ccb26f
to
19702a3
Compare
5fe12b7
to
c2464e4
Compare
I've also implemented a couple of helper functions that should make writing unit tests for rules easier.
Implements one of the rules in #44