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
diff --git a/django_jenkins/tasks/run_jslint.py b/django_jenkins/tasks/run_jslint.py
index 634f0ae..1cfd7bb 100644
--- a/django_jenkins/tasks/run_jslint.py
+++ b/django_jenkins/tasks/run_jslint.py
@@ -65,7 +65,8 @@ class Task(BaseTask):
from django.contrib.staticfiles import finders
for finder in finders.get_finders():
- for path, _ in finder.list(self.exclude):
+ for path, storage in finder.list(self.exclude):
+ path = os.path.join(storage.location, path)
if path.endswith('.js') and in_tested_locations(path):
yield path
else:
path returned by finder.list() contains only the relative path to the static dir (eg.: js/foo.js) so you have to join it with the storage's location (eg.: app_dir/static). if you don't do that the in_tested_locations() check will always returns False.
The text was updated successfully, but these errors were encountered:
path returned by finder.list() contains only the relative path to the static dir (eg.: js/foo.js) so you have to join it with the storage's location (eg.: app_dir/static). if you don't do that the in_tested_locations() check will always returns False.
The text was updated successfully, but these errors were encountered: