Skip to content

Commit

Permalink
BBL-192 | updating .gitignore + adding .editorconfig + Makefile docke…
Browse files Browse the repository at this point in the history
…r img ver updated
  • Loading branch information
exequielrafaela committed Aug 20, 2020
1 parent 031946e commit 4fa7b00
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# EditorConfig is awesome: https://EditorConfig.org

# we have to set line endings to LF for all bash scripts, otherwise, if you save
# a script on Windows, it would have CRLF line breaks, which doesn’t work on
# Linux. This is achieved by a combination of ‘.editorconfig’ defining how the
# code is displayed in a text editor, and ‘.gitatttributes’, which controls how
# the file is saved in source control.

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file && 2 space indentation
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true

# Unix-style newlines with a newline ending every file && 2 space indentation
[*.sh]
end_of_line = lf
indent_style = space
indent_size = 2

# Unix-style newlines with a newline ending every file && 2 space indentation
[*.py]
end_of_line = lf
indent_style = space
indent_size = 2

[*.{tf,tfvars}]
indent_size = 2
indent_style = space

[*.md]
max_line_length = 0
trim_trailing_whitespace = false

# Tab indentation && 2 space indentation
[Makefile]
tab_width = 2
indent_style = tab

[COMMIT_EDITMSG]
max_line_length = 0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
!/.gitallowed
!/.github
!*.gitkeep
!*.editorconfig

# SSH keys #
############
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pre-commit: ## Execute validation: pre-commit run --all-files.
terraform-docs: ## A utility to generate documentation from Terraform 0.12 modules in various output formats.
docker run --rm \
-v $$(pwd):/data \
cytopia/terraform-docs:0.6.0 \
cytopia/terraform-docs:0.8.0 \
terraform-docs-012 --sort-inputs-by-required --with-aggregate-type-defaults markdown table .

tflint: ## TFLint is a Terraform linter for detecting errors that can not be detected by terraform plan (tf0.12 > 0.10.x).
Expand Down

0 comments on commit 4fa7b00

Please sign in to comment.