Skip to content

Commit

Permalink
include meta files for git/editconfig/pre-commit-config
Browse files Browse the repository at this point in the history
  • Loading branch information
tbugfinder committed Aug 10, 2019
1 parent 8ac65f9 commit 006cf10
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false ; trimming trailing whitespace may break Markdown

[Makefile]
tab_width = 2
indent_style = tab
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.bundle
.kitchen
.terraform
.terraform-data.json
.vscode
*.auto.tfvars*
inspec.lock
outputs.json
terraform.tfvars*
terraform.tfstate*
tfplan
vendor
33 changes: 33 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
exclude: '.terraform'
fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v2.3.0
hooks:
- id: check-added-large-files
args: [--maxkb=5000]
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: mixed-line-ending
args: [--fix=lf]
- id: pretty-format-json
args: [--autofix, --indent=2, --no-ensure-ascii]
- id: trailing-whitespace

- repo: https://github.com/antonbabenko/pre-commit-terraform.git
sha: v1.17.0
hooks:
- id: terraform_fmt

- repo: local
hooks:
- id: test

0 comments on commit 006cf10

Please sign in to comment.