You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add validation for JSON config file naming convention
JSON configuration files must now end with "tflint.json" to avoid
confusion with other JSON files like terraform.tfvars.json. This
ensures clear distinction between TFLint configuration files and
other JSON files in the project.
Valid names:
- .tflint.json
- my-tflint.json
- project.tflint.json
Invalid names:
- config.json
- test.json
- terraform.tfvars.json
This change prevents accidental parsing of non-TFLint JSON files
and provides clearer error messages when invalid filenames are used.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
"message": "Failed to check ruleset; failed to check \"terraform_module_pinned_source\" rule: <nil>: Unexpected file extension; The file name `.tflint.json` is a file with an unexpected extension. Valid extensions are `.tf`, `.tf.json`, and `.hcl`.",
0 commit comments