diff --git a/.gitignore b/.gitignore index 6d71f80..1ddedd6 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,8 @@ README-generated.md .tflint.hcl .tflint_example.hcl +.tflint.merged.hcl +.tflint_example.merged.hcl tfmod-scaffold/ scripts diff --git a/.tflint_alt.hcl b/.tflint_alt.hcl deleted file mode 100644 index 9b6a8cd..0000000 --- a/.tflint_alt.hcl +++ /dev/null @@ -1,253 +0,0 @@ -/* -THIS FILE IS GENERATED BY TFMOD-SCAFFOLD, PLEASE DO NOT MODIFY IT. -IF YOU WANT TO USE A CUSTOMIZED CONFIGURATION, PLEASE CREATE YOUR OWN AND -SET THIS FILE'S PATH TO $TFLINT_CONFIG ENVVIRONMENT VARIABLE. -*/ - -plugin "azurerm" { - enabled = true - version = "0.23.0" - source = "github.com/terraform-linters/tflint-ruleset-azurerm" -} - -plugin "basic-ext" { - enabled = true - version = "0.3.1" - source = "github.com/Azure/tflint-ruleset-basic-ext" - signing_key = <<-KEY ------BEGIN PGP PUBLIC KEY BLOCK----- - -mQINBGNjIIoBEACni6mzvCfY14cicqnW+BjFCoTUM95nxUINDFEQ7wkxGWmufAvQ -iEUDrv6iVNCEfk1cU2jGSWUlBu6hTZ9auOy8K2MrMhtdqYVx+mY1SS+fVYHzSQAC -C3qBTBY+TmDHl0QMQjF884AsYE2WTcZI3e1DOXXkVKlOMERzT7IQMVbeuiVklwLj -BA/sQISaZVesaWPWN8WtRb8iOrq4i5HHqnAWRZGtqMEsoNBWqzjqh1aoQ7Ex3ldH -2Ey1bEIi05PWr67k1QOU9pXhMNuC+NXCQDO1sEq/NG376v2GbgylVapUlWAq35tw -Ut8SFfiDM+GyHN1nNNjBKhOB7774yqh6FrPIfh/2WvN1EhAbPkr9eWfHROyIPWj1 -t+IBFlMFbvMHLeMrlSZAkqlLljEZHdfzBfEXGUYKOOz/aeR+XjeMxGX977VoMk/0 -uzLQPoVMqjOrAY4Iq+XhW6w4aBihDqkot3TDH6Cyczl+N9We0QatWd5jA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Er6PkC -QN8QE7kGhxLNXPNjAyM15lWOckR0nPkwV5zV+gpw+R5grOgnBcMIhoMkUKiFqnbd -km5bxwF00OL/QqocAvOUY44G1WtsigAeNu3OM3ki1j6VVAOlwljQ8OSdLuVM3vsU -Q2i0lo99PuDaAjTxCFPx7+/TsL5vL21zGvVpkWvXsfVLFvjo2bTs5Yc78MGF4IZN -o4QUqU7MGkjT7r8rFSPwFkAny0vUkp5iAKKaQFSvi5j1SNExtSeWk+cfjHwrH9l5 -U6WDcghw5dibCpCUg5Eh0pbVe/Wdql3Y63Urk35fFAtGGpHozoVpoWFg6+n5HVlo -1DSrn+zuuxMp02sV+9MfqnT8Gq3fbU1mlTmqALKWa71w1dAv/M1kdjgA5w== -=nfI3 ------END PGP PUBLIC KEY BLOCK----- - KEY -} - -plugin "azurerm-ext" { - enabled = true - version = "0.4.0" - source = "github.com/Azure/tflint-ruleset-azurerm-ext" - signing_key = <<-KEY ------BEGIN PGP PUBLIC KEY BLOCK----- - -mQINBGNjIIoBEACni6mzvCfY14cicqnW+BjFCoTUM95nxUINDFEQ7wkxGWmufAvQ -iEUDrv6iVNCEfk1cU2jGSWUlBu6hTZ9auOy8K2MrMhtdqYVx+mY1SS+fVYHzSQAC -C3qBTBY+TmDHl0QMQjF884AsYE2WTcZI3e1DOXXkVKlOMERzT7IQMVbeuiVklwLj -BA/sQISaZVesaWPWN8WtRb8iOrq4i5HHqnAWRZGtqMEsoNBWqzjqh1aoQ7Ex3ldH -2Ey1bEIi05PWr67k1QOU9pXhMNuC+NXCQDO1sEq/NG376v2GbgylVapUlWAq35tw -Ut8SFfiDM+GyHN1nNNjBKhOB7774yqh6FrPIfh/2WvN1EhAbPkr9eWfHROyIPWj1 -t+IBFlMFbvMHLeMrlSZAkqlLljEZHdfzBfEXGUYKOOz/aeR+XjeMxGX977VoMk/0 -uzLQPoVMqjOrAY4Iq+XhW6w4aBihDqkot3TDH6Cyczl+N9We0QatWd5jAG+BTb22 -7AevzSlDKh/+oUAec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AyM15lWOckR0nPkwV5zV+gpw+R5grOgnBcMIhoMkUKiFqnbd -km5bxwF00OL/QqocAvOUY44G1WtsigAeNu3OM3ki1j6VVAOlwljQ8OSdLuVM3vsU -Q2i0lo99PuDaAjTxCFPx7+/TsL5vL21zGvVpkWvXsfVLFvjo2bTs5Yc78MGF4IZN -o4QUqU7MGkjT7r8rFSPwFkAny0vUkp5iAKKaQFSvi5j1SNExtSeWk+cfjHwrH9l5 -U6WDcghw5dibCpCUg5Eh0pbVe/Wdql3Y63Urk35fFAtGGpHozoVpoWFg6+n5HVlo -1DSrn+zuuxMp02sV+9MfqnT8Gq3fbU1mlTmqALKWa71w1dAv/M1kdjgA5w== -=nfI3 ------END PGP PUBLIC KEY BLOCK----- - KEY -} - -rule "terraform_comment_syntax" { - enabled = true -} - -rule "terraform_deprecated_index" { - enabled = true -} - -rule "terraform_deprecated_interpolation" { - enabled = true -} - -rule "terraform_documented_outputs" { - enabled = true -} - -rule "terraform_documented_variables" { - enabled = true -} - -rule "terraform_module_pinned_source" { - enabled = true -} - -rule "terraform_module_version" { - enabled = true -} - -rule "terraform_naming_convention" { - enabled = true -} - -rule "terraform_required_providers" { - enabled = true -} - -rule "terraform_required_version" { - enabled = true -} - -rule "terraform_standard_module_structure" { - enabled = true -} - -rule "terraform_typed_variables" { - enabled = true -} - -rule "terraform_unused_declarations" { - enabled = true -} - -rule "terraform_unused_required_providers" { - enabled = true -} - -rule "terraform_workspace_remote" { - enabled = true -} - -rule "terraform_locals_order" { - enabled = false -} - -rule "terraform_output_order" { - enabled = false -} - -rule "terraform_output_separate" { - enabled = false -} - -rule "terraform_variable_nullable_false" { - enabled = false -} - -rule "terraform_variable_order" { - enabled = false -} - -rule "terraform_variable_separate" { - enabled = false -} - -rule "terraform_resource_data_arg_layout" { - enabled = false -} - -rule "azurerm_arg_order" { - enabled = false -} - -rule "azurerm_resource_tag" { - enabled = true -} - -rule "terraform_count_index_usage" { - enabled = false -} - -rule "terraform_heredoc_usage" { - enabled = true -} - -rule "terraform_module_provider_declaration" { - enabled = true -} - -rule "terraform_required_providers_declaration" { - enabled = true -} - -rule "terraform_required_version_declaration" { - enabled = true -} - -rule "terraform_sensitive_variable_no_default" { - enabled = true -} - -rule "terraform_versions_file" { - enabled = true -} \ No newline at end of file