In a C# / .NET undertaking, we have now enabled Code Evaluation in the course of the construct. We use the .editorconfig to customise which guidelines are enabled/disabled, and the severity (suggestion/warning/error).
One rule which I am combating is IDE1006. On the whole, that is good to implement – that we would like courses/strategies/properties/constants to begin with higher case letters.
However we’re making an iOS app, and so lots of our namespaces embrace the time period iOS. The best way I see it:
- We may downgrade this rule, however really we would fairly prefer to implement it for all the things else besides the time period iOS.
- Refactor the codebase to make use of Ios or IOS. Appears pointless and never a great use of time, and devs have been utilizing iOS for years.
- Briefly disable IDE1006 with a #pragma all around the code – can be very messy.
- If solely there was a method to have some dictionary, to say that iOS is a particular case throughout the IDE1006 rule. Is that this out there in some way, that I’ve missed?
At the moment leaning in direction of the primary possibility, until we are able to discover the perfect (final) possibility.