Skip to content

Commit 65526bf

Browse files
committed
Module maintenance
1 parent 7e4a9b8 commit 65526bf

File tree

5 files changed

+47
-7
lines changed

5 files changed

+47
-7
lines changed

.pre-commit-config.yaml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,47 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-executables-have-shebangs
8+
- id: check-illegal-windows-names
9+
- id: check-json
10+
- id: check-merge-conflict
11+
- id: check-shebang-scripts-are-executable
12+
- id: check-symlinks
13+
- id: check-yaml
14+
- id: detect-private-key
15+
- id: end-of-file-fixer
16+
- id: pretty-format-json
17+
- id: trailing-whitespace
18+
args: [--markdown-linebreak-ext=md]
219
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.71.0
20+
rev: v1.104.0
421
hooks:
522
- id: terraform_docs
623
- id: terraform_fmt
24+
- id: terraform_tflint
25+
args:
26+
- '--args=--only=terraform_comment_syntax'
27+
- '--args=--only=terraform_deprecated_index'
28+
- '--args=--only=terraform_deprecated_interpolation'
29+
- '--args=--only=terraform_deprecated_lookup'
30+
- '--args=--only=terraform_documented_outputs'
31+
- '--args=--only=terraform_documented_variables'
32+
- '--args=--only=terraform_empty_list_equality'
33+
- '--args=--only=terraform_json_syntax'
34+
- '--args=--only=terraform_map_duplicate_keys'
35+
- '--args=--only=terraform_module_pinned_source'
36+
- '--args=--only=terraform_module_shallow_clone'
37+
- '--args=--only=terraform_module_version'
38+
- '--args=--only=terraform_required_version'
39+
- '--args=--only=terraform_standard_module_structure'
40+
- '--args=--only=terraform_typed_variables'
41+
- '--args=--only=terraform_unused_declarations'
42+
- '--args=--only=terraform_unused_required_providers'
43+
- '--args=--only=terraform_workspace_remote'
744
- id: terraform_validate
45+
- id: terraform_trivy
46+
args:
47+
- --args=--skip-dirs="**/.terraform"

.trivyignore

Whitespace-only changes.

examples/complete/mock_provider.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
terraform {
2-
required_version = ">= 0.13"
2+
required_version = ">= 1.5.5"
33
required_providers {
44
aws = {
55
source = "hashicorp/aws"
6-
version = ">= 4"
6+
version = "~>6"
77
}
88
}
99
}

examples/provide-own-bucket/mock_provider.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
terraform {
2-
required_version = ">= 0.13"
2+
required_version = ">= 1.5.5"
33
required_providers {
44
aws = {
55
source = "hashicorp/aws"
6-
version = ">= 4"
6+
version = "~>6"
77
}
88
}
99
}

versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
terraform {
2-
required_version = ">= 0.13"
2+
required_version = ">= 1.5.5"
33
required_providers {
44
aws = {
55
source = "hashicorp/aws"
6-
version = ">= 4"
6+
version = "~>6"
77
}
88
null = {
99
source = "hashicorp/null"

0 commit comments

Comments
 (0)