From 958b608467a6d61092f3fcf8d8a717ef6b07bc15 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 29 Jul 2024 16:35:38 -0300 Subject: [PATCH] Add fallback to get all dirty files in the repo if no files are provided for linting. --- aider/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 75bf5937f..dba7e35e2 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -227,9 +227,11 @@ class Commands: if not fnames: fnames = self.coder.get_inchat_relative_files() - if not fnames: - self.io.tool_error("No dirty files to lint.") - return + # todo: if not fnames: get all the dirty files in the repo + + if not fnames: + self.io.tool_error("No dirty files to lint.") + return lint_coder = None for fname in fnames: