-
## Context
I have an extension that contains custom Roslyn analyzers, refactorings and code fixes. I use OmniSharp settings to configure it:
```json
{
"RoslynExtensionsOptions": {
…
-
Roslyn has a hidden diagnostic severity that's used to fade out text when they can be optional removed. Things like unused usings, or when `this.` is not required.
It would be great to have a way…
-
The current workaround is to define a new property as it is done for `BoundExpression.Type` in roslyn.
```cs
using System.Diagnostics.CodeAnalysis;
new C(1).Value.ToString(); // no warning
cla…
alrz updated
2 months ago
-
**Code example**
```
class C
{
int M()
{
int a = 0;
int b = 0;
a = b = 0;
return b;
}
}
```
**Expected**
Provides a diagnostic that 'a' is unu…
-
https://github.com/dotnet/roslyn/pull/41363 moves the "Remove unnecessary usings" IDE analyzer into the CodeStyle NuGet package, so this analyzer can execute on CI. This analyzer depends on the compil…
-
added `[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]` to the `Type type` and `string typeName` parameters of the `DebuggerTypeProxyAttribute` constructors. The analyzer could recog…
-
## Issue Description ##
I'm using .editorconfig to disable some rules. This works fine for the problems reported, however when I run any of the "Fix all occurrences of a code issue..." from the comma…
-
The [SARIF](https://sarifweb.azurewebsites.net/) format provides optional allows analysis results to be associated with "logical locations" rather than just the "physical locations" represented by pat…
-
Simple repro:
```vb
Public Class Class1
Public Property A As Integer
End Class
```
Expected:
Analyzer complains that 'A' is not part of the publicapi file.
Actual:
Analyzer does not…
-
Posting this issue to this repo as per the suggestion of @tarekgh
https://github.com/dotnet/roslyn-analyzers/issues/7285
https://github.com/dotnet/roslyn-analyzers/pull/7286
tldr: Invalid br…