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
alastairs edited this page Dec 4, 2011
·
2 revisions
StyleCop settings
To help code maintainability and readability StyleCop will be used to enforce a few rules. Currently all projects are using the one setting file found in the src directory. A ReSharper settings file provides development-time assistance in conforming to the GiveCRM coding standards.
Layout rules
Always include curly braces (this means you can't miss out curly braces on single line if blocks)
Maintainability rules
Unnecessary code must be removed.
Access Modifiers
Access modifiers must be declared
Fields must be private
Debug text
Code analysis suppression must have justification
Debug.Asserts must provide a text message
Debug.Fail must provide a text message
Naming rules
Interface names must begin with an I
Const field names must begin with an upper case letter
Field names must not use Hungarian notation
Field names must begin with a lower case letter
Variable names must not be prefixed (no putting _ or m_ infront of them)