Skip to content

Commit

Permalink
chore: Add pre-commit configuration (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoppe authored Jan 29, 2022
1 parent 4916484 commit 97af670
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: '^rover.svg$'
- id: trailing-whitespace

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.62.3
hooks:
- id: terraform_fmt
args:
- --args=-diff
- id: terraform_validate
- id: terraform_tflint
args:
- --args=--format=compact
- --args=--only=terraform_comment_syntax
- --args=--only=terraform_deprecated_index
- --args=--only=terraform_deprecated_interpolation
- --args=--only=terraform_documented_outputs
- --args=--only=terraform_documented_variables
- --args=--only=terraform_module_pinned_source
- --args=--only=terraform_module_version
- --args=--only=terraform_naming_convention
- --args=--only=terraform_required_providers
- --args=--only=terraform_required_version
- --args=--only=terraform_standard_module_structure
- --args=--only=terraform_typed_variables
- --args=--only=terraform_unused_declarations
- --args=--only=terraform_unused_required_providers
- --args=--only=terraform_workspace_remote

0 comments on commit 97af670

Please sign in to comment.