---
# 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

  # 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]

exclude_paths:
  # Ansible-lint uses "ansible-playbook --syntax-check" as its "syntax check",
  # which bails out on roles it cannot find. The following playbooks are 100% valid,
  # but we need to skip them due to ansible-lint's syntax check's deficiencies...
  - tests/integration/targets/filter_openssl_csr_info/runme.yml
  - tests/integration/targets/filter_openssl_csr_info/setup.yml
  - tests/integration/targets/filter_openssl_privatekey_info/runme.yml
  - tests/integration/targets/filter_openssl_privatekey_info/setup.yml
  - tests/integration/targets/filter_openssl_publickey_info/runme.yml
  - tests/integration/targets/filter_openssl_publickey_info/setup.yml
  - tests/integration/targets/filter_x509_certificate_info/runme.yml
  - tests/integration/targets/filter_x509_certificate_info/setup.yml
  - tests/integration/targets/filter_x509_crl_info/runme.yml
  - tests/integration/targets/filter_x509_crl_info/setup.yml
