-
-
Notifications
You must be signed in to change notification settings - Fork 282
Description
APPLY_FIXES: none
ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
- YAML_YAMLLINT
- ANSIBLE_ANSIBLE_LINT
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(.mega-linter.yml|.yamllint|.ansible-lint)$'
ANSIBLE_FILTER_REGEX_INCLUDE: '(roles/|playbooks/)'
SHOW_ELAPSED_TIME: true
But in log
[31m❌ Linted [ANSIBLE] files with [ansible-lint]: Found 6 error(s) and 0 warning(s) - (177.63s)�[0m
- Using [ansible-lint v25.1.3] https://megalinter.io/8.5.0/descriptors/ansible_ansible_lint
- MegaLinter key: [ANSIBLE_ANSIBLE_LINT]
- Rules config: [/home/jenkins/agent/workspace/PR_mail-ansible_PR-21/.ansible-lint]
- Command: [ansible-lint -c /home/jenkins/agent/workspace/PR_mail-ansible_PR-21/.ansible-lint -v]
--Error detail:
......
Rule Violation Summary
1 role-name profile:basic tags:deprecations,metadata
1 yaml profile:basic tags:formatting,yaml
1 yaml profile:basic tags:formatting,yaml
1 yaml profile:basic tags:formatting,yaml
1 yaml profile:basic tags:formatting,yaml
1 yaml profile:basic tags:formatting,yaml
Failed: 6 failure(s), 0 warning(s) on 26 files. Last profile that met the validation criteria was 'min'.
yaml[document-start]: Missing document start "---"
.ansible-lint:1
yaml[new-line-at-end-of-file]: No new line character at the end of file
.ansible-lint:1
yaml[comments]: Too few spaces before comment
.mega-linter.yml:3
yaml[trailing-spaces]: Trailing spaces
.mega-linter.yml:9
yaml[empty-lines]: Too many blank lines (1 > 0)
.mega-linter.yml:10
role-name: Role name sftp-logging does not match ^[a-z][a-z0-9_]*$ pattern.
roles/sftp-logging:1