Add ctxlint — linter for .cursorrules files#234
Add ctxlint — linter for .cursorrules files#234jeffyaw wants to merge 1 commit intoPatrickJS:mainfrom
Conversation
ctxlint is an open-source linter for AI context files (.cursorrules, CLAUDE.md, copilot-instructions.md). It validates paths, commands, and references against the actual codebase. GitHub: https://github.com/YawLabs/ctxlint npm: @yawlabs/ctxlint
📝 WalkthroughWalkthroughA new entry is added to the Utilities section of README.md, linking to ctxlint, a linter tool for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 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)
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. Comment Warning |
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 `@README.md`:
- Line 288: The README entry for "ctxlint" uses an absolute URL; change it to
the repository's relative-link format by replacing the absolute link with a
relative path to the ctxlint README (replace
"https://github.com/YawLabs/ctxlint" with the appropriate relative markdown link
pointing into the repo, keeping the link text "ctxlint" intact) so the line for
the ctxlint bullet uses a relative link and remains otherwise unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
|
|
||
| ### Utilities | ||
|
|
||
| - [ctxlint](https://github.com/YawLabs/ctxlint) - Lints .cursorrules and other AI context files against your codebase. Catches broken paths, wrong commands, and stale context. |
There was a problem hiding this comment.
Use a relative link format for this new README entry.
On Line 288, the new ctxlint link is absolute (https://...), but this repository’s README guideline requires links to be relative and correct. Please switch to the project’s expected relative-link format for this entry.
As per coding guidelines: "Ensure all links in the README.md file are relative and correct."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@README.md` at line 288, The README entry for "ctxlint" uses an absolute URL;
change it to the repository's relative-link format by replacing the absolute
link with a relative path to the ctxlint README (replace
"https://github.com/YawLabs/ctxlint" with the appropriate relative markdown link
pointing into the repo, keeping the link text "ctxlint" intact) so the line for
the ctxlint bullet uses a relative link and remains otherwise unchanged.
Summary
ctxlint is an open-source linter for AI context files including
.cursorrules,CLAUDE.md, andcopilot-instructions.md. It validates file paths, shell commands, and references against your actual codebase to catch broken paths, wrong commands, and stale context.Added to the Utilities section in alphabetical order.
Summary by CodeRabbit
.cursorrulesand AI context files that detects broken paths, incorrect commands, and stale context.