New naming convention option

StyleCop/Code Analysis (I forget which) enforces different capitalization rules than Resharper by default. It says that when camel-casing, two letter acryonyms stay capitalized (targetSizeMB), while Resharper insists that they are all lower cased (targetSizeMb). There doesn't appear to be an option to use this convention. Can it be added?

3 comments

+1 to that.

"Random Engy"  wrote in message
news:19282738.50071304786692337.JavaMail.devnet@confluence.jetbrains.net...

StyleCop/Code Analysis (I forget which) enforces different capitalization
rules than Resharper by default. It says that when camel-casing, two letter
acryonyms stay capitalized (targetSizeMB), while Resharper insists that they
are all lower cased (targetSizeMb). There doesn't appear to be an option to
use this convention. Can it be added?

---
Original message URL: http://devnet.jetbrains.net/message/5302592#5302592

0

Hello,

At the moment you can just add 'MB' to the list of abbreviations and ReSharper
should treat 'targetSizeMB' properly. If this doesn't suit your needs, you're
welcome to file a feature request at http://youtrack.jetbrains.net/issues/RSRP.
Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

StyleCop/Code Analysis (I forget which) enforces different
capitalization rules than Resharper by default. It says that when
camel-casing, two letter acryonyms stay capitalized (targetSizeMB),
while Resharper insists that they are all lower cased (targetSizeMb).
There doesn't appear to be an option to use this convention. Can it be
added?

---
Original message URL:
http://devnet.jetbrains.net/message/5302592#5302592



0

Yeah adding every acronym manually isn't an option. I've opened a feature request: http://youtrack.jetbrains.net/issue/RSRP-262863 .

0

Please sign in to leave a comment.