Skip to content

fix: distinguish pre-commit defects from format-specific exceptions - #111

Merged
hyperpolymath merged 6 commits into
mainfrom
repair/precommit-correctness-20261123
Nov 27, 2026
Merged

hyperpolymath merged 6 commits into
mainfrom
repair/precommit-correctness-20261123

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Conservative fixes drawn from investigating pre-commit.ci findings on #108. Keep unrelated automated rewrites out of the active review PR.

Changes

  • Repair maint-assault.sh so the panic-attack assault options remain part of one continued shell command, rather than being executed as standalone commands.
  • Give .envrc an explicit Bash ShellCheck directive (it is a direnv script and intentionally has no shebang).
  • Exclude .devcontainer/devcontainer.json from strict check-json: Dev Container metadata is JSON with comments. This is not a blanket suppression of JSON checks; a separate JSONC-aware check remains necessary.

Not included

  • No automated replacements in DEED, K9, Nickel, TOML templates, licence text, or specialised format files.
  • No claim of complete pre-commit or CI pass. Full workflow run and syntax checks need to be observed at this branch head.

Verification requested

  • bash -n .machine_readable/scripts/maintenance/maint-assault.sh
  • pre-commit run --all-files with format-aware policy review for remaining findings
  • Run the maintenance assault script only against a real, built release executable, not the literal template {{project}}.

Related

Review decisions

  • Merged current main (pre-commit autoupdate, [pre-commit.ci] pre-commit autoupdate #112) into the branch; no conflicts.
  • No review threads.
  • pre-commit.ci - pr is red for reasons outside this diff: whitespace/EOF fixes in licence texts, A2ML manifests and .editorconfig, check-toml on container/stapeln/*.toml (Nickel/Jinja-style templates), and shellcheck SC2094 info in .githooks/validate-a2ml.sh. The PR's "Not included" section deliberately excludes automated rewrites of those specialised or licence files, so they are left for a separate format-aware change. The hooks this PR touches (check-json JSONC exclusion, local A2ML/K9 validators, .envrc shell directive, maint-assault.sh) pass in that run.
  • All GitHub Actions checks on the previous head were green.

Generated by Claude Code

@gitnotebooks

gitnotebooks Bot commented Nov 23, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 01fa38fd-d291-46ca-80df-3093f575ef8f
Commits

Reviewing files that changed from the base of the PR and between 90b1b21 and 3a21019.

Files selected for processing: 3

  • .envrc
  • .machine_readable/scripts/maintenance/maint-assault.sh
  • .pre-commit-config.yaml

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Fixed option handling in a maintenance command so its settings are passed together correctly.
  • Chores
    • Updated shell and JSON validation configuration, including support for a JSONC configuration file.

These changes affect maintenance and validation workflows; no end-user-facing changes are noted.

The changes add a Bash declaration for ShellCheck, continue the panic-attack assault command across its options, and exclude the JSONC devcontainer file from the check-json hook.

Changes: Shell and pre-commit adjustments

Layer / File(s) Summary
Shell command and ShellCheck configuration
.envrc, .machine_readable/scripts/maintenance/maint-assault.sh
.envrc specifies Bash for ShellCheck. The assault command’s option lines now continue as one command.
JSONC exclusion from JSON validation
.pre-commit-config.yaml
The check-json hook excludes .devcontainer/devcontainer.json. Comments identify the file as JSONC and state that separate JSONC-aware validation is required.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · previous review 90b1b

-->

This PR fixes a shell command's line continuations, declares Bash for ShellCheck in .envrc, and excludes the Dev Container JSONC file from strict JSON checking. The changes are small and low risk. A full pre-commit run on this branch head has not yet been observed, so confirm that before landing.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title uses the conventional fix: prefix and names a change that is partly present in the changeset. However, the changes are mainly a shell continuation repair in maint-assault.sh, a Bash ShellChe…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template's main sections: Purpose (Summary), Changes, Not included, Verification requested, Related and Review decisions. It names the three changed files and ex…
Full details: Title check

Explanation

The title uses the conventional fix: prefix and names a change that is partly present in the changeset. However, the changes are mainly a shell continuation repair in maint-assault.sh, a Bash ShellCheck directive in .envrc, and a check-json exclusion for the Dev Container JSONC file. The title's wording about distinguishing pre-commit defects from format-specific exceptions only partly matches this. It refers to a real aspect of the change (the format-specific JSONC exception), but it does not name the main shell fix, so it passes as partially related.

Full details: Description check

Explanation

The description follows the repository template's main sections: Purpose (Summary), Changes, Not included, Verification requested, Related and Review decisions. It names the three changed files and explains why each change is needed. It also states what is excluded and what remains unverified. The template's RSR Quality Checklist and Testing sections are absent, and the description does not tick any checklist items. The verification commands are listed but no results are reported. Most checklist items do not apply to these three small configuration and script changes, so the gaps are mostly non-critical. The author states that the pre-commit.ci run is red for reasons outside this diff, so the check status is not confirmed as clean.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • 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

@linear-code
linear-code Bot marked this pull request as ready for review November 23, 2026 00:51
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Coding Agent task started: View task and status

The task will inspect the CI failures, validate its fix, and commit the fix to this branch automatically.

Note: Fixing CI failures is a beta feature and may encounter errors. Expect some limitations and changes as we gather feedback and continue to improve it.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit ecbab83 into main Nov 27, 2026
32 checks passed
@hyperpolymath
hyperpolymath deleted the repair/precommit-correctness-20261123 branch November 27, 2026 11:25
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.

3 participants