Remove dead config branches, correct the wiki link, and cover the unquoted-argument path - #19
Merged
Merged
Conversation
Neither option exists: saveMissingConfigDefaultsIfNotPresent writes only version and debugMode, and CONFIG.md documents exactly those two. Both branches were also unreachable behind the surrounding isSet(option) guard. Adds ConfigServiceTest to characterize the surviving branches of setConfigOption, including that any option other than version and debugMode is now stored verbatim as a String. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The bare /pl output still advertised the wiki under the plugin's former dmccoystephenson owner, which is inconsistent with every other link the project publishes. DefaultCommandTest now asserts the advertised URL so the link cannot drift again unnoticed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Both commands reject arguments containing no double-quoted segment, but no test exercised that branch. ArgumentParser returns an empty list for unquoted input rather than throwing, so the branch is reachable with arguments such as /pl add hello. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Verifying never().set("debugMode", true) would have passed had the code
written a different value to the same key. The two rejection tests now
assert that no key is written at all and that the config is not saved.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Member
Author
Self-review rubricScored adversarially against the diff and command output, not from judgement. Two items were scored FAIL on the first pass and have since been fixed in f0e6b12.
Findings fixed during review
Observations carried in this body rather than inline
This review was performed and posted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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.
Summary
Three small, independent cleanups are batched here. All of them are confined to the command layer and
ConfigService; no command syntax, permission node, or documented config key is changed.ConfigService.setConfigOptioncarried branches for config options namedAandC, parsing them as an integer and a double. Neither is a real option —saveMissingConfigDefaultsIfNotPresentwrites onlyversionanddebugMode, andCONFIG.mddocuments exactly those two — and both branches sat unreachable behind the surroundingisSet(option)guard. A newConfigServiceTestcharacterizes the surviving branches, including that any option other thanversionanddebugModeis now stored verbatim as aString./ploutput advertisedhttps://github.com/dmccoystephenson/PlayerLore/wiki, under the plugin's former owner. It now points athttps://github.com/Dans-Plugins/PlayerLore/wiki, matching every other link the project publishes, andDefaultCommandTestasserts the URL so the link cannot drift again unnoticed.AddCommandandEditCommandboth reject arguments containing no double-quoted segment, but no test exercised that branch. Characterization tests were added to each; no production behaviour was changed for this item.Closes #13
Closes #14
Closes #16
Test plan
mvn test— 26 tests, 0 failures (19 before this branch)DefaultCommand.javaandConfigService.javastashed,execute_advertisesTheWikiUnderTheCurrentRepositoryOwnerandsetConfigOption_storesAnyOtherOptionAsStringboth FAIL; with them restored, all 26 PASSHelpCommand,COMMANDS.md,USER_GUIDE.md, andCONFIG.mdall still describe the code accurately and needed no edit;CHANGELOG.mdgainedRemovedandFixedentries under[Unreleased]Notes and deferrals
USER_GUIDE.mdif the wiki turns out to be unpopulated — was not taken, because network access is unavailable from this environment and the wiki's contents could therefore not be confirmed. The namespace correction is right either way; swapping the link for in-repo documentation remains available as a follow-up should a maintainer confirm the wiki is empty.pl.defaultnode should be dropped fromDefaultCommandor instead declared inplugin.yml, documented, and routed through the command service. The issue itself states that a maintainer decision on direction is needed, and either resolution would touchplugin.yml, a path this loop does not modify autonomously.This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
drafted by Claude on behalf of Daniel Stephenson