This commit is contained in:
Paul Gauthier 2024-05-22 12:12:30 -07:00
parent c74c297aa2
commit 589f1d510e

View file

@ -1,12 +1,12 @@
---
title: Linting code for LLMs with aider and tree-sitter
title: Linting code for LLMs with aider
excerpt: Aider now lints code after every LLM edit and automatically fixes errors, using tree-sitter and AST-aware code context.
highlight_image: /assets/linting.jpg
---
[![Linting code](/assets/linting.jpg)](https://aider.chat/assets/linting.jpg)
# Linting code for LLMs with aider and tree-sitter
# Linting code for LLMs with aider
Aider now lints your code after every LLM edit, and offers to automatically fix
any linting errors.
@ -14,7 +14,8 @@ You can also use aider's lint-and-fix functionality on your source files any tim
you like, to speedily resolve issues with code written by humans.
Aider shows linting errors to the LLM in a novel format,
using the abstract syntax tree (AST) to display relevant code context for each
using tree-sitter
to help display relevant code context for each
error.
This increases the ability of the LLM to understand the problem and
make the correct changes to resolve it.