1 <RuleSet Name="OpenTK Rules" ToolsVersion="12.0">
2 <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
5 <Rule Id="SA0001" Action="Error" /> <!-- XML comment analysis disabled -->
6 <Rule Id="SA0002" Action="Error" /> <!-- Invalid settings file -->
9 <Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
10 <Rule Id="SA1001" Action="Error" /> <!-- Commas must be spaced correctly -->
11 <Rule Id="SA1002" Action="Error" /> <!-- Semicolons must be spaced correctly -->
12 <Rule Id="SA1003" Action="Error" /> <!-- Symbols must be spaced correctly -->
13 <Rule Id="SA1004" Action="None" /> <!-- Documentation lines must begin with single space -->
14 <Rule Id="SA1005" Action="None" /> <!-- Single line comments must begin with single space -->
15 <Rule Id="SA1006" Action="Error" /> <!-- Preprocessor keywords must not be preceded by space -->
16 <Rule Id="SA1007" Action="None" /> <!-- Operator keyword must be followed by space -->
17 <Rule Id="SA1008" Action="None" /> <!-- Opening parenthesis must be spaced correctly -->
18 <Rule Id="SA1009" Action="None" /> <!-- Closing parenthesis must be spaced correctly -->
19 <Rule Id="SA1010" Action="None" /> <!-- Opening square brackets must be spaced correctly -->
20 <Rule Id="SA1011" Action="None" /> <!-- Closing square brackets must be spaced correctly -->
21 <Rule Id="SA1012" Action="None" /> <!-- Opening braces must be spaced correctly -->
22 <Rule Id="SA1013" Action="None" /> <!-- Closing braces must be spaced correctly -->
23 <Rule Id="SA1014" Action="Error" /> <!-- Opening generic brackets must be spaced correctly -->
24 <Rule Id="SA1015" Action="Error" /> <!-- Closing generic brackets must be spaced correctly -->
25 <Rule Id="SA1016" Action="Error" /> <!-- Opening attribute brackets must be spaced correctly -->
26 <Rule Id="SA1017" Action="Error" /> <!-- Closing attribute brackets must be spaced correctly -->
27 <Rule Id="SA1018" Action="Error" /> <!-- Nullable type symbols must be spaced correctly -->
28 <Rule Id="SA1019" Action="None" /> <!-- Member access symbols must be spaced correctly -->
29 <Rule Id="SA1020" Action="Error" /> <!-- Increment decrement symbols must be spaced correctly -->
30 <Rule Id="SA1021" Action="Error" /> <!-- Negative signs must be spaced correctly -->
31 <Rule Id="SA1022" Action="Error" /> <!-- Positive signs must be spaced correctly -->
32 <Rule Id="SA1023" Action="None" /> <!-- Dereference and access of symbols must be spaced correctly -->
33 <Rule Id="SA1024" Action="None" /> <!-- Colons Must Be Spaced Correctly -->
34 <Rule Id="SA1025" Action="None" /> <!-- Code must not contain multiple whitespace in a row -->
35 <Rule Id="SA1026" Action="None" /> <!-- Code must not contain space after new keyword in implicitly typed array allocation -->
36 <Rule Id="SA1027" Action="Error" /> <!-- Use tabs correctly -->
37 <Rule Id="SA1028" Action="None" /> <!-- Code must not contain trailing whitespace -->
39 <!-- Readability rules -->
40 <Rule Id="SA1100" Action="None" /> <!-- Do not prefix calls with base unless local implementation exists -->
41 <Rule Id="SA1101" Action="None" Intentional="true" /> <!-- Prefix local calls with this -->
42 <Rule Id="SX1101" Action="None" /> <!-- Do not prefix local calls with this. -->
43 <Rule Id="SA1102" Action="Error" /> <!-- Query clause must follow previous clause -->
44 <Rule Id="SA1103" Action="Error" /> <!-- Query clauses must be on separate lines or all on one line -->
45 <Rule Id="SA1104" Action="Error" /> <!-- Query clause must begin on new line when previous clause spans multiple lines -->
46 <Rule Id="SA1105" Action="Error" /> <!-- Query clauses spanning multiple lines must begin on own line -->
47 <Rule Id="SA1106" Action="None" /> <!-- Code must not contain empty statements -->
48 <Rule Id="SA1107" Action="None" /> <!-- Code must not contain multiple statements on one line -->
49 <Rule Id="SA1108" Action="None" /> <!-- Block statements must not contain embedded comments -->
50 <Rule Id="SA1110" Action="None" Intentional="true" /> <!-- Opening parenthesis or bracket must be on declaration line -->
51 <Rule Id="SA1111" Action="None" Intentional="true" /> <!-- Closing parenthesis must be on line of last parameter -->
52 <Rule Id="SA1112" Action="Error" /> <!-- Closing parenthesis must be on line of opening parenthesis -->
53 <Rule Id="SA1113" Action="Error" /> <!-- Comma must be on the same line as previous parameter -->
54 <Rule Id="SA1114" Action="Error" /> <!-- Parameter list must follow declaration -->
55 <Rule Id="SA1115" Action="None" /> <!-- Parameter must follow comma -->
56 <Rule Id="SA1116" Action="None" /> <!-- Split parameters must start on line after declaration -->
57 <Rule Id="SA1117" Action="None" /> <!-- Parameters must be on same line or separate lines -->
58 <Rule Id="SA1118" Action="None" /> <!-- Parameter must not span multiple lines -->
59 <Rule Id="SA1119" Action="None" /> <!-- Statement must not use unnecessary parenthesis -->
60 <Rule Id="SA1120" Action="None" /> <!-- Comments must contain text -->
61 <Rule Id="SA1121" Action="None" /> <!-- Use built-in type alias -->
62 <Rule Id="SA1122" Action="None" /> <!-- Use string.Empty for empty strings -->
63 <Rule Id="SA1123" Action="Error" /> <!-- Do not place regions within elements -->
64 <Rule Id="SA1124" Action="Error" /> <!-- Do not use regions -->
65 <Rule Id="SA1125" Action="None" /> <!-- Use shorthand for nullable types -->
66 <Rule Id="SA1127" Action="None" /> <!-- Generic type constraints must be on their own line -->
67 <Rule Id="SA1128" Action="None" /> <!-- Put constructor initializers on their own line -->
68 <Rule Id="SA1129" Action="None" /> <!-- Do not use default value type constructor -->
69 <Rule Id="SA1130" Action="None" /> <!-- Use lambda syntax -->
70 <Rule Id="SA1131" Action="None" /> <!-- Use readable conditions -->
71 <Rule Id="SA1132" Action="None" /> <!-- Do not combine fields -->
72 <Rule Id="SA1133" Action="None" /> <!-- Do not combine attributes -->
73 <Rule Id="SA1134" Action="None" /> <!-- Attributes must not share line -->
74 <Rule Id="SA1136" Action="Error" /> <!-- Enum values should be on separate lines -->
75 <Rule Id="SA1137" Action="Error" /> <!-- Elements should have the same indentation -->
76 <Rule Id="SA1139" Action="Error" /> <!-- Use literals suffix notation instead of casting -->
78 <!-- Ordering rules -->
79 <Rule Id="SA1200" Action="None" /> <!-- Using directives must be placed correctly -->
80 <Rule Id="SA1201" Action="None" /> <!-- Elements must appear in the correct order -->
81 <Rule Id="SA1202" Action="None" /> <!-- Elements must be ordered by access -->
82 <Rule Id="SA1203" Action="None" /> <!-- Constants must appear before fields -->
83 <Rule Id="SA1204" Action="None" /> <!-- Static elements must appear before instance elements -->
84 <Rule Id="SA1205" Action="None" /> <!-- Partial elements must declare access -->
85 <Rule Id="SA1206" Action="None" /> <!-- Declaration keywords must follow order -->
86 <Rule Id="SA1207" Action="None" /> <!-- Protected must come before internal -->
87 <Rule Id="SA1208" Action="None" /> <!-- System using directives must be placed before other using directives -->
88 <Rule Id="SA1209" Action="None" /> <!-- Using alias directives must be placed after other using directives -->
89 <Rule Id="SA1210" Action="None" /> <!-- Using directives must be ordered alphabetically by namespace -->
90 <Rule Id="SA1211" Action="None" /> <!-- Using alias directives must be ordered alphabetically by alias name -->
91 <Rule Id="SA1212" Action="Error" /> <!-- Property accessors must follow order -->
92 <Rule Id="SA1213" Action="Error" /> <!-- Event accessors must follow order -->
93 <Rule Id="SA1214" Action="None" /> <!-- Readonly fields must appear before non-readonly fields -->
94 <Rule Id="SA1216" Action="Error" /> <!-- Using static directives must be placed at the correct location. -->
95 <Rule Id="SA1217" Action="Error" /> <!-- Using static directives must be ordered alphabetically -->
98 <Rule Id="SA1300" Action="None" /> <!-- Element must begin with upper-case letter -->
99 <Rule Id="SA1302" Action="Error" /> <!-- Interface names must begin with I -->
100 <Rule Id="SA1303" Action="None" /> <!-- Const field names must begin with upper-case letter -->
101 <Rule Id="SA1304" Action="None" /> <!-- Non-private readonly fields must begin with upper-case letter -->
102 <Rule Id="SA1305" Action="None" /> <!-- Field names must not use Hungarian notation -->
103 <Rule Id="SA1306" Action="None" /> <!-- Field names must begin with lower-case letter -->
104 <Rule Id="SA1307" Action="None" /> <!-- Accessible fields must begin with upper-case letter -->
105 <Rule Id="SA1308" Action="Error" /> <!-- Variable names must not be prefixed -->
106 <Rule Id="SA1309" Action="None" /> <!-- Field names must not begin with underscore -->
107 <Rule Id="SX1309" Action="None" /> <!-- Field names must begin with underscore -->
108 <Rule Id="SX1309S" Action="None" /> <!-- Static field names must begin with underscore -->
109 <Rule Id="SA1310" Action="None" /> <!-- Field names must not contain underscore -->
110 <Rule Id="SA1311" Action="None" /> <!-- Static readonly fields must begin with upper-case letter -->
111 <Rule Id="SA1312" Action="None" /> <!-- Variable names must begin with lower-case letter -->
112 <Rule Id="SA1313" Action="None" /> <!-- Parameter names must begin with lower-case letter -->
113 <Rule Id="SA1314" Action="None" /> <!-- Type name parameters must begin with T -->
115 <!-- Maintainability rules -->
116 <Rule Id="SA1400" Action="None" /> <!-- Access modifier must be declared -->
117 <Rule Id="SA1401" Action="None" /> <!-- Fields must be private -->
118 <Rule Id="SA1402" Action="None" /> <!-- File may only contain a single class -->
119 <Rule Id="SA1403" Action="None" /> <!-- File may only contain a single namespace -->
120 <Rule Id="SA1404" Action="None" /> <!-- Code analysis suppression must have justification -->
121 <Rule Id="SA1405" Action="None" /> <!-- Debug.Assert must provide message text -->
122 <Rule Id="SA1406" Action="Error" /> <!-- Debug.Fail must provide message text -->
123 <Rule Id="SA1407" Action="None" /> <!-- Arithmetic expressions must declare precedence -->
124 <Rule Id="SA1408" Action="None" /> <!-- Conditional expressions must declare precedence -->
125 <Rule Id="SA1410" Action="Error" /> <!-- Remove delegate parenthesis when possible -->
126 <Rule Id="SA1411" Action="None" /> <!-- Attribute constructor must not use unnecessary parenthesis -->
127 <Rule Id="SA1412" Action="None" /> <!-- Store files as UTF-8 with byte order mark -->
128 <Rule Id="SA1413" Action="None" /> <!-- Use trailing comma in multi-line initializers -->
130 <!-- Layout rules -->
131 <Rule Id="SA1500" Action="None" /> <!-- Braces for multi-line statements must not share line -->
132 <Rule Id="SA1501" Action="None" /> <!-- Statement must not be on a single line -->
133 <Rule Id="SA1502" Action="None" /> <!-- Element must not be on a single line -->
134 <Rule Id="SA1503" Action="None" /> <!-- Braces must not be omitted -->
135 <Rule Id="SA1504" Action="None" /> <!-- All accessors must be single-line or multi-line -->
136 <Rule Id="SA1505" Action="None" /> <!-- Opening braces must not be followed by blank line -->
137 <Rule Id="SA1506" Action="None" /> <!-- Element documentation headers must not be followed by blank line -->
138 <Rule Id="SA1507" Action="None" /> <!-- Code must not contain multiple blank lines in a row -->
139 <Rule Id="SA1508" Action="None" /> <!-- Closing braces must not be preceded by blank line -->
140 <Rule Id="SA1509" Action="None" /> <!-- Opening braces must not be preceded by blank line -->
141 <Rule Id="SA1510" Action="Error" /> <!-- Chained statement blocks must not be preceded by blank line -->
142 <Rule Id="SA1511" Action="None" /> <!-- While-do footer must not be preceded by blank line -->
143 <Rule Id="SA1512" Action="None" /> <!-- Single-line comments must not be followed by blank line -->
144 <Rule Id="SA1513" Action="None" /> <!-- Closing brace must be followed by blank line -->
145 <Rule Id="SA1514" Action="None" /> <!-- Element documentation header must be preceded by blank line -->
146 <Rule Id="SA1515" Action="None" /> <!-- Single-line comment must be preceded by blank line -->
147 <Rule Id="SA1516" Action="None" /> <!-- Elements must be separated by blank line -->
148 <Rule Id="SA1517" Action="None" /> <!-- Code must not contain blank lines at start of file -->
149 <Rule Id="SA1518" Action="None" /> <!-- Use line endings correctly at end of file -->
150 <Rule Id="SA1519" Action="None" /> <!-- Braces must not be omitted from multi-line child statement -->
151 <Rule Id="SA1520" Action="None" /> <!-- Use braces consistently -->
153 <!-- Documentation rules -->
154 <Rule Id="SA1600" Action="None" /> <!-- Elements must be documented -->
155 <Rule Id="SA1601" Action="None" /> <!-- Partial elements must be documented -->
156 <Rule Id="SA1602" Action="None" /> <!-- Enumeration items must be documented -->
157 <Rule Id="SA1604" Action="None" /> <!-- Element documentation must have summary -->
158 <Rule Id="SA1605" Action="None" /> <!-- Partial element documentation must have summary -->
159 <Rule Id="SA1606" Action="None" /> <!-- Element documentation must have summary text -->
160 <Rule Id="SA1607" Action="None" /> <!-- Partial element documentation must have summary text -->
161 <Rule Id="SA1608" Action="None" /> <!-- Element documentation must not have default summary -->
162 <Rule Id="SA1609" Action="None" /> <!-- Property documentation must have value -->
163 <Rule Id="SA1610" Action="None" /> <!-- Property documentation must have value text -->
164 <Rule Id="SA1611" Action="None" /> <!-- Element parameters must be documented -->
165 <Rule Id="SA1612" Action="None" /> <!-- Element parameter documentation must match element parameters -->
166 <Rule Id="SA1613" Action="None" /> <!-- Element parameter documentation must declare parameter name -->
167 <Rule Id="SA1614" Action="None" /> <!-- Element parameter documentation must have text -->
168 <Rule Id="SA1615" Action="None" /> <!-- Element return value must be documented -->
169 <Rule Id="SA1616" Action="None" /> <!-- Element return value documentation must have text -->
170 <Rule Id="SA1617" Action="None" /> <!-- Void return value must not be documented -->
171 <Rule Id="SA1618" Action="None" /> <!-- Generic type parameters must be documented -->
172 <Rule Id="SA1619" Action="None" /> <!-- Generic type parameters must be documented partial class -->
173 <Rule Id="SA1620" Action="None" /> <!-- Generic type parameter documentation must match type parameters -->
174 <Rule Id="SA1621" Action="None" /> <!-- Generic type parameter documentation must declare parameter name -->
175 <Rule Id="SA1622" Action="None" /> <!-- Generic type parameter documentation must have text -->
176 <Rule Id="SA1623" Action="None" /> <!-- Property summary documentation must match accessors -->
177 <Rule Id="SA1624" Action="None" /> <!-- Property summary documentation must omit accessor with restricted access -->
178 <Rule Id="SA1625" Action="None" /> <!-- Element documentation must not be copied and pasted -->
179 <Rule Id="SA1626" Action="None" /> <!-- Single-line comments must not use documentation style slashes -->
180 <Rule Id="SA1627" Action="None" /> <!-- Documentation text must not be empty -->
181 <Rule Id="SA1629" Action="None" /> <!-- Documentation text must end with a period -->
182 <Rule Id="SA1633" Action="None" /> <!-- File must have header -->
183 <Rule Id="SA1634" Action="None" /> <!-- File header must show copyright -->
184 <Rule Id="SA1635" Action="None" /> <!-- File header must have copyright text -->
185 <Rule Id="SA1636" Action="None" /> <!-- File header copyright text must match -->
186 <Rule Id="SA1637" Action="None" /> <!-- File header must contain file name -->
187 <Rule Id="SA1638" Action="None" /> <!-- File header file name documentation must match file name -->
188 <Rule Id="SA1639" Action="None" /> <!-- File header must have summary -->
189 <Rule Id="SA1640" Action="None" /> <!-- File header must have valid company text -->
190 <Rule Id="SA1641" Action="None" /> <!-- File header company name text must match -->
191 <Rule Id="SA1642" Action="None" /> <!-- Constructor summary documentation must begin with standard text -->
192 <Rule Id="SA1643" Action="None" /> <!-- Destructor summary documentation must begin with standard text -->
193 <Rule Id="SA1644" Action="None" /> <!-- Documentation header must not contain blank lines -->
194 <Rule Id="SA1648" Action="None" /> <!-- inheritdoc must be used with inheriting class -->
195 <Rule Id="SA1649" Action="None" /> <!-- File name must match first type name -->
196 <Rule Id="SA1651" Action="None" /> <!-- Do not use placeholder elements -->