Giter Site home page Giter Site logo

Confusion over settings about stylecop HOT 1 CLOSED

stylecop avatar stylecop commented on July 2, 2024
Confusion over settings

from stylecop.

Comments (1)

citizenmatt avatar citizenmatt commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.