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,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.