Comment by ch4s3
18 hours ago
You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.
18 hours ago
You could probably add linting rules to your tool of choice and tell claude that your lint tool has to pass.
but then no human generated comments allowed either, right?
I'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.
There 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.
3 replies →
Most lint tools allow exceptions if you add a special marker. I think even allow custom user exceptions.
E999: human generated comment :-)
But then the LLMs sees the syntax and is likely able to mimic it.
1 reply →