在StyleFix应用程序的开发是一个GUI工具,将允许您有选择地排除/包括了StyleCop违反检查的文件。它还可以自动修复它们。
它在后台建立的项目(使用msbuild),然后解析输出的行号和文件名。
然后,它的神器出山:www.shenqi73.com源文件于那些线和解决问题的字符串替换,正则表达式等。
这些都是当前可以自动固定的侵犯。更多的道路上!
SA1000 - KeywordsMustBeSpacedCorrectly
SA1001 - CommasMustBeSpaceCorrectly
SA1003 - SymbolsMustBeSpaceCorrectly
SA1005 - SingleLineCommentsMustBeginWithSingleSpace
SA1009 - ClosingParenthesisMustBeSpacedCorrectly
SA1010 - OpeningSquareBracketsMustBeSpacedCorrectly
SA1025 - CodeMustNotContainMultipleWhitespaceInARow
SA1027 - TabsMustNotBeUsed
SA1101 - PrefixLocalCallsWithThis
SA1121 - UseBuiltInTypeAlias
SA1122 - UseStringEmptyForEmptyStrings
SA1200 - UsingDirectivesMustBePlacedWithinNamespace
SA1210 - UsingDirectivesMustBeOrderedAlphabeticallyByNamespace
SA1500 - CurlyBracketsForMultiLineStatementsMustNotShareLine
SA1501 - StatementMustNotBeOnASingleLine
SA1505 - OpeningCurlyBracketsMustNotBeFollowedByBlankLine
SA1506 - ElementDocumentationHeadersMustNotBeFollowedByBlankLine
SA1507 - CodeMustNotContainMultipleBlankLinesInARow
SA1508 - ClosingCurlyBracketsMustNotBePrecededByBlankLine
SA1509 - OpeningCurlyBracketsMustNotBePrecededByBlankLine
SA1510 - ChainedStatementBlocksMustNotBePrecededByBlankLine
SA1512 - SingleLineCommentsMustNotBeFollowedByBlankLine
SA1513 - ClosingCurlyBracketsMustNotBeFollowedByBlankLine
SA1515 - SingleLineCommentsMustBePrecededByBlankLine
SA1516 - ElementsMustBeSeparatedByBlankLine
SA1633 - FileMustHaveHeader