mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
Add fallback to get all dirty files in the repo if no files are provided for linting.
This commit is contained in:
parent
894eff4393
commit
958b608467
1 changed files with 5 additions and 3 deletions
|
@ -227,9 +227,11 @@ class Commands:
|
||||||
if not fnames:
|
if not fnames:
|
||||||
fnames = self.coder.get_inchat_relative_files()
|
fnames = self.coder.get_inchat_relative_files()
|
||||||
|
|
||||||
if not fnames:
|
# todo: if not fnames: get all the dirty files in the repo
|
||||||
self.io.tool_error("No dirty files to lint.")
|
|
||||||
return
|
if not fnames:
|
||||||
|
self.io.tool_error("No dirty files to lint.")
|
||||||
|
return
|
||||||
|
|
||||||
lint_coder = None
|
lint_coder = None
|
||||||
for fname in fnames:
|
for fname in fnames:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue