From f2fb5f6e5e68108bac4b6d44db64c32e8bbd397b Mon Sep 17 00:00:00 2001 From: Matthew Mellor Date: Wed, 4 Mar 2026 13:08:18 -0600 Subject: [PATCH 1/2] feat(standards): add Rust to template configuration Add commented rust entry to .devrail.yml and pre-commit-cargo hooks to .pre-commit-config.yaml for Rust language support. Co-Authored-By: Claude Opus 4.6 --- .devrail.yml | 1 + .pre-commit-config.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.devrail.yml b/.devrail.yml index 5dbbc0a..e351ea0 100644 --- a/.devrail.yml +++ b/.devrail.yml @@ -9,6 +9,7 @@ languages: # - ruby # - go # - javascript + # - rust # fail_fast: false # default: false (run-all-report-all) # log_format: json # default: json | options: json, human diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 510ae8b..3d05ded 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,6 +71,16 @@ repos: # hooks: # - id: prettier + # --- Rust (uncomment if languages includes rust) --- + # Formatting and linting with cargo + # - repo: https://github.com/AndrejOrsula/pre-commit-cargo + # rev: v0.4.0 + # hooks: + # - id: cargo-fmt + # args: ["--all", "--", "--check"] + # - id: cargo-clippy + # args: ["--all-targets", "--all-features", "--workspace", "--", "-D", "warnings"] + # --- Secret Detection --- # Detects hardcoded secrets, API keys, and credentials in code - repo: https://github.com/gitleaks/gitleaks From 62a53c8375a024d44d34806dea9296fe1b319fa8 Mon Sep 17 00:00:00 2001 From: Matthew Mellor Date: Wed, 4 Mar 2026 14:18:35 -0600 Subject: [PATCH 2/2] =?UTF-8?q?docs(standards):=20add=20critical=20rule=20?= =?UTF-8?q?7=20=E2=80=94=20never=20suppress=20failing=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a seventh critical rule to all agent shim files: never suppress failing checks. Fix the root cause instead of adding blanket suppressions, commenting out code, or disabling rules. Co-Authored-By: Claude Opus 4.6 --- .cursorrules | 4 ++++ .opencode/agents.yaml | 4 ++++ AGENTS.md | 1 + CLAUDE.md | 1 + 4 files changed, 10 insertions(+) diff --git a/.cursorrules b/.cursorrules index 3956545..ad81bd5 100644 --- a/.cursorrules +++ b/.cursorrules @@ -19,6 +19,10 @@ Critical Rules: 6. Use the shared logging library. No raw `echo` for status messages. Use `log_info`, `log_warn`, `log_error`, `log_debug`, and `die` from `lib/log.sh`. +7. Never suppress failing checks. When a lint, format, security, or test + check fails, fix the underlying issue. Never comment out code, add + suppression annotations, disable rules, or mark CI jobs as + allowed-to-fail to bypass a failing check. Quick Reference: diff --git a/.opencode/agents.yaml b/.opencode/agents.yaml index 67b0cdc..831e90b 100644 --- a/.opencode/agents.yaml +++ b/.opencode/agents.yaml @@ -24,6 +24,10 @@ agents: 6. Use the shared logging library. No raw `echo` for status messages. Use `log_info`, `log_warn`, `log_error`, `log_debug`, and `die` from `lib/log.sh`. + 7. Never suppress failing checks. When a lint, format, security, or test + check fails, fix the underlying issue. Never comment out code, add + suppression annotations, disable rules, or mark CI jobs as + allowed-to-fail to bypass a failing check. Quick Reference: diff --git a/AGENTS.md b/AGENTS.md index 9d29d90..e2eb2d8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,7 @@ See DEVELOPMENT.md for the complete reference. 4. **Respect `.editorconfig`.** Never override formatting rules (indent style, line endings, trailing whitespace) without explicit instruction. 5. **Write idempotent scripts.** Every script must be safe to re-run. Check before acting: `command -v tool || install_tool`, `mkdir -p`, guard file writes with existence checks. 6. **Use the shared logging library.** No raw `echo` for status messages. Use `log_info`, `log_warn`, `log_error`, `log_debug`, and `die` from `lib/log.sh`. +7. **Never suppress failing checks.** When a lint, format, security, or test check fails, fix the underlying issue. Never comment out code, add suppression annotations, disable rules, or mark CI jobs as allowed-to-fail to bypass a failing check. ## Quick Reference diff --git a/CLAUDE.md b/CLAUDE.md index cf1684f..fe5f560 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,6 +11,7 @@ See DEVELOPMENT.md for the complete reference. 4. **Respect `.editorconfig`.** Never override formatting rules (indent style, line endings, trailing whitespace) without explicit instruction. 5. **Write idempotent scripts.** Every script must be safe to re-run. Check before acting: `command -v tool || install_tool`, `mkdir -p`, guard file writes with existence checks. 6. **Use the shared logging library.** No raw `echo` for status messages. Use `log_info`, `log_warn`, `log_error`, `log_debug`, and `die` from `lib/log.sh`. +7. **Never suppress failing checks.** When a lint, format, security, or test check fails, fix the underlying issue. Never comment out code, add suppression annotations, disable rules, or mark CI jobs as allowed-to-fail to bypass a failing check. ## Quick Reference