Skip to content

[Chore] Debug toggles, Javadoc coverage, and code quality cleanup#283

Merged
Mere-Solace merged 2 commits into
devfrom
chore/cleanup-debug-javadoc
Mar 28, 2026
Merged

[Chore] Debug toggles, Javadoc coverage, and code quality cleanup#283
Mere-Solace merged 2 commits into
devfrom
chore/cleanup-debug-javadoc

Conversation

@Mere-Solace

Copy link
Copy Markdown
Owner

Summary

Comprehensive cleanup and code quality improvements: new debug channels, expanded Javadoc coverage (55.3% → 58.3%), fixed logic gate in dev menu, corrected THROW_TRAIL typo, removed dead code, and resolved Checkstyle violations.

Related Issue

Closes #281

Checklist

  • Code follows project style guidelines
  • Javadoc added/updated for public APIs
  • No dead code remains
  • All debug toggles synced (Config.java, config.yaml, Debug.java, TogglesMenu)
  • Spotless formatting applied
  • No hardcoded values that should be configurable

- Added 6 new verbose debug channels: Input, Skill, Ability, Grab, Attack, Throwing
  (Config.Debug flags + Debug.java methods + TogglesMenu.java toggles + config.yaml sync)
- Synced config.yaml debug section with all verbose flags that existed in Config.java
- Expanded TogglesMenu layout from 15 to 22 items to accommodate new toggles
- Fixed if(true ||) gate in MainMenu.java — dev menu now correctly requires op
- Fixed THROW_TRAIl constant name typo → THROW_TRAIL in Prefab.java and all consumers
- Removed dead commented-out code in MovementListener, QueueManager, CaptureTheFlag1v1
- Added class-level Javadoc to: SwordPluginLoader, ArenaManager, QueueManager,
  Gamemode, CaptureTheFlag1v1, SystemListener, EntityPacketListener, MovementListener,
  Dash, Dummy, Menu, MainMenu, StateMachine, State, SoundUtil, SwordTimeUnit,
  SwordSoundType, SkillRegistry, SkillId, SkillIds, SkillType, SkillSlot,
  SkillSlotActionFactory, SkillSlotRules, PlayerSkillContainer, ActiveSkill,
  and Prefab inner classes (Instructions, Attacks, Sounds, PotionEffects, Text)
- Added method-level Javadoc to ~60 previously undocumented public methods
- Fixed Checkstyle: private constructors on SoundUtil/SwordTimeUnit utility classes,
  empty brace whitespace in StateMachine and Transition, long lines in Prefab.PotionEffects
- Javadoc coverage: 55.3% → 58.3% (890 remaining, down from 954)
@Mere-Solace Mere-Solace added size: l Large, multiple days type: chore Build, CI, tooling labels Mar 28, 2026
@Mere-Solace Mere-Solace self-assigned this Mar 28, 2026
@Mere-Solace Mere-Solace added size: l Large, multiple days type: chore Build, CI, tooling labels Mar 28, 2026
@Mere-Solace Mere-Solace merged commit 03899b9 into dev Mar 28, 2026
1 check passed
@Mere-Solace Mere-Solace deleted the chore/cleanup-debug-javadoc branch March 28, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: l Large, multiple days type: chore Build, CI, tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant