-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cursorrules
More file actions
33 lines (29 loc) · 1.6 KB
/
.cursorrules
File metadata and controls
33 lines (29 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This project follows DevRail development standards.
See DEVELOPMENT.md for the complete reference.
Critical Rules:
1. Run `make check` before completing any story or task. Never mark work done
without passing checks. This is the single gate for all linting, formatting,
security, and test validation.
2. Use conventional commits. Every commit message follows the
`type(scope): description` format. No exceptions.
3. Never install tools outside the container. All linters, formatters, scanners,
and test runners live inside `ghcr.io/devrail-dev/dev-toolchain:v1`. The
Makefile delegates to Docker. Do not install tools on the host.
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:
- Run `make check` to validate all standards
- Run `make help` to see available targets
- Run `make build` to build the Hugo site
- Run `make serve` to start the local development server
- All tools run inside the dev-toolchain container