-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Add readonly modifier to internal static members #11777
Conversation
Why readonly instead of const? |
@powercode I considered a change to In theory since the fields are
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
rebased to resolve merge conflicts |
1e61728
to
50d31e6
Compare
@iSazonov I have made amendments, can you review? |
src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
Outdated
Show resolved
Hide resolved
@iSazonov force pushed to remove name changes, but now we have StyleCop rule violations, SA1304NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter |
rebased to resolve merge conflicts |
Our code convention is :
So we have a conflict with StyleCop rule. But we can not use the rule without changing our code convention. |
@iSazonov I have opened #12819 so we can make a general decision on the code convention. |
@iSazonov I am not sure why CodeFactor finds |
@xtqqczze Perhaps it is CodeFactor effiect. |
Hello @iSazonov! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
@iSazonov The rule is not present in the CodeFactor default rule-set. |
🎉 Handy links: |
PR Summary
PR Context
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.