Skip to content

feat(paper): shared command roots and migration-ready arguments - #13

Merged
BadgersMC merged 2 commits into
mainfrom
feature/paper-command-composition-parity
Nov 17, 2026
Merged

BadgersMC merged 2 commits into
mainfrom
feature/paper-command-composition-parity

refactor(paper): satisfy Detekt command validation checks

d2146ff
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Nov 17, 2026 in 0s

6 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 6
           

Complexity increasing per file
==============================
- nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandScanner.kt  9
- nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt  31
- nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandPlanner.kt  10
- nexus-paper/src/test/kotlin/fixtures/invalid/InvalidGreedyFixture.kt  1
- nexus-paper/src/test/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandCompositionTest.kt  12
         

See the complete overview on Codacy

Annotations

Check notice on line 21 in nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandPlanner.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandPlanner.kt#L21

Method plan has 22 lines of code (limit is 20)

Check notice on line 139 in nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt#L139

Method (anonymous) has 30 lines of code (limit is 20)

Check notice on line 139 in nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt#L139

Method (anonymous) has a cyclomatic complexity of 8 (limit is 5)

Check notice on line 174 in nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt#L174

Method argumentValues has 21 lines of code (limit is 20)

Check notice on line 200 in nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt#L200

Method contextValue has a cyclomatic complexity of 6 (limit is 5)

Check notice on line 226 in nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

nexus-paper/src/main/kotlin/net/badgersmc/nexus/paper/commands/PaperCommandRegistry.kt#L226

Method parseDefault has a cyclomatic complexity of 7 (limit is 5)