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:
![image](https://private-user-images.githubusercontent.com/42228088/258185620-981f5ff9-a172-4a55-9ec3-017eb69897b4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Mjc3ODIsIm5iZiI6MTczOTUyNzQ4MiwicGF0aCI6Ii80MjIyODA4OC8yNTgxODU2MjAtOTgxZjVmZjktYTE3Mi00YTU1LTllYzMtMDE3ZWI2OTg5N2I0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDEwMDQ0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3ZWFjMTk1MGZkYzFlYzBhMTkyNGUyN2U1ZDQyN2NiN2M2MWU1YmVlMWZjN2ExZTVlZWY0YTEzMDU5YWI5M2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qi-sspuuspr522JWN1XiiqhQNvXEyWqfIRskz1drTfU)
Beta Was this translation helpful? Give feedback.
All reactions