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.
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.