-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(pre-commit): update linting INPRO-1444
- Loading branch information
Showing
18 changed files
with
248 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"enabled": true, | ||
"semanticCommits": "enabled", | ||
"dependencyDashboard": true, | ||
"dependencyDashboardTitle": ":robot: Renovate Dashboard", | ||
"suppressNotifications": ["prIgnoreNotification"], | ||
"rebaseWhen": "conflicted", | ||
"labels": ["dependencies"], | ||
"packageRules": [ | ||
enabled: true, | ||
semanticCommits: "enabled", | ||
dependencyDashboard: true, | ||
dependencyDashboardTitle: ":robot: Renovate Dashboard", | ||
suppressNotifications: ["prIgnoreNotification"], | ||
rebaseWhen: "conflicted", | ||
labels: ["dependencies"], | ||
packageRules: [ | ||
{ | ||
"matchPackagePatterns": ["eslint"], | ||
"labels": ["linting"] | ||
matchPackagePatterns: ["eslint"], | ||
labels: ["linting"], | ||
}, | ||
{ | ||
"matchDepTypes": ["optionalDependencies"], | ||
"addLabels": ["optional"] | ||
} | ||
] | ||
} | ||
matchDepTypes: ["optionalDependencies"], | ||
addLabels: ["optional"], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
default: true | ||
|
||
# MD013/line-length - Line length | ||
MD013: | ||
# Number of characters | ||
line_length: 240 | ||
# Number of characters for headings | ||
heading_line_length: 80 | ||
# Number of characters for code blocks | ||
code_block_line_length: 120 | ||
# Include code blocks | ||
code_blocks: true | ||
# Include tables | ||
tables: true | ||
# Include headings | ||
headings: true | ||
# Include headings | ||
headers: true | ||
# Strict length checking | ||
strict: false | ||
# Stern length checking | ||
stern: false | ||
|
||
# MD033/no-inline-html - Inline HTML disabled because of tf-docs | ||
MD033: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
fail_fast: false | ||
default_stages: | ||
- commit | ||
- push | ||
|
||
repos: | ||
- repo: https://github.com/terraform-docs/terraform-docs | ||
rev: v0.16.0 | ||
hooks: | ||
- id: terraform-docs-go | ||
args: | ||
- --config | ||
- .terraform-docs.yaml | ||
- --output-file | ||
- README.md | ||
- . | ||
|
||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.77.0 | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_tflint | ||
args: | ||
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl | ||
# - id: terraform_tfsec | ||
# files: ^infra/terraform | ||
# - id: terraform_validate | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: check-added-large-files | ||
args: | ||
- --maxkb=100 | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-symlinks | ||
- id: check-xml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: mixed-line-ending | ||
args: | ||
- --fix=auto | ||
- id: trailing-whitespace | ||
args: | ||
- --markdown-linebreak-ext=md | ||
|
||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.28.0 | ||
hooks: | ||
- id: yamllint | ||
args: | ||
- --config-file | ||
- .yamllint.config.yaml | ||
|
||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.3.1 | ||
hooks: | ||
- id: remove-crlf | ||
- id: remove-tabs | ||
|
||
- repo: https://github.com/sirosen/fix-smartquotes | ||
rev: 0.2.0 | ||
hooks: | ||
- id: fix-smartquotes | ||
|
||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.32.2 | ||
hooks: | ||
- id: markdownlint-fix | ||
args: | ||
- --config | ||
- .markdownlint.yaml | ||
|
||
- repo: https://github.com/k8s-at-home/sops-pre-commit | ||
rev: v2.1.1 | ||
hooks: | ||
- id: forbid-secrets | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.4 | ||
hooks: | ||
- id: prettier | ||
args: | ||
- --ignore-path | ||
- .prettierignore | ||
- --config | ||
- .prettierrc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.sops.* | ||
**/.terraform/** | ||
terraform.tfstate* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
trailingComma: "es5" | ||
tabWidth: 2 | ||
semi: false | ||
singleQuote: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
formatter: markdown | ||
header-from: main.tf | ||
|
||
sections: | ||
hide-all: false | ||
hide: [] | ||
show-all: true | ||
show: [] | ||
|
||
output: | ||
file: "README.md" | ||
mode: inject | ||
template: |- | ||
<!-- BEGIN_TF_DOCS --> | ||
{{ .Content }} | ||
<!-- END_TF_DOCS --> | ||
check: false | ||
|
||
output-values: | ||
enabled: false | ||
from: "" | ||
|
||
sort: | ||
enabled: true | ||
by: required | ||
|
||
settings: | ||
anchor: true | ||
color: true | ||
default: true | ||
escape: true | ||
indent: 2 | ||
required: true | ||
sensitive: true | ||
type: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
config { | ||
force = false | ||
disabled_by_default = false | ||
} | ||
|
||
rule "terraform_module_pinned_source" { | ||
enabled = true | ||
style = "flexible" | ||
default_branches = ["main", "master", "default", "develop"] | ||
} | ||
|
||
rule "terraform_required_providers" { | ||
enabled = false | ||
} | ||
|
||
rule "terraform_required_version" { | ||
enabled = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
# see https://yamllint.readthedocs.io/en/stable/index.html for more options | ||
extends: default | ||
rules: | ||
truthy: | ||
allowed-values: ["true", "false", "on", "yes"] | ||
|
||
line-length: | ||
max: 120 | ||
level: warning | ||
|
||
braces: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 | ||
|
||
brackets: | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 0 | ||
|
||
indentation: | ||
spaces: 2 | ||
indent-sequences: consistent | ||
check-multi-line-strings: false | ||
|
||
document-start: | ||
present: true | ||
level: error | ||
|
||
comments: | ||
min-spaces-from-content: 1 |
19 changes: 15 additions & 4 deletions
19
examples/example-provider-authentication-with-tfvars/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Example Usage with Google Buckets | ||
|
||
These templates show an example of how to use the terraform-gsuite-user-group-management module with Google Buckets as data source. | ||
The yaml files can be found in the Github repository, see [example-yaml-files](examples/example-yaml-files). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Example Usage with local files | ||
|
||
These templates show an example of how to use the terraform-gsuite-user-group-management module with local files as data source. | ||
The yaml files can be found in the Github repository, see [example-yaml-files](examples/example-yaml-files). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Example YAML files | ||
|
||
These templates show an example of how the terraform-gsuite-user-group-management module expects the data structure. Those YAML files can be used as data source for the module. Check out the other examples on how to provide them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Module for adding external users to groups | ||
|
||
This module is optional. For details on how to use it check [examples](examples/). |