mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-06 13:25:42 +00:00
Fixing
This commit is contained in:
parent
bc34216afe
commit
034df5c91e
@ -19,8 +19,6 @@ linters:
|
|||||||
ignore-rules:
|
ignore-rules:
|
||||||
- color
|
- color
|
||||||
- colors
|
- colors
|
||||||
- COLOR
|
|
||||||
- github.com/fatih/color
|
|
||||||
depguard:
|
depguard:
|
||||||
rules:
|
rules:
|
||||||
prevent_unmaintained_packages:
|
prevent_unmaintained_packages:
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
❌ **DON'T:**
|
❌ **DON'T:**
|
||||||
- Git add or commit
|
- Git add or commit
|
||||||
|
- Add comments to functions that are self-explanatory
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -173,7 +173,6 @@ func (he *hclEncoder) injectComments(output []byte, commentMap map[string]string
|
|||||||
return []byte(result)
|
return []byte(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
// colorizeHcl applies syntax highlighting to HCL output using fatih/color //nolint:misspell
|
|
||||||
func (he *hclEncoder) colorizeHcl(input []byte) []byte {
|
func (he *hclEncoder) colorizeHcl(input []byte) []byte {
|
||||||
hcl := string(input)
|
hcl := string(input)
|
||||||
result := strings.Builder{}
|
result := strings.Builder{}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user