From 5c0bdab4f45721170e548e6ad1dd2285b247d52c Mon Sep 17 00:00:00 2001 From: Lasse Gaardsholt Date: Mon, 12 May 2025 12:19:49 +0200 Subject: [PATCH] Changed severity level from ERROR to WARNING (#9) Signed-off-by: Lasse Gaardsholt --- main.go | 2 +- rules/terraform_lists_trailing_comma.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 14ee78d..c289ecc 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ func main() { plugin.Serve(&plugin.ServeOpts{ RuleSet: &tflint.BuiltinRuleSet{ Name: "trailing-comma", - Version: "0.1.2", + Version: "0.2.0", Rules: []tflint.Rule{ rules.NewTerraformListsTrailingCommaRule(), }, diff --git a/rules/terraform_lists_trailing_comma.go b/rules/terraform_lists_trailing_comma.go index aaecae9..3f19f25 100644 --- a/rules/terraform_lists_trailing_comma.go +++ b/rules/terraform_lists_trailing_comma.go @@ -28,7 +28,7 @@ func (r *TerraformListsTrailingCommaRule) Enabled() bool { // Severity returns the rule severity func (r *TerraformListsTrailingCommaRule) Severity() tflint.Severity { - return tflint.ERROR + return tflint.WARNING } // Link returns the rule reference link