Skip to content

Commit 023a9e4

Browse files
committed
Pre-commit config, fixes found by those tools
1 parent 17da59b commit 023a9e4

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/.terraform/*
2+
3+
# Terraform lockfile
4+
.terraform.lock.hcl
5+
6+
# .tfstate files
7+
*.tfstate
8+
*.tfstate.*
9+
10+
wrappers

.pre-commit-config.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
repos:
2+
- repo: https://github.com/antonbabenko/pre-commit-terraform
3+
rev: v1.83.4
4+
hooks:
5+
- id: terraform_fmt
6+
- id: terraform_wrapper_module_for_each
7+
- id: terraform_validate
8+
- id: terraform_docs
9+
args:
10+
- '--args=--lockfile=false'
11+
- id: terraform_tflint
12+
args:
13+
- '--args=--only=terraform_deprecated_interpolation'
14+
- '--args=--only=terraform_deprecated_index'
15+
- '--args=--only=terraform_unused_declarations'
16+
- '--args=--only=terraform_comment_syntax'
17+
- '--args=--only=terraform_documented_outputs'
18+
- '--args=--only=terraform_documented_variables'
19+
- '--args=--only=terraform_typed_variables'
20+
- '--args=--only=terraform_module_pinned_source'
21+
- '--args=--only=terraform_naming_convention'
22+
- '--args=--only=terraform_required_version'
23+
- '--args=--only=terraform_required_providers'
24+
- '--args=--only=terraform_standard_module_structure'
25+
- '--args=--only=terraform_workspace_remote'
26+
- repo: https://github.com/pre-commit/pre-commit-hooks
27+
rev: v4.4.0
28+
hooks:
29+
- id: check-merge-conflict
30+
- id: end-of-file-fixer

kustomization.yaml.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ patches:
1010
metadata:
1111
name: kustomize-controller
1212
annotations:
13-
eks.amazonaws.com/role-arn: ${var.irsa_role_arn}
13+
eks.amazonaws.com/role-arn: ${irsa_role_arn}
1414
target:
1515
kind: ServiceAccount
1616
name: kustomize-controller

outputs.tf

Whitespace-only changes.

0 commit comments

Comments
 (0)