updated lint files
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
edc2819272
commit
6484302013
|
@ -3,21 +3,7 @@
|
||||||
parseable: true
|
parseable: true
|
||||||
quiet: true
|
quiet: true
|
||||||
skip_list:
|
skip_list:
|
||||||
- 'schema'
|
- 'package-latest'
|
||||||
- 'no-changed-when'
|
- 'risky-shell-pipe'
|
||||||
- 'var-spacing'
|
|
||||||
- 'experimental'
|
|
||||||
- 'name[play]'
|
|
||||||
- 'name[casing]'
|
|
||||||
- 'name[template]'
|
|
||||||
- 'key-order[task]'
|
|
||||||
- 'yaml[line-length]'
|
|
||||||
- '204'
|
|
||||||
- '305'
|
|
||||||
- '303'
|
|
||||||
- '403'
|
|
||||||
- '306'
|
|
||||||
- '602'
|
|
||||||
- '208'
|
|
||||||
use_default_rules: true
|
use_default_rules: true
|
||||||
verbosity: 0
|
verbosity: 0
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
##### CI for use by github no need for action to be added
|
##### CI for use by github no need for action to be added
|
||||||
##### Inherited
|
##### Inherited
|
||||||
ci:
|
ci:
|
||||||
autofix_prs: false
|
autofix_prs: false
|
||||||
skip: [detect-aws-credentials, ansible-lint ]
|
skip: [detect-aws-credentials, ansible-lint ]
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.6.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
# Safety
|
# Safety
|
||||||
- id: detect-aws-credentials
|
- id: detect-aws-credentials
|
||||||
|
@ -35,12 +35,12 @@ repos:
|
||||||
- id: detect-secrets
|
- id: detect-secrets
|
||||||
|
|
||||||
- repo: https://github.com/gitleaks/gitleaks
|
- repo: https://github.com/gitleaks/gitleaks
|
||||||
rev: v8.18.4
|
rev: v8.21.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: gitleaks
|
- id: gitleaks
|
||||||
|
|
||||||
- repo: https://github.com/ansible-community/ansible-lint
|
- repo: https://github.com/ansible-community/ansible-lint
|
||||||
rev: v24.6.1
|
rev: v24.10.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
name: Ansible-lint
|
name: Ansible-lint
|
||||||
|
@ -56,7 +56,7 @@ repos:
|
||||||
# If you want to use specific version of ansible-core or ansible, feel
|
# If you want to use specific version of ansible-core or ansible, feel
|
||||||
# free to override `additional_dependencies` in your own hook config
|
# free to override `additional_dependencies` in your own hook config
|
||||||
# file.
|
# file.
|
||||||
- ansible-core>=2.10.1
|
#- ansible-core>=2.10.1
|
||||||
|
|
||||||
- repo: https://github.com/adrienverge/yamllint.git
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
rev: v1.35.1 # or higher tag
|
rev: v1.35.1 # or higher tag
|
||||||
|
|
21
.yamllint
21
.yamllint
|
@ -1,31 +1,38 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
extends: default
|
extends: default
|
||||||
|
locale: en_US.UTF-8
|
||||||
ignore: |
|
ignore: |
|
||||||
tests/
|
tests/
|
||||||
molecule/
|
molecule/
|
||||||
.github/
|
.github/
|
||||||
.gitlab-ci.yml
|
.gitlab-ci.yml
|
||||||
*molecule.yml
|
*molecule.yml
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
indentation:
|
|
||||||
# Requiring consistent indentation within a file, either indented or not
|
|
||||||
indent-sequences: consistent
|
|
||||||
braces:
|
braces:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
level: error
|
level: error
|
||||||
brackets:
|
brackets:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
level: error
|
level: error
|
||||||
|
comments:
|
||||||
|
ignore-shebangs: true
|
||||||
|
min-spaces-from-content: 1 # prettier compatibility
|
||||||
|
comments-indentation: false
|
||||||
empty-lines:
|
empty-lines:
|
||||||
max: 1
|
max: 1
|
||||||
line-length: disable
|
indentation:
|
||||||
|
# Requiring 2 space indentation
|
||||||
|
spaces: 2
|
||||||
|
# Requiring consistent indentation within a file, either indented or not
|
||||||
|
indent-sequences: consistent
|
||||||
key-duplicates: enable
|
key-duplicates: enable
|
||||||
|
line-length: disable
|
||||||
new-line-at-end-of-file: enable
|
new-line-at-end-of-file: enable
|
||||||
new-lines:
|
new-lines:
|
||||||
type: unix
|
type: unix
|
||||||
|
octal-values:
|
||||||
|
forbid-implicit-octal: true # yamllint defaults to false
|
||||||
|
forbid-explicit-octal: true
|
||||||
trailing-spaces: enable
|
trailing-spaces: enable
|
||||||
truthy:
|
truthy:
|
||||||
allowed-values: ['true', 'false']
|
allowed-values: ['true', 'false']
|
||||||
|
|
Loading…
Reference in New Issue