User Tools

Site Tools


coding_rules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
coding_rules [2013/11/14 00:06] – Deactivated some rules mhatzcoding_rules [2023/04/25 16:52] (current) – external edit 127.0.0.1
Line 3: Line 3:
  
 ===== StyleCop configuration ===== ===== StyleCop configuration =====
- 
-[[https://stylecop.codeplex.com/|StyleCop]] is an IDE plugin that checks the code style according to some rules. A complete list of rules can be found [[https://stylecop.codeplex.com/wikipage?title=ReSharper%20Fixes&referringTitle=Documentation|on this page]]. 
- 
-For Mail2Voice, here is the configuration currently used. We strongly recommend to use this configuration when submiting patches. 
- 
 <code> <code>
 <StyleCopSettings Version="105"> <StyleCopSettings Version="105">
Line 135: Line 130:
     </Analyzer>     </Analyzer>
     <Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">     <Analyzer AnalyzerId="StyleCop.CSharp.OrderingRules">
 +      <Rules>
 +        <Rule Name="PropertyAccessorsMustFollowOrder">
 +          <RuleSettings>
 +            <BooleanProperty Name="Enabled">False</BooleanProperty>
 +          </RuleSettings>
 +        </Rule>
 +        <Rule Name="ElementsMustAppearInTheCorrectOrder">
 +          <RuleSettings>
 +            <BooleanProperty Name="Enabled">False</BooleanProperty>
 +          </RuleSettings>
 +        </Rule>
 +      </Rules>
       <AnalyzerSettings>       <AnalyzerSettings>
         <BooleanProperty Name="GeneratedCodeElementOrder">False</BooleanProperty>         <BooleanProperty Name="GeneratedCodeElementOrder">False</BooleanProperty>
Line 142: Line 149:
       <Rules>       <Rules>
         <Rule Name="FileMayOnlyContainASingleClass">         <Rule Name="FileMayOnlyContainASingleClass">
 +          <RuleSettings>
 +            <BooleanProperty Name="Enabled">False</BooleanProperty>
 +          </RuleSettings>
 +        </Rule>
 +      </Rules>
 +      <AnalyzerSettings />
 +    </Analyzer>
 +    <Analyzer AnalyzerId="StyleCop.CSharp.LayoutRules">
 +      <Rules>
 +        <Rule Name="ElementsMustBeSeparatedByBlankLine">
           <RuleSettings>           <RuleSettings>
             <BooleanProperty Name="Enabled">False</BooleanProperty>             <BooleanProperty Name="Enabled">False</BooleanProperty>
coding_rules.1384387615.txt.gz · Last modified: 2023/04/25 16:52 (external edit)