dotnet / dotnet/roslynator

Add support for default Roslyn analyzer to CLI

Open
#695 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

**Product and Version Used**: Roslynator.Commandline 0.1.0

**Steps to Reproduce**:
Create an empty console project.
Add `.editorconfig` with `csharp_prefer_braces = true:error`.
Add line in the code violating this rule.
Run roslynator `fix` or `analyze`.

**Actual Behavior**:
IDE0011 (missing if braces) is not shown in the roslynator cli output.

**Expected Behavior**:
All analyzers are supported, even built-in Roslyn analyzer.

Related to https://github.com/dotnet/roslyn/issues/33629 and https://github.com/dotnet/roslyn/issues/2020

Contributor guide

Open the contributing guide

Research direction

Start with the CLI's analyze and fix commands and reproduce the issue using the empty console project and .editorconfig setting described here. Confirm that the built-in Roslyn IDE0011 analyzer appears in analyze output and is handled by fix, then verify the behavior against the related Roslyn issues.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.