Skip to content

Commit a6a6d51

Browse files
committed
(init): configuration file
1 parent 6835c74 commit a6a6d51

File tree

3 files changed

+126
-0
lines changed

3 files changed

+126
-0
lines changed

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
# Uses editorconfig to maintain consistent coding styles
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file
8+
[*]
9+
charset = utf-8
10+
end_of_line = lf
11+
indent_size = 2
12+
indent_style = space
13+
insert_final_newline = true
14+
max_line_length = 80
15+
trim_trailing_whitespace = true
16+
17+
[*.{tf,tfvars}]
18+
indent_size = 2
19+
indent_style = space
20+
21+
[*.md]
22+
max_line_length = 0
23+
trim_trailing_whitespace = false
24+
25+
# Tab indentation (no size specified)
26+
[Makefile]
27+
tab_width = 2
28+
indent_style = tab
29+
30+
[COMMIT_EDITMSG]
31+
max_line_length = 0

.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.DS_Store
2+
example/
3+
4+
.terraform.lock.hcl
5+
6+
# Created by https://www.toptal.com/developers/gitignore/api/terraform,visualstudiocode
7+
# Edit at https://www.toptal.com/developers/gitignore?templates=terraform,visualstudiocode
8+
9+
### Terraform ###
10+
# Local .terraform directories
11+
**/.terraform/*
12+
13+
# .tfstate files
14+
*.tfstate
15+
*.tfstate.*
16+
17+
# Crash log files
18+
crash.log
19+
crash.*.log
20+
21+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
22+
# password, private keys, and other secrets. These should not be part of version
23+
# control as they are data points which are potentially sensitive and subject
24+
# to change depending on the environment.
25+
#
26+
*.tfvars
27+
28+
# Ignore override files as they are usually used to override resources locally and so
29+
# are not checked in
30+
override.tf
31+
override.tf.json
32+
*_override.tf
33+
*_override.tf.json
34+
35+
# Include override files you do wish to add to version control using negated pattern
36+
# !example_override.tf
37+
38+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
39+
# example: *tfplan*
40+
41+
# Ignore CLI configuration files
42+
.terraformrc
43+
terraform.rc
44+
45+
### VisualStudioCode ###
46+
.vscode/*
47+
!.vscode/settings.json
48+
!.vscode/tasks.json
49+
!.vscode/launch.json
50+
!.vscode/extensions.json
51+
!.vscode/*.code-snippets
52+
53+
# Local History for Visual Studio Code
54+
.history/
55+
56+
# Built Visual Studio Code Extensions
57+
*.vsix
58+
59+
### VisualStudioCode Patch ###
60+
# Ignore all local history of files
61+
.history
62+
.ionide
63+
64+
# Support for Project snippet scope
65+
66+
# End of https://www.toptal.com/developers/gitignore/api/terraform,visualstudiocode

.pre-commit-config.yaml

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

0 commit comments

Comments
 (0)