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:
|
||||
# Safety
|
||||
- id: detect-aws-credentials
|
||||
name: Detect AWS Credentials
|
||||
- id: detect-private-key
|
||||
name: Detect Private Keys
|
||||
|
||||
# git checks
|
||||
- id: check-merge-conflict
|
||||
name: Check for merge conflicts
|
||||
- id: check-added-large-files
|
||||
name: Check for Large files
|
||||
- id: check-case-conflict
|
||||
name: Check case conflict
|
||||
|
||||
# General checks
|
||||
- id: trailing-whitespace
|
||||
|
@ -27,6 +32,7 @@ repos:
|
|||
types: [text]
|
||||
args: [--markdown-linebreak-ext=md]
|
||||
- id: end-of-file-fixer
|
||||
name: Ensure line at end of file
|
||||
|
||||
# Scan for passwords
|
||||
- repo: https://github.com/Yelp/detect-secrets
|
||||
|
@ -51,14 +57,15 @@ repos:
|
|||
# https://github.com/ansible/ansible-lint/issues/611
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
additional_dependencies:
|
||||
# additional_dependencies:
|
||||
# https://github.com/pre-commit/pre-commit/issues/1526
|
||||
# If you want to use specific version of ansible-core or ansible, feel
|
||||
# free to override `additional_dependencies` in your own hook config
|
||||
# file.
|
||||
#- ansible-core>=2.10.1
|
||||
# - ansible-core>=2.10.1
|
||||
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.35.1 # or higher tag
|
||||
hooks:
|
||||
- id: yamllint
|
||||
name: Check YAML Lint
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
extends: default
|
||||
locale: en_US.UTF-8
|
||||
ignore: |
|
||||
tests/
|
||||
molecule/
|
||||
|
@ -17,7 +16,7 @@ rules:
|
|||
comments:
|
||||
ignore-shebangs: true
|
||||
min-spaces-from-content: 1 # prettier compatibility
|
||||
comments-indentation: false
|
||||
comments-indentation: enable
|
||||
empty-lines:
|
||||
max: 1
|
||||
indentation:
|
||||
|
|
Loading…
Reference in New Issue