Comments (8)
Please note that VS2017 is going off of .editorconfig for most formatting so maybe we could imitate that :).
from roslynator.
It seems to be doable.
A couple of notes:
- There will be possibility to override Visual Studio options with options specified in a file.
- File name will be roslynator.config.
- File will be located in solution directory.
A file will have following structure:
<?xml version="1.0" encoding="utf-8"?>
<roslynator>
<settings>
<general>
<prefixFieldIdentifierWithUnderscore isEnabled="true" />
</general>
<refactorings>
<refactoring id="RR0001" isEnabled="false" />
</refactorings>
</settings>
</roslynator>
Refactorings ids with be specified here.
from roslynator.
+1 for a solution .json
, this would be ideal for me too. I want this especially since suppression doesn't yet support namespaces (dotnet/roslyn/#486).
from roslynator.
@NickCraver The configuration file would be applicable only to refactorings, not analyzers.
from roslynator.
So when do we expect this global config file?
That or when applying the suppression in File... is there a wildcard format for the Target? ie. whole project ignore.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "RCS1169:Mark field as read-only.", Justification = "", Scope = "member", Target = "~F:SecondAct.Controllers.BackgroundController._backgroundTypeRepository")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "RCS1169:Mark field as read-only.", Justification = "", Scope = "member", Target = "~F:SecondAct.Controllers.BackgroundController._characterRepository")]
from roslynator.
@lancelarsen proposed config file would not (and cannot) be applicable to analyzers (RCS....).
I recommend to use rule set to suppress certain analyzer in entire project (see How to Configure Analyzers).
from roslynator.
Would love that -- really dig your extension... keep up the great work!
from roslynator.
from roslynator.
Related Issues (20)
- RCS1261: "Resource can be disposed asynchronously" does not take lock statement into account
- About new packages HOT 4
- Consider disabling `RCS1223` for attributes HOT 2
- RCS1159 should not be reported for WPF routed events HOT 2
- Declare as nullable code fix for CS8600 breaks when casts are involved HOT 1
- Simplify numeric comparison HOT 7
- Consider disabling `RCS0012` for fields HOT 1
- `RCS1019` does not work for `file static` HOT 1
- Collection expressions are not considered "obvious" typing
- `RCS1250` fixer cannot handle collection expressions
- `RCS1250` Applies collection-expression fixer when properties are set.
- RCS1060 doesn't work with file-scoped namespaces HOT 2
- CS8032: An instance of analyzer Roslynator.CSharp.Analysis.UnnecessaryRawStringLiteralAnalyzer cannot be created HOT 2
- RCS1267 - propose wrong fix
- Some analyzers don't work in Rider with severity being set to "suggestion" HOT 1
- RCS1169 not being diffused by roslynator_unity_code_analysis.enabled = true HOT 4
- RCS1077 Crashes with NullReference Exception HOT 2
- Typo in new option key
- Missing documentation HOT 7
- Add performance refactoring for IList Last, First or ElementAt 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 roslynator.