Skip to content

Instantly share code, notes, and snippets.

@turowicz
Last active May 5, 2017 09:19
Show Gist options
  • Save turowicz/0a77b0ed9b1f52539925895cb3f90729 to your computer and use it in GitHub Desktop.
Save turowicz/0a77b0ed9b1f52539925895cb3f90729 to your computer and use it in GitHub Desktop.
StyleCop
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"orderingRules": {
"usingDirectivesPlacement": "outsideNamespace"
},
"documentationRules": {
"companyName": "Switchee Limited"
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<RuleSet Name="Switchee Style Guide" Description="These rules focus on the most critical problems in your code, including potential security holes, application crashes, and other important logic and design errors. You should include this rule set in any custom rule set you create for your projects." ToolsVersion="15.0">
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA1001" Action="Error" />
<Rule Id="CA1009" Action="Error" />
<Rule Id="CA1016" Action="Error" />
<Rule Id="CA1033" Action="Error" />
<Rule Id="CA1049" Action="Error" />
<Rule Id="CA1060" Action="Error" />
<Rule Id="CA1061" Action="Error" />
<Rule Id="CA1063" Action="Error" />
<Rule Id="CA1065" Action="Error" />
<Rule Id="CA1301" Action="Error" />
<Rule Id="CA1400" Action="Error" />
<Rule Id="CA1401" Action="Error" />
<Rule Id="CA1403" Action="Error" />
<Rule Id="CA1404" Action="Error" />
<Rule Id="CA1405" Action="Error" />
<Rule Id="CA1410" Action="Error" />
<Rule Id="CA1415" Action="Error" />
<Rule Id="CA1821" Action="Error" />
<Rule Id="CA1900" Action="Error" />
<Rule Id="CA1901" Action="Error" />
<Rule Id="CA2002" Action="Error" />
<Rule Id="CA2100" Action="Error" />
<Rule Id="CA2101" Action="Error" />
<Rule Id="CA2108" Action="Error" />
<Rule Id="CA2111" Action="Error" />
<Rule Id="CA2112" Action="Error" />
<Rule Id="CA2114" Action="Error" />
<Rule Id="CA2116" Action="Error" />
<Rule Id="CA2117" Action="Error" />
<Rule Id="CA2122" Action="Error" />
<Rule Id="CA2123" Action="Error" />
<Rule Id="CA2124" Action="Error" />
<Rule Id="CA2126" Action="Error" />
<Rule Id="CA2131" Action="Error" />
<Rule Id="CA2132" Action="Error" />
<Rule Id="CA2133" Action="Error" />
<Rule Id="CA2134" Action="Error" />
<Rule Id="CA2137" Action="Error" />
<Rule Id="CA2138" Action="Error" />
<Rule Id="CA2140" Action="Error" />
<Rule Id="CA2141" Action="Error" />
<Rule Id="CA2146" Action="Error" />
<Rule Id="CA2147" Action="Error" />
<Rule Id="CA2149" Action="Error" />
<Rule Id="CA2200" Action="Error" />
<Rule Id="CA2202" Action="Error" />
<Rule Id="CA2207" Action="Error" />
<Rule Id="CA2212" Action="Error" />
<Rule Id="CA2213" Action="Error" />
<Rule Id="CA2214" Action="Error" />
<Rule Id="CA2216" Action="Error" />
<Rule Id="CA2220" Action="Error" />
<Rule Id="CA2229" Action="Error" />
<Rule Id="CA2231" Action="Error" />
<Rule Id="CA2232" Action="Error" />
<Rule Id="CA2235" Action="Error" />
<Rule Id="CA2236" Action="Error" />
<Rule Id="CA2237" Action="Error" />
<Rule Id="CA2238" Action="Error" />
<Rule Id="CA2240" Action="Error" />
<Rule Id="CA2241" Action="Error" />
<Rule Id="CA2242" Action="Error" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp">
<Rule Id="CS0078" Action="Error" />
<Rule Id="CS0105" Action="Error" />
<Rule Id="CS0108" Action="Error" />
<Rule Id="CS0109" Action="Error" />
<Rule Id="CS0114" Action="Error" />
<Rule Id="CS0162" Action="Error" />
<Rule Id="CS0164" Action="Error" />
<Rule Id="CS0168" Action="Error" />
<Rule Id="CS0183" Action="Error" />
<Rule Id="CS0184" Action="Error" />
<Rule Id="CS0197" Action="Error" />
<Rule Id="CS0219" Action="Error" />
<Rule Id="CS0251" Action="Error" />
<Rule Id="CS0252" Action="Error" />
<Rule Id="CS0253" Action="Error" />
<Rule Id="CS0278" Action="Error" />
<Rule Id="CS0279" Action="Error" />
<Rule Id="CS0280" Action="Error" />
<Rule Id="CS0282" Action="Error" />
<Rule Id="CS0419" Action="Error" />
<Rule Id="CS0420" Action="Error" />
<Rule Id="CS0435" Action="Error" />
<Rule Id="CS0436" Action="Error" />
<Rule Id="CS0437" Action="Error" />
<Rule Id="CS0440" Action="Error" />
<Rule Id="CS0458" Action="Error" />
<Rule Id="CS0464" Action="Error" />
<Rule Id="CS0465" Action="Error" />
<Rule Id="CS0469" Action="Error" />
<Rule Id="CS0472" Action="Error" />
<Rule Id="CS0473" Action="Error" />
<Rule Id="CS0612" Action="Error" />
<Rule Id="CS0618" Action="Error" />
<Rule Id="CS0626" Action="Error" />
<Rule Id="CS0628" Action="Error" />
<Rule Id="CS0642" Action="Error" />
<Rule Id="CS0652" Action="Error" />
<Rule Id="CS0657" Action="Error" />
<Rule Id="CS0658" Action="Error" />
<Rule Id="CS0659" Action="Error" />
<Rule Id="CS0660" Action="Error" />
<Rule Id="CS0661" Action="Error" />
<Rule Id="CS0665" Action="Error" />
<Rule Id="CS0672" Action="Error" />
<Rule Id="CS0675" Action="Error" />
<Rule Id="CS0684" Action="Error" />
<Rule Id="CS0693" Action="Error" />
<Rule Id="CS0728" Action="Error" />
<Rule Id="CS0809" Action="Error" />
<Rule Id="CS0811" Action="Error" />
<Rule Id="CS0824" Action="Error" />
<Rule Id="CS1030" Action="Error" />
<Rule Id="CS1058" Action="Error" />
<Rule Id="CS1062" Action="Error" />
<Rule Id="CS1064" Action="Error" />
<Rule Id="CS1066" Action="Error" />
<Rule Id="CS1072" Action="Error" />
<Rule Id="CS1522" Action="Error" />
<Rule Id="CS1570" Action="Error" />
<Rule Id="CS1571" Action="Error" />
<Rule Id="CS1572" Action="Error" />
<Rule Id="CS1573" Action="Error" />
<Rule Id="CS1574" Action="Error" />
<Rule Id="CS1580" Action="Error" />
<Rule Id="CS1581" Action="Error" />
<Rule Id="CS1584" Action="Error" />
<Rule Id="CS1587" Action="Error" />
<Rule Id="CS1589" Action="Error" />
<Rule Id="CS1590" Action="Error" />
<Rule Id="CS1591" Action="Error" />
<Rule Id="CS1592" Action="Error" />
<Rule Id="CS1616" Action="Error" />
<Rule Id="CS1633" Action="Error" />
<Rule Id="CS1634" Action="Error" />
<Rule Id="CS1635" Action="Error" />
<Rule Id="CS1645" Action="Error" />
<Rule Id="CS1658" Action="Error" />
<Rule Id="CS1668" Action="Error" />
<Rule Id="CS1685" Action="Error" />
<Rule Id="CS1687" Action="Error" />
<Rule Id="CS1690" Action="Error" />
<Rule Id="CS1692" Action="Error" />
<Rule Id="CS1695" Action="Error" />
<Rule Id="CS1696" Action="Error" />
<Rule Id="CS1697" Action="Error" />
<Rule Id="CS1700" Action="Error" />
<Rule Id="CS1701" Action="Error" />
<Rule Id="CS1702" Action="Error" />
<Rule Id="CS1710" Action="Error" />
<Rule Id="CS1711" Action="Error" />
<Rule Id="CS1712" Action="Error" />
<Rule Id="CS1717" Action="Error" />
<Rule Id="CS1718" Action="Error" />
<Rule Id="CS1720" Action="Error" />
<Rule Id="CS1723" Action="Error" />
<Rule Id="CS1734" Action="Error" />
<Rule Id="CS1735" Action="Error" />
<Rule Id="CS1762" Action="Error" />
<Rule Id="CS1927" Action="Error" />
<Rule Id="CS1956" Action="Error" />
<Rule Id="CS1957" Action="Error" />
<Rule Id="CS1974" Action="Error" />
<Rule Id="CS1981" Action="Error" />
<Rule Id="CS1998" Action="Error" />
<Rule Id="CS2002" Action="Error" />
<Rule Id="CS2008" Action="Error" />
<Rule Id="CS2023" Action="Error" />
<Rule Id="CS2029" Action="Error" />
<Rule Id="CS2038" Action="Error" />
<Rule Id="CS3000" Action="Error" />
<Rule Id="CS3001" Action="Error" />
<Rule Id="CS3002" Action="Error" />
<Rule Id="CS3003" Action="Error" />
<Rule Id="CS3005" Action="Error" />
<Rule Id="CS3006" Action="Error" />
<Rule Id="CS3007" Action="Error" />
<Rule Id="CS3008" Action="Error" />
<Rule Id="CS3009" Action="Error" />
<Rule Id="CS3010" Action="Error" />
<Rule Id="CS3011" Action="Error" />
<Rule Id="CS3012" Action="Error" />
<Rule Id="CS3013" Action="Error" />
<Rule Id="CS3014" Action="Error" />
<Rule Id="CS3015" Action="Error" />
<Rule Id="CS3016" Action="Error" />
<Rule Id="CS3017" Action="Error" />
<Rule Id="CS3018" Action="Error" />
<Rule Id="CS3019" Action="Error" />
<Rule Id="CS3021" Action="Error" />
<Rule Id="CS3022" Action="Error" />
<Rule Id="CS3023" Action="Error" />
<Rule Id="CS3024" Action="Error" />
<Rule Id="CS3026" Action="Error" />
<Rule Id="CS3027" Action="Error" />
<Rule Id="CS4014" Action="Error" />
<Rule Id="CS4024" Action="Error" />
<Rule Id="CS4025" Action="Error" />
<Rule Id="CS4026" Action="Error" />
<Rule Id="CS7033" Action="Error" />
<Rule Id="CS7035" Action="Error" />
<Rule Id="CS7080" Action="Error" />
<Rule Id="CS7081" Action="Error" />
<Rule Id="CS7082" Action="Error" />
<Rule Id="CS7090" Action="Error" />
<Rule Id="CS7095" Action="Error" />
<Rule Id="CS8001" Action="Error" />
<Rule Id="CS8002" Action="Error" />
<Rule Id="CS8009" Action="Error" />
<Rule Id="CS8012" Action="Error" />
<Rule Id="CS8018" Action="Error" />
<Rule Id="CS8021" Action="Error" />
<Rule Id="CS8029" Action="Error" />
<Rule Id="CS8032" Action="Error" />
<Rule Id="CS8033" Action="Error" />
<Rule Id="CS8034" Action="Error" />
<Rule Id="CS8073" Action="Error" />
<Rule Id="CS8094" Action="Error" />
<Rule Id="CS8105" Action="Error" />
<Rule Id="CS8123" Action="Error" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp.Analyzers" RuleNamespace="Microsoft.CodeAnalysis.CSharp.Analyzers">
<Rule Id="RS1002" Action="Error" />
<Rule Id="RS1003" Action="Error" />
<Rule Id="RS1005" Action="Error" />
<Rule Id="RS1006" Action="Error" />
<Rule Id="RS1008" Action="Error" />
<Rule Id="RS1010" Action="Error" />
<Rule Id="RS1011" Action="Error" />
<Rule Id="RS1012" Action="Error" />
<Rule Id="RS1013" Action="Error" />
<Rule Id="RS1014" Action="Error" />
</Rules>
<Rules AnalyzerId="Microsoft.CodeAnalysis.VisualBasic" RuleNamespace="Microsoft.CodeAnalysis.VisualBasic">
<Rule Id="CS2008" Action="Error" />
<Rule Id="CS2023" Action="Error" />
<Rule Id="CS2029" Action="Error" />
<Rule Id="CS2038" Action="Error" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1000" Action="Error" />
<Rule Id="SA1001" Action="Error" />
<Rule Id="SA1002" Action="Error" />
<Rule Id="SA1003" Action="Error" />
<Rule Id="SA1004" Action="Error" />
<Rule Id="SA1005" Action="Error" />
<Rule Id="SA1006" Action="Error" />
<Rule Id="SA1007" Action="Error" />
<Rule Id="SA1008" Action="Error" />
<Rule Id="SA1009" Action="Error" />
<Rule Id="SA1010" Action="Error" />
<Rule Id="SA1011" Action="Error" />
<Rule Id="SA1012" Action="Error" />
<Rule Id="SA1013" Action="Error" />
<Rule Id="SA1014" Action="Error" />
<Rule Id="SA1015" Action="Error" />
<Rule Id="SA1016" Action="Error" />
<Rule Id="SA1017" Action="Error" />
<Rule Id="SA1018" Action="Error" />
<Rule Id="SA1019" Action="Error" />
<Rule Id="SA1020" Action="Error" />
<Rule Id="SA1021" Action="Error" />
<Rule Id="SA1022" Action="Error" />
<Rule Id="SA1023" Action="Error" />
<Rule Id="SA1024" Action="Error" />
<Rule Id="SA1025" Action="Error" />
<Rule Id="SA1026" Action="Error" />
<Rule Id="SA1027" Action="Error" />
<Rule Id="SA1028" Action="Error" />
<Rule Id="SA1100" Action="Error" />
<Rule Id="SA1101" Action="None" />
<Rule Id="SA1102" Action="Error" />
<Rule Id="SA1103" Action="Error" />
<Rule Id="SA1104" Action="Error" />
<Rule Id="SA1105" Action="Error" />
<Rule Id="SA1106" Action="Error" />
<Rule Id="SA1107" Action="Error" />
<Rule Id="SA1108" Action="Error" />
<Rule Id="SA1110" Action="Error" />
<Rule Id="SA1111" Action="Error" />
<Rule Id="SA1112" Action="Error" />
<Rule Id="SA1113" Action="Error" />
<Rule Id="SA1114" Action="Error" />
<Rule Id="SA1115" Action="Error" />
<Rule Id="SA1116" Action="None" />
<Rule Id="SA1117" Action="None" />
<Rule Id="SA1118" Action="None" />
<Rule Id="SA1119" Action="Error" />
<Rule Id="SA1120" Action="Error" />
<Rule Id="SA1121" Action="Error" />
<Rule Id="SA1122" Action="Error" />
<Rule Id="SA1123" Action="Error" />
<Rule Id="SA1124" Action="Error" />
<Rule Id="SA1125" Action="Error" />
<Rule Id="SA1127" Action="Error" />
<Rule Id="SA1128" Action="Error" />
<Rule Id="SA1129" Action="Error" />
<Rule Id="SA1130" Action="Error" />
<Rule Id="SA1131" Action="Error" />
<Rule Id="SA1132" Action="Error" />
<Rule Id="SA1133" Action="Error" />
<Rule Id="SA1134" Action="Error" />
<Rule Id="SA1200" Action="Error" />
<Rule Id="SA1201" Action="Error" />
<Rule Id="SA1202" Action="Error" />
<Rule Id="SA1203" Action="Error" />
<Rule Id="SA1204" Action="Error" />
<Rule Id="SA1205" Action="Error" />
<Rule Id="SA1206" Action="Error" />
<Rule Id="SA1207" Action="Error" />
<Rule Id="SA1208" Action="Error" />
<Rule Id="SA1209" Action="Error" />
<Rule Id="SA1210" Action="Error" />
<Rule Id="SA1211" Action="Error" />
<Rule Id="SA1212" Action="Error" />
<Rule Id="SA1213" Action="Error" />
<Rule Id="SA1214" Action="Error" />
<Rule Id="SA1216" Action="Error" />
<Rule Id="SA1217" Action="Error" />
<Rule Id="SA1300" Action="Error" />
<Rule Id="SA1302" Action="Error" />
<Rule Id="SA1303" Action="Error" />
<Rule Id="SA1304" Action="Error" />
<Rule Id="SA1306" Action="Error" />
<Rule Id="SA1307" Action="Error" />
<Rule Id="SA1308" Action="Error" />
<Rule Id="SA1309" Action="None" />
<Rule Id="SA1310" Action="Error" />
<Rule Id="SA1311" Action="Error" />
<Rule Id="SA1312" Action="Error" />
<Rule Id="SA1313" Action="Error" />
<Rule Id="SA1400" Action="Error" />
<Rule Id="SA1401" Action="None" />
<Rule Id="SA1402" Action="None" />
<Rule Id="SA1403" Action="Error" />
<Rule Id="SA1404" Action="Error" />
<Rule Id="SA1405" Action="Error" />
<Rule Id="SA1406" Action="Error" />
<Rule Id="SA1407" Action="Error" />
<Rule Id="SA1408" Action="Error" />
<Rule Id="SA1410" Action="Error" />
<Rule Id="SA1411" Action="Error" />
<Rule Id="SA1500" Action="Error" />
<Rule Id="SA1501" Action="Error" />
<Rule Id="SA1502" Action="Error" />
<Rule Id="SA1503" Action="Error" />
<Rule Id="SA1504" Action="Error" />
<Rule Id="SA1505" Action="Error" />
<Rule Id="SA1506" Action="Error" />
<Rule Id="SA1507" Action="Error" />
<Rule Id="SA1508" Action="Error" />
<Rule Id="SA1509" Action="Error" />
<Rule Id="SA1510" Action="Error" />
<Rule Id="SA1511" Action="Error" />
<Rule Id="SA1512" Action="Error" />
<Rule Id="SA1513" Action="Error" />
<Rule Id="SA1514" Action="Error" />
<Rule Id="SA1515" Action="Error" />
<Rule Id="SA1516" Action="Error" />
<Rule Id="SA1517" Action="Error" />
<Rule Id="SA1518" Action="Error" />
<Rule Id="SA1519" Action="Error" />
<Rule Id="SA1520" Action="Error" />
<Rule Id="SA1600" Action="Error" />
<Rule Id="SA1601" Action="Error" />
<Rule Id="SA1602" Action="Error" />
<Rule Id="SA1604" Action="Error" />
<Rule Id="SA1605" Action="Error" />
<Rule Id="SA1606" Action="Error" />
<Rule Id="SA1607" Action="Error" />
<Rule Id="SA1608" Action="Error" />
<Rule Id="SA1610" Action="Error" />
<Rule Id="SA1611" Action="Error" />
<Rule Id="SA1612" Action="Error" />
<Rule Id="SA1613" Action="Error" />
<Rule Id="SA1614" Action="Error" />
<Rule Id="SA1615" Action="Error" />
<Rule Id="SA1616" Action="Error" />
<Rule Id="SA1617" Action="Error" />
<Rule Id="SA1618" Action="Error" />
<Rule Id="SA1619" Action="Error" />
<Rule Id="SA1620" Action="Error" />
<Rule Id="SA1621" Action="Error" />
<Rule Id="SA1622" Action="Error" />
<Rule Id="SA1623" Action="Error" />
<Rule Id="SA1624" Action="Error" />
<Rule Id="SA1625" Action="Error" />
<Rule Id="SA1626" Action="Error" />
<Rule Id="SA1627" Action="Error" />
<Rule Id="SA1633" Action="Error" />
<Rule Id="SA1634" Action="Error" />
<Rule Id="SA1635" Action="Error" />
<Rule Id="SA1636" Action="Error" />
<Rule Id="SA1637" Action="Error" />
<Rule Id="SA1638" Action="Error" />
<Rule Id="SA1640" Action="Error" />
<Rule Id="SA1641" Action="Error" />
<Rule Id="SA1642" Action="Error" />
<Rule Id="SA1643" Action="Error" />
<Rule Id="SA1648" Action="Error" />
<Rule Id="SA1649" Action="Error" />
<Rule Id="SA1651" Action="Error" />
<Rule Id="SA1652" Action="None" />
<Rule Id="SX1101" Action="Error" />
<Rule Id="SX1309" Action="Error" />
</Rules>
</RuleSet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment