You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not try to propose a fix when there is an uppercase in the middle of a word #314
What's the use case here? Personally if camel casing, I'd like to spell-check item and Counter and ensure they're valid words. Although if you're doing the style where you prepend the type of the variable (int, bool etc) e.g. iCounter, bProcessed, that probably falls down with some types as b won't be a valid word on it's own.
Activity
luzpaz commentedon Jan 25, 2018
Yes, good idea. I think trying to flesh out the conditions for this is important.
sylvestre commentedon Jan 26, 2018
What about ignoring like this?
m = re.match(r'^[a-z][A-Z][a-z]*', typo)jankeromnes commentedon Apr 20, 2018
I think this wouldn't catch variables like
anInteger,itemCounter,annualGrowthRate, etc.peternewman commentedon Apr 28, 2018
What's the use case here? Personally if camel casing, I'd like to spell-check item and Counter and ensure they're valid words. Although if you're doing the style where you prepend the type of the variable (int, bool etc) e.g. iCounter, bProcessed, that probably falls down with some types as b won't be a valid word on it's own.
mikedh commentedon Oct 18, 2019
It also attempts to add a space in some cases which is somewhat undesirable and breaking in variable/class names: