ccoVeille

Results 195 issues of ccoVeille

go-spew can panic when trying to print certain types of values, there are open issues about this on their GitHub repository. go-spew is unfortunately unmaintained, we cannot expect a fix...

## Summary Fix panic when using EqualValues with uncomparable types ## Changes Add calls to CanConvert and CanInterface to avoid panics ## Motivation Avoid panic ## Related issues Closes #1699...

## Changes Bump the objx dependency, clean up the go.mod ## Motivation The latest version objx no longer uses testify as a test suite. Thanks to @emilien-puget work with https://github.com/stretchr/objx/pull/159...

It appears that `yaml.v3` is causing some panics: ```go goroutine 26994 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/panic.go:783 +0x132 go.yaml.in/yaml/v3.handleErr(0xc000bdc488) /go/pkg/mod/go.yaml.in/yaml/[email protected]/yaml.go:301 +0x68 panic({0x10430a0?, 0xc001931e30?}) /usr/local/go/src/runtime/panic.go:783 +0x132 go.yaml.in/yaml/v3.(*parser).parse(0xc0003aac08) /go/pkg/mod/go.yaml.in/yaml/[email protected]/decode.go:166 +0x174 go.yaml.in/yaml/v3.(*parser).parseChild(...) /go/pkg/mod/go.yaml.in/yaml/[email protected]/decode.go:197 go.yaml.in/yaml/v3.(*parser).mapping(0xc0003aac08) /go/pkg/mod/go.yaml.in/yaml/[email protected]/decode.go:288 +0x22f...

I often faced developer who write this ```go switch a { // expected values case 1: case 2: // do nothing on purpose default: return errors.New("blah") } ``` It occurs...

enhancement

The sane way identical branches was split, I feel like we should split a lot of rules. I listed the reasons here - https://github.com/mgechev/revive/pull/1453#issuecomment-3145384742 Here are some examples: - exported...

breaking change
v2

We merged #1437, it was a first step as stated in the PR. - #1437 Now, we need to include instruction that are This morning I was looking at an...

tests

**Is your feature request related to a problem? Please describe.** right now [datarace](https://revive.run/r#datarace) rule is limited to go func() {} But other can lead to datarace, http.HandlerFunc for example, but...

enhancement

Right now the YAML syntax is ambiguous for anchors and aliases. The fact an anchor or alias name can contain a `:` leads to oddities. For example, this is valid...

This commit introduces an optional logger parameter to various structs. This enhancement allows users to provide custom logging implementations. Fixes #3558 - #3558 > [!NOTE] > This is a follow-up...