From 7c3dd0eec39d0a9e945432a8f3b670cfa9aa1a80 Mon Sep 17 00:00:00 2001 From: solid-vovabeloded <41615621+solid-vovabeloded@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:47:39 +0200 Subject: [PATCH] Set default severity level to warning (#78) Co-authored-by: vladimir-beloded --- lib/models/rule_config.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/models/rule_config.dart b/lib/models/rule_config.dart index 654a3d41..d2429b9d 100644 --- a/lib/models/rule_config.dart +++ b/lib/models/rule_config.dart @@ -1,3 +1,4 @@ +import 'package:analyzer/error/error.dart'; import 'package:custom_lint_builder/custom_lint_builder.dart'; /// Type definition of a value factory which allows us to map data from @@ -37,5 +38,6 @@ class RuleConfig { LintCode get lintCode => LintCode( name: name, problemMessage: _problemMessageFactory(parameters), + errorSeverity: ErrorSeverity.WARNING, ); }