roslynator
roslynator copied to clipboard
Roslynator is a set of code analysis tools for C#, powered by Roslyn.
I have some legacy code which uses quite a lot of `String.Concat` like the following snippet. Is it possible to add an analyzer to convert them to interpolated strings? ````C#...
New Analyser/Code-fix request When `using` statements are placed inside a `namespace` which shares some parent namespaces, it is possible to remove the duplicated parent namespaces from the `using` statement for...
`c` - culture `C` - ignore-compiler-diagnostics `E` - ignore-compiler-errors `i` - supported-diagnostics `I` - ignored-diagnostics `l` - file-log `r` - projects `R` - ignored-projects
**Product and Version Used**: Visual Studio 2019 with .Net5 **Steps to Reproduce**: Open .EditorConfig file set severity for some as error. For e.g. IDE0065. **Actual Behavior**: ```csharp It does not...
Hi! I am looking for a rule that forced devs to use [named arguments](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/named-and-optional-arguments). Any rules for this in Roslynator?
**Product and Version Used**: Microsoft Visual Studio Community 2019 Version 16.10.4 Roslynator.Formatting.Analyzers 1.2.1 via Nuget [RCS1198](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1198.md) [IDE0071](https://docs.microsoft.com/ru-ru/dotnet/fundamentals/code-analysis/style-rules/ide0071) **Steps to Reproduce**: ```csharp enum Foo { A = 0 } var test1...
Could avoid hardcoding the path: https://github.com/JosefPihrt/Roslynator/blob/fe965b358d87255264383c5ab0b576464a76b7e7/tools/build.cmd#L6 https://github.com/microsoft/vswhere
My solution has a [`.editorconfig` file](https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2017) in its root with the following rules defined: ``` [*.{cs,vb}] dotnet_naming_rule.private_members_with_underscore.symbols = private_fields dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore dotnet_naming_rule.private_members_with_underscore.severity = suggestion dotnet_naming_symbols.private_fields.applicable_kinds = field dotnet_naming_symbols.private_fields.applicable_accessibilities =...
Is it possible for you to detect when the statements causing this are being used in LINQ to SQL and do not flag them in those cases? Oracle Data Provider...
**Product and Version Used**: Roslynator 2019 v3.2.0 in VS2019 Community and Pro editions 16.10.* **Steps to Reproduce**: In this solution the issue is perfectly reproducible on my side https://github.com/aelij/RoslynPad.git (commit...