Skip to content

Added Checkstyle GitHub Actions#8703

Merged
rjhancock merged 6 commits into
MegaMek:mainfrom
rjhancock:checktyle-adjustments
Feb 9, 2026
Merged

Added Checkstyle GitHub Actions#8703
rjhancock merged 6 commits into
MegaMek:mainfrom
rjhancock:checktyle-adjustments

Conversation

@rjhancock

Copy link
Copy Markdown
Collaborator

This adds Checkstyle to GitHub Actions to ensure license compliance and forbidden word checks.

Added Checkstyle to MM Data
Copilot AI review requested due to automatic review settings January 27, 2026 05:11
@rjhancock rjhancock requested a review from a team as a code owner January 27, 2026 05:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated GitHub Actions workflow to run Checkstyle checks aimed at license compliance and forbidden-word detection.

Changes:

  • Introduces a new checkstyle.yml workflow to run Gradle Checkstyle on PRs.
  • Tightens Checkstyle rules (severity adjustments and forbidden-word pattern updates).
  • Adds a standard license header to CanonicalDiseaseType.java.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
config/checkstyle/checkstyle.xml Updates regexp-based forbidden word and license checks; adjusts severities.
MekHQ/src/mekhq/campaign/personnel/medical/advancedMedicalAlternate/CanonicalDiseaseType.java Adds license header to satisfy license-check enforcement.
.github/workflows/checkstyle.yml Adds CI workflow intended to run Checkstyle on PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/checkstyle.yml
Comment thread .github/workflows/checkstyle.yml
Comment thread .github/workflows/checkstyle.yml Outdated
Comment thread .github/workflows/checkstyle.yml Outdated
Comment thread config/checkstyle/checkstyle.xml
@codecov

codecov Bot commented Jan 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 13.13%. Comparing base (8e077f0) to head (a86b2b2).
⚠️ Report is 34 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8703      +/-   ##
============================================
+ Coverage     13.06%   13.13%   +0.07%     
- Complexity     7788     7826      +38     
============================================
  Files          1306     1306              
  Lines        168989   169092     +103     
  Branches      25398    25422      +24     
============================================
+ Hits          22076    22213     +137     
+ Misses       144785   144739      -46     
- Partials       2128     2140      +12     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rjhancock rjhancock merged commit 75430a0 into MegaMek:main Feb 9, 2026
9 checks passed
@rjhancock rjhancock deleted the checktyle-adjustments branch February 9, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants