Comments (1)
Yes, the StyleCop ReSharper plugin doesn't require StyleCop to be installed, and as such, doesn't look in Program Files for the settings defaults. Instead, the defaults are shipped as part of the ReSharper extension. You would have to make your changes there, but I wouldn't advise it, as they will be overwritten by any new versions of the plugin. You're better off maintaining a copy at the root of your solution.
So this likely explains why you're seeing differences - if you've changed the global settings, the command line from the install will use different settings to the plugin (another good reason to keep your settings with the solution - both tools will be in sync).
I think looking at the severity level is a bit of a red herring. The command line is showing no warnings because you've edited the defaults, and disabled rules. The ReSharper plugin is showing warnings because you've deleted the per solution settings, and ReSharper doesn't look at the separate program install location (because it doesn't require the program to be installed). It would have worked before, because the plugin was picking up the settings files you've deleted.
The inspection severity levels are only used when the issues are reported, and don't control whether the inspections are disabled or not. So, you can disable the inspections in the style cop settings, but the inspection severity will still show "warning". But the analysis won't run the inspections.
I'm going to close the issue now, feel free to reopen if this doesn't make sense.
from stylecop.
Related Issues (20)
- StyleCop.MSBuild build failed
- StyleCop as a dotnet tool utility? HOT 3
- Globablly Suppressing Stylecop Rules Not Working HOT 1
- Error while trying to enable StyleCop CheckIn Policy for TFVC in VS2019
- SA1011 and nullable reference type BUG
- Option to require trailing comma unless there are multiple elements that are all on one line
- SA1200 should read .net directives from .editorconfig HOT 1
- SA1513 sometimes fires on the closing brace of switch expressions
- C# 8.0 getting SA0102 on using statement
- SA1130UseLambdaSyntax throws NullReferenceException HOT 1
- StyleCop crashing Visual Studio with NotSupportedException HOT 8
- SA1000 conflicts with IDE0055 for simplified constructor calls HOT 2
- StyleCop can not use in vs2019 16.11.2
- CsDocument.Tokens cannot detect comments contained in the ?: Operator.
- StyleCop does not support feature of C# 9.0 (is not null) HOT 1
- Cannot use StyleCop in vs2022 HOT 3
- Style Cop Extension Crashing on Visual Studio 2019 HOT 1
- SA0102: A syntax error discovered.... but the code is valid
- Require parenthesis for null coalesce expression
- "Parameter should begin with lower-case letter" (SA1313) fires on positional record structs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylecop.