-
Notifications
You must be signed in to change notification settings - Fork 285
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
imporve var-naming
- add upperCaseConst option to allow UPPER_CASED constants #851
#852
Conversation
} | ||
} | ||
} | ||
|
||
func check(id *ast.Ident, thing string, w *lintNames) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was too gready to "reserve" name check
in package rule just for var-naming, moved lintNames as reviever to minimize exported named
Hi @comdiv, thanks for the PR! (and sorry for the late response) |
Just not understand failing tests for now. Locally all work well.... Will try to fix |
Test fails because I' ve added à test case for constant names without |
Ok, pulled.
so your example of is valid always What is better:
Additionally this rule checks that name should contain undescores... So for back compatibility and focus on task behind this MR, think that better is to fix test case? |
I see. The >= 5 condition comes from |
Fix MD file too. |
Thansk @comdiv ! |
it's improvement for #851 task
closes #851