Skip to content

Commit fda9c3a

Browse files
committed
fix: precommit hook
1 parent 753f9f3 commit fda9c3a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

shared-files/pre-commit/.pre-commit-config.yaml.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
hooks:
4343
- id: conventional-pre-commit
4444
stages: [commit-msg]
45-
args: []
45+
args: [--strict]
4646

4747
## SECURITY
4848
- repo: https://github.com/gitleaks/gitleaks

shared-files/taskfile/libraries/terraform.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ tasks:
5757
cmds:
5858
- for: [
5959
tf:fmt,
60-
tf:vaildate,
60+
tf:validate,
6161
tflint,
6262
]
6363
task: lint:{{.ITEM}}
@@ -81,7 +81,7 @@ tasks:
8181
cmds:
8282
- find {{.DIRECTORY}} -name "*.tf" -exec terraform fmt {} \;
8383

84-
lint:tf:vaildate:
84+
lint:tf:validate:
8585
desc: Run terraform validate
8686
internal: true
8787
preconditions:
@@ -100,7 +100,7 @@ tasks:
100100
- sh: test -f .tflint.hcl
101101
msg: "No .tflint.hcl file found."
102102
cmds:
103-
- tflint --module
103+
- tflint
104104

105105
# * Actions
106106
actions:docs:

shared-files/taskfile/types/terraform-module.yml.njk

+6
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ tasks:
3131
cmds:
3232
- task: license:lint
3333
- task: tf:lint
34+
35+
generate:
36+
desc: Generate files
37+
cmds:
38+
- task: license:run
39+
- task: tf:actions:docs

0 commit comments

Comments
 (0)