Better explanation for reasoning behind invalid-name
warnings
#6053
Labels
C: invalid-name
Enhancement ✨
Improvement to a component
Needs decision 🔒
Needs a decision before implemention or rejection
Current problem
We're getting a lot of report for the new TypeVar naming style lately (#6050, #6003). It's probably annoying users. We took a decision but it's not conveyed in the warning message. We also have a long standing issue with snake_case requiring to be more than 3 letters and less than 30 characters long but not explaining it properly (the regex behind it is also hidden).
Desired solution
We could replace
doesn't conform to predefined naming style
by ``is not in snake_case and between 3 and 30 char long" by adding a description attribute to NameStyle. It's a lot easier to do than to actually refactor the checker to separate length and name style.Additional context
#2018
The text was updated successfully, but these errors were encountered: