Support for GlobalSuppressions.cs

As of version 4.7.49.1 of the StyleCop.MSBuild NuGet package adding a GlobalSuppressions,cs file to a solution or project appears to be totally ignored. Please support GlobalSuppressions.cs as a ...

Id #7728 | Release: None | Updated: Today at 4:53 AM by adamralph | Created: Wed at 11:18 PM by andgray

StyleCop for ReSharper plugin (4.7.54) fails on "Reset C# Code Style Options"

In an environment with existing Settings.StyleCop, the plugin fails when trying to use button "Reset C# Code Style Options" in R# Options. The popup dialog with R# options are then rendered as show...

Id #7727 | Release: None | Updated: Today at 6:24 AM by janid1967 | Created: Wed at 11:25 AM by janid1967

StyleCop R# plugin incompatible with v.8.2.3000.5176

Resharper plugin loader fails to load StyleCop 4.7.54.0 plugin. Error details: The file “C:\Program Files (x86)\JetBrains\ReSharper\v8.2\Bin\Plugins\StyleCop 4.7\StyleCop.ReSharper800.dll” refere...

Id #7726 | Release: None | Updated: May 18 at 9:42 AM by tomtom_ais | Created: May 18 at 9:42 AM by tomtom_ais

Improve SA1013 handling of anonymous types

this.Get["/"] = _ => this.View["index", new { Greeting = Global.Config.Greeting<string>(), }]; yields SA1013 : CSharp.Spacing : Invalid spacing around the closing curly bracket.

Id #7725 | Release: None | Updated: May 13 at 3:22 PM by adamralph | Created: May 13 at 3:21 PM by adamralph

Array property initializers

Gents, The following line of code is valid C# 6.0 code, but results in a SA0102: public ServiceBase[] Services { get; set; } = { }; Could be the same issue as reported below however. Regards....

Id #7724 | Release: None | Updated: May 16 at 9:25 AM by hvledder | Created: May 4 at 9:20 AM by hvledder

Improve handling of property initializers

From https://github.com/FakeItEasy/FakeItEasy/pull/678#issuecomment-214536900 Given this: public object SomeReallyLongPropertyNameWhichResultsInAnExccessiveLineLength { get; } = SomeReallyLon...

Id #7723 | Release: None | Updated: Today at 5:28 AM by adamralph | Created: Apr 26 at 11:36 AM by adamralph

SA1003 doesn't allow line breaks before '?.' operator

When composing statements with long method chains, e.g. foo.SomeMethod().AnotherMethod().YetAnotherMethod().OneLastMethod().OneForTheRoad().LetsJustMakeSureThisLineReallyDoesSpillOverTheSideOfTheSc...

Id #7722 | Release: None | Updated: Today at 5:17 AM by adamralph | Created: Apr 26 at 11:27 AM by adamralph

4.7.52 - SA0102 Syntax error issue

A string like the one below: $"Document \"{document.DisplayName}\" ({document.Title}) with id \"{document.Id}\" was created." causes this stylecop error: SA0102 : CSharp.CsParser : A syntax error ...

Id #7721 | Release: None | Updated: Apr 28 at 7:25 AM by carlberg | Created: Apr 21 at 3:19 PM by carlberg

"www.stylecop.com" is down

www.stylecop.com is not reachable, so www.stylecop.com/doc too!

Id #7720 | Release: None | Updated: Apr 13 at 9:07 AM by mubed | Created: Apr 13 at 9:07 AM by mubed

SA0102 on Expression Body on Indexer

Gents, On StyleCop 4.7.51.0 (Beta), the following C# 6.0 code results in a SA0102 (Syntax Error) : public TObject this[TKey key] => this.Get(key); when formatting it as a statement body, everyth...

Id #7719 | Release: 4.7.52 | Updated: Apr 21 at 4:02 AM by csdahlberg | Created: Apr 12 at 11:15 AM by hvledder