3

I have added a nuget package StyleCopPlus.MSBuild https://www.nuget.org/packages/StyleCopPlus.MSBuild/4.7.49.5

which comes with Settings.StyleCop that I can copy to solution folder and modify, but I'm getting warning SP2001 "Only tab characters are allowed to be used for indentation" but I can't find a rule to disable it.

mardok
  • 2,135
  • 2
  • 23
  • 37
  • Possible duplicate of [#pragma warning disable & restore](https://stackoverflow.com/questions/15715170/pragma-warning-disable-restore) – mjwills Sep 19 '18 at 12:55
  • 1
    I'd recommend using https://www.nuget.org/packages/stylecop.analyzers/ instead. – mjwills Sep 19 '18 at 12:56
  • @mjwills Thanks for suggestion but this package is even worse, I need to create two files `stylecop.json` to configure rules and if I want to disable some rules I need to create another one `GlobalSuppressions.cs` and both need to be linked to each project...... – mardok Sep 19 '18 at 15:32

0 Answers0