commit | 5d353c06a449169e96c709048abda4dfeedd5852 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Sat May 04 01:34:32 2024 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Fri May 31 23:45:49 2024 +0200 |
tree | 68f928d20e9c40a0d37b7d395e64dc7ad14466be | |
parent | 16b9f46fce8f5946f915c40f537264b57237f5b7 [diff] |
feat(web-ext-lint): allow using project's web-ext package Change-Id: I74889983796e96754e0c9347f5b94d6a7da02c76
diff --git a/roles/web-ext-lint/defaults/main.yaml b/roles/web-ext-lint/defaults/main.yaml index 5dc93b5..aa6eda2 100644 --- a/roles/web-ext-lint/defaults/main.yaml +++ b/roles/web-ext-lint/defaults/main.yaml
@@ -1,3 +1,5 @@ --- source_dir: src +use_standalone_web_ext: true +web_ext_command: extra_lint_flags:
diff --git a/roles/web-ext-lint/tasks/main.yaml b/roles/web-ext-lint/tasks/main.yaml index 57b5b12..0ce8fcb 100644 --- a/roles/web-ext-lint/tasks/main.yaml +++ b/roles/web-ext-lint/tasks/main.yaml
@@ -3,7 +3,8 @@ cmd: | set -o pipefail set -e - web-ext lint --no-input --boring \ + {{ 'web-ext' if use_standalone_web_ext else web_ext_command }} \ + lint --no-input --boring \ {{ '--source-dir=' + source_dir if source_dir else '' }} \ {{ extra_lint_flags }} | tee -a web-ext-lint.txt chdir: "{{ zuul.project.src_dir }}"