Switch to analytics.Pass for type metadata - #72
Conversation
alexkohler
left a comment
There was a problem hiding this comment.
TIL about analytics.Pass - thanks!
|
I should probably mention @alexkohler that this represents a breaking API change that will require upstream changes in golangci-lint. I don't fully understand how the determination is made but I believe deep type analysis puts us in the "slow" category of linters. IMO this is fine since prealloc is off by default (and generally not recommended), so it's something users already opt into. |
Thank for flagging this. AIUI, the workaround here would be to have golang-ci-lint to use |
|
In the short term, yes. Dependabot should detect this new |
|
Got it, thanks. I tagged/pushed |
Significant type resolution improvement by switching to the standard
analysis.Passmetadata. Previously this type information was only available for custom types defined within the file being analyzed. This PR also allows us to remove the naive type inference code intypes.go.