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

make some methods static #4564

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

SimonCropp
Copy link
Contributor

No description provided.

Copy link
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but this is curious. Why the one in MTP product code wasn't flagged by CA1822? The rest are test-only and we disable the rule on tests so that's expected

dotnet_diagnostic.CA1822.severity = warning

@Evangelink Do you see any obvious reason? If not, probably we should track it in an issue for future investigation.

Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Evangelink
Copy link
Member

@Evangelink Do you see any obvious reason? If not, probably we should track it in an issue for future investigation.

I have seen a couple of analyzers that are not well raised in our repo but never was able to spend much time on it.

The rest are test-only and we disable the rule on tests so that's expected

We may want to re-enable for the test infra projects.

@Evangelink Evangelink merged commit e482b23 into microsoft:main Jan 9, 2025
10 checks passed
@SimonCropp SimonCropp deleted the make-some-methods-static branch January 9, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants