mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
36 lines
867 B
YAML
36 lines
867 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
# Git style
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: check-vcs-permalinks
|
|
- id: forbid-new-submodules
|
|
- id: no-commit-to-branch
|
|
|
|
# Common errors
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
args: [--markdown-linebreak-ext=md]
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: check-executables-have-shebangs
|
|
|
|
# Cross platform
|
|
- id: check-case-conflict
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
|
|
# Security
|
|
- id: detect-aws-credentials
|
|
args: ['--allow-missing-credentials']
|
|
- id: detect-private-key
|
|
|
|
|
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
|
rev: 2.1.5
|
|
hooks:
|
|
- id: shfmt
|
|
args: ['-l', '-i', '2', '-ci', '-sr', '-w']
|
|
- id: shellcheck
|