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

Update code style for ordering things inside classes #6125

Merged
merged 5 commits into from
Oct 11, 2024

Conversation

optionsome
Copy link
Member

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

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.86%. Comparing base (233674c) to head (05a6f6d).
Report is 125 commits behind head on dev-2.x.

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.
📢 Have feedback on the report? Share it here.

doc/dev/decisionrecords/Codestyle.md Outdated Show resolved Hide resolved
doc/dev/decisionrecords/Codestyle.md Outdated Show resolved Hide resolved
Comment on lines 131 to 133
5. Each section of members are sorted by visibility:
1. ´public´
2. package private
Copy link
Contributor

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?

doc/dev/decisionrecords/Codestyle.md Outdated Show resolved Hide resolved
@optionsome optionsome merged commit bad81fc into opentripplanner:dev-2.x Oct 11, 2024
5 checks passed
@optionsome optionsome deleted the update-ordering-style branch October 11, 2024 07:37
@t2gran t2gran added this to the 2.7 (next release) milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants