Code Monkey home page Code Monkey logo

Comments (3)

sharwell avatar sharwell commented on July 22, 2024

The StyleCop rules predate the pages you linked to. We try to avoid making changes to the default behavior of the rules so existing users don't experience large numbers of breaking changes during updates.

from stylecopanalyzers.

urielginsburg avatar urielginsburg commented on July 22, 2024

@sharwell
Understood. However, the opposite is also true - for example, when coding in C# I tend to follow Microsoft's guidelines. I added StyleCop to a solution with several projects and got 1000s of warnings, right off the bat. Perhaps it would be beneficial to add configuration "Presets"? The default one could stay the same as today and a "Microsoft-guidelines" preset would reflect the more recent guidelines?
I would be happy to contribute.

cheers,
Uriel

from stylecopanalyzers.

sharwell avatar sharwell commented on July 22, 2024

Note that the pages you listed above are specific to individual repositories (one being the samples for the documentation site). Another rule listed on the page for the documentation site is:

Limit lines to 65 characters to enhance code readability on docs, especially on mobile screens.

We don't currently have one single set of rules that applies to all repositories. The stylecop.json file allows many items to be customized to fit different rules. It would be nice to futher consolidate SA1101/SX1101, and SA1309/SX1309/SX1309S by adding options, but we never ended up doing that.

from stylecopanalyzers.

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.