Package: ansible-lint
Version: 4.3.7-1
Severity: normal

Dear Maintainer,

Ansible-lint appears to be unable to resolve tag names. You can see
this, for instance, when calling `ansible-lint -T`:

$ ansible-lint -T
ANSIBLE0002 ['[201]']
ANSIBLE0004 ['[401]']
ANSIBLE0005 ['[402]']
ANSIBLE0006 ['[303]']
...
readability ['[502]']
repeatability ['[401]', '[402]', '[403]']
resources ['[302]', '[303]']
safety ['[305]']
task ['[501]', '[502]', '[503]', '[504]', '[505]']
unpredictability ['[208]']

For comparison, on Fedora, tag names are resolved properly:

$ ansible-lint -T
# List of tags and rules they cover
command-shell:  # Specific to use of command and shell modules
  - command-instead-of-module
  - command-instead-of-shell
  - deprecated-command-syntax
  - inline-env-var
  - no-changed-when
  - risky-shell-pipe
core:  # Related to internal implementation of the linter
  - internal-error
  - load-failure
  - parser-error
  - syntax-check

Granted, this is a newer version of ansible-lint, but the output
above still seems wrong to me.

Also, I noticed that I can't use tag names to disable a rule:

# noqa var-spacing

But it works when using a rule number:

# noqa 123

The same hold true for trying to use the name
in skip_list within .ansible-lint.


-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.12.9-1.fc25.qubes.x86_64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ansible-lint depends on:
ii  ansible                2.10.7+merged+base+2.10.8+dfsg-1
ii  python3                3.9.2-3
ii  python3-pkg-resources  52.0.0-3
ii  python3-rich           9.11.0-1
ii  python3-ruamel.yaml    0.16.12-2
ii  python3-yaml           5.3.1-4

ansible-lint recommends no packages.

ansible-lint suggests no packages.

-- no debconf information

Reply via email to