Skip to content

Commit 0fd0313

Browse files
Fix #27 #28 (#31)
* ignore more things * fix #27 * go deeper to fix #27 * try that to fix #28 * use tail to just get one url, fix #28 * Apply automatic changes * upgrade hooks to latest bc yolo Co-authored-by: Linter Bot <actions@github.com>
1 parent 3cafe8a commit 0fd0313

5 files changed

Lines changed: 20 additions & 10 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@
77

88
# .tfvars files
99
*.tfvars
10+
11+
# macs
12+
.DS_Store
13+
14+
# temp folders
15+
tmp

.pre-commit-config.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.31.0
3+
rev: v1.48.0
44
hooks:
55
- id: terraform_docs
66
always_run: true
77
args:
88
- --args=--sort-by-required
99
- id: terraform_fmt
10-
- id: terraform_tflint
11-
alias: terraform_tflint_deep
12-
name: terraform_tflint_deep
13-
args:
14-
- --args=--deep
1510
- id: terraform_tflint
1611
alias: terraform_tflint_nocreds
1712
name: terraform_tflint_nocreds
@@ -41,7 +36,7 @@ repos:
4136
files: \.tf(vars)?$
4237
exclude: examples
4338
- repo: https://github.com/pre-commit/pre-commit-hooks
44-
rev: v3.0.0
39+
rev: v3.4.0
4540
hooks:
4641
- id: check-case-conflict
4742
- id: check-json

.tflint.hcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config {
22
module = true
3-
deep_check = false
43
}
54

65
rule "terraform_deprecated_interpolation" {

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ A bit about this module
3030

3131
No provider.
3232

33+
## Modules
34+
35+
| Name | Source | Version |
36+
|------|--------|---------|
37+
| tags | rhythmictech/tags/terraform | ~> 1.1.0 |
38+
39+
## Resources
40+
41+
No resources.
42+
3343
## Inputs
3444

3545
| Name | Description | Type | Default | Required |
@@ -42,7 +52,6 @@ No provider.
4252
| Name | Description |
4353
|------|-------------|
4454
| tags\_module | Tags Module in it's entirety |
45-
4655
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4756

4857
## Getting Started

bin/install-ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
echo 'installing dependencies'
44
sudo apt install python3-pip gawk &&\
55
pip3 install pre-commit
6-
curl -L "$(curl -sL https://api.github.com/repos/segmentio/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64")" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
6+
tfdocs_latest_dl_url=$(curl -sL https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64" | tail -n1)
7+
curl -L "$tfdocs_latest_dl_url" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
78
curl -L "$(curl -sL https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
89
env GO111MODULE=on go get -u github.com/liamg/tfsec/cmd/tfsec
910
git clone https://github.com/tfutils/tfenv.git ~/.tfenv || true

0 commit comments

Comments
 (0)