Add CodeRabbit configuration#320
Conversation
Configure CodeRabbit for the Vera compiler project: - Exclude .vera files (unknown language) and spec/ (technical prose) - Per-path review instructions for compiler, tests, scripts, docs - Mixin pattern and De Bruijn index documentation as expected patterns - Enable ruff, markdownlint, yamllint, shellcheck, gitleaks - Disable all non-Python linters - Auto-labelling for compiler/tests/spec/ci/docs changes Co-Authored-By: Claude <noreply@anthropic.invalid>
📝 WalkthroughWalkthroughAdds a repository-level Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
Co-Authored-By: Claude <noreply@anthropic.invalid>
|
Fixed the |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.coderabbit.yaml:
- Around line 73-75: The current .coderabbit.yaml excludes all spec files via
the "!spec/**" rule which prevents spec Markdown from receiving
example-validation; remove or narrow that exclusion (delete "!spec/**" and, if
you still need to suppress only prose nits, replace it with a targeted
suppression like "spec/**/prose-nit.md") so that spec/**/*.md (and README.md,
SKILL.md, FAQ.md, **/*.html) remain in the review scope and can be validated by
the corresponding check_*_examples.py scripts referenced in the repo.
| # Language specification — technical prose with mathematical notation | ||
| - "!spec/**" | ||
|
|
There was a problem hiding this comment.
spec/** exclusion blocks the spec example-validation guidance you need.
Line 74 excludes all spec files from review scope, so spec Markdown won’t receive targeted validation guidance for executable/type-checkable examples.
Proposed fix (keep prose-nit suppression, restore spec validation intent)
path_filters:
@@
- # Language specification — technical prose with mathematical notation
- - "!spec/**"
+ # Keep spec files in scope; suppress prose/style nits via path instructions.
@@
path_instructions:
+ - path: "spec/**/*.md"
+ instructions: |
+ Validate referenced Vera code examples using
+ scripts/check_spec_examples.py. Flag parse/type-check failures.
+ Do not nitpick prose style or grammar.
+
- path: "**/*.md"
instructions: |
Review Markdown files for factual accuracy against the codebase,Based on learnings: When referencing Vera code in documentation (spec/**/*.md, README.md, SKILL.md, FAQ.md, **/*.html), code blocks should be validated with the corresponding check_*_examples.py scripts.
Also applies to: 163-168
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.coderabbit.yaml around lines 73 - 75, The current .coderabbit.yaml excludes
all spec files via the "!spec/**" rule which prevents spec Markdown from
receiving example-validation; remove or narrow that exclusion (delete "!spec/**"
and, if you still need to suppress only prose nits, replace it with a targeted
suppression like "spec/**/prose-nit.md") so that spec/**/*.md (and README.md,
SKILL.md, FAQ.md, **/*.html) remain in the review scope and can be validated by
the corresponding check_*_examples.py scripts referenced in the repo.
There was a problem hiding this comment.
♻️ Duplicate comments (1)
.coderabbit.yaml (1)
65-67:⚠️ Potential issue | 🟠 Major
spec/**exclusion prevents required spec example validation from running.Line 66 excludes the full spec tree, so spec Markdown cannot receive targeted validation guidance for executable/type-checkable examples.
Proposed fix
path_filters: @@ - # Language specification — technical prose with mathematical notation - - "!spec/**" + # Keep spec files in scope; suppress prose/style nits via path instructions. @@ path_instructions: + - path: "spec/**/*.md" + instructions: | + Validate referenced Vera code examples using + scripts/check_spec_examples.py. Flag parse/type-check failures. + Do not nitpick prose style or grammar. + - path: "**/*.md" instructions: | Review Markdown files for factual accuracy against the codebase,Based on learnings: When referencing Vera code in documentation (
spec/**/*.md,README.md,SKILL.md,FAQ.md,**/*.html), validate code blocks with the correspondingcheck_*_examples.pyscripts.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.coderabbit.yaml around lines 65 - 67, The current exclusion pattern "- \"!spec/**\"" prevents spec Markdown examples from being validated; remove or stop excluding the "spec/**" tree in .coderabbit.yaml and instead ensure files matching "spec/**/*.md", "README.md", "SKILL.md", "FAQ.md" and any "**/*.html" are included for validation so the repository runs the corresponding check_*_examples.py scripts against those examples; update the rules that reference the "!spec/**" pattern so the spec files are scanned and mapped to the appropriate example-check scripts.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In @.coderabbit.yaml:
- Around line 65-67: The current exclusion pattern "- \"!spec/**\"" prevents
spec Markdown examples from being validated; remove or stop excluding the
"spec/**" tree in .coderabbit.yaml and instead ensure files matching
"spec/**/*.md", "README.md", "SKILL.md", "FAQ.md" and any "**/*.html" are
included for validation so the repository runs the corresponding
check_*_examples.py scripts against those examples; update the rules that
reference the "!spec/**" pattern so the spec files are scanned and mapped to the
appropriate example-check scripts.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 05fd5eee-4c9f-4010-9886-1098a6950ae7
📒 Files selected for processing (1)
.coderabbit.yaml
Co-Authored-By: Claude <noreply@anthropic.invalid>
Addresses CodeRabbit review: blanket spec/** exclusion prevented code example validation. Now spec is reviewed for accuracy but prose style/grammar nits are suppressed. Co-Authored-By: Claude <noreply@anthropic.invalid>
|
Fixed the |
Adds
.coderabbit.yamlwith project-specific review settings.Key settings
.verafiles (unknown syntax),spec/(technical prose),docs/(static site)🤖 Generated with Claude Code
Summary by CodeRabbit