3 ms·
You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.
by ch4s3 1mo ago
You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.
- demibabs 1mo agobut then no human generated comments allowed either, right?
- ch4s3 1mo agoI'd do this by only running the linter locally and using this as a custom rule for the LLM, but I need to think about it a bit harder.
- devmor 1mo agoThere is probably something you can do to only apply some rules to the actual changed lines in a git diff. You may have to write your own linter for that specifically.
- notsirius 1mo agoyou'd probs want a commit hook for that
- unleaded 1mo agoDoes "don't write comments" not work?
- jaggederest 1mo agoabout as effective as don't make mistakes... For anthropic's models at least
- devmor 1mo agoIt’ll work sometimes. You’re using a non-deterministic algorithm to generate output. If you want deterministic rules applied to it, you have to use deterministic systems to do it.
- oblio 1mo agoMost lint tools allow exceptions if you add a special marker. I think even allow custom user exceptions. E999: human generated comment :-)