Repository navigation
Fix the code smells SonarCloud raised on Boxed II - #146
Merged
Merged
Conversation
- Split the long methods in AreaManager, TemplateBuilder and BoxCleaner - Rename the AreaManager field that clashed with a constant - TemplateFile.read returns an empty array, not null, for a missing chunk - Delete seed world files with Files.delete so a failure is reported - Smaller tidy-ups: unnamed catch variables, computeIfAbsent, a record pattern, a constant for a repeated literal, an unused import, and a loop that changed its own counter No change in behaviour. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Clears the 18 issues SonarCloud left open on #145. No change in behaviour.
AreaManagerconstructor,TemplateBuilder.toRawChunkandBoxCleaner.restore.rowsfield inAreaManageris nowareaByRow, so it no longer differs from theROWSconstant only by case.TemplateFile.readreturns an empty array for a missing chunk.Files.delete, so a file that cannot be deleted is reported. Before, the failure was silent.computeIfAbsent, a record pattern, a constant for a repeated literal, an unused import, a loop that changed its own counter, and two test style points.Testing
🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git