-
Notifications
You must be signed in to change notification settings - Fork 450
feat: naming rules (coding standards) #670
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
Conversation
com.unity.multiplayer.mlapi/Runtime/Messaging/RpcQueue/RpcQueueContainer.cs
Show resolved
Hide resolved
com.unity.multiplayer.mlapi/Runtime/Messaging/RpcQueue/RpcQueueProcessor.cs
Outdated
Show resolved
Hide resolved
com.unity.multiplayer.mlapi/Tests/Runtime/BufferDataValidationComponent.cs
Show resolved
Hide resolved
public string m_Name; | ||
public string m_Category; | ||
public string Name; | ||
public string Category; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public List<MLAPIProfilerCounter> m_ChartCounters = new List<MLAPIProfilerCounter>(); | ||
public List<MLAPIProfilerCounter> m_DetailCounters = new List<MLAPIProfilerCounter>(); | ||
public string m_Name; | ||
public List<MLAPIProfilerCounter> ChartCounters = new List<MLAPIProfilerCounter>(); | ||
public List<MLAPIProfilerCounter> DetailCounters = new List<MLAPIProfilerCounter>(); | ||
public string Name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. This cant be done. as the comment says above it. the fields are name that way for internal serialization
public List<MLAPIProfilerModuleData> m_Modules; | ||
public List<MLAPIProfilerModuleData> Modules; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9657ea8
to
17e8b2c
Compare
def95c8
to
1b00c4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
continuing on
.editorconfig
with naming rules, based on Unity C# coding standards.this is the second part of coding standard rules where we apply naming conventions.
we are planning to integrate these rules into both local (git push hooks) and repo (yamato ci/cd) pipelines.
all changes in this PR are made according to errors indicated by
dotnet-format
applying.editorconfig
rules.Running Locally
you can run this command manually in your local environment to get the same results:
after running the command above:
--fix-whitespace
)--fix-style error
)dotnet-format
is able to format files and fix styling issues such as spaces, brackets etc.however, it is not capable of fixing name errors since they're strictly defined by the developer.
formatting and styling fixes are 100% safe, they will NEVER change the code-flow, behavior etc.
naming errors should be fixed by the developer according to Unity C# Standards, manually.
Notes
currently, this PR does NOT automate or touch anything in your local environment and/or over yamato remotely.
however, we are planning to integrate these rules into local development environment with git-push hook script and also over
develop
branch remotely by integrating it into yamato ci/cd as an extra step in the testing pipeline.we will have discussions about these future steps with Core SDK team and I will follow-up with separate PRs.