You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently discovered djlint stopped linting and checking format of templates in our CI. (I can't reproduce that anywhere else)
The problem I noticed is that djlint complains about checking no files, but it still exits with 0 exit code. That allowed underlying issue to be silently hidden for months.
I suggest djlint to return non-zero exit code if no files were checked, alternatively triggered by an option.
Usecases:
# Should exit with non-zero code, if no HTML files found in `jinja_templates`
djlint --check jinja_templates/
djlint --lint jinja_templates/
The text was updated successfully, but these errors were encountered:
Feature Request
I recently discovered djlint stopped linting and checking format of templates in our CI. (I can't reproduce that anywhere else)
The problem I noticed is that djlint complains about checking no files, but it still exits with 0 exit code. That allowed underlying issue to be silently hidden for months.
I suggest
djlint
to return non-zero exit code if no files were checked, alternatively triggered by an option.Usecases:
The text was updated successfully, but these errors were encountered: