linter
This commit is contained in:
parent
49f878621b
commit
9499a70b2c
21
.editorconfig
Normal file
21
.editorconfig
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 80
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.{tf,tfvars}]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = 0
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
[COMMIT_EDITMSG]
|
||||||
|
max_line_length = 0
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.vscode/
|
.vscode/
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
.*.swp
|
.*.swp
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
|||||||
36
.pre-commit-config.yaml
Normal file
36
.pre-commit-config.yaml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
default_language_version:
|
||||||
|
# default language version for each language
|
||||||
|
python: python3.8
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.1.0
|
||||||
|
hooks:
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
#- id: check-added-large-files
|
||||||
|
- id: check-byte-order-marker
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-json
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-xml
|
||||||
|
- id: destroyed-symlinks
|
||||||
|
- id: detect-aws-credentials
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: trailing-whitespace
|
||||||
|
# - id: pretty-format-json
|
||||||
|
# - id: check-yaml
|
||||||
|
- repo: https://github.com/gruntwork-io/pre-commit
|
||||||
|
rev: v0.1.17 # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
|
||||||
|
hooks:
|
||||||
|
- id: terraform-fmt
|
||||||
|
- id: helmlint
|
||||||
|
# - id: terraform-validate
|
||||||
|
# - id: terragrunt-hclfmt
|
||||||
|
# - id: tflint
|
||||||
|
# - id: shellcheck
|
||||||
|
# - id: yapf
|
||||||
|
# - id: markdown-link-check
|
||||||
11
linter.sh
Executable file
11
linter.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# written by: mcdaniel
|
||||||
|
# https://lawrencemcdaniel.com
|
||||||
|
#
|
||||||
|
# date: mar-2022
|
||||||
|
#
|
||||||
|
# usage: Runs terraform fmt -recursive
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
pre-commit run --all-files
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
pre-commit
|
||||||
Loading…
x
Reference in New Issue
Block a user