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

Unused field not reported in Roslyn build #76729

Open
jjonescz opened this issue Jan 13, 2025 · 0 comments
Open

Unused field not reported in Roslyn build #76729

jjonescz opened this issue Jan 13, 2025 · 0 comments
Labels
Area-Analyzers Feature - IDE0052 Remove unread private members untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@jjonescz
Copy link
Member

jjonescz commented Jan 13, 2025

Version Used: b7e891b

Not sure if this is infra or analyzer issue, but I would expect this unused field to generate IDE0052 warning during CI builds:

private static readonly char[] s_directorySeparator = [Path.DirectorySeparatorChar];

The IDE0052 warning is reported in IDE (both VS and VSCode) but not during builds.

Btw, this field reports the warning during builds if suppressions around it are removed:

private readonly SemanticModel _nullableEnabledSemanticModel;

@jjonescz jjonescz added Area-Analyzers Feature - IDE0052 Remove unread private members labels Jan 13, 2025
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Analyzers Feature - IDE0052 Remove unread private members untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

1 participant