#989689 ansible-lint: Unable to resolve tag names

#989689#5
Date:
2021-06-10 12:49:32 UTC
From:
To:
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.

#989689#10
Date:
2023-02-26 12:06:08 UTC
From:
To:
I'm not sure exactly which version fixed this issue but I know the one
on testing and unstable are working.

We should still try to identify what's wrong on stable.

Thank you for reporting this.