Open ccoVeille opened 6 days ago
Yeah, it looks its "our" case and @golangci is already have its supported. I will gladly except PR from you or @alexandear if you are going to create one. I will also try to find time once ... once i have chance to sit calmly for an hour.
Cheers!
and golangci is already have its supported
I might have missed something then.
What do you mean?
As I understand it, the linter mirror
is designed to only support finding mirroring functions in the standard library, not in third-party libraries like github.com/BurntSushi/toml
.
Correct!
1) std lib first. However this package supported by main engine (i am considering gonagci-lint
main engine for running mirror
), so it can be OK to have its support.
2) Issue I see now - Unmarshal
and Decode
has different signatures, therefore its not really really suitable for mirror (as alt function will need to have almost same signature).
I thought about your project by reading this PR
https://pkg.go.dev/github.com/BurntSushi/toml#Unmarshal
https://pkg.go.dev/github.com/BurntSushi/toml#Decode
https://github.com/BurntSushi/toml/blob/v1.4.0/decode.go#L24-L37
Could you have interest for supporting it?