mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Add linting for all dirty files in the repository
This commit is contained in:
parent
07780326b4
commit
9c406cd176
1 changed files with 0 additions and 4 deletions
|
@ -227,14 +227,10 @@ class Commands:
|
|||
if not fnames:
|
||||
fnames = self.coder.get_inchat_relative_files()
|
||||
|
||||
dump(fnames)
|
||||
|
||||
# If still no files, get all dirty files in the repo
|
||||
if not fnames and self.coder.repo:
|
||||
fnames = [item.a_path for item in self.coder.repo.repo.index.diff(None)]
|
||||
|
||||
dump(fnames)
|
||||
|
||||
if not fnames:
|
||||
self.io.tool_error("No dirty files to lint.")
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue