Skip to content

chore: remove dead validator code and unused flags - #81

Merged
ValgulNecron merged 2 commits into
masterfrom
chore/cleanup-unused-code
Nov 27, 2026
Merged

ValgulNecron merged 2 commits into
masterfrom
chore/cleanup-unused-code

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Cleanup pass. No template, image or module version is touched.

What Where Why it is safe
Removed an if img_uid is None: block whose body was only pass validate.py The function returned [] either way; the explanation stays as a comment
Removed the shell_names set validate.py Every member has the basename bash or sh, which the check next to it already tests
Replaced a loop over a one-element tuple with a plain check validate.py Same field, same test
Removed flags --json, --strict, --skip-offline validate.py No caller passes them (CI runs plain validate.py, the Gameplane Makefile runs --pin), and none was in -h. Like any unknown option they are now ignored. --offline and --pin stay
Moved import shutil to the top validate.py Style only
Removed BEGIN{IGNORECASE=0} build.sh It is awk's default
persist-credentials: false on the validate job checkout .github/workflows/validate.yml The job never pushes; matches the devcontainer job

Flag removal approved by the maintainer.

Verification

python3 -m py_compile validate.py and bash -n build.sh pass. CI is green.

🤖 Generated with Claude Code

- validate.py: drop an if block whose body was only pass, a shell-name set
  fully covered by the basename check next to it, and a loop over a
  one-element tuple; move the shutil import to the top.
- build.sh: drop IGNORECASE=0, which is awk's default.
- validate workflow: the validate job never pushes, so its checkout no
  longer keeps the token in the git config.

No behaviour change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 960af84d-c304-4f9d-8d26-94607dddebaa
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 27, 2026
…flags

No caller passes them: CI runs plain validate.py, the Gameplane Makefile
runs validate.py --pin and calls gp-module validate directly, and none of
the three is in the -h text. --offline and --pin stay. Like any unknown
option, the removed flags are now ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron ValgulNecron changed the title chore: remove dead branches in validate.py and tidy CI checkout chore: remove dead validator code and unused flags Nov 27, 2026
@ValgulNecron
ValgulNecron merged commit 18f1285 into master Nov 27, 2026
4 checks passed
@ValgulNecron
ValgulNecron deleted the chore/cleanup-unused-code branch November 27, 2026 22:32
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.

2 participants