File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,19 @@ StyleCop Analyzers adds enum members to the list of elements which should start
199199SA1300 for violations. StyleCop Classic did not report any messages for enum members that did not start with an
200200upper-case letter.
201201
202+ ### SA1303
203+
204+ :warning : StyleCop Classic reports SA1303 for local constants that start with a lower-case letter, even though they are
205+ not fields. StyleCop Analyzers limits SA1303 to fields, so local constants follow the local-variable naming rules and
206+ do not produce a warning for this code ([ #2082 ] ( https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2082 ) ):
207+
208+ ``` csharp
209+ public void SomeMethod ()
210+ {
211+ const string url = " some constant value" ;
212+ }
213+ ```
214+
202215### SA1305
203216
204217This rule is disabled by default in StyleCop Analyzers, but can be enabled by users via a rule set file.
You can’t perform that action at this time.
0 commit comments