Add rule to detect 'Invalid validation error message' #111
jaredbrogan
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
TFLint does not attempt to reproduce hashicorp/terraform#24214 (comment) This would be a valid case for a rule though: https://developer.hashicorp.com/terraform/language/expressions/custom-conditions#error-messages
Which meets the criteria: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/main/docs/rules/README.md |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there doesn't appear to be a rule to detect variables that contain a validation block with an error_message value that doesn't follow proper grammar.
This is an example of the error seen:

Beta Was this translation helpful? Give feedback.
All reactions