mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
fix: file settings and check order
This commit is contained in:
@@ -11,5 +11,8 @@ charset = utf-8
|
|||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.xml]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.{yaml,yml}]
|
[*.{yaml,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|||||||
@@ -3,30 +3,37 @@
|
|||||||
# See https://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
||||||
rev: v4.4.0
|
|
||||||
hooks:
|
|
||||||
- id: trailing-whitespace
|
|
||||||
args:
|
|
||||||
- --markdown-linebreak-ext=md # ignore markdown's line break
|
|
||||||
- id: end-of-file-fixer
|
|
||||||
- id: check-json
|
|
||||||
- id: check-yaml
|
|
||||||
args: [--allow-multiple-documents]
|
|
||||||
- id: check-xml
|
|
||||||
- id: check-added-large-files
|
|
||||||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
|
||||||
rev: v9.5.0
|
rev: v9.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: commitlint
|
- id: commitlint
|
||||||
stages: [commit-msg]
|
stages:
|
||||||
additional_dependencies: ['@commitlint/config-conventional']
|
- commit-msg
|
||||||
|
additional_dependencies:
|
||||||
|
- '@commitlint/config-conventional'
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.4.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-json
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-yaml
|
||||||
|
args:
|
||||||
|
- --allow-multiple-documents
|
||||||
|
- id: trailing-whitespace
|
||||||
|
args:
|
||||||
|
- --markdown-linebreak-ext=md # ignore markdown's line break
|
||||||
|
- id: end-of-file-fixer
|
||||||
- repo: https://github.com/markdownlint/markdownlint
|
- repo: https://github.com/markdownlint/markdownlint
|
||||||
rev: v0.12.0
|
rev: v0.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: markdownlint
|
- id: markdownlint
|
||||||
args:
|
args:
|
||||||
- -r "~MD013" # ignore line-length rule
|
- -r "~MD013" # ignore line-length rule
|
||||||
|
- repo: https://github.com/hadolint/hadolint
|
||||||
|
rev: v2.12.1-beta
|
||||||
|
hooks:
|
||||||
|
- id: hadolint
|
||||||
# - repo: https://github.com/ansible-community/ansible-lint
|
# - repo: https://github.com/ansible-community/ansible-lint
|
||||||
# # FIXME: need to figure this out, too many stupid issues.
|
# # FIXME: need to figure this out, too many stupid issues.
|
||||||
# # Using `ansible-lint -v ansible` for the time being.
|
# # Using `ansible-lint -v ansible` for the time being.
|
||||||
@@ -35,7 +42,3 @@ repos:
|
|||||||
# - id: ansible-lint
|
# - id: ansible-lint
|
||||||
# exclude: .*
|
# exclude: .*
|
||||||
# files: ansible/
|
# files: ansible/
|
||||||
- repo: https://github.com/hadolint/hadolint
|
|
||||||
rev: v2.12.1-beta
|
|
||||||
hooks:
|
|
||||||
- id: hadolint
|
|
||||||
|
|||||||
Reference in New Issue
Block a user