diff --git a/builder/issue.go b/builder/issue.go index 0c15abf..dc909c6 100644 --- a/builder/issue.go +++ b/builder/issue.go @@ -26,8 +26,8 @@ type Issues struct { Path string } -// RuleErr returns the rule error. -func (b *Issues) RuleErr() (r *RuleError) { +// RuleError returns the rule error. +func (b *Issues) RuleError() (r *RuleError) { return &b.ruleErr } diff --git a/cmd/main.go b/cmd/main.go index e6eee3b..438d842 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -133,7 +133,9 @@ func main() { return } addon.Activity("Analysis reported. duration: %s", time.Since(mark)) - ruleErr := issues.RuleErr() + // + // RuleError + ruleErr := issues.RuleError() ruleErr.Report() // // Facts