From 0562e98f6bbc62d718f5af4918de83c09317144d Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 17 Jul 2024 04:56:11 -0700 Subject: [PATCH] checkpoint Signed-off-by: Jeff Ortel --- builder/issue.go | 4 ++-- cmd/main.go | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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