Inspect of submodule with option --module or with config module=true not working. Inspect is finnished only on main file and all submodules errors are ignored.
Current output:
2 issue(s) found:
Error: "StorageXX" is an invalid value as account_kind (azurerm_storage_account_invalid_account_kind)
on main.tf line 48:
48: account_kind = "StorageXX" # bad definition of acount kind, correct is Storage
Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.12.0/docs/rules/azurerm_storage_account_invalid_account_kind.md
Warning: Module should include an empty outputs.tf file (terraform_standard_module_structure)
on outputs.tf line 1:
(source code not available)
Reference: https://github.com/terraform-linters/tflint/blob/v0.31.0/docs/rules/terraform_standard_module_structure.md
Expected output:
3 issue(s) found:
Error: "StorageXX" is an invalid value as account_kind (azurerm_storage_account_invalid_account_kind)
on main.tf line 48:
48: account_kind = "StorageXX" # bad definition of acount kind, correct is Storage
Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.12.0/docs/rules/azurerm_storage_account_invalid_account_kind.md
Warning: Module should include an empty outputs.tf file (terraform_standard_module_structure)
on outputs.tf line 1:
(source code not available)
Reference: https://github.com/terraform-linters/tflint/blob/v0.31.0/docs/rules/terraform_standard_module_structure.md
Error: "StorageXX" is an invalid value as account_kind (azurerm_storage_account_invalid_account_kind)
on modules/remotestate/main.tf line 41:
41: account_kind = "StorageXKZK" # bad definition of acount kind, correct is Storage
Reference: https://github.com/terraform-linters/tflint-ruleset-azurerm/blob/v0.12.0/docs/rules/azurerm_storage_account_invalid_account_kind.md
I attach sample project file
TFLint_example.zip
with 2 errors in azurerm_storage_account_invalid_account_kind. One is in main.tf and second in ./modules/remotestate/main.tf.
Inspect of submodule with option --module or with config module=true not working. Inspect is finnished only on main file and all submodules errors are ignored.
Current output:
Expected output:
I attach sample project file TFLint_example.zip with 2 errors in azurerm_storage_account_invalid_account_kind. One is in main.tf and second in ./modules/remotestate/main.tf.
Version