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

Refit - Reformat, document, annotate, comment, clarify #5133

Merged
merged 3 commits into from
Oct 27, 2024

Conversation

WeaverThree
Copy link
Collaborator

This is me spending a day or two to go through and understand Refit.java, and clean it up as much as I can without (gods willing) changing the logic of it at all. I've added doc comments to nearly everything, I've added a lot of fixmes and some todos marking stuff that needs to be changed or considered. I've renamed a bunch of variables to more descriptive names. I've pulled boolean variables out of some of the worse if statements. I've made a minor change to the way error strings work and added a few ReportingUtilities functions in there.

I'm submitting this as its own PR because having these changes done separately means that the actual changes to function can be evaluated without all the mess of reformatting and cleanup going on around them at the same time.

@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.53%. Comparing base (0702c03) to head (4377c10).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5133   +/-   ##
=========================================
  Coverage     10.53%   10.53%           
- Complexity     6041     6043    +2     
=========================================
  Files           956      956           
  Lines        134213   134251   +38     
  Branches      19489    19502   +13     
=========================================
+ Hits          14140    14148    +8     
- Misses       118722   118752   +30     
  Partials       1351     1351           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and seems to work

@HammerGS HammerGS merged commit a2886e6 into MegaMek:master Oct 27, 2024
4 checks passed
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