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
Use same dependencies for ansible-lint as actual environment (#967)
* use same deps for ansible lint as actual environment
* avoid ansible-lint install upgrading ansible-core
* workaround galaxy installs
* ignore galaxy-installed collections when ansible-linting
* fix local superlinter
* remove deprecated VALIDATE_TERRAFORM_TERRASCAN setting
* move superlinter before galaxy installs so it doens't lint them
* ensure ansible-lint always runs even if superlinter fails
* add pip caching to linting
* turn off checkov again locally, cpu usage too high
* fixup requirements
Copy file name to clipboardExpand all lines: dev/run-linters
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
# Disabled linters: checkov stays stuck for some reason!
8
8
# VALIDATE_GITLEAKS=false is controversial because that's the best time to catch errors
9
9
10
-
if [ "$1"="-f" ] || [ "$1"="--false" ];then
10
+
if [ "$1"="-f" ] || [ "$1"="--fast" ];then
11
11
echo"Disabling slow linters: ansible-lint and gitleaks"
12
12
VALIDATE_ANSIBLE_LINT=false
13
13
export VALIDATE_GITLEAKS=false
@@ -16,9 +16,10 @@ fi
16
16
if [ "${VALIDATE_ANSIBLE_LINT:-true}"=true ];then
17
17
echo"Running ansible-lint $*..."
18
18
ansible_lint_failed=false
19
-
# Specifying `ANSIBLE_COLLECTIONS_PATH` ensures `ansible-lint` downloads collections and roles under the `.ansible` directory, separating them from our own roles under the `ansible` directory.
20
-
# We exclude these downloaded files from linting by listing `.ansible` under `exclude_paths` in `.ansible-lint.yml`.
0 commit comments