Replies: 1 comment
-
|
Also noticed same problem. Interesting that in original issue was a discussion to provide ability to create custom profiles, but looks like wasn't implemented unfortunately. I went through list of rules for existing profiles and combined this config with ones that makes sense to me. Might be useful to someone: ---
offline: true # Disables installation of requirements.yaml and schema refreshing
# Based on https://github.com/ansible/ansible-lint/blob/main/src/ansiblelint/data/profiles.yml
# List of all rules https://ansible.readthedocs.io/projects/lint/rules/
tags:
# min profile
- internal-error
- load-failure
- parser-error
- syntax-check
# basic profile
- command-instead-of-module
- command-instead-of-shell
- deprecated-bare-vars
- deprecated-local-action
- deprecated-module
- inline-env-var
- literal-compare
- jinja
- jinja[invalid] # both jinja required
- no-free-form
- no-jinja-when
- no-tabs
- partial-become
- playbook-extension
- role-name
- schema
- name
- name[missing] # both name required
- var-naming
- var-naming[pattern] # both var-naming required
- yaml
# safety
- package-latest
- risky-octal
- risky-shell-pipe
# production
- fqcn
- fqcn[action-core] # both fqcn required
# ansible-lint doesn't automatically load rules that have the 'opt-in' tag
enable_list:
- yaml # Force yamllint to be installedIf some subset of enabled rules should be disabled, use skip_list, like skip_list:
- name[template] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe I'm missing something but I couldn't find a way to select the exact ruleset that I want to use:
--profilemeans that anything passed with--enable-listthat isn't already in the profile won't be enabled (which I only found out by using doubly verbose-vvflag)--enable-listwithout a--profilemeans that all rules that aren't opt-in will be enabled--tagsworks only if you can find some set of tags that have exactly the rules that you wantAll other options are for disabling rules which isn't particularly helpful when I'm hoping to opt into rules, not opt out of them.
Beta Was this translation helpful? Give feedback.
All reactions