Skip to content

Commit ecd975b

Browse files
feat(standards): add Rust to template configuration (#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 <noreply@anthropic.com> * docs(standards): add critical rule 7 — never suppress failing checks 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 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7f5ed80 commit ecd975b

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

.cursorrules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Critical Rules:
1919
6. Use the shared logging library. No raw `echo` for status messages. Use
2020
`log_info`, `log_warn`, `log_error`, `log_debug`, and `die` from
2121
`lib/log.sh`.
22+
7. Never suppress failing checks. When a lint, format, security, or test
23+
check fails, fix the underlying issue. Never comment out code, add
24+
suppression annotations, disable rules, or mark CI jobs as
25+
allowed-to-fail to bypass a failing check.
2226

2327
Quick Reference:
2428

.devrail.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ languages:
99
# - ruby
1010
# - go
1111
# - javascript
12+
# - rust
1213

1314
# fail_fast: false # default: false (run-all-report-all)
1415
# log_format: json # default: json | options: json, human

.opencode/agents.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ agents:
2424
6. Use the shared logging library. No raw `echo` for status messages. Use
2525
`log_info`, `log_warn`, `log_error`, `log_debug`, and `die` from
2626
`lib/log.sh`.
27+
7. Never suppress failing checks. When a lint, format, security, or test
28+
check fails, fix the underlying issue. Never comment out code, add
29+
suppression annotations, disable rules, or mark CI jobs as
30+
allowed-to-fail to bypass a failing check.
2731
2832
Quick Reference:
2933

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ repos:
7171
# hooks:
7272
# - id: prettier
7373

74+
# --- Rust (uncomment if languages includes rust) ---
75+
# Formatting and linting with cargo
76+
# - repo: https://github.com/AndrejOrsula/pre-commit-cargo
77+
# rev: v0.4.0
78+
# hooks:
79+
# - id: cargo-fmt
80+
# args: ["--all", "--", "--check"]
81+
# - id: cargo-clippy
82+
# args: ["--all-targets", "--all-features", "--workspace", "--", "-D", "warnings"]
83+
7484
# --- Secret Detection ---
7585
# Detects hardcoded secrets, API keys, and credentials in code
7686
- repo: https://github.com/gitleaks/gitleaks

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ See DEVELOPMENT.md for the complete reference.
1111
4. **Respect `.editorconfig`.** Never override formatting rules (indent style, line endings, trailing whitespace) without explicit instruction.
1212
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.
1313
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`.
14+
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.
1415

1516
## Quick Reference
1617

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ See DEVELOPMENT.md for the complete reference.
1111
4. **Respect `.editorconfig`.** Never override formatting rules (indent style, line endings, trailing whitespace) without explicit instruction.
1212
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.
1313
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`.
14+
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.
1415

1516
## Quick Reference
1617

0 commit comments

Comments
 (0)