From 589f1d510e46e77a7cd430f7a465b1ecd298d3c0 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 22 May 2024 12:12:30 -0700 Subject: [PATCH] copy --- _posts/2024-05-22-linting.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_posts/2024-05-22-linting.md b/_posts/2024-05-22-linting.md index 086b7c633..783f8d1d6 100644 --- a/_posts/2024-05-22-linting.md +++ b/_posts/2024-05-22-linting.md @@ -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.