From a53c18f4e7d0c59660ff4ad90ab9fbcc03ecd1e2 Mon Sep 17 00:00:00 2001 From: mgechev Date: Thu, 25 Jan 2018 12:33:46 -0800 Subject: [PATCH] Add linter config --- lint/rule.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lint/rule.go b/lint/rule.go index ebfbaca..f41381c 100644 --- a/lint/rule.go +++ b/lint/rule.go @@ -55,9 +55,16 @@ type RuleConfig struct { Severity Severity } -// RulesConfig defiles the config for all rules. +// RulesConfig defines the config for all rules. type RulesConfig = map[string]RuleConfig +// Config defines the config of the linter. +type Config struct { + Confidence float64 + Severity Severity + Rules RulesConfig +} + // Rule defines an abstract rule interaface type Rule interface { Name() string