mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04: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:
|
if not fnames:
|
||||||
fnames = self.coder.get_inchat_relative_files()
|
fnames = self.coder.get_inchat_relative_files()
|
||||||
|
|
||||||
dump(fnames)
|
|
||||||
|
|
||||||
# If still no files, get all dirty files in the repo
|
# If still no files, get all dirty files in the repo
|
||||||
if not fnames and self.coder.repo:
|
if not fnames and self.coder.repo:
|
||||||
fnames = [item.a_path for item in self.coder.repo.repo.index.diff(None)]
|
fnames = [item.a_path for item in self.coder.repo.repo.index.diff(None)]
|
||||||
|
|
||||||
dump(fnames)
|
|
||||||
|
|
||||||
if not fnames:
|
if not fnames:
|
||||||
self.io.tool_error("No dirty files to lint.")
|
self.io.tool_error("No dirty files to lint.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue