-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update code style for ordering things inside classes #6125
Update code style for ordering things inside classes #6125
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6125 +/- ##
==========================================
Coverage 69.85% 69.86%
+ Complexity 17497 17495 -2
==========================================
Files 1976 1976
Lines 74710 74712 +2
Branches 7645 7645
==========================================
+ Hits 52191 52194 +3
Misses 19868 19868
+ Partials 2651 2650 -1 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Thomas Gran <[email protected]>
doc/dev/decisionrecords/Codestyle.md
Outdated
5. Each section of members are sorted by visibility: | ||
1. ´public´ | ||
2. package private |
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.
This part says that we should sort the sections above by visibility. That collides with having the private
specifiers above.
Maybe we should just remove this section?
Co-authored-by: Thomas Gran <[email protected]>
Summary
We have too strict rules for ordering things inside classes which are not always followed either by accident or because following them would cause nasty conflicts when things need to be moved inside classes. This pr updates the code style for ordering things inside classes to have less rules.
Issue
No issue
Unit tests
Not needed
Documentation
Updated code style documentation.
Changelog
No change log entry since this is meant for developers