panic on interface conversion to int, with gocritic hugeParam sizeThreshold set #2185
Closed
4 tasks done
Labels
bug
Something isn't working
Welcome
Description of the problem
With golangci-lint config expressed as
json
ortoml
, settinggocritic.settings.hugeParam.sizeThreshold
,golangci-lint
panics if checks more thanhugeParam
are enabled forgocritic
linter.Minimum reproducible configs are provided as both
json
andtoml
, but the same expressed asyaml
(also provided in details below) works fine.Version of golangci-lint
Configuration file
Sample minimum reproducible TOML config:
Sample minimum reproducible JSON config:
Go environment
Verbose output of running
Panic w/ sample TOML config:
Panic w/ sample JSON config:
Code example or link to a public repository
Panic can be observed on absolute minimum
main.go
:The text was updated successfully, but these errors were encountered: