Comments (3)
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.
@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.
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)
- Please issue a new stable release HOT 1
- warning AD0001: Analyzer 'StyleCop.Analyzers.OrderingRules.SA1201ElementsMustAppearInTheCorrectOrder' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' with message 'The given key was not present in the dictionary.'. HOT 1
- SAAllow primary constructor parameters to start with underscore.
- SA1313 Allow primary constructor parameters to start with underscore. HOT 1
- Inquiry about Adding Chinese Language Support to StyleCop.Analyzers
- SA1303: Can we configure this to warn if the 1st char is _ HOT 6
- SA1010 interferes with IDE0055 when = is followed by an array initialization HOT 4
- Make SA1201 configurable HOT 2
- Flags enums should be sorted HOT 1
- SA1013 fires for escaped closing brace in a multi-line interpolated verbatim string HOT 1
- conflict SA1024 and SA1009 HOT 1
- stylecop.analyzers is missing NuGet package README file
- `SA1629` code fix eats ending semicolon of XML entity
- `SA1402` Should not apply to file-scoped types HOT 1
- Missing period SA1629 should not trigger inside <example> tags. HOT 2
- `SA1629` should ignore `<example>` since a trailing period is often not valid input. HOT 2
- SA1629 demands period for Value text HOT 2
- SA1202 fires for dependent members HOT 3
- SA1217 reporting incorrect order if System.* is placed alphabetically HOT 3
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 stylecopanalyzers.