From 034df5c91ed7e06c15e3fae099a114b7b63095fa Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sat, 20 Dec 2025 18:58:17 +1100 Subject: [PATCH] Fixing --- .golangci.yml | 2 -- agents.md | 1 + pkg/yqlib/encoder_hcl.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 77753a70..ffc9a52b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,8 +19,6 @@ linters: ignore-rules: - color - colors - - COLOR - - github.com/fatih/color depguard: rules: prevent_unmaintained_packages: diff --git a/agents.md b/agents.md index bb222d28..c91d19a2 100644 --- a/agents.md +++ b/agents.md @@ -8,6 +8,7 @@ ❌ **DON'T:** - Git add or commit +- Add comments to functions that are self-explanatory diff --git a/pkg/yqlib/encoder_hcl.go b/pkg/yqlib/encoder_hcl.go index 19560953..8dce06ea 100644 --- a/pkg/yqlib/encoder_hcl.go +++ b/pkg/yqlib/encoder_hcl.go @@ -173,7 +173,6 @@ func (he *hclEncoder) injectComments(output []byte, commentMap map[string]string return []byte(result) } -// colorizeHcl applies syntax highlighting to HCL output using fatih/color //nolint:misspell func (he *hclEncoder) colorizeHcl(input []byte) []byte { hcl := string(input) result := strings.Builder{}