Updated lint file
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
b87b6fbefd
commit
a39fb43a48
|
@ -11,12 +11,17 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
# Safety
|
# Safety
|
||||||
- id: detect-aws-credentials
|
- id: detect-aws-credentials
|
||||||
|
name: Detect AWS Credentials
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
|
name: Detect Private Keys
|
||||||
|
|
||||||
# git checks
|
# git checks
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
name: Check for merge conflicts
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
|
name: Check for Large files
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
name: Check case conflict
|
||||||
|
|
||||||
# General checks
|
# General checks
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
@ -27,6 +32,7 @@ repos:
|
||||||
types: [text]
|
types: [text]
|
||||||
args: [--markdown-linebreak-ext=md]
|
args: [--markdown-linebreak-ext=md]
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
|
name: Ensure line at end of file
|
||||||
|
|
||||||
# Scan for passwords
|
# Scan for passwords
|
||||||
- repo: https://github.com/Yelp/detect-secrets
|
- repo: https://github.com/Yelp/detect-secrets
|
||||||
|
@ -51,14 +57,15 @@ repos:
|
||||||
# https://github.com/ansible/ansible-lint/issues/611
|
# https://github.com/ansible/ansible-lint/issues/611
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
always_run: true
|
always_run: true
|
||||||
additional_dependencies:
|
# additional_dependencies:
|
||||||
# https://github.com/pre-commit/pre-commit/issues/1526
|
# https://github.com/pre-commit/pre-commit/issues/1526
|
||||||
# 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
|
||||||
hooks:
|
hooks:
|
||||||
- id: yamllint
|
- id: yamllint
|
||||||
|
name: Check YAML Lint
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
extends: default
|
extends: default
|
||||||
locale: en_US.UTF-8
|
|
||||||
ignore: |
|
ignore: |
|
||||||
tests/
|
tests/
|
||||||
molecule/
|
molecule/
|
||||||
|
@ -17,7 +16,7 @@ rules:
|
||||||
comments:
|
comments:
|
||||||
ignore-shebangs: true
|
ignore-shebangs: true
|
||||||
min-spaces-from-content: 1 # prettier compatibility
|
min-spaces-from-content: 1 # prettier compatibility
|
||||||
comments-indentation: false
|
comments-indentation: enable
|
||||||
empty-lines:
|
empty-lines:
|
||||||
max: 1
|
max: 1
|
||||||
indentation:
|
indentation:
|
||||||
|
|
Loading…
Reference in New Issue