Add fallback to get all dirty files in the repo if no files are provided for linting.

This commit is contained in:
Paul Gauthier 2024-07-29 16:35:38 -03:00 committed by Paul Gauthier (aider)
parent 894eff4393
commit 958b608467

View file

@ -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: