mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-15 19:58:28 +00:00
Add ansible-lint to CI.
This commit is contained in:
parent
d1dad9b4fd
commit
bc37bfa282
30
.ansible-lint
Normal file
30
.ansible-lint
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
skip_list:
|
||||
# Ignore rules that make no sense:
|
||||
- galaxy[tags]
|
||||
- galaxy[version-incorrect]
|
||||
- meta-runtime[unsupported-version]
|
||||
- no-changed-when
|
||||
- sanity[cannot-ignore] # some of the rules you cannot ignore actually MUST be ignored, like yamllint:unparsable-with-libyaml
|
||||
- yaml # we're using yamllint ourselves
|
||||
- run-once[task] # wtf???
|
||||
|
||||
# To be checked and maybe fixed:
|
||||
- ignore-errors
|
||||
- key-order[task]
|
||||
- name[casing]
|
||||
- name[missing]
|
||||
- name[play]
|
||||
- name[template]
|
||||
- no-free-form
|
||||
- no-handler
|
||||
- risky-file-permissions
|
||||
- risky-shell-pipe
|
||||
- var-naming[no-reserved]
|
||||
- var-naming[no-role-prefix]
|
||||
- var-naming[pattern]
|
||||
- var-naming[read-only]
|
||||
@ -216,6 +216,12 @@ remote = [
|
||||
|
||||
##################################################################################################
|
||||
|
||||
[sessions.ansible_lint]
|
||||
ansible_lint_package = [
|
||||
"ansible-lint",
|
||||
"ansible-compat < 25.8.2",
|
||||
]
|
||||
|
||||
[[sessions.ee_check.execution_environments]]
|
||||
name = "devel-ubi-9"
|
||||
description = "ansible-core devel @ RHEL UBI 9"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user