Created
September 4, 2013 10:55
-
-
Save anonymous/6435490 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <Name>Static fields should be prefixed with a 's_'</Name> | |
warnif count > 0 from f in Application.Fields where | |
!f.NameLike (@"^s_") && | |
f.IsStatic && | |
!f.IsLiteral && | |
!f.IsGeneratedByCompiler && | |
!f.IsSpecialName && | |
!f.IsEventDelegateObject | |
select new { f, f.SizeOfInst } | |
// This naming convention provokes debate. | |
// Don't hesitate to customize the regex of | |
// NameLike to your preference. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment