-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from stankovski/stylecop
Added StyleCop
- Loading branch information
Showing
3 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
<StyleCopSettings Version="105"> | ||
<GlobalSettings> | ||
<StringProperty Name="MergeSettingsFiles">NoMerge</StringProperty> | ||
</GlobalSettings> | ||
<Analyzers> | ||
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules"> | ||
<Rules> | ||
<Rule Name="DocumentationTextMustBeginWithACapitalLetter"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">True</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="DocumentationTextMustEndWithAPeriod"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">True</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FileMustHaveHeader"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FileHeaderMustShowCopyright"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FileHeaderMustHaveCopyrightText"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FileHeaderMustContainFileName"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FileHeaderFileNameDocumentationMustMatchFileName"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FileHeaderMustHaveValidCompanyText"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
</Rules> | ||
<AnalyzerSettings> | ||
<StringProperty Name="CompanyName">Microsoft</StringProperty> | ||
<StringProperty Name="Copyright">[###LICENSE_NAME###]</StringProperty> | ||
<BooleanProperty Name="IgnorePrivates">True</BooleanProperty> | ||
</AnalyzerSettings> | ||
</Analyzer> | ||
<Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules"> | ||
<Rules> | ||
<Rule Name="AllAccessorsMustBeMultiLineOrSingleLine"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="SingleLineCommentsMustNotBeFollowedByBlankLine"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="SingleLineCommentMustBePrecededByBlankLine"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="ElementMustNotBeOnSingleLine"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="ClosingCurlyBracketMustBeFollowedByBlankLine"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
</Rules> | ||
<AnalyzerSettings /> | ||
</Analyzer> | ||
<Analyzer AnalyzerId="StyleCop.CSharp.NamingRules"> | ||
<Rules> | ||
<Rule Name="FieldNamesMustBeginWithLowerCaseLetter"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FieldNamesMustNotBeginWithUnderscore"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="FieldNamesMustNotContainUnderscore"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
</Rules> | ||
<AnalyzerSettings> | ||
<CollectionProperty Name="Hungarian"> | ||
<Value>as</Value> | ||
<Value>do</Value> | ||
<Value>id</Value> | ||
<Value>if</Value> | ||
<Value>in</Value> | ||
<Value>is</Value> | ||
<Value>my</Value> | ||
<Value>no</Value> | ||
<Value>on</Value> | ||
<Value>to</Value> | ||
<Value>ui</Value> | ||
</CollectionProperty> | ||
</AnalyzerSettings> | ||
</Analyzer> | ||
<Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules"> | ||
<Rules> | ||
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="ElementsMustAppearInTheCorrectOrder"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="ElementsMustBeOrderedByAccess"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="StaticElementsMustAppearBeforeInstanceElements"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="DeclarationKeywordsMustFollowOrder"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="ProtectedMustComeBeforeInternal"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
</Rules> | ||
<AnalyzerSettings /> | ||
</Analyzer> | ||
<Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules"> | ||
<Rules> | ||
<Rule Name="PrefixLocalCallsWithThis"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="ParameterMustNotSpanMultipleLines"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="BlockStatementsMustNotContainEmbeddedRegions"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="CommentsMustContainText"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
<Rule Name="PrefixCallsCorrectly"> | ||
<RuleSettings> | ||
<BooleanProperty Name="Enabled">False</BooleanProperty> | ||
</RuleSettings> | ||
</Rule> | ||
</Rules> | ||
<AnalyzerSettings /> | ||
</Analyzer> | ||
</Analyzers> | ||
</StyleCopSettings> |
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
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