Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S1144: Highlight only the identifier name #6321

Closed
costin-zaharia-sonarsource opened this issue Nov 8, 2022 · 0 comments · Fixed by #6679
Closed

S1144: Highlight only the identifier name #6321

costin-zaharia-sonarsource opened this issue Nov 8, 2022 · 0 comments · Fixed by #6679
Assignees
Labels
Area: C# C# rules related issues.
Milestone

Comments

@costin-zaharia-sonarsource
Copy link
Member

costin-zaharia-sonarsource commented Nov 8, 2022

Description

When S1144 is triggered for a method, it will highlight the full method body. This is annoying for the users and can hide other issues as well.

Repro steps

image

Expected behavior

Highlight only the method identifier

Actual behavior

The full method body is highlighted.

Sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants