Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSuggestion Span for non_upper_case_globals could be more precise #48103
Comments
estebank
added
C-enhancement
A-diagnostics
labels
Feb 9, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Manishearth
Feb 10, 2018
Member
Sounds good! Let me know if you need help.
(Self-assigning since I can't assign it to you, but this means I'm mentoring this bug)
|
Sounds good! Let me know if you need help. (Self-assigning since I can't assign it to you, but this means I'm mentoring this bug) |
Manishearth
self-assigned this
Feb 10, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
killercup
Feb 10, 2018
Member
I'm pretty sure we can also this as a suggestion to make it auto-fixable. Not sure if we have a good SCREAMING_SNAKE_CASE transformer in rustc, but I guess it's fine to only suggest this for trivial changes at first.
|
I'm pretty sure we can also this as a suggestion to make it auto-fixable. Not sure if we have a good SCREAMING_SNAKE_CASE transformer in rustc, but I guess it's fine to only suggest this for trivial changes at first. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
phansch
Feb 16, 2018
Contributor
Just a quick update because it's been a few days. I was able to fix this locally already, but got a faster laptop this week where the rust repo setup is broken somehow. I will try to fix it today, otherwise it will be next week
|
Just a quick update because it's been a few days. I was able to fix this locally already, but got a faster laptop this week where the rust repo setup is broken somehow. I will try to fix it today, otherwise it will be next week |
phansch commentedFeb 9, 2018
•
edited
Edited 2 times
-
phansch
edited Feb 9, 2018 (most recent)
-
phansch
edited Feb 9, 2018
Playground link: https://play.rust-lang.org/?gist=054aaeb143021ea121fc0c091903697b&version=nightly
It currently prints:
It would be nicer if it only underlines the variable name itself:
I have some basic lint writing experience through clippy, so I would like to give this a go.