dotnet / dotnet/roslynator

Add analyzer similar to Resharper's "Method can be made static"

Open
#214 2 comments 0 reactions 0 assignees View on GitHub
Area-Analyzers Feature Request
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

Please add analyzer similar to Resharper's "Method can be made static".
There is Microsoft analyzer CA1822 but it will show warning even for methods that aren't private.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing analyzer structure and Microsoft analyzer CA1822, which the issue cites as the closest reference. Determine the intended private-method scope and how similar analyzers are tested; done means the new analyzer identifies applicable methods without reporting the broader cases that CA1822 warns about.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
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.