@@ -117,7 +117,8 @@ uint value = (uint)3;
117117
118118### SA1025
119119
120- StyleCop Classic allowed multiple spaces to precede a comment placed at the end of a line, such as the following:
120+ :warning : StyleCop Classic allowed multiple spaces to precede a comment placed at the end of a line, such as the
121+ following:
121122
122123``` csharp
123124int x ; // comment
@@ -130,7 +131,8 @@ int xyz = 1;
130131int w = 1 ;
131132```
132133
133- StyleCop Analyzers does not currently make an exception to the SA1025 rule for these cases.
134+ StyleCop Analyzers does not currently make an exception to the SA1025 rule for these cases, including aligned operators
135+ like the ` = ` values in flag enums ([ #3684 ] ( https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3684 ) ).
134136
135137## Readability Rules
136138
@@ -199,6 +201,19 @@ StyleCop Analyzers adds enum members to the list of elements which should start
199201SA1300 for violations. StyleCop Classic did not report any messages for enum members that did not start with an
200202upper-case letter.
201203
204+ ### SA1303
205+
206+ :warning : StyleCop Classic reports SA1303 for local constants that start with a lower-case letter, even though they are
207+ not fields. StyleCop Analyzers limits SA1303 to fields, so local constants follow the local-variable naming rules and
208+ do not produce a warning for this code ([ #2082 ] ( https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2082 ) ):
209+
210+ ``` csharp
211+ public void SomeMethod ()
212+ {
213+ const string url = " some constant value" ;
214+ }
215+ ```
216+
202217### SA1305
203218
204219This rule is disabled by default in StyleCop Analyzers, but can be enabled by users via a rule set file.
@@ -208,14 +223,23 @@ interface. StyleCop Classic reported SA1305 for all methods.
208223
209224### SA1313
210225
211- StyleCop Analyzers allows the single and double underscore (` _ ` and ` __ ` ) as lambda parameter names.
226+ :warning : StyleCop Classic allows lambda parameters consisting solely of underscores (e.g. ` _ ` , ` __ ` , ` ___ ` , …) without
227+ reporting SA1313. StyleCop Analyzers only special-case ` _ ` and ` __ ` ; longer underscore-only names still report SA1313
228+ ([ #2759 ] ( https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2759 ) ).
212229
213230## Maintainability Rules
214231
215232There are no known changes at this time.
216233
217234## Layout Rules
218235
236+ ### SA1514
237+
238+ :warning : While StyleCop Classic generally did not allow ` #region ` directives to appear in code (SA1124), it may have
239+ indirectly allowed an element documentation header to immediately follow a ` #region ` directive without a blank line
240+ (i.e. did not report SA1514). StyleCop Analyzers treats the ` #region ` as preceding content, so SA1514 is reported unless
241+ you add a blank line after the directive ([ #1280 ] ( https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/1280 ) ).
242+
219243### SA1515
220244
221245:warning : The following code does not report a warning in StyleCop Classic:
0 commit comments