Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark: PR 5231 (funlen v0.2.0) #38

Closed
ldez opened this issue Dec 16, 2024 · 1 comment
Closed

benchmark: PR 5231 (funlen v0.2.0) #38

ldez opened this issue Dec 16, 2024 · 1 comment

Comments

@ldez
Copy link
Owner

ldez commented Dec 16, 2024

{
"pr": 5231,
"linter": "funlen",
"version": "v1.62.2",
"maxIssuesPerLinter": 50,
"maxLinesPerRun": 500
}

Copy link

The benchmark (Benchmark PR (updated linter)) is done!

beego/beego

local
client/orm/migration/ddl.go:263:21: Function 'GetSQL' has too many statements (74 > 40) (funlen)
func (m *Migration) GetSQL() (sql string) {
                    ^
core/logs/alils/log.pb.go:459:15: Function 'Unmarshal' has too many statements (78 > 40) (funlen)
func (m *Log) Unmarshal(data []byte) error {
              ^
core/logs/alils/log.pb.go:568:22: Function 'Unmarshal' has too many statements (89 > 40) (funlen)
func (m *LogContent) Unmarshal(data []byte) error {
                     ^
core/logs/alils/log.pb.go:690:20: Function 'Unmarshal' has too many statements (128 > 40) (funlen)
func (m *LogGroup) Unmarshal(data []byte) error {
                   ^
core/logs/alils/log.pb.go:864:24: Function 'Unmarshal' has too many statements (59 > 40) (funlen)
func (m *LogGroupList) Unmarshal(data []byte) error {
                       ^
core/logs/alils/log.pb.go:947:6: Function 'skipLog' has too many statements (75 > 40) (funlen)
func skipLog(data []byte) (n int, err error) {
     ^
core/logs/alils/log_store.go:171:20: Function 'GetLogsBytes' has too many statements (42 > 40) (funlen)
func (s *LogStore) GetLogsBytes(shardID int, cursor string,
                   ^
core/logs/alils/signature.go:24:6: Function 'signature' has too many statements (44 > 40) (funlen)
func signature(project *LogProject, method, uri string,
     ^
client/cache/calc_utils_test.go:11:6: Function 'TestIncr' has too many statements (44 > 40) (funlen)
func TestIncr(t *testing.T) {
     ^
client/cache/calc_utils_test.go:77:6: Function 'TestDecr' has too many statements (44 > 40) (funlen)
func TestDecr(t *testing.T) {
     ^
client/cache/read_through_test.go:46:6: Function 'testReadThroughCacheGet' is too long (86 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm Cache) {
     ^
client/cache/memcache/memcache_test.go:34:6: Function 'TestMemcacheCache' has too many statements (52 > 40) (funlen)
func TestMemcacheCache(t *testing.T) {
     ^
client/cache/memcache/memcache_test.go:124:6: Function 'testReadThroughCacheGet' is too long (90 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm cache.Cache) {
     ^
client/cache/redis/redis_test.go:32:6: Function 'TestRedisCache' has too many statements (47 > 40) (funlen)
func TestRedisCache(t *testing.T) {
     ^
client/cache/redis/redis_test.go:146:6: Function 'testReadThroughCacheGet' is too long (90 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm cache.Cache) {
     ^
client/cache/ssdb/ssdb_test.go:19:6: Function 'TestSsdbcacheCache' has too many statements (50 > 40) (funlen)
func TestSsdbcacheCache(t *testing.T) {
     ^
client/cache/ssdb/ssdb_test.go:111:6: Function 'testReadThroughCacheGet' is too long (86 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm cache.Cache) {
     ^
client/httplib/httplib_test.go:42:28: Function 'SetupSuite' is too long (75 > 60) (funlen)
func (h *HttplibTestSuite) SetupSuite() {
                           ^
client/orm/cmd.go:103:25: Function 'Run' has too many statements (85 > 40) (funlen)
func (d *commandSyncDb) Run() error {
                        ^
client/orm/cmd_utils.go:31:6: Function 'getColumnTyp' is too long (82 > 60) (funlen)
func getColumnTyp(al *alias, fi *models.FieldInfo) (col string) {
     ^
client/orm/db.go:119:18: Function 'collectFieldValue' is too long (145 > 60) (funlen)
func (d *dbBase) collectFieldValue(mi *models.ModelInfo, fi *models.FieldInfo, ind reflect.Value, insert bool, tz *time.Location) (interface{}, error) {
                 ^
client/orm/db.go:566:18: Function 'InsertOrUpdateSQL' has too many statements (69 > 40) (funlen)
func (d *dbBase) InsertOrUpdateSQL(names []string, values *[]interface{}, mi *models.ModelInfo, a *alias, args ...string) (string, error) {
                 ^
client/orm/db.go:1014:18: Function 'DeleteBatch' has too many statements (52 > 40) (funlen)
func (d *dbBase) DeleteBatch(ctx context.Context, q dbQuerier, qs *querySet, mi *models.ModelInfo, cond *Condition, tz *time.Location) (int64, error) {
                 ^
client/orm/db.go:1095:18: Function 'ReadBatch' has too many statements (90 > 40) (funlen)
func (d *dbBase) ReadBatch(ctx context.Context, q dbQuerier, qs querySet, mi *models.ModelInfo, cond *Condition, container interface{}, tz *time.Location, cols []string) (int64, error) {
                 ^
client/orm/db.go:1506:18: Function 'convertValueFromDB' is too long (160 > 60) (funlen)
func (d *dbBase) convertValueFromDB(fi *models.FieldInfo, val interface{}, tz *time.Location) (interface{}, error) {
                 ^
client/orm/db.go:1670:18: Function 'setFieldValue' is too long (187 > 60) (funlen)
func (d *dbBase) setFieldValue(fi *models.FieldInfo, value interface{}, field reflect.Value) (interface{}, error) {
                 ^
client/orm/db.go:1861:18: Function 'ReadValues' has too many statements (91 > 40) (funlen)
func (d *dbBase) ReadValues(ctx context.Context, q dbQuerier, qs querySet, mi *models.ModelInfo, cond *Condition, exprs []string, container interface{}, tz *time.Location) (int64, error) {
                 ^
client/orm/db_mysql.go:111:23: Function 'InsertOrUpdate' is too long (63 > 60) (funlen)
func (d *dbBaseMysql) InsertOrUpdate(ctx context.Context, q dbQuerier, mi *models.ModelInfo, ind reflect.Value, a *alias, args ...string) (int64, error) {
                      ^
client/orm/db_tables.go:218:20: Function 'parseExprs' is too long (111 > 60) (funlen)
func (t *dbTables) parseExprs(mi *models.ModelInfo, exprs []string) (index, name string, info *models.FieldInfo, success bool) {
                   ^
client/orm/db_tables.go:333:20: Function 'getCondSQL' is too long (67 > 60) (funlen)
func (t *dbTables) getCondSQL(cond *Condition, sub bool, tz *time.Location) (where string, params []interface{}) {
                   ^
client/orm/db_utils.go:61:6: Function 'getFlatParams' is too long (117 > 60) (funlen)
func getFlatParams(fi *models.FieldInfo, args []interface{}, tz *time.Location) (params []interface{}) {
     ^
client/orm/ddl.go:41:6: Function 'getDbCreateSQL' has too many statements (68 > 40) (funlen)
func getDbCreateSQL(mc *imodels.ModelCache, al *alias) (queries []string, tableIndexes map[string][]dbIndex, err error) {
     ^
client/orm/orm.go:335:19: Function 'LoadRelatedWithCtx' is too long (61 > 60) (funlen)
func (o *ormBase) LoadRelatedWithCtx(_ context.Context, md interface{}, name string, args ...utils.KV) (int64, error) {
                  ^
client/orm/orm_querym2m.go:45:20: Function 'AddWithCtx' is too long (64 > 60) (funlen)
func (o *queryM2M) AddWithCtx(ctx context.Context, mds ...interface{}) (int64, error) {
                   ^
client/orm/orm_raw.go:92:18: Function 'setFieldValue' has too many statements (52 > 40) (funlen)
func (o *rawSet) setFieldValue(ind reflect.Value, value interface{}) {
                 ^
client/orm/orm_raw.go:217:18: Function 'loopSetRefs' is too long (66 > 60) (funlen)
func (o *rawSet) loopSetRefs(refs []interface{}, sInds []reflect.Value, nIndsPtr *[]reflect.Value, eTyps []reflect.Type, init bool) {
                 ^
client/orm/orm_raw.go:287:18: Function 'QueryRow' has too many statements (63 > 40) (funlen)
func (o *rawSet) QueryRow(containers ...interface{}) error {
                 ^
client/orm/orm_raw.go:449:18: Function 'QueryRows' has too many statements (74 > 40) (funlen)
func (o *rawSet) QueryRows(containers ...interface{}) (int64, error) {
                 ^
client/orm/orm_raw.go:623:18: Function 'readValues' has too many statements (72 > 40) (funlen)
func (o *rawSet) readValues(container interface{}, needCols []string) (int64, error) {
                 ^
client/orm/orm_raw.go:752:18: Function 'queryRowsTo' has too many statements (60 > 40) (funlen)
func (o *rawSet) queryRowsTo(container interface{}, keyCol, valueCol string) (int64, error) {
                 ^
client/orm/db_test.go:30:6: Function 'TestDbBase_InsertValueSQL' is too long (104 > 60) (funlen)
func TestDbBase_InsertValueSQL(t *testing.T) {
     ^
client/orm/db_test.go:238:6: Function 'TestDbBase_buildSetSQL' is too long (299 > 60) (funlen)
func TestDbBase_buildSetSQL(t *testing.T) {
     ^
client/orm/db_test.go:540:6: Function 'TestDbBase_UpdateBatchSQL' is too long (113 > 60) (funlen)
func TestDbBase_UpdateBatchSQL(t *testing.T) {
     ^
client/orm/db_test.go:656:6: Function 'TestDbBase_InsertOrUpdateSQL' is too long (234 > 60) (funlen)
func TestDbBase_InsertOrUpdateSQL(t *testing.T) {
     ^
client/orm/db_test.go:893:6: Function 'TestDbBase_readBatchSQL' is too long (302 > 60) (funlen)
func TestDbBase_readBatchSQL(t *testing.T) {
     ^
client/orm/db_test.go:1198:6: Function 'TestDbBase_readValuesSQL' is too long (135 > 60) (funlen)
func TestDbBase_readValuesSQL(t *testing.T) {
     ^
client/orm/db_test.go:1336:6: Function 'TestDbBase_countSQL' is too long (99 > 60) (funlen)
func TestDbBase_countSQL(t *testing.T) {
     ^
client/orm/do_nothing_orm_test.go:23:6: Function 'TestDoNothingOrm' has too many statements (80 > 40) (funlen)
func TestDoNothingOrm(t *testing.T) {
     ^
client/orm/orm_test.go:343:6: Function 'TestUnregisterModel' is too long (64 > 60) (funlen)
func TestUnregisterModel(t *testing.T) {
     ^
client/orm/orm_test.go:410:6: Function 'TestNullDataTypes' has too many statements (109 > 40) (funlen)
func TestNullDataTypes(t *testing.T) {
     ^
v1.62.2
client/orm/migration/ddl.go:263: Function 'GetSQL' has too many statements (74 > 40) (funlen)
func (m *Migration) GetSQL() (sql string) {
server/web/captcha/siprng.go:31: Function 'siphash' has too many statements (123 > 40) (funlen)
func siphash(k0, k1, m uint64) uint64 {
client/orm/internal/models/models.go:109: Function 'bootstrap' has too many statements (92 > 40) (funlen)
func (mc *ModelCache) bootstrap() {
client/orm/internal/models/models.go:314: Function 'Register' is too long (63 > 60) (funlen)
func (mc *ModelCache) Register(prefixOrSuffixStr string, prefixOrSuffix bool, models ...interface{}) (err error) {
client/orm/internal/models/models_info_f.go:147: Function 'NewFieldInfo' has too many statements (160 > 40) (funlen)
func NewFieldInfo(mi *ModelInfo, field reflect.Value, sf reflect.StructField, mName string) (fi *FieldInfo, err error) {
client/orm/internal/models/models_utils.go:158: Function 'getFieldType' has too many statements (67 > 40) (funlen)
func getFieldType(val reflect.Value) (ft int, err error) {
core/utils/debug.go:164: Function 'printKeyValue' has too many statements (108 > 40) (funlen)
func printKeyValue(buf *bytes.Buffer, val reflect.Value, pointers **pointerInfo, interfaces *[]reflect.Value, structFilter func(string, string) bool, formatOutput bool, indent string, level int) {
core/utils/debug.go:374: Function 'PrintPointerInfo' is too long (64 > 60) (funlen)
func PrintPointerInfo(buf *bytes.Buffer, headlen int, pointers *pointerInfo) {
core/utils/mail.go:84: Function 'Bytes' has too many statements (46 > 40) (funlen)
func (e *Email) Bytes() ([]byte, error) {
client/cache/redis/redis_test.go:32: Function 'TestRedisCache' has too many statements (47 > 40) (funlen)
func TestRedisCache(t *testing.T) {
client/cache/redis/redis_test.go:146: Function 'testReadThroughCacheGet' is too long (90 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm cache.Cache) {
task/task.go:357: Function 'Next' is too long (81 > 60) (funlen)
func (s *Schedule) Next(t time.Time) time.Time {
client/cache/calc_utils_test.go:11: Function 'TestIncr' has too many statements (44 > 40) (funlen)
func TestIncr(t *testing.T) {
client/cache/calc_utils_test.go:77: Function 'TestDecr' has too many statements (44 > 40) (funlen)
func TestDecr(t *testing.T) {
client/cache/read_through_test.go:46: Function 'testReadThroughCacheGet' is too long (86 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm Cache) {
core/config/ini.go:63: Function 'parseData' has too many statements (87 > 40) (funlen)
func (ini *IniConfig) parseData(dir string, data []byte) (*IniConfigContainer, error) {
core/config/ini.go:347: Function 'SaveConfigFile' has too many statements (43 > 40) (funlen)
func (c *IniConfigContainer) SaveConfigFile(filename string) (err error) {
core/config/global_test.go:24: Function 'TestGlobalInstance' has too many statements (43 > 40) (funlen)
func TestGlobalInstance(t *testing.T) {
core/config/ini_test.go:24: Function 'TestIni' is too long (105 > 60) (funlen)
func TestIni(t *testing.T) {
core/config/yaml/yaml_test.go:27: Function 'TestYaml' has too many statements (93 > 40) (funlen)
func TestYaml(t *testing.T) {
core/config/xml/xml_test.go:27: Function 'TestXML' has too many statements (60 > 40) (funlen)
func TestXML(t *testing.T) {
core/config/json/json_test.go:73: Function 'TestJson' has too many statements (67 > 40) (funlen)
func TestJson(t *testing.T) {
server/web/session/redis_sentinel/sess_redis_sentinel_test.go:16: Function 'TestRedisSentinel' has too many statements (46 > 40) (funlen)
func TestRedisSentinel(t *testing.T) {
client/cache/ssdb/ssdb_test.go:19: Function 'TestSsdbcacheCache' has too many statements (50 > 40) (funlen)
func TestSsdbcacheCache(t *testing.T) {
client/cache/ssdb/ssdb_test.go:111: Function 'testReadThroughCacheGet' is too long (86 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm cache.Cache) {
server/web/context/form.go:32: Function 'parseFormToStruct' has too many statements (57 > 40) (funlen)
func parseFormToStruct(form url.Values, objT reflect.Type, objV reflect.Value) error {
server/web/context/output.go:91: Function 'Cookie' has too many statements (41 > 40) (funlen)
func (output *BeegoOutput) Cookie(name string, value string, others ...interface{}) {
server/web/context/input_test.go:24: Function 'TestBind' is too long (87 > 60) (funlen)
func TestBind(t *testing.T) {
core/validation/validation_test.go:253: Function 'TestMobile' is too long (65 > 60) (funlen)
func TestMobile(t *testing.T) {
core/validation/validation_test.go:510: Function 'TestPointer' is too long (78 > 60) (funlen)
func TestPointer(t *testing.T) {
core/logs/file.go:324: Function 'doRotate' is too long (66 > 60) (funlen)
func (w *fileLogWriter) doRotate(logTime time.Time) error {
core/bean/mock.go:23: Function 'mock' has too many statements (45 > 40) (funlen)
func mock(pv reflect.Value) (err error) {
core/bean/tag_auto_wire_bean_factory.go:61: Function 'AutoWire' has too many statements (71 > 40) (funlen)
func (t *TagAutoWireBeanFactory) AutoWire(ctx context.Context, appCtx ApplicationContext, bean interface{}) error {
client/cache/memcache/memcache_test.go:34: Function 'TestMemcacheCache' has too many statements (52 > 40) (funlen)
func TestMemcacheCache(t *testing.T) {
client/cache/memcache/memcache_test.go:124: Function 'testReadThroughCacheGet' is too long (90 > 60) (funlen)
func testReadThroughCacheGet(t *testing.T, bm cache.Cache) {
core/logs/alils/alils.go:56: Function 'Init' is too long (61 > 60) (funlen)
func (c *aliLSWriter) Init(config string) error {
core/logs/alils/log.pb.go:459: Function 'Unmarshal' has too many statements (78 > 40) (funlen)
func (m *Log) Unmarshal(data []byte) error {
core/logs/alils/log.pb.go:568: Function 'Unmarshal' has too many statements (89 > 40) (funlen)
func (m *LogContent) Unmarshal(data []byte) error {
core/logs/alils/log.pb.go:690: Function 'Unmarshal' has too many statements (128 > 40) (funlen)
func (m *LogGroup) Unmarshal(data []byte) error {
core/logs/alils/log.pb.go:864: Function 'Unmarshal' has too many statements (59 > 40) (funlen)
func (m *LogGroupList) Unmarshal(data []byte) error {
core/logs/alils/log.pb.go:947: Function 'skipLog' has too many statements (75 > 40) (funlen)
func skipLog(data []byte) (n int, err error) {
core/logs/alils/log_store.go:171: Function 'GetLogsBytes' has too many statements (42 > 40) (funlen)
func (s *LogStore) GetLogsBytes(shardID int, cursor string,
core/logs/alils/signature.go:24: Function 'signature' has too many statements (44 > 40) (funlen)
func signature(project *LogProject, method, uri string,
client/httplib/httplib_test.go:42: Function 'SetupSuite' is too long (75 > 60) (funlen)
func (h *HttplibTestSuite) SetupSuite() {
client/orm/cmd.go:103: Function 'Run' has too many statements (85 > 40) (funlen)
func (d *commandSyncDb) Run() error {
client/orm/cmd_utils.go:31: Function 'getColumnTyp' is too long (84 > 60) (funlen)
func getColumnTyp(al *alias, fi *models.FieldInfo) (col string) {
client/orm/db.go:119: Function 'collectFieldValue' is too long (145 > 60) (funlen)
func (d *dbBase) collectFieldValue(mi *models.ModelInfo, fi *models.FieldInfo, ind reflect.Value, insert bool, tz *time.Location) (interface{}, error) {
client/orm/db.go:566: Function 'InsertOrUpdateSQL' has too many statements (69 > 40) (funlen)
func (d *dbBase) InsertOrUpdateSQL(names []string, values *[]interface{}, mi *models.ModelInfo, a *alias, args ...string) (string, error) {
client/orm/db.go:1014: Function 'DeleteBatch' has too many statements (52 > 40) (funlen)
func (d *dbBase) DeleteBatch(ctx context.Context, q dbQuerier, qs *querySet, mi *models.ModelInfo, cond *Condition, tz *time.Location) (int64, error) {
client/orm/db.go:1095: Function 'ReadBatch' has too many statements (90 > 40) (funlen)
func (d *dbBase) ReadBatch(ctx context.Context, q dbQuerier, qs querySet, mi *models.ModelInfo, cond *Condition, container interface{}, tz *time.Location, cols []string) (int64, error) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 549.5 ± 7.1 541.8 561.1 1.06 ± 0.02
v1.62.2 520.2 ± 7.8 506.4 531.1 1.00

cilium/cilium

local
api/v1/server/configure_cilium_api.go:36:6: Function 'configureAPI' has too many statements (88 > 40) (funlen)
func configureAPI(api *restapi.CiliumAPIAPI) http.Handler {
     ^
cilium-cli/connectivity/builder/builder.go:196:6: Function 'concurrentTests' is too long (88 > 60) (funlen)
func concurrentTests(connTests []*check.ConnectivityTest) error {
     ^
cilium-cli/connectivity/perf/benchmarks/netperf/perfpod.go:40:19: Function 'Run' is too long (70 > 60) (funlen)
func (s *netPerf) Run(ctx context.Context, t *check.Test) {
                  ^
cilium-cli/multicast/multicast.go:163:21: Function 'ListGroups' is too long (66 > 60) (funlen)
func (m *Multicast) ListGroups() error {
                    ^
cilium-cli/multicast/multicast.go:314:21: Function 'ListSubscribers' has too many statements (43 > 40) (funlen)
func (m *Multicast) ListSubscribers() error {
                    ^
cilium-cli/multicast/multicast.go:437:21: Function 'AddAllNodes' has too many statements (60 > 40) (funlen)
func (m *Multicast) AddAllNodes() error {
                    ^
cilium-health/launch/endpoint.go:222:6: Function 'LaunchAsEndpoint' has too many statements (66 > 40) (funlen)
func LaunchAsEndpoint(baseCtx context.Context,
     ^
clustermesh-apiserver/etcdinit/root.go:69:6: Function 'InitEtcdLocal' has too many statements (72 > 40) (funlen)
func InitEtcdLocal() (returnErr error) {
     ^
hubble/cmd/common/config/flags.go:54:6: Function 'initServerFlags' is too long (75 > 60) (funlen)
func initServerFlags() {
     ^
hubble/cmd/record/record.go:157:6: Function 'runRecord' is too long (62 > 60) (funlen)
func runRecord(ctx context.Context, conn *grpc.ClientConn, filters []*recorderpb.Filter) error {
     ^
hubble-relay/cmd/serve/serve.go:57:6: Function 'New' is too long (129 > 60) (funlen)
func New(vp *viper.Viper) *cobra.Command {
     ^
hubble-relay/cmd/serve/serve.go:189:6: Function 'runServe' is too long (97 > 60) (funlen)
func runServe(vp *viper.Viper) error {
     ^
operator/option/config.go:395:26: Function 'Populate' has too many statements (57 > 40) (funlen)
func (c *OperatorConfig) Populate(vp *viper.Viper) {
                         ^
pkg/alibabacloud/api/api.go:453:18: Function 'describeNetworkInterfacesFromInstances' has too many statements (43 > 40) (funlen)
func (c *Client) describeNetworkInterfacesFromInstances(ctx context.Context) ([]ecs.NetworkInterfaceSet, error) {
                 ^
pkg/azure/api/api.go:398:18: Function 'AssignPrivateIpAddressesVMSS' is too long (62 > 60) (funlen)
func (c *Client) AssignPrivateIpAddressesVMSS(ctx context.Context, instanceID, vmssName, subnetID, interfaceName string, addresses int) error {
                 ^
pkg/bgpv1/metrics/metrics.go:78:21: Function 'Collect' is too long (64 > 60) (funlen)
func (c *collector) Collect(ch chan<- prometheus.Metric) {
                    ^
pkg/datapath/connector/netkit.go:51:6: Function 'SetupNetkitWithNames' has too many statements (56 > 40) (funlen)
func SetupNetkitWithNames(lxcIfName, peerIfName string, mtu, groIPv6MaxSize, gsoIPv6MaxSize, groIPv4MaxSize, gsoIPv4MaxSize int, l2Mode bool, ep *models.EndpointChangeRequest, sysctl sysctl.Sysctl) (*netlink.Netkit, netlink.Link, error) {
     ^
pkg/datapath/connector/veth.go:53:6: Function 'SetupVethWithNames' has too many statements (54 > 40) (funlen)
func SetupVethWithNames(lxcIfName, peerIfName string, mtu, groIPv6MaxSize, gsoIPv6MaxSize, groIPv4MaxSize, gsoIPv4MaxSize int, ep *models.EndpointChangeRequest, sysctl sysctl.Sysctl) (*netlink.Veth, netlink.Link, error) {
     ^
pkg/datapath/linux/bigtcp/bigtcp.go:235:6: Function 'startBIGTCP' has too many statements (80 > 40) (funlen)
func startBIGTCP(p params, cfg *Configuration) error {
     ^
pkg/datapath/linux/ipsec/ipsec_linux.go:1000:6: Function 'LoadIPSecKeys' is too long (98 > 60) (funlen)
func LoadIPSecKeys(log *slog.Logger, r io.Reader) (int, uint8, error) {
     ^
pkg/datapath/orchestrator/localnodeconfig.go:36:6: Function 'newLocalNodeConfig' is too long (69 > 60) (funlen)
func newLocalNodeConfig(
     ^
pkg/datapath/orchestrator/orchestrator.go:147:24: Function 'reconciler' is too long (85 > 60) (funlen)
func (o *orchestrator) reconciler(ctx context.Context, health cell.Health) error {
                       ^
pkg/ebpf/map.go:102:15: Function 'OpenOrCreate' is too long (69 > 60) (funlen)
func (m *Map) OpenOrCreate() error {
              ^
pkg/hubble/parser/common/endpoint.go:52:28: Function 'ResolveEndpoint' is too long (93 > 60) (funlen)
func (r *EndpointResolver) ResolveEndpoint(ip netip.Addr, datapathSecurityIdentity uint32, context DatapathContext) *pb.Endpoint {
                           ^
pkg/hubble/recorder/service.go:112:19: Function 'Record' is too long (80 > 60) (funlen)
func (s *Service) Record(stream recorderpb.Recorder_RecordServer) error {
                  ^
pkg/hubble/recorder/service.go:288:19: Function 'startRecording' has too many statements (43 > 40) (funlen)
func (s *Service) startRecording(
                  ^
pkg/hubble/recorder/sink/sink.go:35:6: Function 'startSink' is too long (72 > 60) (funlen)
func startSink(ctx context.Context, p PcapSink, queueSize int) *sink {
     ^
pkg/ipam/metrics/metrics.go:47:6: Function 'NewPrometheusMetrics' is too long (148 > 60) (funlen)
func NewPrometheusMetrics(namespace string, registry metrics.RegisterGatherer) *prometheusMetrics {
     ^
pkg/k8s/apis/cilium.io/client/register.go:112:6: Function 'CustomResourceDefinitionList' is too long (94 > 60) (funlen)
func CustomResourceDefinitionList() map[string]*CRDList {
     ^
pkg/k8s/apis/cilium.io/client/register.go:302:6: Function 'GetPregeneratedCRD' has too many statements (56 > 40) (funlen)
func GetPregeneratedCRD(crdName string) apiextensionsv1.CustomResourceDefinition {
     ^
pkg/k8s/informer/informer.go:80:6: Function 'NewInformerWithStore' is too long (62 > 60) (funlen)
func NewInformerWithStore(
     ^
pkg/k8s/resource/resource.go:450:23: Function 'Events' has too many statements (41 > 40) (funlen)
func (r *resource[T]) Events(ctx context.Context, opts ...EventsOpt) <-chan Event[T] {
                      ^
pkg/k8s/resource/resource.go:595:25: Function 'processLoop' is too long (72 > 60) (funlen)
func (s *subscriber[T]) processLoop(ctx context.Context, out chan Event[T], store Store[T]) {
                        ^
pkg/k8s/resource/resource.go:825:23: Function 'newInformer' is too long (72 > 60) (funlen)
func (r *resource[T]) newInformer() (cache.Indexer, cache.Controller) {
                      ^
pkg/k8s/resource/example/main.go:150:26: Function 'processLoop' is too long (73 > 60) (funlen)
func (ps *PrintServices) processLoop(ctx context.Context) error {
                         ^
pkg/kvstore/etcdinit/init.go:36:6: Function 'ClusterMeshEtcdInit' has too many statements (75 > 40) (funlen)
func ClusterMeshEtcdInit(ctx context.Context, log *logrus.Entry, client *clientv3.Client, ciliumClusterName string) error {
     ^
pkg/loadbalancer/experimental/benchmark/benchmark.go:54:6: Function 'RunBenchmark' has too many statements (73 > 40) (funlen)
func RunBenchmark(testSize int, iterations int, loglevel slog.Level, validate bool) {
     ^
pkg/loadbalancer/experimental/benchmark/benchmark.go:301:6: Function 'ServicesAndSlices' has too many statements (44 > 40) (funlen)
func ServicesAndSlices(testSize int) (svcs []*slim_corev1.Service, epSlices []*k8s.Endpoints) {
     ^
pkg/loadbalancer/experimental/benchmark/benchmark.go:382:6: Function 'checkTables' is too long (109 > 60) (funlen)
func checkTables(db *statedb.DB, writer *experimental.Writer, svcs []*slim_corev1.Service, epSlices []*k8s.Endpoints) error {
     ^
pkg/loadbalancer/experimental/benchmark/benchmark.go:505:6: Function 'testHive' is too long (95 > 60) (funlen)
func testHive(maps experimental.LBMaps,
     ^
pkg/maps/ctmap/gc/gc.go:110:15: Function 'Enable' has too many statements (45 > 40) (funlen)
func (gc *GC) Enable() {
              ^
pkg/maps/ctmap/gc/gc.go:281:15: Function 'runGC' is too long (75 > 60) (funlen)
func (gc *GC) runGC(e *endpoint.Endpoint, ipv4, ipv6, triggeredBySignal bool, filter ctmap.GCFilter) (maxDeleteRatio float64, success bool) {
              ^
pkg/nodediscovery/nodediscovery.go:338:25: Function 'mutateNodeResource' has too many statements (126 > 40) (funlen)
func (n *NodeDiscovery) mutateNodeResource(nodeResource *ciliumv2.CiliumNode, ln *node.LocalNode) error {
                        ^
plugins/cilium-cni/chaining/generic-veth/generic-veth.go:31:30: Function 'Add' has too many statements (59 > 40) (funlen)
func (f *GenericVethChainer) Add(ctx context.Context, pluginCtx chainingapi.PluginContext, cli *client.Client) (res *cniTypesVer.Result, err error) {
                             ^
plugins/cilium-cni/cmd/cmd.go:462:17: Function 'Add' has too many statements (143 > 40) (funlen)
func (cmd *Cmd) Add(args *skel.CmdArgs) (err error) {
                ^
plugins/cilium-cni/cmd/cmd.go:763:17: Function 'Del' is too long (71 > 60) (funlen)
func (cmd *Cmd) Del(args *skel.CmdArgs) error {
                ^
plugins/cilium-cni/cmd/cmd.go:860:17: Function 'Check' is too long (84 > 60) (funlen)
func (cmd *Cmd) Check(args *skel.CmdArgs) error {
                ^
plugins/cilium-docker/driver/driver.go:81:6: Function 'NewDriver' is too long (68 > 60) (funlen)
func NewDriver(ciliumSockPath, dockerHostPath string) (Driver, error) {
     ^
plugins/cilium-docker/driver/driver.go:359:23: Function 'createEndpoint' is too long (71 > 60) (funlen)
func (driver *driver) createEndpoint(w http.ResponseWriter, r *http.Request) {
                      ^
test/config/config.go:58:32: Function 'ParseFlags' is too long (63 > 60) (funlen)
func (c *CiliumTestConfigType) ParseFlags() {
                               ^
v1.62.2
pkg/proxy/proxyports/proxyports_test.go:25: Function 'TestPortAllocator' has too many statements (134 > 40) (funlen)
func TestPortAllocator(t *testing.T) {
pkg/ipalloc/ipalloc.go:267: Function 'take' is too long (86 > 60) (funlen)
func (abl *availableBlockList) take(ip netip.Addr) error {
pkg/ipalloc/ipalloc.go:357: Function 'put' is too long (96 > 60) (funlen)
func (abl *availableBlockList) put(ip netip.Addr) error {
pkg/ipalloc/ipalloc_test.go:17: Function 'TestBlockList_Take' has too many statements (64 > 40) (funlen)
func TestBlockList_Take(t *testing.T) {
pkg/k8s/synced/crd.go:125: Function 'SyncCRDs' is too long (94 > 60) (funlen)
func SyncCRDs(ctx context.Context, clientset client.Clientset, crdNames []string, rs *Resources, ag *APIGroups) error {
pkg/k8s/synced/resources_test.go:35: Function 'TestWaitForCacheSyncWithTimeout' is too long (97 > 60) (funlen)
func TestWaitForCacheSyncWithTimeout(t *testing.T) {
pkg/policy/cell/policy_importer.go:120: Function 'updatePrefixes' has too many statements (42 > 40) (funlen)
func (i *policyImporter) updatePrefixes(ctx context.Context, updates []*policytypes.PolicyUpdate) (toPrune map[ipcachetypes.ResourceID][]netip.Prefix) {
pkg/policy/cell/policy_importer.go:263: Function 'processUpdates' is too long (138 > 60) (funlen)
func (i *policyImporter) processUpdates(ctx context.Context, updates []*policytypes.PolicyUpdate) error {
pkg/policy/cell/policy_importer_test.go:71: Function 'TestAddReplaceRemoveRule' is too long (130 > 60) (funlen)
func TestAddReplaceRemoveRule(t *testing.T) {
pkg/policy/cell/policy_importer_test.go:206: Function 'TestAddCiliumNetworkPolicyByLabels' is too long (323 > 60) (funlen)
func TestAddCiliumNetworkPolicyByLabels(t *testing.T) {
pkg/bgpv1/test/fixtures.go:129: Function 'newFixture' is too long (64 > 60) (funlen)
func newFixture(conf fixtureConfig) *fixture {
pkg/bgpv1/test/gobgp.go:175: Function 'startGoBGP' is too long (63 > 60) (funlen)
func startGoBGP(ctx context.Context, conf gobgpConfig) (g *goBGP, err error) {
pkg/bgpv1/test/adverts_test.go:36: Function 'Test_PodCIDRAdvert' is too long (144 > 60) (funlen)
func Test_PodCIDRAdvert(t *testing.T) {
pkg/bgpv1/test/adverts_test.go:184: Function 'Test_PodIPPoolAdvert' is too long (318 > 60) (funlen)
func Test_PodIPPoolAdvert(t *testing.T) {
pkg/bgpv1/test/adverts_test.go:506: Function 'Test_LBEgressAdvertisementWithLoadBalancerIP' is too long (221 > 60) (funlen)
func Test_LBEgressAdvertisementWithLoadBalancerIP(t *testing.T) {
pkg/bgpv1/test/adverts_test.go:731: Function 'Test_LBEgressAdvertisementWithClusterIP' is too long (193 > 60) (funlen)
func Test_LBEgressAdvertisementWithClusterIP(t *testing.T) {
pkg/bgpv1/test/adverts_test.go:928: Function 'Test_LBEgressAdvertisementWithExternalIP' is too long (193 > 60) (funlen)
func Test_LBEgressAdvertisementWithExternalIP(t *testing.T) {
pkg/bgpv1/test/adverts_test.go:1125: Function 'Test_AdvertisedPathAttributes' is too long (223 > 60) (funlen)
func Test_AdvertisedPathAttributes(t *testing.T) {
pkg/bgpv1/test/neighbor_test.go:42: Function 'Test_NeighborAddDel' is too long (142 > 60) (funlen)
func Test_NeighborAddDel(t *testing.T) {
pkg/bgpv1/test/neighbor_test.go:188: Function 'Test_NeighborGracefulRestart' is too long (135 > 60) (funlen)
func Test_NeighborGracefulRestart(t *testing.T) {
pkg/fqdn/cache.go:973: Function 'GC' is too long (84 > 60) (funlen)
func (zombies *DNSZombieMappings) GC() (alive, dead []*DNSZombieMapping) {
pkg/fqdn/name_manager.go:109: Function 'GetDNSHistoryModel' is too long (66 > 60) (funlen)
func (n *NameManager) GetDNSHistoryModel(endpointID string, prefixMatcher PrefixMatcherFunc, nameMatcher NameMatcherFunc, source string) (lookups []*models.DNSLookup, err error) {
pkg/fqdn/name_manager_gc.go:67: Function 'GC' is too long (101 > 60) (funlen)
func (n *NameManager) GC(ctx context.Context) error {
pkg/fqdn/name_manager_gc.go:224: Function 'RestoreCache' is too long (94 > 60) (funlen)
func (n *NameManager) RestoreCache(preCachePath string, restoredEPs []EndpointDNSInfo) {
pkg/fqdn/cache_test.go:81: Function 'TestDelete' has too many statements (45 > 40) (funlen)
func TestDelete(t *testing.T) {
pkg/fqdn/cache_test.go:167: Function 'TestReverseUpdateLookup' is too long (64 > 60) (funlen)
func TestReverseUpdateLookup(t *testing.T) {
pkg/fqdn/cache_test.go:655: Function 'TestZombiesGC' has too many statements (48 > 40) (funlen)
func TestZombiesGC(t *testing.T) {
pkg/fqdn/cache_test.go:872: Function 'TestZombiesForceExpire' has too many statements (41 > 40) (funlen)
func TestZombiesForceExpire(t *testing.T) {
pkg/fqdn/cache_test.go:991: Function 'TestZombiesDumpAlive' has too many statements (42 > 40) (funlen)
func TestZombiesDumpAlive(t *testing.T) {
pkg/fqdn/cache_test.go:1066: Function 'TestOverlimitPreferNewerEntries' is too long (77 > 60) (funlen)
func TestOverlimitPreferNewerEntries(t *testing.T) {
pkg/fqdn/cache_test.go:1152: Function 'TestPerHostLimitBehaviourForS3' has too many statements (48 > 40) (funlen)
func TestPerHostLimitBehaviourForS3(t *testing.T) {
pkg/fqdn/cache_test.go:1303: Function 'Test_sortZombieMappingSlice' is too long (115 > 60) (funlen)
func Test_sortZombieMappingSlice(t *testing.T) {
pkg/ipam/metrics/metrics.go:47: Function 'NewPrometheusMetrics' is too long (156 > 60) (funlen)
func NewPrometheusMetrics(namespace string, registry metrics.RegisterGatherer) *prometheusMetrics {
pkg/hubble/relay/observer/observer.go:152: Function 'aggregateErrors' is too long (68 > 60) (funlen)
func aggregateErrors(
pkg/hubble/relay/observer/server.go:62: Function 'GetFlows' is too long (62 > 60) (funlen)
func (s *Server) GetFlows(req *observerpb.GetFlowsRequest, stream observerpb.Observer_GetFlowsServer) error {
pkg/hubble/relay/observer/server.go:241: Function 'ServerStatus' is too long (85 > 60) (funlen)
func (s *Server) ServerStatus(ctx context.Context, req *observerpb.ServerStatusRequest) (*observerpb.ServerStatusResponse, error) {
pkg/hubble/relay/observer/server_test.go:36: Function 'TestGetFlows' is too long (306 > 60) (funlen)
func TestGetFlows(t *testing.T) {
pkg/hubble/relay/observer/server_test.go:346: Function 'TestGetFlows_follow' is too long (137 > 60) (funlen)
func TestGetFlows_follow(t *testing.T) {
pkg/hubble/relay/observer/server_test.go:486: Function 'TestGetNodes' is too long (473 > 60) (funlen)
func TestGetNodes(t *testing.T) {
pkg/hubble/relay/observer/server_test.go:962: Function 'TestGetNamespaces' is too long (200 > 60) (funlen)
func TestGetNamespaces(t *testing.T) {
pkg/hubble/relay/observer/server_test.go:1165: Function 'TestServerStatus' is too long (280 > 60) (funlen)
func TestServerStatus(t *testing.T) {
operator/pkg/gateway-api/gateway_reconcile.go:41: Function 'Reconcile' has too many statements (87 > 40) (funlen)
func (r *gatewayReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
operator/pkg/gateway-api/gateway_reconcile.go:412: Function 'setListenerStatus' has too many statements (53 > 40) (funlen)
func (r *gatewayReconciler) setListenerStatus(ctx context.Context, gw *gatewayv1.Gateway, httpRoutes *gatewayv1.HTTPRouteList, tlsRoutes *gatewayv1alpha2.TLSRouteList) error {
operator/pkg/gateway-api/grpcroute_reconcile.go:32: Function 'Reconcile' is too long (89 > 60) (funlen)
func (r *grpcRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
operator/pkg/gateway-api/httproute.go:48: Function 'SetupWithManager' is too long (98 > 60) (funlen)
func (r *httpRouteReconciler) SetupWithManager(mgr ctrl.Manager) error {
operator/pkg/gateway-api/httproute_gamma.go:47: Function 'SetupWithManager' is too long (80 > 60) (funlen)
func (r *gammaHttpRouteReconciler) SetupWithManager(mgr ctrl.Manager) error {
operator/pkg/gateway-api/httproute_gamma_reconcile.go:33: Function 'Reconcile' has too many statements (50 > 40) (funlen)
func (r *gammaHttpRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
operator/pkg/gateway-api/httproute_reconcile.go:28: Function 'Reconcile' is too long (95 > 60) (funlen)
func (r *httpRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
operator/pkg/gateway-api/tlsroute.go:45: Function 'SetupWithManager' is too long (97 > 60) (funlen)
func (r *tlsRouteReconciler) SetupWithManager(mgr ctrl.Manager) error {
operator/pkg/gateway-api/tlsroute_reconcile.go:29: Function 'Reconcile' is too long (97 > 60) (funlen)
func (r *tlsRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
Command Mean [s] Min [s] Max [s] Relative
local 3.779 ± 0.044 3.731 3.865 1.00 ± 0.03
v1.62.2 3.762 ± 0.087 3.698 3.998 1.00

spf13/cobra

local
bash_completions.go:36:6: Function 'writePreamble' is too long (365 > 60) (funlen)
func writePreamble(buf io.StringWriter, name string) {
     ^
bash_completionsV2.go:31:6: Function 'genBashComp' is too long (347 > 60) (funlen)
func genBashComp(buf io.StringWriter, name string, includeDesc bool) {
     ^
command.go:877:19: Function 'execute' has too many statements (64 > 40) (funlen)
func (c *Command) execute(a []string) (err error) {
                  ^
command.go:1055:19: Function 'ExecuteC' is too long (67 > 60) (funlen)
func (c *Command) ExecuteC() (cmd *Command, err error) {
                  ^
completions.go:273:19: Function 'getCompletions' has too many statements (63 > 40) (funlen)
func (c *Command) getCompletions(args []string) (*Command, []string, ShellCompDirective, error) {
                  ^
completions.go:691:19: Function 'InitDefaultCompletionCmd' is too long (154 > 60) (funlen)
func (c *Command) InitDefaultCompletionCmd() {
                  ^
fish_completions.go:25:6: Function 'genFishComp' is too long (246 > 60) (funlen)
func genFishComp(buf io.StringWriter, name string, includeDesc bool) {
     ^
powershell_completions.go:28:6: Function 'genPowerShellComp' is too long (281 > 60) (funlen)
func genPowerShellComp(buf io.StringWriter, name string, includeDesc bool) {
     ^
zsh_completions.go:87:6: Function 'genZshComp' is too long (220 > 60) (funlen)
func genZshComp(buf io.StringWriter, name string, includeDesc bool) {
     ^
active_help_test.go:84:6: Function 'TestActiveHelpWithComps' is too long (79 > 60) (funlen)
func TestActiveHelpWithComps(t *testing.T) {
     ^
active_help_test.go:319:6: Function 'TestDisableActiveHelp' is too long (68 > 60) (funlen)
func TestDisableActiveHelp(t *testing.T) {
     ^
bash_completions_test.go:83:6: Function 'TestBashCompletions' has too many statements (65 > 40) (funlen)
func TestBashCompletions(t *testing.T) {
     ^
cobra_test.go:44:6: Function 'TestLevenshteinDistance' is too long (67 > 60) (funlen)
func TestLevenshteinDistance(t *testing.T) {
     ^
command_test.go:643:6: Function 'TestStripFlags' is too long (70 > 60) (funlen)
func TestStripFlags(t *testing.T) {
     ^
command_test.go:1396:6: Function 'TestCaseInsensitive' is too long (90 > 60) (funlen)
func TestCaseInsensitive(t *testing.T) {
     ^
command_test.go:1637:6: Function 'testPersistentHooks' is too long (66 > 60) (funlen)
func testPersistentHooks(t *testing.T, expectedHookRunOrder []string) {
     ^
command_test.go:2711:6: Function 'TestFind' is too long (86 > 60) (funlen)
func TestFind(t *testing.T) {
     ^
completions_test.go:55:6: Function 'TestCmdNameCompletionInGo' is too long (91 > 60) (funlen)
func TestCmdNameCompletionInGo(t *testing.T) {
     ^
completions_test.go:157:6: Function 'TestNoCmdNameCompletionInGo' has too many statements (67 > 40) (funlen)
func TestNoCmdNameCompletionInGo(t *testing.T) {
     ^
completions_test.go:426:6: Function 'TestValidArgsFuncAndCmdCompletionInGo' is too long (61 > 60) (funlen)
func TestValidArgsFuncAndCmdCompletionInGo(t *testing.T) {
     ^
completions_test.go:493:6: Function 'TestFlagNameCompletionInGo' is too long (83 > 60) (funlen)
func TestFlagNameCompletionInGo(t *testing.T) {
     ^
completions_test.go:583:6: Function 'TestFlagNameCompletionInGoWithDesc' is too long (84 > 60) (funlen)
func TestFlagNameCompletionInGoWithDesc(t *testing.T) {
     ^
completions_test.go:674:6: Function 'TestFlagNameCompletionRepeat' has too many statements (53 > 40) (funlen)
func TestFlagNameCompletionRepeat(t *testing.T) {
     ^
completions_test.go:811:6: Function 'TestRequiredFlagNameCompletionInGo' has too many statements (71 > 40) (funlen)
func TestRequiredFlagNameCompletionInGo(t *testing.T) {
     ^
completions_test.go:1005:6: Function 'TestFlagFileExtFilterCompletionInGo' has too many statements (51 > 40) (funlen)
func TestFlagFileExtFilterCompletionInGo(t *testing.T) {
     ^
completions_test.go:1127:6: Function 'TestFlagDirFilterCompletionInGo' has too many statements (49 > 40) (funlen)
func TestFlagDirFilterCompletionInGo(t *testing.T) {
     ^
completions_test.go:1351:6: Function 'TestValidArgsFuncChildCmds' is too long (96 > 60) (funlen)
func TestValidArgsFuncChildCmds(t *testing.T) {
     ^
completions_test.go:1591:6: Function 'TestFlagCompletionInGo' is too long (86 > 60) (funlen)
func TestFlagCompletionInGo(t *testing.T) {
     ^
completions_test.go:1684:6: Function 'TestValidArgsFuncChildCmdsWithDesc' is too long (96 > 60) (funlen)
func TestValidArgsFuncChildCmdsWithDesc(t *testing.T) {
     ^
completions_test.go:1788:6: Function 'TestFlagCompletionWithNotInterspersedArgs' has too many statements (84 > 40) (funlen)
func TestFlagCompletionWithNotInterspersedArgs(t *testing.T) {
     ^
completions_test.go:2088:6: Function 'TestFlagCompletionConcurrentRegistration' is too long (61 > 60) (funlen)
func TestFlagCompletionConcurrentRegistration(t *testing.T) {
     ^
completions_test.go:2154:6: Function 'TestFlagCompletionInGoWithDesc' is too long (86 > 60) (funlen)
func TestFlagCompletionInGoWithDesc(t *testing.T) {
     ^
completions_test.go:2348:6: Function 'TestCompleteHelp' is too long (63 > 60) (funlen)
func TestCompleteHelp(t *testing.T) {
     ^
completions_test.go:2428:6: Function 'TestDefaultCompletionCmd' has too many statements (72 > 40) (funlen)
func TestDefaultCompletionCmd(t *testing.T) {
     ^
completions_test.go:2614:6: Function 'TestMultipleShorthandFlagCompletion' is too long (85 > 60) (funlen)
func TestMultipleShorthandFlagCompletion(t *testing.T) {
     ^
completions_test.go:2842:6: Function 'TestCompletionForGroupedFlags' is too long (95 > 60) (funlen)
func TestCompletionForGroupedFlags(t *testing.T) {
     ^
completions_test.go:2942:6: Function 'TestCompletionForOneRequiredGroupFlags' is too long (93 > 60) (funlen)
func TestCompletionForOneRequiredGroupFlags(t *testing.T) {
     ^
completions_test.go:3040:6: Function 'TestCompletionForMutuallyExclusiveFlags' is too long (88 > 60) (funlen)
func TestCompletionForMutuallyExclusiveFlags(t *testing.T) {
     ^
completions_test.go:3134:6: Function 'TestCompletionCobraFlags' is too long (227 > 60) (funlen)
func TestCompletionCobraFlags(t *testing.T) {
     ^
completions_test.go:3432:6: Function 'TestGetFlagCompletion' is too long (87 > 60) (funlen)
func TestGetFlagCompletion(t *testing.T) {
     ^
completions_test.go:3522:6: Function 'TestGetEnvConfig' is too long (81 > 60) (funlen)
func TestGetEnvConfig(t *testing.T) {
     ^
completions_test.go:3607:6: Function 'TestDisableDescriptions' is too long (102 > 60) (funlen)
func TestDisableDescriptions(t *testing.T) {
     ^
flag_groups_test.go:22:6: Function 'TestValidateFlagGroups' is too long (170 > 60) (funlen)
func TestValidateFlagGroups(t *testing.T) {
     ^
doc/rest_docs.go:62:6: Function 'GenReSTCustom' has too many statements (46 > 40) (funlen)
func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error {
     ^
v1.62.2
doc/rest_docs.go:62: Function 'GenReSTCustom' has too many statements (46 > 40) (funlen)
func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error {
bash_completions.go:36: Function 'writePreamble' is too long (365 > 60) (funlen)
func writePreamble(buf io.StringWriter, name string) {
bash_completionsV2.go:31: Function 'genBashComp' is too long (347 > 60) (funlen)
func genBashComp(buf io.StringWriter, name string, includeDesc bool) {
command.go:877: Function 'execute' has too many statements (64 > 40) (funlen)
func (c *Command) execute(a []string) (err error) {
command.go:1055: Function 'ExecuteC' is too long (84 > 60) (funlen)
func (c *Command) ExecuteC() (cmd *Command, err error) {
completions.go:196: Function 'initCompleteCmd' is too long (74 > 60) (funlen)
func (c *Command) initCompleteCmd(args []string) {
completions.go:273: Function 'getCompletions' has too many statements (63 > 40) (funlen)
func (c *Command) getCompletions(args []string) (*Command, []string, ShellCompDirective, error) {
completions.go:600: Function 'checkIfFlagCompletion' is too long (83 > 60) (funlen)
func checkIfFlagCompletion(finalCmd *Command, args []string, lastArg string) (*pflag.Flag, []string, string, error) {
completions.go:691: Function 'InitDefaultCompletionCmd' is too long (155 > 60) (funlen)
func (c *Command) InitDefaultCompletionCmd() {
fish_completions.go:25: Function 'genFishComp' is too long (247 > 60) (funlen)
func genFishComp(buf io.StringWriter, name string, includeDesc bool) {
flag_groups.go:225: Function 'enforceFlagGroupsForCompletion' is too long (64 > 60) (funlen)
func (c *Command) enforceFlagGroupsForCompletion() {
powershell_completions.go:28: Function 'genPowerShellComp' is too long (282 > 60) (funlen)
func genPowerShellComp(buf io.StringWriter, name string, includeDesc bool) {
zsh_completions.go:87: Function 'genZshComp' is too long (220 > 60) (funlen)
func genZshComp(buf io.StringWriter, name string, includeDesc bool) {
active_help_test.go:84: Function 'TestActiveHelpWithComps' is too long (82 > 60) (funlen)
func TestActiveHelpWithComps(t *testing.T) {
active_help_test.go:319: Function 'TestDisableActiveHelp' is too long (80 > 60) (funlen)
func TestDisableActiveHelp(t *testing.T) {
bash_completions_test.go:83: Function 'TestBashCompletions' has too many statements (65 > 40) (funlen)
func TestBashCompletions(t *testing.T) {
cobra_test.go:44: Function 'TestLevenshteinDistance' is too long (69 > 60) (funlen)
func TestLevenshteinDistance(t *testing.T) {
cobra_test.go:116: Function 'TestStringInSlice' is too long (61 > 60) (funlen)
func TestStringInSlice(t *testing.T) {
command_test.go:643: Function 'TestStripFlags' is too long (70 > 60) (funlen)
func TestStripFlags(t *testing.T) {
command_test.go:1396: Function 'TestCaseInsensitive' is too long (90 > 60) (funlen)
func TestCaseInsensitive(t *testing.T) {
command_test.go:1637: Function 'testPersistentHooks' is too long (66 > 60) (funlen)
func testPersistentHooks(t *testing.T, expectedHookRunOrder []string) {
command_test.go:2711: Function 'TestFind' is too long (86 > 60) (funlen)
func TestFind(t *testing.T) {
completions_test.go:55: Function 'TestCmdNameCompletionInGo' is too long (99 > 60) (funlen)
func TestCmdNameCompletionInGo(t *testing.T) {
completions_test.go:157: Function 'TestNoCmdNameCompletionInGo' has too many statements (67 > 40) (funlen)
func TestNoCmdNameCompletionInGo(t *testing.T) {
completions_test.go:426: Function 'TestValidArgsFuncAndCmdCompletionInGo' is too long (64 > 60) (funlen)
func TestValidArgsFuncAndCmdCompletionInGo(t *testing.T) {
completions_test.go:493: Function 'TestFlagNameCompletionInGo' is too long (87 > 60) (funlen)
func TestFlagNameCompletionInGo(t *testing.T) {
completions_test.go:583: Function 'TestFlagNameCompletionInGoWithDesc' is too long (88 > 60) (funlen)
func TestFlagNameCompletionInGoWithDesc(t *testing.T) {
completions_test.go:674: Function 'TestFlagNameCompletionRepeat' has too many statements (53 > 40) (funlen)
func TestFlagNameCompletionRepeat(t *testing.T) {
completions_test.go:811: Function 'TestRequiredFlagNameCompletionInGo' has too many statements (71 > 40) (funlen)
func TestRequiredFlagNameCompletionInGo(t *testing.T) {
completions_test.go:1005: Function 'TestFlagFileExtFilterCompletionInGo' has too many statements (51 > 40) (funlen)
func TestFlagFileExtFilterCompletionInGo(t *testing.T) {
completions_test.go:1127: Function 'TestFlagDirFilterCompletionInGo' has too many statements (49 > 40) (funlen)
func TestFlagDirFilterCompletionInGo(t *testing.T) {
completions_test.go:1351: Function 'TestValidArgsFuncChildCmds' is too long (101 > 60) (funlen)
func TestValidArgsFuncChildCmds(t *testing.T) {
completions_test.go:1591: Function 'TestFlagCompletionInGo' is too long (90 > 60) (funlen)
func TestFlagCompletionInGo(t *testing.T) {
completions_test.go:1684: Function 'TestValidArgsFuncChildCmdsWithDesc' is too long (101 > 60) (funlen)
func TestValidArgsFuncChildCmdsWithDesc(t *testing.T) {
completions_test.go:1788: Function 'TestFlagCompletionWithNotInterspersedArgs' has too many statements (84 > 40) (funlen)
func TestFlagCompletionWithNotInterspersedArgs(t *testing.T) {
completions_test.go:2088: Function 'TestFlagCompletionConcurrentRegistration' is too long (63 > 60) (funlen)
func TestFlagCompletionConcurrentRegistration(t *testing.T) {
completions_test.go:2154: Function 'TestFlagCompletionInGoWithDesc' is too long (90 > 60) (funlen)
func TestFlagCompletionInGoWithDesc(t *testing.T) {
completions_test.go:2348: Function 'TestCompleteHelp' is too long (67 > 60) (funlen)
func TestCompleteHelp(t *testing.T) {
completions_test.go:2428: Function 'TestDefaultCompletionCmd' has too many statements (72 > 40) (funlen)
func TestDefaultCompletionCmd(t *testing.T) {
completions_test.go:2614: Function 'TestMultipleShorthandFlagCompletion' is too long (90 > 60) (funlen)
func TestMultipleShorthandFlagCompletion(t *testing.T) {
completions_test.go:2842: Function 'TestCompletionForGroupedFlags' is too long (97 > 60) (funlen)
func TestCompletionForGroupedFlags(t *testing.T) {
completions_test.go:2942: Function 'TestCompletionForOneRequiredGroupFlags' is too long (95 > 60) (funlen)
func TestCompletionForOneRequiredGroupFlags(t *testing.T) {
completions_test.go:3040: Function 'TestCompletionForMutuallyExclusiveFlags' is too long (91 > 60) (funlen)
func TestCompletionForMutuallyExclusiveFlags(t *testing.T) {
completions_test.go:3134: Function 'TestCompletionCobraFlags' is too long (231 > 60) (funlen)
func TestCompletionCobraFlags(t *testing.T) {
completions_test.go:3368: Function 'TestArgsNotDetectedAsFlagsCompletionInGo' is too long (61 > 60) (funlen)
func TestArgsNotDetectedAsFlagsCompletionInGo(t *testing.T) {
completions_test.go:3432: Function 'TestGetFlagCompletion' is too long (87 > 60) (funlen)
func TestGetFlagCompletion(t *testing.T) {
completions_test.go:3522: Function 'TestGetEnvConfig' is too long (82 > 60) (funlen)
func TestGetEnvConfig(t *testing.T) {
completions_test.go:3607: Function 'TestDisableDescriptions' is too long (103 > 60) (funlen)
func TestDisableDescriptions(t *testing.T) {
flag_groups_test.go:22: Function 'TestValidateFlagGroups' is too long (172 > 60) (funlen)
func TestValidateFlagGroups(t *testing.T) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 264.5 ± 2.3 262.0 269.8 1.12 ± 0.04
v1.62.2 235.5 ± 8.1 226.7 251.1 1.00

hashicorp/consul

local
agent/grpc-external/services/resource/delete.go:31:18: Function 'Delete' is too long (69 > 60) (funlen)
func (s *Server) Delete(ctx context.Context, req *pbresource.DeleteRequest) (*pbresource.DeleteResponse, error) {
                 ^
agent/grpc-external/services/resource/watch.go:18:18: Function 'WatchList' has too many statements (53 > 40) (funlen)
func (s *Server) WatchList(req *pbresource.WatchListRequest, stream pbresource.ResourceService_WatchListServer) error {
                 ^
agent/grpc-external/services/resource/write.go:37:18: Function 'Write' is too long (92 > 60) (funlen)
func (s *Server) Write(ctx context.Context, req *pbresource.WriteRequest) (*pbresource.WriteResponse, error) {
                 ^
agent/grpc-external/services/resource/write_status.go:22:18: Function 'WriteStatus' is too long (67 > 60) (funlen)
func (s *Server) WriteStatus(ctx context.Context, req *pbresource.WriteStatusRequest) (*pbresource.WriteStatusResponse, error) {
                 ^
agent/grpc-external/services/resource/write_status.go:116:18: Function 'validateWriteStatusRequest' has too many statements (52 > 40) (funlen)
func (s *Server) validateWriteStatusRequest(req *pbresource.WriteStatusRequest) (*resource.Registration, error) {
                 ^
command/registry.go:156:6: Function 'RegisteredCommands' is too long (141 > 60) (funlen)
func RegisteredCommands(ui cli.Ui) map[string]mcli.CommandFactory {
     ^
internal/go-sso/oidcauth/oidcauthtest/testing.go:183:18: Function 'ServeHTTP' has too many statements (89 > 40) (funlen)
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
                 ^
internal/resource/resourcetest/builder.go:142:27: Function 'Write' is too long (70 > 60) (funlen)
func (b *resourceBuilder) Write(t T, client pbresource.ResourceServiceClient) *pbresource.Resource {
                          ^
internal/storage/conformance/conformance.go:56:6: Function 'testRead' is too long (100 > 60) (funlen)
func testRead(t *testing.T, opts TestOptions) {
     ^
internal/storage/conformance/conformance.go:159:6: Function 'testCASWrite' is too long (73 > 60) (funlen)
func testCASWrite(t *testing.T, opts TestOptions) {
     ^
internal/storage/conformance/conformance.go:288:6: Function 'testListWatch' is too long (209 > 60) (funlen)
func testListWatch(t *testing.T, opts TestOptions) {
     ^
internal/storage/conformance/conformance.go:508:6: Function 'testListByOwner' is too long (71 > 60) (funlen)
func testListByOwner(t *testing.T, opts TestOptions) {
     ^
proto/private/pbconfigentry/config_entry.go:24:6: Function 'ConfigEntryToStructs' has too many statements (100 > 40) (funlen)
func ConfigEntryToStructs(s *ConfigEntry) structs.ConfigEntry {
     ^
proto/private/pbconfigentry/config_entry.go:141:6: Function 'ConfigEntryFromStructs' has too many statements (78 > 40) (funlen)
func ConfigEntryFromStructs(s structs.ConfigEntry) *ConfigEntry {
     ^
acl/authorizer.go:509:6: Function 'Enforce' has too many statements (89 > 40) (funlen)
func Enforce(authz Authorizer, rsc Resource, segment string, access string, ctx *AuthorizerContext) (EnforcementDecision, error) {
     ^
acl/policy.go:173:24: Function 'Validate' has too many statements (71 > 40) (funlen)
func (pr *PolicyRules) Validate(conf *Config) error {
                       ^
acl/policy_authorizer.go:171:28: Function 'loadRules' has too many statements (86 > 40) (funlen)
func (p *policyAuthorizer) loadRules(policy *PolicyRules) error {
                           ^
acl/policy_merger.go:56:35: Function 'merge' has too many statements (122 > 40) (funlen)
func (p *policyRulesMergeContext) merge(policy *PolicyRules) {
                                  ^
acl/policy_merger.go:282:35: Function 'fill' has too many statements (53 > 40) (funlen)
func (p *policyRulesMergeContext) fill(merged *PolicyRules) {
                                  ^
acl/acl_test.go:443:6: Function 'TestACL' is too long (2617 > 60) (funlen)
func TestACL(t *testing.T) {
     ^
acl/acl_test.go:3144:6: Function 'TestACLEnforce' is too long (105 > 60) (funlen)
func TestACLEnforce(t *testing.T) {
     ^
acl/acl_test.go:3252:6: Function 'TestACL_ReadAll' is too long (72 > 60) (funlen)
func TestACL_ReadAll(t *testing.T) {
     ^
acl/authorizer_test.go:13:6: Function 'TestACL_Enforce' is too long (457 > 60) (funlen)
func TestACL_Enforce(t *testing.T) {
     ^
acl/chained_authorizer_test.go:139:6: Function 'TestChainedAuthorizer' is too long (168 > 60) (funlen)
func TestChainedAuthorizer(t *testing.T) {
     ^
acl/policy_authorizer_test.go:18:6: Function 'TestPolicyAuthorizer' is too long (742 > 60) (funlen)
func TestPolicyAuthorizer(t *testing.T) {
     ^
acl/policy_authorizer_test.go:766:6: Function 'TestAnyAllowed' is too long (245 > 60) (funlen)
func TestAnyAllowed(t *testing.T) {
     ^
acl/policy_authorizer_test.go:1015:6: Function 'TestAllAllowed' is too long (239 > 60) (funlen)
func TestAllAllowed(t *testing.T) {
     ^
acl/policy_test.go:19:6: Function 'TestPolicySourceParse' is too long (488 > 60) (funlen)
func TestPolicySourceParse(t *testing.T) {
     ^
acl/policy_test.go:512:6: Function 'TestMergePolicies' is too long (772 > 60) (funlen)
func TestMergePolicies(t *testing.T) {
     ^
acl/policy_test.go:1287:6: Function 'TestPrecedence' is too long (135 > 60) (funlen)
func TestPrecedence(t *testing.T) {
     ^
acl/static_authorizer_test.go:10:6: Function 'TestStaticAuthorizer' is too long (89 > 60) (funlen)
func TestStaticAuthorizer(t *testing.T) {
     ^
acl/validation_test.go:12:6: Function 'Test_ValidatePolicyName' is too long (65 > 60) (funlen)
func Test_ValidatePolicyName(t *testing.T) {
     ^
agent/agent.go:459:6: Function 'New' is too long (107 > 60) (funlen)
func New(bd BaseDeps) (*Agent, error) {
     ^
agent/agent.go:607:17: Function 'Start' has too many statements (112 > 40) (funlen)
func (a *Agent) Start(ctx context.Context) error {
                ^
agent/agent.go:1139:17: Function 'listenHTTP' is too long (66 > 60) (funlen)
func (a *Agent) listenHTTP() ([]apiServer, error) {
                ^
agent/agent.go:1286:17: Function 'reloadWatches' is too long (62 > 60) (funlen)
func (a *Agent) reloadWatches(cfg *config.RuntimeConfig) error {
                ^
agent/agent.go:1362:6: Function 'newConsulConfig' has too many statements (152 > 40) (funlen)
func newConsulConfig(runtimeCfg *config.RuntimeConfig, logger hclog.Logger) (*consul.Config, error) {
     ^
agent/agent.go:1705:17: Function 'ShutdownAgent' has too many statements (54 > 40) (funlen)
func (a *Agent) ShutdownAgent() error {
                ^
agent/agent.go:2267:17: Function 'readPersistedServiceConfigs' is too long (69 > 60) (funlen)
func (a *Agent) readPersistedServiceConfigs() (map[structs.ServiceID]*structs.ServiceConfigResponse, error) {
                ^
agent/agent.go:2437:17: Function 'addServiceInternal' has too many statements (93 > 40) (funlen)
func (a *Agent) addServiceInternal(req addServiceInternalRequest) error {
                ^
agent/agent.go:2630:17: Function 'validateService' is too long (74 > 60) (funlen)
func (a *Agent) validateService(service *structs.NodeService, chkTypes []*structs.CheckType) error {
                ^
agent/agent.go:2902:17: Function 'addCheck' has too many statements (188 > 40) (funlen)
func (a *Agent) addCheck(check *structs.HealthCheck, chkType *structs.CheckType, service *structs.NodeService, token string, source configSource) error {
                ^
agent/agent.go:3666:17: Function 'loadServices' has too many statements (71 > 40) (funlen)
func (a *Agent) loadServices(conf *config.RuntimeConfig, snap map[structs.CheckID]*structs.HealthCheck) error {
                ^
agent/agent.go:3896:17: Function 'loadChecks' has too many statements (46 > 40) (funlen)
func (a *Agent) loadChecks(conf *config.RuntimeConfig, snap map[structs.CheckID]*structs.HealthCheck) error {
                ^
agent/agent.go:4228:17: Function 'reloadConfigInternal' has too many statements (47 > 40) (funlen)
func (a *Agent) reloadConfigInternal(newCfg *config.RuntimeConfig) error {
                ^
agent/agent_endpoint.go:69:24: Function 'AgentSelf' is too long (71 > 60) (funlen)
func (s *HTTPHandlers) AgentSelf(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
                       ^
agent/agent_endpoint.go:421:24: Function 'AgentService' is too long (70 > 60) (funlen)
func (s *HTTPHandlers) AgentService(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
                       ^
agent/agent_endpoint.go:581:24: Function 'AgentMembers' is too long (67 > 60) (funlen)
func (s *HTTPHandlers) AgentMembers(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
                       ^
agent/agent_endpoint.go:1150:24: Function 'AgentRegisterService' has too many statements (62 > 40) (funlen)
func (s *HTTPHandlers) AgentRegisterService(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
                       ^
agent/agent_endpoint.go:1430:24: Function 'AgentMonitor' is too long (67 > 60) (funlen)
func (s *HTTPHandlers) AgentMonitor(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
                       ^
v1.62.2
command/monitor/monitor.go:52: Function 'Run' is too long (61 > 60) (funlen)
func (c *cmd) Run(args []string) int {
command/acl/bindingrule/list/bindingrule_list_test.go:31: Function 'TestBindingRuleListCommand' is too long (161 > 60) (funlen)
func TestBindingRuleListCommand(t *testing.T) {
agent/grpc-middleware/auth_interceptor_test.go:20: Function 'TestGRPCMiddleware_restrictPeeringEndpoints' is too long (69 > 60) (funlen)
func TestGRPCMiddleware_restrictPeeringEndpoints(t *testing.T) {
agent/grpc-middleware/handshake_test.go:23: Function 'TestGRPCMiddleware_optionalTransportCredentials_ServerHandshake' is too long (63 > 60) (funlen)
func TestGRPCMiddleware_optionalTransportCredentials_ServerHandshake(t *testing.T) {
agent/grpc-middleware/rate_test.go:26: Function 'TestServerRateLimiterMiddleware_Integration' is too long (88 > 60) (funlen)
func TestServerRateLimiterMiddleware_Integration(t *testing.T) {
command/services/config_test.go:44: Function 'TestStructsToAgentService' is too long (193 > 60) (funlen)
func TestStructsToAgentService(t *testing.T) {
agent/envoyextensions/builtin/wasm/structs.go:347: Function 'validate' has too many statements (42 > 40) (funlen)
func (w *wasmConfig) validate() error {
agent/envoyextensions/builtin/wasm/wasm_test.go:32: Function 'TestHttpWasmExtension' is too long (121 > 60) (funlen)
func TestHttpWasmExtension(t *testing.T) {
agent/envoyextensions/builtin/wasm/wasm_test.go:156: Function 'TestWasmConstructor' is too long (188 > 60) (funlen)
func TestWasmConstructor(t *testing.T) {
agent/envoyextensions/builtin/wasm/wasm_test.go:405: Function 'toWasmPluginConfig' is too long (94 > 60) (funlen)
func (cfg testWasmConfig) toWasmPluginConfig(t *testing.T) *envoy_wasm_v3.PluginConfig {
command/tls/ca/create/tls_ca_create_test.go:29: Function 'TestCACreateCommand' is too long (89 > 60) (funlen)
func TestCACreateCommand(t *testing.T) {
agent/local/state_test.go:43: Function 'TestAgentAntiEntropy_Services' has too many statements (96 > 40) (funlen)
func TestAgentAntiEntropy_Services(t *testing.T) {
agent/local/state_test.go:268: Function 'TestAgentAntiEntropy_Services_ConnectProxy' has too many statements (62 > 40) (funlen)
func TestAgentAntiEntropy_Services_ConnectProxy(t *testing.T) {
agent/local/state_test.go:490: Function 'TestAgent_ServiceWatchCh' is too long (83 > 60) (funlen)
func TestAgent_ServiceWatchCh(t *testing.T) {
agent/local/state_test.go:576: Function 'TestAgentAntiEntropy_EnableTagOverride' is too long (136 > 60) (funlen)
func TestAgentAntiEntropy_EnableTagOverride(t *testing.T) {
agent/local/state_test.go:715: Function 'TestAgentAntiEntropy_Services_WithChecks' has too many statements (44 > 40) (funlen)
func TestAgentAntiEntropy_Services_WithChecks(t *testing.T) {
agent/local/state_test.go:845: Function 'TestAgentAntiEntropy_Services_ACLDeny' has too many statements (55 > 40) (funlen)
func TestAgentAntiEntropy_Services_ACLDeny(t *testing.T) {
agent/local/state_test.go:993: Function 'TestAgentAntiEntropy_ConfigFileRegistrationToken' is too long (156 > 60) (funlen)
func TestAgentAntiEntropy_ConfigFileRegistrationToken(t *testing.T) {
agent/local/state_test.go:1211: Function 'TestAgentAntiEntropy_Checks' is too long (194 > 60) (funlen)
func TestAgentAntiEntropy_Checks(t *testing.T) {
agent/local/state_test.go:1408: Function 'TestAgentAntiEntropy_RemovingServiceAndCheck' is too long (76 > 60) (funlen)
func TestAgentAntiEntropy_RemovingServiceAndCheck(t *testing.T) {
agent/local/state_test.go:1487: Function 'TestAgentAntiEntropy_Checks_ACLDeny' has too many statements (82 > 40) (funlen)
func TestAgentAntiEntropy_Checks_ACLDeny(t *testing.T) {
agent/local/state_test.go:1760: Function 'TestAgentAntiEntropy_Check_DeferSync' has too many statements (68 > 40) (funlen)
func TestAgentAntiEntropy_Check_DeferSync(t *testing.T) {
agent/local/state_test.go:1968: Function 'TestAgentAntiEntropy_NodeInfo' has too many statements (46 > 40) (funlen)
func TestAgentAntiEntropy_NodeInfo(t *testing.T) {
agent/local/state_test.go:2132: Function 'TestAgent_CheckCriticalTime' is too long (61 > 60) (funlen)
func TestAgent_CheckCriticalTime(t *testing.T) {
agent/local/state_test.go:2480: Function 'TestAliasNotifications_local' is too long (90 > 60) (funlen)
func TestAliasNotifications_local(t *testing.T) {
command/snapshot/inspect/snapshot_inspect.go:91: Function 'Run' has too many statements (51 > 40) (funlen)
func (c *cmd) Run(args []string) int {
agent/consul/watch/server_local.go:109: Function 'ServerLocalBlockingQuery' is too long (106 > 60) (funlen)
func ServerLocalBlockingQuery[ResultType any, StoreType StateStore](
agent/rpcclient/health/health_test.go:20: Function 'TestClient_ServiceNodes_BackendRouting' is too long (98 > 60) (funlen)
func TestClient_ServiceNodes_BackendRouting(t *testing.T) {
agent/rpcclient/health/health_test.go:210: Function 'TestClient_Notify_BackendRouting' is too long (65 > 60) (funlen)
func TestClient_Notify_BackendRouting(t *testing.T) {
agent/rpcclient/health/view_test.go:91: Function 'testHealthView_IntegrationWithStore_WithEmptySnapshot' is too long (180 > 60) (funlen)
func testHealthView_IntegrationWithStore_WithEmptySnapshot(t *testing.T, peerName string) {
agent/rpcclient/health/view_test.go:298: Function 'testHealthView_IntegrationWithStore_WithFullSnapshot' is too long (125 > 60) (funlen)
func testHealthView_IntegrationWithStore_WithFullSnapshot(t *testing.T, peerName string) {
agent/rpcclient/health/view_test.go:458: Function 'testHealthView_IntegrationWithStore_EventBatches' is too long (63 > 60) (funlen)
func testHealthView_IntegrationWithStore_EventBatches(t *testing.T, peerName string) {
agent/rpcclient/health/view_test.go:534: Function 'testHealthView_IntegrationWithStore_Filtering' is too long (63 > 60) (funlen)
func testHealthView_IntegrationWithStore_Filtering(t *testing.T, peerName string) {
agent/rpcclient/health/view_test.go:740: Function 'TestNewFilterEvaluator' is too long (205 > 60) (funlen)
func TestNewFilterEvaluator(t *testing.T) {
lib/routine/routine_test.go:16: Function 'TestManager' is too long (62 > 60) (funlen)
func TestManager(t *testing.T) {
agent/ae/ae_test.go:154: Function 'TestAE_FSM' is too long (123 > 60) (funlen)
func TestAE_FSM(t *testing.T) {
command/kv/get/kv_get.go:64: Function 'Run' has too many statements (78 > 40) (funlen)
func (c *cmd) Run(args []string) int {
agent/consul/autopilotevents/ready_servers_events_test.go:143: Function 'TestAutopilotStateToReadyServersWithTaggedAddresses' is too long (95 > 60) (funlen)
func TestAutopilotStateToReadyServersWithTaggedAddresses(t *testing.T) {
agent/consul/autopilotevents/ready_servers_events_test.go:241: Function 'TestAutopilotStateToReadyServersWithExtGRPCPort' is too long (95 > 60) (funlen)
func TestAutopilotStateToReadyServersWithExtGRPCPort(t *testing.T) {
agent/consul/autopilotevents/ready_servers_events_test.go:339: Function 'TestAutopilotReadyServersEvents' is too long (160 > 60) (funlen)
func TestAutopilotReadyServersEvents(t *testing.T) {
agent/consul/autopilotevents/ready_servers_events_test.go:502: Function 'TestAutopilotPublishReadyServersEvents' is too long (76 > 60) (funlen)
func TestAutopilotPublishReadyServersEvents(t *testing.T) {
agent/consul/autopilotevents/ready_servers_events_test.go:589: Function 'TestReadyServerEventsSnapshotHandler' is too long (132 > 60) (funlen)
func TestReadyServerEventsSnapshotHandler(t *testing.T) {
internal/controller/dependency/transform_test.go:21: Function 'TestMapperWithTransform' is too long (78 > 60) (funlen)
func TestMapperWithTransform(t *testing.T) {
internal/controller/dependency/transform_test.go:102: Function 'TestTransformChain' is too long (63 > 60) (funlen)
func TestTransformChain(t *testing.T) {
agent/consul/authmethod/kubeauth/k8s.go:133: Function 'ValidateLogin' is too long (69 > 60) (funlen)
func (v *Validator) ValidateLogin(ctx context.Context, loginToken string) (*authmethod.Identity, error) {
agent/consul/authmethod/kubeauth/k8s_test.go:110: Function 'TestValidateLogin' is too long (68 > 60) (funlen)
func TestValidateLogin(t *testing.T) {
agent/consul/authmethod/kubeauth/k8s_test.go:181: Function 'TestNewValidator' is too long (65 > 60) (funlen)
func TestNewValidator(t *testing.T) {
command/flags/config_test.go:18: Function 'TestConfigUtil_Values' is too long (86 > 60) (funlen)
func TestConfigUtil_Values(t *testing.T) {
command/flags/flag_map_value_test.go:13: Function 'TestFlagMapValueSet' is too long (71 > 60) (funlen)
func TestFlagMapValueSet(t *testing.T) {
command/flags/flag_map_value_test.go:87: Function 'TestFlagMapValueMerge' is too long (69 > 60) (funlen)
func TestFlagMapValueMerge(t *testing.T) {
Command Mean [s] Min [s] Max [s] Relative
local 3.180 ± 0.068 3.145 3.370 1.02 ± 0.02
v1.62.2 3.131 ± 0.025 3.080 3.171 1.00

go-delve/delve

local
cmd/dlv/cmds/helphelpers/help.go:25:6: Function 'Prepare' has too many statements (47 > 40) (funlen)
func Prepare(cmd *cobra.Command) {
     ^
pkg/dwarf/dwarfbuilder/info.go:125:19: Function 'Attr' has too many statements (46 > 40) (funlen)
func (b *Builder) Attr(attr dwarf.Attr, val interface{}) dwarf.Offset {
                  ^
pkg/internal/gosym/pclntab.go:177:21: Function 'parsePclnTab' has too many statements (77 > 40) (funlen)
func (t *LineTable) parsePclnTab() {
                    ^
pkg/internal/gosym/symtab.go:206:6: Function 'walksymtab' has too many statements (70 > 40) (funlen)
func walksymtab(data []byte, fn func(sym) error) error {
     ^
pkg/internal/gosym/symtab.go:354:6: Function 'NewTable' has too many statements (84 > 40) (funlen)
func NewTable(symtab []byte, pcln *LineTable) (*Table, error) {
     ^
pkg/proc/core/minidump/minidump.go:320:6: Function 'Open' has too many statements (62 > 40) (funlen)
func Open(path string, logfn func(fmt string, args ...interface{})) (*Minidump, error) {
     ^
pkg/proc/fbsdutil/regs.go:60:26: Function 'Slice' is too long (65 > 60) (funlen)
func (r *AMD64Registers) Slice(floatingPoint bool) ([]proc.Register, error) {
                         ^
pkg/proc/fbsdutil/regs.go:186:26: Function 'SetReg' has too many statements (53 > 40) (funlen)
func (r *AMD64Registers) SetReg(regNum uint64, reg *op.DwarfRegister) (bool, error) {
                         ^
pkg/proc/gdbserial/gdbserver.go:461:6: Function 'LLDBLaunch' has too many statements (55 > 40) (funlen)
func LLDBLaunch(cmd []string, wd string, flags proc.LaunchFlags, debugInfoDirs []string, tty string, redirects [3]string) (*proc.TargetGroup, error) {
     ^
pkg/proc/gdbserial/gdbserver.go:599:6: Function 'LLDBAttach' is too long (65 > 60) (funlen)
func LLDBAttach(pid int, path string, waitFor *proc.WaitFor, debugInfoDirs []string) (*proc.TargetGroup, error) {
     ^
pkg/proc/gdbserial/gdbserver.go:847:22: Function 'ContinueOnce' is too long (95 > 60) (funlen)
func (p *gdbProcess) ContinueOnce(cctx *proc.ContinueOnceContext) (proc.Thread, proc.StopReason, error) {
                     ^
pkg/proc/gdbserial/gdbserver.go:1707:21: Function 'reloadRegisters' is too long (61 > 60) (funlen)
func (t *gdbThread) reloadRegisters(regs map[uint64]uint64) error {
                    ^
pkg/proc/gdbserial/gdbserver.go:1821:21: Function 'reloadGAtPC' has too many statements (47 > 40) (funlen)
func (t *gdbThread) reloadGAtPC() error {
                    ^
pkg/proc/gdbserial/gdbserver.go:2147:27: Function 'Slice' has too many statements (43 > 40) (funlen)
func (regs *gdbRegisters) Slice(floatingPoint bool) ([]proc.Register, error) {
                          ^
pkg/proc/gdbserial/gdbserver_conn.go:100:22: Function 'handshake' is too long (75 > 60) (funlen)
func (conn *gdbConn) handshake(regnames *gdbRegnames) error {
                     ^
pkg/proc/gdbserial/gdbserver_conn.go:286:22: Function 'readRegisterInfo' has too many statements (48 > 40) (funlen)
func (conn *gdbConn) readRegisterInfo(regFound map[string]bool) (err error) {
                     ^
pkg/proc/gdbserial/gdbserver_conn.go:605:22: Function 'step' has too many statements (54 > 40) (funlen)
func (conn *gdbConn) step(th *gdbThread, tu *threadUpdater, ignoreFaultSignal bool) error {
                     ^
pkg/proc/gdbserial/gdbserver_conn.go:754:22: Function 'parseStopPacket' has too many statements (82 > 40) (funlen)
func (conn *gdbConn) parseStopPacket(resp []byte, threadID string, tu *threadUpdater) (repeat bool, sp stopPacket, err error) {
                     ^
pkg/proc/gdbserial/gdbserver_conn.go:1365:22: Function 'recv' has too many statements (42 > 40) (funlen)
func (conn *gdbConn) recv(cmd []byte, context string, binary bool) (resp []byte, err error) {
                     ^
pkg/proc/linutil/regs_amd64_arch.go:160:26: Function 'SetReg' has too many statements (55 > 40) (funlen)
func (r *AMD64Registers) SetReg(regNum uint64, reg *op.DwarfRegister) (bool, error) {
                         ^
pkg/proc/linutil/regs_ppc64le_arch.go:79:28: Function 'Slice' is too long (62 > 60) (funlen)
func (r *PPC64LERegisters) Slice(floatingPoint bool) ([]proc.Register, error) {
                           ^
pkg/proc/linutil/regs_riscv64_arch.go:193:28: Function 'GetReg' has too many statements (66 > 40) (funlen)
func (r *RISCV64Registers) GetReg(regNum uint64) (uint64, error) {
                           ^
pkg/proc/linutil/regs_riscv64_arch.go:266:28: Function 'SetReg' has too many statements (82 > 40) (funlen)
func (r *RISCV64Registers) SetReg(regNum uint64, reg *op.DwarfRegister) (fpchanged bool, err error) {
                           ^
pkg/proc/native/dump_linux.go:12:25: Function 'MemoryMap' is too long (63 > 60) (funlen)
func (p *nativeProcess) MemoryMap() ([]proc.MemoryMapEntry, error) {
                        ^
pkg/proc/native/dump_linux_amd64.go:31:25: Function 'DumpProcessNotes' has too many statements (55 > 40) (funlen)
func (p *nativeProcess) DumpProcessNotes(notes []elfwriter.Note, threadDone func()) (threadsDone bool, out []elfwriter.Note, err error) {
                        ^
pkg/proc/native/proc_linux.go:65:6: Function 'Launch' is too long (71 > 60) (funlen)
func Launch(cmd []string, wd string, flags proc.LaunchFlags, debugInfoDirs []string, tty string, stdinPath string, stdoutOR proc.OutputRedirect, stderrOR proc.OutputRedirect) (*proc.TargetGroup, error) {
     ^
pkg/proc/native/proc_linux.go:398:6: Function 'trapWaitInternal' has too many statements (97 > 40) (funlen)
func trapWaitInternal(procgrp *processGroup, pid int, options trapWaitOptions) (*nativeThread, error) {
     ^
pkg/proc/native/proc_linux.go:691:30: Function 'stop' has too many statements (53 > 40) (funlen)
func (procgrp *processGroup) stop(cctx *proc.ContinueOnceContext, trapthread *nativeThread) (*nativeThread, error) {
                             ^
pkg/proc/native/proc_linux.go:896:27: Function 'SetUProbe' has too many statements (48 > 40) (funlen)
func (dbp *nativeProcess) SetUProbe(fnName string, goidOffset int64, args []ebpf.UProbeArgMap) error {
                          ^
pkg/proc/test/support.go:99:6: Function 'BuildFixture' has too many statements (72 > 40) (funlen)
func BuildFixture(name string, flags BuildFlags) Fixture {
     ^
pkg/proc/winutil/regs_amd64_arch.go:290:26: Function 'SetReg' has too many statements (41 > 40) (funlen)
func (ctx *AMD64CONTEXT) SetReg(regNum uint64, reg *op.DwarfRegister) error {
                         ^
pkg/terminal/colorize/colorize.go:30:6: Function 'Print' has too many statements (44 > 40) (funlen)
func Print(out io.Writer, path string, reader io.Reader, startLine, endLine, arrowLine int, colorEscapes map[Style]string, altTabStr string) error {
     ^
service/rpccommon/server.go:281:22: Function 'serveJSONCodec' has too many statements (50 > 40) (funlen)
func (s *ServerImpl) serveJSONCodec(conn io.ReadWriteCloser) {
                     ^
cmd/dlv/dlv_test.go:468:6: Function 'TestTypecheckRPC' has too many statements (62 > 40) (funlen)
func TestTypecheckRPC(t *testing.T) {
     ^
cmd/dlv/dlv_test.go:700:6: Function 'TestRemoteDAPClientMulti' has too many statements (46 > 40) (funlen)
func TestRemoteDAPClientMulti(t *testing.T) {
     ^
cmd/dlv/cmds/commands.go:120:6: Function 'New' has too many statements (100 > 40) (funlen)
func New(docCall bool) *cobra.Command {
     ^
cmd/dlv/cmds/commands.go:541:6: Function 'dapCmd' is too long (72 > 60) (funlen)
func dapCmd(cmd *cobra.Command, args []string) {
     ^
cmd/dlv/cmds/commands.go:666:6: Function 'traceCmd' is too long (215 > 60) (funlen)
func traceCmd(cmd *cobra.Command, args []string, conf *config.Config) int {
     ^
cmd/dlv/cmds/commands.go:1032:6: Function 'execute' has too many statements (76 > 40) (funlen)
func execute(attachPid int, processArgs []string, conf *config.Config, coreFile string, kind debugger.ExecuteKind, dlvArgs []string, buildFlags string) int {
     ^
pkg/config/split_test.go:73:6: Function 'TestConfigureListByName' is too long (61 > 60) (funlen)
func TestConfigureListByName(t *testing.T) {
     ^
pkg/dwarf/frame/parser.go:150:6: Function 'parseCIE' has too many statements (41 > 40) (funlen)
func parseCIE(ctx *parseContext) parsefunc {
     ^
pkg/dwarf/frame/entries_test.go:59:6: Function 'TestAppend' is too long (80 > 60) (funlen)
func TestAppend(t *testing.T) {
     ^
pkg/dwarf/godwarf/type.go:561:6: Function 'readType' has too many statements (324 > 40) (funlen)
func readType(d *dwarf.Data, name string, r *dwarf.Reader, off dwarf.Offset, typeCache map[dwarf.Offset]Type, delayedSizes *[]delayedSize) (Type, error) {
     ^
pkg/dwarf/line/parse_util.go:85:24: Function 'next' has too many statements (65 > 40) (funlen)
func (rdr *formReader) next(buf *bytes.Buffer) bool {
                       ^
pkg/dwarf/line/line_parser_test.go:74:6: Function 'testDebugLinePrologueParser' is too long (64 > 60) (funlen)
func testDebugLinePrologueParser(p string, t *testing.T) {
     ^
pkg/dwarf/line/state_machine_test.go:124:6: Function 'TestMultipleSequences' has too many statements (68 > 40) (funlen)
func TestMultipleSequences(t *testing.T) {
     ^
pkg/dwarf/loclist/dwarf5_loclist.go:104:29: Function 'next' has too many statements (63 > 40) (funlen)
func (it *loclistsIterator) next() bool {
                            ^
pkg/dwarf/loclist/loclist5_test.go:11:6: Function 'TestLoclist5' has too many statements (66 > 40) (funlen)
func TestLoclist5(t *testing.T) {
     ^
pkg/dwarf/op/op.go:108:6: Function 'PrettyPrint' has too many statements (47 > 40) (funlen)
func PrettyPrint(out io.Writer, instructions []byte, regnumToName func(uint64) string) {
     ^
pkg/dwarf/op/op.go:421:6: Function 'binaryop' has too many statements (45 > 40) (funlen)
func binaryop(opcode Opcode, ctxt *context) error {
     ^
v1.62.2
pkg/proc/evalop/evalcompile.go:251: Function 'compileAST' has too many statements (80 > 40) (funlen)
func (ctx *compileCtx) compileAST(t ast.Expr) error {
pkg/proc/evalop/evalcompile.go:371: Function 'compileTypeCastOrFuncCall' has too many statements (43 > 40) (funlen)
func (ctx *compileCtx) compileTypeCastOrFuncCall(node *ast.CallExpr) error {
pkg/terminal/starbind/conv.go:20: Function 'interfaceToStarlarkValue' has too many statements (54 > 40) (funlen)
func (env *Env) interfaceToStarlarkValue(v interface{}) starlark.Value {
pkg/terminal/starbind/conv.go:254: Function 'variableValueToStarlarkValue' has too many statements (42 > 40) (funlen)
func (env *Env) variableValueToStarlarkValue(v *api.Variable, top bool) (starlark.Value, error) {
pkg/terminal/starbind/conv.go:659: Function 'unmarshalStarlarkValueIntl' has too many statements (66 > 40) (funlen)
func unmarshalStarlarkValueIntl(val starlark.Value, dst reflect.Value, path string) (err error) {
pkg/terminal/starbind/repl.go:84: Function 'rep' is too long (68 > 60) (funlen)
func rep(rl *liner.State, thread *starlark.Thread, globals starlark.StringDict, out EchoWriter) error {
pkg/terminal/starbind/starlark.go:66: Function 'New' is too long (113 > 60) (funlen)
func New(ctx Context, out EchoWriter) *Env {
cmd/dlv/dlv_test.go:103: Function 'testOutput' is too long (65 > 60) (funlen)
func testOutput(t *testing.T, dlvbin, output string, delveCmds []string) (stdout, stderr []byte) {
cmd/dlv/dlv_test.go:468: Function 'TestTypecheckRPC' has too many statements (62 > 40) (funlen)
func TestTypecheckRPC(t *testing.T) {
cmd/dlv/dlv_test.go:700: Function 'TestRemoteDAPClientMulti' has too many statements (46 > 40) (funlen)
func TestRemoteDAPClientMulti(t *testing.T) {
service/test/integration1_test.go:564: Function 'Test1ClientServer_FindLocations' is too long (96 > 60) (funlen)
func Test1ClientServer_FindLocations(t *testing.T) {
service/test/integration1_test.go:719: Function 'Test1ClientServer_FullStacktrace' is too long (88 > 60) (funlen)
func Test1ClientServer_FullStacktrace(t *testing.T) {
service/test/integration1_test.go:864: Function 'Test1Disasm' is too long (110 > 60) (funlen)
func Test1Disasm(t *testing.T) {
service/test/integration2_test.go:512: Function 'TestClientServer_toggleBreakpoint' is too long (70 > 60) (funlen)
func TestClientServer_toggleBreakpoint(t *testing.T) {
service/test/integration2_test.go:967: Function 'TestClientServer_FindLocations' is too long (164 > 60) (funlen)
func TestClientServer_FindLocations(t *testing.T) {
service/test/integration2_test.go:1229: Function 'TestClientServer_FullStacktrace' is too long (89 > 60) (funlen)
func TestClientServer_FullStacktrace(t *testing.T) {
service/test/integration2_test.go:1388: Function 'TestDisasm' is too long (115 > 60) (funlen)
func TestDisasm(t *testing.T) {
service/test/integration2_test.go:1709: Function 'TestClientServer_FpRegisters' is too long (119 > 60) (funlen)
func TestClientServer_FpRegisters(t *testing.T) {
service/test/integration2_test.go:3157: Function 'TestGuessSubstitutePath' is too long (128 > 60) (funlen)
func TestGuessSubstitutePath(t *testing.T) {
pkg/proc/native/dump_linux.go:12: Function 'MemoryMap' is too long (66 > 60) (funlen)
func (p *nativeProcess) MemoryMap() ([]proc.MemoryMapEntry, error) {
pkg/proc/native/dump_linux_amd64.go:31: Function 'DumpProcessNotes' has too many statements (55 > 40) (funlen)
func (p *nativeProcess) DumpProcessNotes(notes []elfwriter.Note, threadDone func()) (threadsDone bool, out []elfwriter.Note, err error) {
pkg/proc/native/proc_linux.go:65: Function 'Launch' is too long (73 > 60) (funlen)
func Launch(cmd []string, wd string, flags proc.LaunchFlags, debugInfoDirs []string, tty string, stdinPath string, stdoutOR proc.OutputRedirect, stderrOR proc.OutputRedirect) (*proc.TargetGroup, error) {
pkg/proc/native/proc_linux.go:398: Function 'trapWaitInternal' has too many statements (97 > 40) (funlen)
func trapWaitInternal(procgrp *processGroup, pid int, options trapWaitOptions) (*nativeThread, error) {
pkg/proc/native/proc_linux.go:691: Function 'stop' has too many statements (53 > 40) (funlen)
func (procgrp *processGroup) stop(cctx *proc.ContinueOnceContext, trapthread *nativeThread) (*nativeThread, error) {
pkg/proc/native/proc_linux.go:789: Function 'stop1' is too long (68 > 60) (funlen)
func stop1(cctx *proc.ContinueOnceContext, dbp *nativeProcess, trapthread *nativeThread, switchTrapthread *bool) error {
pkg/proc/native/proc_linux.go:896: Function 'SetUProbe' has too many statements (48 > 40) (funlen)
func (dbp *nativeProcess) SetUProbe(fnName string, goidOffset int64, args []ebpf.UProbeArgMap) error {
pkg/terminal/command.go:114: Function 'DebugCommands' is too long (578 > 60) (funlen)
func DebugCommands(client service.Client) *Commands {
pkg/terminal/command.go:1824: Function 'setBreakpoint' has too many statements (91 > 40) (funlen)
func setBreakpoint(t *Term, ctx callContext, tracepoint bool, argstr string) ([]*api.Breakpoint, error) {
pkg/terminal/command.go:2053: Function 'examineMemoryCmd' is too long (144 > 60) (funlen)
func examineMemoryCmd(t *Term, ctx callContext, argstr string) error {
pkg/terminal/command.go:2477: Function 'parseStackArgs' has too many statements (52 > 40) (funlen)
func parseStackArgs(argstr string) (stackArgs, error) {
pkg/terminal/command.go:2642: Function 'disassCommand' has too many statements (41 > 40) (funlen)
func disassCommand(t *Term, ctx callContext, args string) error {
pkg/terminal/command.go:2730: Function 'printcontext' is too long (62 > 60) (funlen)
func printcontext(t *Term, state *api.DebuggerState) {
pkg/terminal/command.go:2813: Function 'printcontextThread' is too long (69 > 60) (funlen)
func printcontextThread(t *Term, th *api.Thread) {
pkg/terminal/command.go:3464: Function 'target' has too many statements (53 > 40) (funlen)
func target(t *Term, ctx callContext, args string) error {
pkg/terminal/terminal.go:257: Function 'Run' has too many statements (51 > 40) (funlen)
func (t *Term) Run() (int, error) {
pkg/terminal/terminal.go:475: Function 'handleExit' has too many statements (45 > 40) (funlen)
func (t *Term) handleExit() (int, error) {
pkg/terminal/command_test.go:306: Function 'TestScopePrefix' is too long (152 > 60) (funlen)
func TestScopePrefix(t *testing.T) {
pkg/terminal/command_test.go:758: Function 'TestConfig' has too many statements (70 > 40) (funlen)
func TestConfig(t *testing.T) {
pkg/terminal/command_test.go:1014: Function 'TestExamineMemoryCmd' is too long (96 > 60) (funlen)
func TestExamineMemoryCmd(t *testing.T) {
pkg/terminal/command_test.go:1277: Function 'TestBreakpointEditing' is too long (84 > 60) (funlen)
func TestBreakpointEditing(t *testing.T) {
pkg/terminal/starlark_test.go:195: Function 'TestStarlarkVariablePointerNotLoaded' is too long (62 > 60) (funlen)
func TestStarlarkVariablePointerNotLoaded(t *testing.T) {
pkg/proc/test/support.go:99: Function 'BuildFixture' has too many statements (72 > 40) (funlen)
func BuildFixture(name string, flags BuildFlags) Fixture {
pkg/goversion/go_version.go:40: Function 'Parse' has too many statements (53 > 40) (funlen)
func Parse(ver string) (GoVersion, bool) {
pkg/proc/core/core.go:43: Function 'Add' has too many statements (41 > 40) (funlen)
func (r *SplicedMemory) Add(reader proc.MemoryReader, off, length uint64) {
pkg/proc/core/delve_core.go:30: Function 'threadsFromDelveNotes' has too many statements (66 > 40) (funlen)
func threadsFromDelveNotes(p *process, notes []*note) (proc.Thread, error) {
pkg/proc/core/linux_core.go:104: Function 'readLinuxOrPlatformIndependentCore' is too long (70 > 60) (funlen)
func readLinuxOrPlatformIndependentCore(corePath, exePath string) (*process, proc.Thread, error) {
pkg/proc/core/linux_core.go:276: Function 'readNote' has too many statements (59 > 40) (funlen)
func readNote(r io.ReadSeeker, machineType elf.Machine) (*note, error) {
pkg/proc/core/core_test.go:42: Function 'TestSplicedReader' is too long (155 > 60) (funlen)
func TestSplicedReader(t *testing.T) {
pkg/proc/core/core_test.go:251: Function 'TestCore' has too many statements (44 > 40) (funlen)
func TestCore(t *testing.T) {
pkg/proc/core/core_test.go:321: Function 'TestCoreFpRegisters' has too many statements (43 > 40) (funlen)
func TestCoreFpRegisters(t *testing.T) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 631.3 ± 9.5 622.6 652.9 1.06 ± 0.02
v1.62.2 595.4 ± 5.9 589.7 606.3 1.00

etcd-io/etcd

local
tools/benchmark/cmd/mvcc-put.go:72:6: Function 'mvccPutFunc' is too long (61 > 60) (funlen)
func mvccPutFunc(_ *cobra.Command, _ []string) {
     ^
tools/benchmark/cmd/put.go:74:6: Function 'putFunc' is too long (62 > 60) (funlen)
func putFunc(cmd *cobra.Command, _ []string) {
     ^
tools/benchmark/cmd/range.go:57:6: Function 'rangeFunc' has too many statements (42 > 40) (funlen)
func rangeFunc(cmd *cobra.Command, args []string) {
     ^
tools/benchmark/cmd/stm.go:72:6: Function 'stmFunc' has too many statements (56 > 40) (funlen)
func stmFunc(cmd *cobra.Command, _ []string) {
     ^
tools/benchmark/cmd/stm.go:154:6: Function 'doSTM' has too many statements (44 > 40) (funlen)
func doSTM(client *v3.Client, requests <-chan stmApply, results chan<- report.Result) {
     ^
tools/benchmark/cmd/txn_mixed.go:72:6: Function 'mixedTxnFunc' has too many statements (49 > 40) (funlen)
func mixedTxnFunc(cmd *cobra.Command, _ []string) {
     ^
tools/benchmark/cmd/watch_latency.go:63:6: Function 'watchLatencyFunc' has too many statements (50 > 40) (funlen)
func watchLatencyFunc(_ *cobra.Command, _ []string) {
     ^
tools/etcd-dump-metrics/main.go:43:6: Function 'main' has too many statements (72 > 40) (funlen)
func main() {
     ^
tools/etcd-dump-metrics/metrics.go:122:6: Function 'parse' has too many statements (52 > 40) (funlen)
func parse(lines []string) (mss []metric) {
     ^
tools/local-tester/bridge/bridge.go:194:6: Function 'main' has too many statements (87 > 40) (funlen)
func main() {
     ^
contrib/raftexample/httpapi.go:32:21: Function 'ServeHTTP' has too many statements (43 > 40) (funlen)
func (h *httpKVAPI) ServeHTTP(w http.ResponseWriter, r *http.Request) {
                    ^
contrib/raftexample/raft.go:406:21: Function 'serveChannels' is too long (71 > 60) (funlen)
func (rc *raftNode) serveChannels() {
                    ^
contrib/raftexample/raft_test.go:26:6: Function 'TestProcessMessages' is too long (102 > 60) (funlen)
func TestProcessMessages(t *testing.T) {
     ^
tools/etcd-dump-logs/main.go:348:6: Function 'listEntriesType' has too many statements (48 > 40) (funlen)
func listEntriesType(entrytype string, streamdecoder string, ents []raftpb.Entry) {
     ^
tools/etcd-dump-logs/etcd-dump-log_test.go:158:6: Function 'appendNormalIRREnts' is too long (97 > 60) (funlen)
func appendNormalIRREnts(ents *[]raftpb.Entry) {
     ^
v1.62.2
tools/local-tester/bridge/bridge.go:194: Function 'main' has too many statements (87 > 40) (funlen)
func main() {
tools/etcd-dump-logs/main.go:348: Function 'listEntriesType' has too many statements (48 > 40) (funlen)
func listEntriesType(entrytype string, streamdecoder string, ents []raftpb.Entry) {
tools/etcd-dump-logs/etcd-dump-log_test.go:158: Function 'appendNormalIRREnts' is too long (97 > 60) (funlen)
func appendNormalIRREnts(ents *[]raftpb.Entry) {
tools/etcd-dump-metrics/main.go:43: Function 'main' has too many statements (72 > 40) (funlen)
func main() {
tools/etcd-dump-metrics/metrics.go:122: Function 'parse' has too many statements (52 > 40) (funlen)
func parse(lines []string) (mss []metric) {
contrib/raftexample/httpapi.go:32: Function 'ServeHTTP' has too many statements (43 > 40) (funlen)
func (h *httpKVAPI) ServeHTTP(w http.ResponseWriter, r *http.Request) {
contrib/raftexample/raft.go:406: Function 'serveChannels' is too long (78 > 60) (funlen)
func (rc *raftNode) serveChannels() {
contrib/raftexample/raft_test.go:26: Function 'TestProcessMessages' is too long (102 > 60) (funlen)
func TestProcessMessages(t *testing.T) {
tools/benchmark/cmd/mvcc-put.go:72: Function 'mvccPutFunc' is too long (62 > 60) (funlen)
func mvccPutFunc(_ *cobra.Command, _ []string) {
tools/benchmark/cmd/put.go:74: Function 'putFunc' is too long (62 > 60) (funlen)
func putFunc(cmd *cobra.Command, _ []string) {
tools/benchmark/cmd/range.go:57: Function 'rangeFunc' has too many statements (42 > 40) (funlen)
func rangeFunc(cmd *cobra.Command, args []string) {
tools/benchmark/cmd/stm.go:72: Function 'stmFunc' has too many statements (56 > 40) (funlen)
func stmFunc(cmd *cobra.Command, _ []string) {
tools/benchmark/cmd/stm.go:154: Function 'doSTM' has too many statements (44 > 40) (funlen)
func doSTM(client *v3.Client, requests <-chan stmApply, results chan<- report.Result) {
tools/benchmark/cmd/txn_mixed.go:72: Function 'mixedTxnFunc' has too many statements (49 > 40) (funlen)
func mixedTxnFunc(cmd *cobra.Command, _ []string) {
tools/benchmark/cmd/watch_latency.go:63: Function 'watchLatencyFunc' has too many statements (50 > 40) (funlen)
func watchLatencyFunc(_ *cobra.Command, _ []string) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 326.4 ± 7.1 316.8 341.2 1.10 ± 0.03
v1.62.2 295.8 ± 5.9 289.1 307.3 1.00

go-gitea/gitea

local
contrib/backport/backport.go:27:6: Function 'main' is too long (83 > 60) (funlen)
func main() {
     ^
contrib/backport/backport.go:113:6: Function 'runBackport' has too many statements (65 > 40) (funlen)
func runBackport(c *cli.Context) error {
     ^
contrib/environment-to-ini/environment-to-ini.go:15:6: Function 'main' is too long (63 > 60) (funlen)
func main() {
     ^
models/activities/action.go:68:22: Function 'String' has too many statements (57 > 40) (funlen)
func (at ActionType) String() string {
                     ^
models/activities/action.go:457:6: Function 'ActivityQueryCondition' is too long (85 > 60) (funlen)
func ActivityQueryCondition(ctx context.Context, opts GetFeedsOptions) (builder.Cond, error) {
     ^
models/activities/action.go:567:6: Function 'NotifyWatchers' has too many statements (65 > 40) (funlen)
func NotifyWatchers(ctx context.Context, actions ...*Action) error {
     ^
models/activities/notification_list.go:86:6: Function 'createOrUpdateIssueNotifications' is too long (79 > 60) (funlen)
func createOrUpdateIssueNotifications(ctx context.Context, issueID, commentID, notificationAuthorID, receiverID int64) error {
     ^
models/activities/statistic.go:54:6: Function 'GetStatistic' is too long (65 > 60) (funlen)
func GetStatistic(ctx context.Context) (stats Statistic) {
     ^
models/issues/comment.go:799:6: Function 'CreateComment' is too long (75 > 60) (funlen)
func CreateComment(ctx context.Context, opts *CreateCommentOptions) (_ *Comment, err error) {
     ^
models/issues/comment_code.go:50:6: Function 'findCodeComments' is too long (68 > 60) (funlen)
func findCodeComments(ctx context.Context, opts FindCommentsOptions, issue *Issue, currentUser *user_model.User, review *Review, showOutdatedComments bool) ([]*Comment, error) {
     ^
models/issues/issue_label.go:439:6: Function 'ReplaceIssueLabels' is too long (63 > 60) (funlen)
func ReplaceIssueLabels(ctx context.Context, issue *Issue, labels []*Label, doer *user_model.User) (err error) {
     ^
models/issues/issue_list.go:474:25: Function 'loadTotalTrackedTimes' is too long (65 > 60) (funlen)
func (issues IssueList) loadTotalTrackedTimes(ctx context.Context) (err error) {
                        ^
models/issues/issue_project.go:95:6: Function 'IssueAssignOrRemoveProject' is too long (64 > 60) (funlen)
func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_model.User, newProjectID, newColumnID int64) error {
     ^
models/issues/issue_update.go:291:6: Function 'NewIssueWithIndex' has too many statements (48 > 40) (funlen)
func NewIssueWithIndex(ctx context.Context, doer *user_model.User, opts NewIssueOptions) (err error) {
     ^
models/issues/issue_update.go:490:6: Function 'ResolveIssueMentionsByVisibility' has too many statements (73 > 40) (funlen)
func ResolveIssueMentionsByVisibility(ctx context.Context, issue *Issue, doer *user_model.User, mentions []string) (users []*user_model.User, err error) {
     ^
models/issues/issue_update.go:649:6: Function 'DeleteIssuesByRepoID' has too many statements (54 > 40) (funlen)
func DeleteIssuesByRepoID(ctx context.Context, repoID int64) (attachmentPaths []string, err error) {
     ^
models/issues/review.go:426:6: Function 'SubmitReview' is too long (103 > 60) (funlen)
func SubmitReview(ctx context.Context, doer *user_model.User, issue *Issue, reviewType ReviewType, content, commitID string, stale bool, attachmentUUIDs []string) (*Review, *Comment, error) {
     ^
models/issues/review.go:648:6: Function 'AddReviewRequest' is too long (64 > 60) (funlen)
func AddReviewRequest(ctx context.Context, issue *Issue, reviewer, doer *user_model.User) (*Comment, error) {
     ^
models/migrations/v1_10/v100.go:14:6: Function 'UpdateMigrationServiceTypes' is too long (65 > 60) (funlen)
func UpdateMigrationServiceTypes(x *xorm.Engine) error {
     ^
models/migrations/v1_11/v111.go:12:6: Function 'AddBranchProtectionCanPushAndEnableWhitelist' has too many statements (176 > 40) (funlen)
func AddBranchProtectionCanPushAndEnableWhitelist(x *xorm.Engine) error {
     ^
models/migrations/v1_11/v115.go:23:6: Function 'RenameExistingUserAvatarName' has too many statements (58 > 40) (funlen)
func RenameExistingUserAvatarName(x *xorm.Engine) error {
     ^
models/migrations/v1_12/v128.go:20:6: Function 'FixMergeBase' has too many statements (48 > 40) (funlen)
func FixMergeBase(x *xorm.Engine) error {
     ^
models/migrations/v1_12/v130.go:13:6: Function 'ExpandWebhooks' has too many statements (44 > 40) (funlen)
func ExpandWebhooks(x *xorm.Engine) error {
     ^
models/migrations/v1_12/v134.go:20:6: Function 'RefixMergeBase' has too many statements (53 > 40) (funlen)
func RefixMergeBase(x *xorm.Engine) error {
     ^
models/migrations/v1_12/v136.go:21:6: Function 'AddCommitDivergenceToPulls' has too many statements (53 > 40) (funlen)
func AddCommitDivergenceToPulls(x *xorm.Engine) error {
     ^
models/migrations/v1_13/v145.go:14:6: Function 'IncreaseLanguageField' is too long (61 > 60) (funlen)
func IncreaseLanguageField(x *xorm.Engine) error {
     ^
models/migrations/v1_13/v146.go:12:6: Function 'AddProjectsInfo' is too long (68 > 60) (funlen)
func AddProjectsInfo(x *xorm.Engine) error {
     ^
models/migrations/v1_13/v147.go:12:6: Function 'CreateReviewsForCodeComments' is too long (129 > 60) (funlen)
func CreateReviewsForCodeComments(x *xorm.Engine) error {
     ^
models/migrations/v1_13/v151.go:18:6: Function 'SetDefaultPasswordToArgon2' has too many statements (111 > 40) (funlen)
func SetDefaultPasswordToArgon2(x *xorm.Engine) error {
     ^
models/migrations/v1_6/v70.go:15:6: Function 'AddIssueDependencies' is too long (78 > 60) (funlen)
func AddIssueDependencies(x *xorm.Engine) (err error) {
     ^
models/migrations/v1_9/v82.go:17:6: Function 'FixReleaseSha1OnReleaseTable' has too many statements (55 > 40) (funlen)
func FixReleaseSha1OnReleaseTable(x *xorm.Engine) error {
     ^
models/migrations/v1_9/v85.go:17:6: Function 'HashAppToken' is too long (77 > 60) (funlen)
func HashAppToken(x *xorm.Engine) error {
     ^
models/organization/org.go:293:6: Function 'CreateOrganization' has too many statements (43 > 40) (funlen)
func CreateOrganization(ctx context.Context, org *Organization, owner *user_model.User) (err error) {
     ^
models/organization/org_list.go:98:6: Function 'GetUserOrgsList' is too long (64 > 60) (funlen)
func GetUserOrgsList(ctx context.Context, user *user_model.User) ([]*MinimalOrg, error) {
     ^
models/packages/conan/search.go:37:6: Function 'SearchRecipes' has too many statements (41 > 40) (funlen)
func SearchRecipes(ctx context.Context, opts *RecipeSearchOptions) ([]string, error) {
     ^
models/packages/descriptor.go:104:6: Function 'GetPackageDescriptor' has too many statements (80 > 40) (funlen)
func GetPackageDescriptor(ctx context.Context, pv *PackageVersion) (*PackageDescriptor, error) {
     ^
models/packages/package.go:83:16: Function 'Name' has too many statements (46 > 40) (funlen)
func (pt Type) Name() string {
               ^
models/packages/package.go:134:16: Function 'SVGName' has too many statements (46 > 40) (funlen)
func (pt Type) SVGName() string {
               ^
models/packages/package_file.go:132:39: Function 'toConds' is too long (74 > 60) (funlen)
func (opts *PackageFileSearchOptions) toConds() builder.Cond {
                                      ^
models/packages/package_version.go:193:35: Function 'ToConds' is too long (71 > 60) (funlen)
func (opts *PackageSearchOptions) ToConds() builder.Cond {
                                  ^
models/unittest/consistency.go:55:6: Function 'init' has too many statements (88 > 40) (funlen)
func init() {
     ^
models/unittest/testdb.go:82:6: Function 'MainTest' has too many statements (67 > 40) (funlen)
func MainTest(m *testing.M, testOpts ...*TestOptions) {
     ^
modules/charset/ambiguous/generate.go:38:6: Function 'main' is too long (61 > 60) (funlen)
func main() {
     ^
modules/git/pipeline/lfs_nogogit.go:20:6: Function 'FindLFSFile' has too many statements (78 > 40) (funlen)
func FindLFSFile(repo *git.Repository, objectID git.ObjectID) ([]*LFSResult, error) {
     ^
modules/graceful/net_unix.go:50:6: Function 'getProvidedFDs' is too long (74 > 60) (funlen)
func getProvidedFDs() (savedErr error) {
     ^
modules/graceful/restart_unix.go:41:6: Function 'RestartProcess' has too many statements (41 > 40) (funlen)
func RestartProcess() (int, error) {
     ^
modules/indexer/code/bleve/bleve.go:259:19: Function 'Search' has too many statements (63 > 40) (funlen)
func (b *Indexer) Search(ctx context.Context, opts *internal.SearchOptions) (int64, []*internal.SearchResult, []*internal.SearchResultLanguages, error) {
                  ^
modules/indexer/issues/db/options.go:17:6: Function 'ToDBOptions' is too long (92 > 60) (funlen)
func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_model.IssuesOptions, error) {
     ^
modules/indexer/issues/internal/tests/tests.go:26:6: Function 'TestIndexer' is too long (61 > 60) (funlen)
func TestIndexer(t *testing.T, indexer internal.Indexer) {
     ^
modules/lfstransfer/backend/backend.go:55:24: Function 'Batch' has too many statements (71 > 40) (funlen)
func (g *GiteaBackend) Batch(_ string, pointers []transfer.BatchItem, args transfer.Args) ([]transfer.BatchItem, error) {
                       ^
v1.62.2
models/activities/user_heatmap_test.go:20: Function 'TestGetUserHeatmapDataByUser' is too long (79 > 60) (funlen)
func TestGetUserHeatmapDataByUser(t *testing.T) {
models/git/commit_status_test.go:70: Function 'Test_CalcCommitStatus' is too long (112 > 60) (funlen)
func Test_CalcCommitStatus(t *testing.T) {
models/git/protected_tag_test.go:59: Function 'TestIsUserAllowedToControlTag' is too long (105 > 60) (funlen)
func TestIsUserAllowedToControlTag(t *testing.T) {
models/perm/access/repo_permission.go:193: Function 'GetUserRepoPermission' has too many statements (59 > 40) (funlen)
func GetUserRepoPermission(ctx context.Context, repo *repo_model.Repository, user *user_model.User) (perm Permission, err error) {
models/renderhelper/repo_file_test.go:20: Function 'TestRepoFile' is too long (64 > 60) (funlen)
func TestRepoFile(t *testing.T) {
models/user/email_address_test.go:89: Function 'TestListEmails' is too long (64 > 60) (funlen)
func TestListEmails(t *testing.T) {
models/user/user_test.go:64: Function 'TestSearchUsers' is too long (69 > 60) (funlen)
func TestSearchUsers(t *testing.T) {
modules/highlight/highlight_test.go:32: Function 'TestFile' is too long (88 > 60) (funlen)
func TestFile(t *testing.T) {
modules/indexer/code/elasticsearch/elasticsearch.go:361: Function 'Search' is too long (82 > 60) (funlen)
func (b *Indexer) Search(ctx context.Context, opts *internal.SearchOptions) (int64, []*internal.SearchResult, []*internal.SearchResultLanguages, error) {
modules/indexer/code/git.go:100: Function 'nonGenesisChanges' has too many statements (62 > 40) (funlen)
func nonGenesisChanges(ctx context.Context, repo *repo_model.Repository, revision string) (*internal.RepoChanges, error) {
modules/indexer/code/indexer.go:95: Function 'Init' has too many statements (75 > 40) (funlen)
func Init() {
modules/indexer/code/indexer_test.go:36: Function 'testIndexer' is too long (241 > 60) (funlen)
func testIndexer(name string, t *testing.T, indexer internal.Indexer) {
modules/indexer/issues/elasticsearch/elasticsearch.go:145: Function 'Search' has too many statements (58 > 40) (funlen)
func (b *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (*internal.SearchResult, error) {
modules/markup/markdown/math/inline_parser.go:58: Function 'Parse' has too many statements (45 > 40) (funlen)
func (parser *inlineParser) Parse(parent ast.Node, block text.Reader, pc parser.Context) ast.Node {
routers/api/packages/arch/arch.go:44: Function 'UploadPackageFile' has too many statements (57 > 40) (funlen)
func UploadPackageFile(ctx *context.Context) {
routers/api/packages/arch/arch.go:169: Function 'GetPackageOrRepositoryFile' has too many statements (47 > 40) (funlen)
func GetPackageOrRepositoryFile(ctx *context.Context) {
routers/api/packages/rpm/rpm.go:119: Function 'UploadPackageFile' has too many statements (49 > 40) (funlen)
func UploadPackageFile(ctx *context.Context) {
routers/api/packages/rpm/rpm.go:248: Function 'DeletePackageFile' is too long (68 > 60) (funlen)
func DeletePackageFile(webctx *context.Context) {
routers/api/v1/admin/user.go:53: Function 'CreateUser' is too long (108 > 60) (funlen)
func CreateUser(ctx *context.APIContext) {
routers/api/v1/admin/user.go:165: Function 'EditUser' is too long (95 > 60) (funlen)
func EditUser(ctx *context.APIContext) {
routers/api/v1/api.go:137: Function 'repoAssignment' is too long (89 > 60) (funlen)
func repoAssignment() func(ctx *context.APIContext) {
routers/api/v1/api.go:856: Function 'Routes' is too long (800 > 60) (funlen)
func Routes() *web.Router {
routers/web/user/setting/account.go:104: Function 'EmailPost' has too many statements (78 > 40) (funlen)
func EmailPost(ctx *context.Context) {
routers/web/user/setting/account.go:260: Function 'DeleteAccount' has too many statements (44 > 40) (funlen)
func DeleteAccount(ctx *context.Context) {
routers/web/user/setting/account_test.go:19: Function 'TestChangePassword' is too long (81 > 60) (funlen)
func TestChangePassword(t *testing.T) {
routers/web/user/setting/keys.go:46: Function 'KeysPost' has too many statements (151 > 40) (funlen)
func KeysPost(ctx *context.Context) {
routers/web/user/setting/profile.go:57: Function 'ProfilePost' has too many statements (44 > 40) (funlen)
func ProfilePost(ctx *context.Context) {
routers/web/user/setting/profile.go:231: Function 'Repos' is too long (103 > 60) (funlen)
func Repos(ctx *context.Context) {
services/context/upload/upload_test.go:14: Function 'TestUpload' is too long (179 > 60) (funlen)
func TestUpload(t *testing.T) {
services/issue/assignee.go:88: Function 'isValidReviewRequest' is too long (80 > 60) (funlen)
func isValidReviewRequest(ctx context.Context, reviewer, doer *user_model.User, isAdd bool, issue *issues_model.Issue, permDoer *access_model.Permission) error {
services/issue/commit.go:106: Function 'UpdateIssuesCommit' has too many statements (51 > 40) (funlen)
func UpdateIssuesCommit(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, commits []*repository.PushCommit, branchName string) error {
services/issue/commit_test.go:21: Function 'TestUpdateIssuesCommit' is too long (99 > 60) (funlen)
func TestUpdateIssuesCommit(t *testing.T) {
services/issue/issue.go:261: Function 'deleteIssue' is too long (64 > 60) (funlen)
func deleteIssue(ctx context.Context, issue *issues_model.Issue) error {
services/issue/pull.go:43: Function 'PullRequestCodeOwnersReview' has too many statements (55 > 40) (funlen)
func PullRequestCodeOwnersReview(ctx context.Context, issue *issues_model.Issue, pr *issues_model.PullRequest) ([]*ReviewRequestNotifier, error) {
services/mailer/sender/smtp.go:26: Function 'Send' has too many statements (62 > 40) (funlen)
func (s *SMTPSender) Send(from string, to []string, msg io.WriterTo) error {
services/org/team.go:28: Function 'NewTeam' is too long (61 > 60) (funlen)
func NewTeam(ctx context.Context, t *organization.Team) (err error) {
services/org/team.go:93: Function 'UpdateTeam' is too long (70 > 60) (funlen)
func UpdateTeam(ctx context.Context, t *organization.Team, authChanged, includeAllChanged bool) (err error) {
services/org/team.go:229: Function 'AddTeamMember' is too long (89 > 60) (funlen)
func AddTeamMember(ctx context.Context, team *organization.Team, user *user_model.User) error {
services/org/team_test.go:187: Function 'TestIncludesAllRepositoriesTeams' has too many statements (56 > 40) (funlen)
func TestIncludesAllRepositoriesTeams(t *testing.T) {
services/org/user.go:19: Function 'RemoveOrgUser' is too long (82 > 60) (funlen)
func RemoveOrgUser(ctx context.Context, org *organization.Organization, user *user_model.User) error {
services/packages/rpm/repository.go:162: Function 'BuildSpecificRepositoryFiles' has too many statements (45 > 40) (funlen)
func BuildSpecificRepositoryFiles(ctx context.Context, ownerID int64, group string) error {
services/packages/rpm/repository.go:258: Function 'buildRepomd' is too long (69 > 60) (funlen)
func buildRepomd(ctx context.Context, pv *packages_model.PackageVersion, ownerID int64, data []*repoData, group string) error {
services/packages/rpm/repository.go:331: Function 'buildPrimary' is too long (139 > 60) (funlen)
func buildPrimary(ctx context.Context, pv *packages_model.PackageVersion, pfs []*packages_model.PackageFile, c packageCache, group string) (*repoData, error) {
services/repository/archiver/archiver.go:166: Function 'doArchive' has too many statements (48 > 40) (funlen)
func doArchive(ctx context.Context, r *ArchiveRequest) (*repo_model.RepoArchiver, error) {
services/user/block.go:70: Function 'BlockUser' is too long (63 > 60) (funlen)
func BlockUser(ctx context.Context, doer, blocker, blockee *user_model.User, note string) error {
services/user/delete.go:31: Function 'deleteUser' has too many statements (61 > 40) (funlen)
func deleteUser(ctx context.Context, u *user_model.User, purge bool) (err error) {
services/user/update.go:42: Function 'UpdateUser' has too many statements (66 > 40) (funlen)
func UpdateUser(ctx context.Context, u *user_model.User, opts *UpdateOptions) error {
services/user/update_test.go:19: Function 'TestUpdateUser' has too many statements (43 > 40) (funlen)
func TestUpdateUser(t *testing.T) {
services/user/user.go:34: Function 'RenameUser' has too many statements (49 > 40) (funlen)
func RenameUser(ctx context.Context, u *user_model.User, newUserName string) error {
services/user/user.go:124: Function 'DeleteUser' has too many statements (59 > 40) (funlen)
func DeleteUser(ctx context.Context, u *user_model.User, purge bool) error {
Command Mean [s] Min [s] Max [s] Relative
local 2.224 ± 0.038 2.176 2.316 1.00 ± 0.02
v1.62.2 2.220 ± 0.026 2.189 2.266 1.00

google/go-github

local
test/fields/fields.go:69:6: Function 'testType' is too long (63 > 60) (funlen)
func testType(urlStr string, typ interface{}) error {
     ^
github/github.go:393:18: Function 'initialize' has too many statements (46 > 40) (funlen)
func (c *Client) initialize() {
                 ^
github/github.go:677:20: Function 'populatePageValues' is too long (61 > 60) (funlen)
func (r *Response) populatePageValues() {
                   ^
github/github.go:816:18: Function 'BareDo' has too many statements (47 > 40) (funlen)
func (c *Client) BareDo(ctx context.Context, req *http.Request) (*Response, error) {
                 ^
github/repos_rules.go:405:26: Function 'UnmarshalJSON' has too many statements (106 > 40) (funlen)
func (r *RepositoryRule) UnmarshalJSON(data []byte) error {
                         ^
github/strings.go:28:6: Function 'stringifyValue' is too long (64 > 60) (funlen)
func stringifyValue(w *bytes.Buffer, val reflect.Value) {
     ^
github/actions_required_workflows_test.go:18:6: Function 'TestActionsService_ListOrgRequiredWorkflows' is too long (62 > 60) (funlen)
func TestActionsService_ListOrgRequiredWorkflows(t *testing.T) {
     ^
github/actions_required_workflows_test.go:83:6: Function 'TestActionsService_CreateRequiredWorkflow' is too long (63 > 60) (funlen)
func TestActionsService_CreateRequiredWorkflow(t *testing.T) {
     ^
github/actions_required_workflows_test.go:200:6: Function 'TestActionsService_UpdateRequiredWorkflow' is too long (65 > 60) (funlen)
func TestActionsService_UpdateRequiredWorkflow(t *testing.T) {
     ^
github/actions_secrets_test.go:19:6: Function 'TestPublicKey_UnmarshalJSON' is too long (75 > 60) (funlen)
func TestPublicKey_UnmarshalJSON(t *testing.T) {
     ^
github/actions_workflow_jobs_test.go:359:6: Function 'TestJobs_Marshal' is too long (70 > 60) (funlen)
func TestJobs_Marshal(t *testing.T) {
     ^
github/actions_workflow_runs_test.go:682:6: Function 'TestActionsService_GetWorkflowRunUsageByID' is too long (65 > 60) (funlen)
func TestActionsService_GetWorkflowRunUsageByID(t *testing.T) {
     ^
github/actions_workflow_runs_test.go:750:6: Function 'TestWorkflowRun_Marshal' is too long (262 > 60) (funlen)
func TestWorkflowRun_Marshal(t *testing.T) {
     ^
github/actions_workflow_runs_test.go:1015:6: Function 'TestWorkflowRuns_Marshal' is too long (256 > 60) (funlen)
func TestWorkflowRuns_Marshal(t *testing.T) {
     ^
github/actions_workflow_runs_test.go:1415:6: Function 'TestActionService_GetPendingDeployments' is too long (115 > 60) (funlen)
func TestActionService_GetPendingDeployments(t *testing.T) {
     ^
github/activity_test.go:151:6: Function 'TestFeeds_Marshal' is too long (88 > 60) (funlen)
func TestFeeds_Marshal(t *testing.T) {
     ^
github/activity_test.go:242:6: Function 'TestFeedLinks_Marshal' is too long (70 > 60) (funlen)
func TestFeedLinks_Marshal(t *testing.T) {
     ^
github/admin_stats_test.go:12:6: Function 'TestAdminService_GetAdminStats' is too long (84 > 60) (funlen)
func TestAdminService_GetAdminStats(t *testing.T) {
     ^
github/admin_stats_test.go:412:6: Function 'TestAdminStats_Marshal' is too long (118 > 60) (funlen)
func TestAdminStats_Marshal(t *testing.T) {
     ^
github/admin_users_test.go:90:6: Function 'TestUserImpersonation_Create' is too long (69 > 60) (funlen)
func TestUserImpersonation_Create(t *testing.T) {
     ^
github/apps_manifest_test.go:70:6: Function 'TestAppConfig_Marshal' is too long (76 > 60) (funlen)
func TestAppConfig_Marshal(t *testing.T) {
     ^
github/apps_marketplace_test.go:382:6: Function 'TestMarketplacePlanAccount_Marshal' is too long (106 > 60) (funlen)
func TestMarketplacePlanAccount_Marshal(t *testing.T) {
     ^
github/apps_test.go:122:6: Function 'TestAppsService_ListInstallations' is too long (131 > 60) (funlen)
func TestAppsService_ListInstallations(t *testing.T) {
     ^
github/apps_test.go:763:6: Function 'TestInstallationPermissions_Marshal' is too long (76 > 60) (funlen)
func TestInstallationPermissions_Marshal(t *testing.T) {
     ^
github/apps_test.go:842:6: Function 'TestInstallation_Marshal' is too long (200 > 60) (funlen)
func TestInstallation_Marshal(t *testing.T) {
     ^
github/apps_test.go:1045:6: Function 'TestInstallationTokenOptions_Marshal' is too long (84 > 60) (funlen)
func TestInstallationTokenOptions_Marshal(t *testing.T) {
     ^
github/apps_test.go:1132:6: Function 'TestInstallationToken_Marshal' is too long (100 > 60) (funlen)
func TestInstallationToken_Marshal(t *testing.T) {
     ^
github/apps_test.go:1235:6: Function 'TestApp_Marshal' is too long (142 > 60) (funlen)
func TestApp_Marshal(t *testing.T) {
     ^
github/authorizations_test.go:309:6: Function 'TestAuthorization_Marshal' is too long (82 > 60) (funlen)
func TestAuthorization_Marshal(t *testing.T) {
     ^
github/billing_test.go:435:6: Function 'TestBillingService_GetAdvancedSecurityActiveCommittersOrg' is too long (67 > 60) (funlen)
func TestBillingService_GetAdvancedSecurityActiveCommittersOrg(t *testing.T) {
     ^
github/checks_test.go:117:6: Function 'TestChecksService_CreateCheckRun' is too long (64 > 60) (funlen)
func TestChecksService_CreateCheckRun(t *testing.T) {
     ^
github/checks_test.go:244:6: Function 'TestChecksService_UpdateCheckRun' is too long (63 > 60) (funlen)
func TestChecksService_UpdateCheckRun(t *testing.T) {
     ^
github/checks_test.go:310:6: Function 'TestChecksService_ListCheckRunsForRef' is too long (69 > 60) (funlen)
func TestChecksService_ListCheckRunsForRef(t *testing.T) {
     ^
github/checks_test.go:382:6: Function 'TestChecksService_ListCheckRunsCheckSuite' is too long (64 > 60) (funlen)
func TestChecksService_ListCheckRunsCheckSuite(t *testing.T) {
     ^
github/checks_test.go:449:6: Function 'TestChecksService_ListCheckSuiteForRef' is too long (63 > 60) (funlen)
func TestChecksService_ListCheckSuiteForRef(t *testing.T) {
     ^
github/checks_test.go:643:6: Function 'Test_CheckRunMarshal' is too long (180 > 60) (funlen)
func Test_CheckRunMarshal(t *testing.T) {
     ^
github/checks_test.go:826:6: Function 'Test_CheckSuiteMarshal' is too long (137 > 60) (funlen)
func Test_CheckSuiteMarshal(t *testing.T) {
     ^
github/checks_test.go:1132:6: Function 'TestCreateCheckRunOptions_Marshal' is too long (94 > 60) (funlen)
func TestCreateCheckRunOptions_Marshal(t *testing.T) {
     ^
github/checks_test.go:1229:6: Function 'TestUpdateCheckRunOptions_Marshal' is too long (90 > 60) (funlen)
func TestUpdateCheckRunOptions_Marshal(t *testing.T) {
     ^
github/checks_test.go:1322:6: Function 'TestListCheckRunsResults_Marshal' is too long (188 > 60) (funlen)
func TestListCheckRunsResults_Marshal(t *testing.T) {
     ^
github/checks_test.go:1513:6: Function 'TestListCheckSuiteResults_Marshal' is too long (138 > 60) (funlen)
func TestListCheckSuiteResults_Marshal(t *testing.T) {
     ^
github/code_scanning_test.go:144:6: Function 'TestCodeScanningService_ListAlertsForOrg' is too long (201 > 60) (funlen)
func TestCodeScanningService_ListAlertsForOrg(t *testing.T) {
     ^
github/code_scanning_test.go:348:6: Function 'TestCodeScanningService_ListAlertsForOrgLisCursorOptions' is too long (123 > 60) (funlen)
func TestCodeScanningService_ListAlertsForOrgLisCursorOptions(t *testing.T) {
     ^
github/code_scanning_test.go:474:6: Function 'TestCodeScanningService_ListAlertsForRepo' is too long (191 > 60) (funlen)
func TestCodeScanningService_ListAlertsForRepo(t *testing.T) {
     ^
github/code_scanning_test.go:668:6: Function 'TestCodeScanningService_UpdateAlert' is too long (115 > 60) (funlen)
func TestCodeScanningService_UpdateAlert(t *testing.T) {
     ^
github/code_scanning_test.go:786:6: Function 'TestCodeScanningService_ListAlertInstances' is too long (76 > 60) (funlen)
func TestCodeScanningService_ListAlertInstances(t *testing.T) {
     ^
github/code_scanning_test.go:865:6: Function 'TestCodeScanningService_GetAlert' is too long (109 > 60) (funlen)
func TestCodeScanningService_GetAlert(t *testing.T) {
     ^
github/code_scanning_test.go:1120:6: Function 'TestCodeScanningService_ListAnalysesForRepo' is too long (121 > 60) (funlen)
func TestCodeScanningService_ListAnalysesForRepo(t *testing.T) {
     ^
github/code_scanning_test.go:1244:6: Function 'TestCodeScanningService_GetAnalysis' is too long (73 > 60) (funlen)
func TestCodeScanningService_GetAnalysis(t *testing.T) {
     ^
github/code_scanning_test.go:1361:6: Function 'TestCodeScanningService_ListCodeQLDatabases' is too long (96 > 60) (funlen)
func TestCodeScanningService_ListCodeQLDatabases(t *testing.T) {
     ^
v1.62.2
test/fields/fields.go:69: Function 'testType' is too long (68 > 60) (funlen)
func testType(urlStr string, typ interface{}) error {
test/integration/authorizations_test.go:28: Function 'TestAuthorizationsAppOperations' is too long (73 > 60) (funlen)
func TestAuthorizationsAppOperations(t *testing.T) {
test/integration/repos_test.go:82: Function 'TestRepositories_EditBranches' is too long (74 > 60) (funlen)
func TestRepositories_EditBranches(t *testing.T) {
test/integration/users_test.go:96: Function 'TestUsers_Emails' is too long (63 > 60) (funlen)
func TestUsers_Emails(t *testing.T) {
test/integration/users_test.go:162: Function 'TestUsers_Keys' has too many statements (41 > 40) (funlen)
func TestUsers_Keys(t *testing.T) {
github/github.go:393: Function 'initialize' has too many statements (46 > 40) (funlen)
func (c *Client) initialize() {
github/github.go:677: Function 'populatePageValues' is too long (64 > 60) (funlen)
func (r *Response) populatePageValues() {
github/github.go:816: Function 'BareDo' has too many statements (47 > 40) (funlen)
func (c *Client) BareDo(ctx context.Context, req *http.Request) (*Response, error) {
github/repos_rules.go:405: Function 'UnmarshalJSON' has too many statements (106 > 40) (funlen)
func (r *RepositoryRule) UnmarshalJSON(data []byte) error {
github/strings.go:28: Function 'stringifyValue' is too long (65 > 60) (funlen)
func stringifyValue(w *bytes.Buffer, val reflect.Value) {
github/actions_required_workflows_test.go:18: Function 'TestActionsService_ListOrgRequiredWorkflows' is too long (62 > 60) (funlen)
func TestActionsService_ListOrgRequiredWorkflows(t *testing.T) {
github/actions_required_workflows_test.go:83: Function 'TestActionsService_CreateRequiredWorkflow' is too long (63 > 60) (funlen)
func TestActionsService_CreateRequiredWorkflow(t *testing.T) {
github/actions_required_workflows_test.go:200: Function 'TestActionsService_UpdateRequiredWorkflow' is too long (65 > 60) (funlen)
func TestActionsService_UpdateRequiredWorkflow(t *testing.T) {
github/actions_secrets_test.go:19: Function 'TestPublicKey_UnmarshalJSON' is too long (75 > 60) (funlen)
func TestPublicKey_UnmarshalJSON(t *testing.T) {
github/actions_workflow_jobs_test.go:359: Function 'TestJobs_Marshal' is too long (70 > 60) (funlen)
func TestJobs_Marshal(t *testing.T) {
github/actions_workflow_runs_test.go:682: Function 'TestActionsService_GetWorkflowRunUsageByID' is too long (65 > 60) (funlen)
func TestActionsService_GetWorkflowRunUsageByID(t *testing.T) {
github/actions_workflow_runs_test.go:750: Function 'TestWorkflowRun_Marshal' is too long (262 > 60) (funlen)
func TestWorkflowRun_Marshal(t *testing.T) {
github/actions_workflow_runs_test.go:1015: Function 'TestWorkflowRuns_Marshal' is too long (256 > 60) (funlen)
func TestWorkflowRuns_Marshal(t *testing.T) {
github/actions_workflow_runs_test.go:1415: Function 'TestActionService_GetPendingDeployments' is too long (115 > 60) (funlen)
func TestActionService_GetPendingDeployments(t *testing.T) {
github/activity_test.go:151: Function 'TestFeeds_Marshal' is too long (88 > 60) (funlen)
func TestFeeds_Marshal(t *testing.T) {
github/activity_test.go:242: Function 'TestFeedLinks_Marshal' is too long (70 > 60) (funlen)
func TestFeedLinks_Marshal(t *testing.T) {
github/admin_stats_test.go:12: Function 'TestAdminService_GetAdminStats' is too long (84 > 60) (funlen)
func TestAdminService_GetAdminStats(t *testing.T) {
github/admin_stats_test.go:412: Function 'TestAdminStats_Marshal' is too long (118 > 60) (funlen)
func TestAdminStats_Marshal(t *testing.T) {
github/admin_users_test.go:90: Function 'TestUserImpersonation_Create' is too long (69 > 60) (funlen)
func TestUserImpersonation_Create(t *testing.T) {
github/apps_manifest_test.go:70: Function 'TestAppConfig_Marshal' is too long (76 > 60) (funlen)
func TestAppConfig_Marshal(t *testing.T) {
github/apps_marketplace_test.go:382: Function 'TestMarketplacePlanAccount_Marshal' is too long (106 > 60) (funlen)
func TestMarketplacePlanAccount_Marshal(t *testing.T) {
github/apps_test.go:122: Function 'TestAppsService_ListInstallations' is too long (131 > 60) (funlen)
func TestAppsService_ListInstallations(t *testing.T) {
github/apps_test.go:763: Function 'TestInstallationPermissions_Marshal' is too long (76 > 60) (funlen)
func TestInstallationPermissions_Marshal(t *testing.T) {
github/apps_test.go:842: Function 'TestInstallation_Marshal' is too long (200 > 60) (funlen)
func TestInstallation_Marshal(t *testing.T) {
github/apps_test.go:1045: Function 'TestInstallationTokenOptions_Marshal' is too long (84 > 60) (funlen)
func TestInstallationTokenOptions_Marshal(t *testing.T) {
github/apps_test.go:1132: Function 'TestInstallationToken_Marshal' is too long (100 > 60) (funlen)
func TestInstallationToken_Marshal(t *testing.T) {
github/apps_test.go:1235: Function 'TestApp_Marshal' is too long (142 > 60) (funlen)
func TestApp_Marshal(t *testing.T) {
github/authorizations_test.go:309: Function 'TestAuthorization_Marshal' is too long (82 > 60) (funlen)
func TestAuthorization_Marshal(t *testing.T) {
github/billing_test.go:435: Function 'TestBillingService_GetAdvancedSecurityActiveCommittersOrg' is too long (67 > 60) (funlen)
func TestBillingService_GetAdvancedSecurityActiveCommittersOrg(t *testing.T) {
github/checks_test.go:117: Function 'TestChecksService_CreateCheckRun' is too long (64 > 60) (funlen)
func TestChecksService_CreateCheckRun(t *testing.T) {
github/checks_test.go:244: Function 'TestChecksService_UpdateCheckRun' is too long (63 > 60) (funlen)
func TestChecksService_UpdateCheckRun(t *testing.T) {
github/checks_test.go:310: Function 'TestChecksService_ListCheckRunsForRef' is too long (69 > 60) (funlen)
func TestChecksService_ListCheckRunsForRef(t *testing.T) {
github/checks_test.go:382: Function 'TestChecksService_ListCheckRunsCheckSuite' is too long (64 > 60) (funlen)
func TestChecksService_ListCheckRunsCheckSuite(t *testing.T) {
github/checks_test.go:449: Function 'TestChecksService_ListCheckSuiteForRef' is too long (63 > 60) (funlen)
func TestChecksService_ListCheckSuiteForRef(t *testing.T) {
github/checks_test.go:643: Function 'Test_CheckRunMarshal' is too long (180 > 60) (funlen)
func Test_CheckRunMarshal(t *testing.T) {
github/checks_test.go:826: Function 'Test_CheckSuiteMarshal' is too long (137 > 60) (funlen)
func Test_CheckSuiteMarshal(t *testing.T) {
github/checks_test.go:1132: Function 'TestCreateCheckRunOptions_Marshal' is too long (94 > 60) (funlen)
func TestCreateCheckRunOptions_Marshal(t *testing.T) {
github/checks_test.go:1229: Function 'TestUpdateCheckRunOptions_Marshal' is too long (90 > 60) (funlen)
func TestUpdateCheckRunOptions_Marshal(t *testing.T) {
github/checks_test.go:1322: Function 'TestListCheckRunsResults_Marshal' is too long (188 > 60) (funlen)
func TestListCheckRunsResults_Marshal(t *testing.T) {
github/checks_test.go:1513: Function 'TestListCheckSuiteResults_Marshal' is too long (138 > 60) (funlen)
func TestListCheckSuiteResults_Marshal(t *testing.T) {
github/code_scanning_test.go:144: Function 'TestCodeScanningService_ListAlertsForOrg' is too long (201 > 60) (funlen)
func TestCodeScanningService_ListAlertsForOrg(t *testing.T) {
github/code_scanning_test.go:348: Function 'TestCodeScanningService_ListAlertsForOrgLisCursorOptions' is too long (123 > 60) (funlen)
func TestCodeScanningService_ListAlertsForOrgLisCursorOptions(t *testing.T) {
github/code_scanning_test.go:474: Function 'TestCodeScanningService_ListAlertsForRepo' is too long (191 > 60) (funlen)
func TestCodeScanningService_ListAlertsForRepo(t *testing.T) {
github/code_scanning_test.go:668: Function 'TestCodeScanningService_UpdateAlert' is too long (115 > 60) (funlen)
func TestCodeScanningService_UpdateAlert(t *testing.T) {
github/code_scanning_test.go:786: Function 'TestCodeScanningService_ListAlertInstances' is too long (76 > 60) (funlen)
func TestCodeScanningService_ListAlertInstances(t *testing.T) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 948.2 ± 10.5 934.6 970.2 1.03 ± 0.02
v1.62.2 922.4 ± 14.6 902.9 946.5 1.00

golangci/golangci-lint

Command Mean [ms] Min [ms] Max [ms] Relative
local 564.7 ± 8.3 551.4 577.1 1.06 ± 0.04
v1.62.2 530.9 ± 16.2 518.4 575.1 1.00

goreleaser/goreleaser

local
internal/pipe/bluesky/bluesky.go:40:15: Function 'Announce' is too long (69 > 60) (funlen)
func (p Pipe) Announce(ctx *context.Context) error {
              ^
cmd/build.go:46:6: Function 'newBuildCmd' is too long (66 > 60) (funlen)
func newBuildCmd() *buildCmd {
     ^
cmd/check.go:24:6: Function 'newCheckCmd' is too long (80 > 60) (funlen)
func newCheckCmd() *checkCmd {
     ^
cmd/healthcheck.go:25:6: Function 'newHealthcheckCmd' is too long (65 > 60) (funlen)
func newHealthcheckCmd() *healthcheckCmd {
     ^
cmd/init.go:21:6: Function 'newInitCmd' is too long (82 > 60) (funlen)
func newInitCmd() *initCmd {
     ^
cmd/build_test.go:68:6: Function 'TestSetupPipeline' is too long (86 > 60) (funlen)
func TestSetupPipeline(t *testing.T) {
     ^
cmd/build_test.go:157:6: Function 'TestBuildFlags' is too long (128 > 60) (funlen)
func TestBuildFlags(t *testing.T) {
     ^
cmd/release_test.go:58:6: Function 'TestReleaseFlags' is too long (95 > 60) (funlen)
func TestReleaseFlags(t *testing.T) {
     ^
internal/archivefiles/archivefiles_test.go:14:6: Function 'TestEval' is too long (285 > 60) (funlen)
func TestEval(t *testing.T) {
     ^
internal/artifact/artifact.go:98:15: Function 'String' has too many statements (53 > 40) (funlen)
func (t Type) String() string {
              ^
internal/artifact/artifact.go:250:19: Function 'Checksum' has too many statements (46 > 40) (funlen)
func (a Artifact) Checksum(algorithm string) (string, error) {
                  ^
internal/artifact/artifact_test.go:62:6: Function 'TestFilter' is too long (114 > 60) (funlen)
func TestFilter(t *testing.T) {
     ^
internal/artifact/artifact_test.go:736:6: Function 'Test_ByBinaryLikeArtifacts' is too long (257 > 60) (funlen)
func Test_ByBinaryLikeArtifacts(t *testing.T) {
     ^
internal/builders/buildtarget/targets.go:74:6: Function 'allBuildTargets' is too long (68 > 60) (funlen)
func allBuildTargets(build config.Build) (targets []target) {
     ^
internal/builders/buildtarget/targets_test.go:11:6: Function 'TestAllBuildTargets' is too long (190 > 60) (funlen)
func TestAllBuildTargets(t *testing.T) {
     ^
internal/builders/golang/build.go:93:17: Function 'WithDefaults' is too long (73 > 60) (funlen)
func (*Builder) WithDefaults(build config.Build) (config.Build, error) {
                ^
internal/builders/golang/build.go:243:17: Function 'Build' has too many statements (42 > 40) (funlen)
func (*Builder) Build(ctx *context.Context, build config.Build, options api.Options) error {
                ^
internal/builders/golang/build_test.go:41:6: Function 'TestParse' is too long (69 > 60) (funlen)
func TestParse(t *testing.T) {
     ^
internal/builders/golang/build_test.go:113:6: Function 'TestWithDefaults' is too long (251 > 60) (funlen)
func TestWithDefaults(t *testing.T) {
     ^
internal/builders/golang/build_test.go:456:6: Function 'TestBuild' is too long (201 > 60) (funlen)
func TestBuild(t *testing.T) {
     ^
internal/builders/golang/build_test.go:1070:6: Function 'TestBuildModTimestamp' is too long (65 > 60) (funlen)
func TestBuildModTimestamp(t *testing.T) {
     ^
internal/builders/golang/build_test.go:1140:6: Function 'TestBuildGoBuildLine' is too long (148 > 60) (funlen)
func TestBuildGoBuildLine(t *testing.T) {
     ^
internal/builders/golang/build_test.go:1291:6: Function 'TestOverrides' is too long (361 > 60) (funlen)
func TestOverrides(t *testing.T) {
     ^
internal/builders/rust/build.go:84:19: Function 'WithDefaults' is too long (71 > 60) (funlen)
func (b *Builder) WithDefaults(build config.Build) (config.Build, error) {
                  ^
internal/builders/rust/build.go:159:19: Function 'Build' has too many statements (47 > 40) (funlen)
func (b *Builder) Build(ctx *context.Context, build config.Build, options api.Options) error {
                  ^
internal/builders/rust/build_test.go:28:6: Function 'TestWithDefaults' is too long (80 > 60) (funlen)
func TestWithDefaults(t *testing.T) {
     ^
internal/builders/rust/build_test.go:111:6: Function 'TestBuild' is too long (77 > 60) (funlen)
func TestBuild(t *testing.T) {
     ^
internal/builders/zig/build.go:66:19: Function 'WithDefaults' is too long (75 > 60) (funlen)
func (b *Builder) WithDefaults(build config.Build) (config.Build, error) {
                  ^
internal/builders/zig/build.go:146:19: Function 'Build' has too many statements (43 > 40) (funlen)
func (b *Builder) Build(ctx *context.Context, build config.Build, options api.Options) error {
                  ^
internal/builders/zig/build_test.go:65:6: Function 'TestWithDefaults' is too long (80 > 60) (funlen)
func TestWithDefaults(t *testing.T) {
     ^
internal/client/git.go:40:21: Function 'CreateFiles' has too many statements (44 > 40) (funlen)
func (g *gitClient) CreateFiles(
                    ^
internal/client/github.go:274:24: Function 'CreateFile' is too long (87 > 60) (funlen)
func (c *githubClient) CreateFile(
                       ^
internal/client/gitlab.go:178:24: Function 'CreateFile' has too many statements (61 > 40) (funlen)
func (c *gitlabClient) CreateFile(
                       ^
internal/client/gitlab.go:362:24: Function 'CreateRelease' is too long (67 > 60) (funlen)
func (c *gitlabClient) CreateRelease(ctx *context.Context, body string) (releaseID string, err error) {
                       ^
internal/client/gitlab.go:467:24: Function 'Upload' is too long (100 > 60) (funlen)
func (c *gitlabClient) Upload(
                       ^
internal/client/config_test.go:30:6: Function 'TestTemplateRef' is too long (67 > 60) (funlen)
func TestTemplateRef(t *testing.T) {
     ^
internal/client/git_test.go:15:6: Function 'TestGitClient' is too long (221 > 60) (funlen)
func TestGitClient(t *testing.T) {
     ^
internal/client/github_test.go:26:6: Function 'TestNewGitHubClient' is too long (91 > 60) (funlen)
func TestNewGitHubClient(t *testing.T) {
     ^
internal/client/github_test.go:1053:6: Function 'TestGitHubCreateReleaseDeleteExistingDraft' is too long (66 > 60) (funlen)
func TestGitHubCreateReleaseDeleteExistingDraft(t *testing.T) {
     ^
internal/client/gitlab_test.go:24:6: Function 'TestGitLabReleaseURLTemplate' is too long (70 > 60) (funlen)
func TestGitLabReleaseURLTemplate(t *testing.T) {
     ^
internal/client/gitlab_test.go:158:6: Function 'TestGitLabURLsDownloadTemplate' is too long (112 > 60) (funlen)
func TestGitLabURLsDownloadTemplate(t *testing.T) {
     ^
internal/client/gitlab_test.go:545:6: Function 'TestGitLabCreateFile' is too long (113 > 60) (funlen)
func TestGitLabCreateFile(t *testing.T) {
     ^
internal/exec/exec_test.go:19:6: Function 'TestExecute' is too long (413 > 60) (funlen)
func TestExecute(t *testing.T) {
     ^
internal/http/http_test.go:198:6: Function 'TestUpload' is too long (493 > 60) (funlen)
func TestUpload(t *testing.T) {
     ^
internal/pipe/archive/archive.go:148:6: Function 'create' has too many statements (61 > 40) (funlen)
func create(ctx *context.Context, arch config.Archive, binaries []*artifact.Artifact, format string) error {
     ^
internal/pipe/archive/archive_test.go:35:6: Function 'TestRunPipe' is too long (249 > 60) (funlen)
func TestRunPipe(t *testing.T) {
     ^
internal/pipe/archive/archive_test.go:289:6: Function 'TestRunPipeDifferentBinaryCount' is too long (68 > 60) (funlen)
func TestRunPipeDifferentBinaryCount(t *testing.T) {
     ^
internal/pipe/archive/archive_test.go:406:6: Function 'TestRunPipeBinary' is too long (101 > 60) (funlen)
func TestRunPipeBinary(t *testing.T) {
     ^
internal/pipe/archive/archive_test.go:863:6: Function 'TestBinaryOverride' is too long (78 > 60) (funlen)
func TestBinaryOverride(t *testing.T) {
     ^
internal/pipe/archive/archive_test.go:1062:6: Function 'TestArchive_globbing' is too long (81 > 60) (funlen)
func TestArchive_globbing(t *testing.T) {
     ^
v1.62.2
internal/pipe/blob/blob_minio_test.go:77: Function 'TestMinioUpload' is too long (104 > 60) (funlen)
func TestMinioUpload(t *testing.T) {
internal/pipe/blob/blob_minio_test.go:340: Function 'TestMinioUploadSkip' is too long (88 > 60) (funlen)
func TestMinioUploadSkip(t *testing.T) {
internal/pipe/blob/blob_test.go:132: Function 'TestURL' is too long (86 > 60) (funlen)
func TestURL(t *testing.T) {
internal/pipe/env/env.go:55: Function 'Run' has too many statements (54 > 40) (funlen)
func (Pipe) Run(ctx *context.Context) error {
internal/pipe/aursources/aursources.go:105: Function 'doRun' is too long (69 > 60) (funlen)
func doRun(ctx *context.Context, aur config.AURSource, cl client.ReleaseURLTemplater) error {
internal/pipe/aursources/aursources_test.go:128: Function 'TestFullPipe' is too long (219 > 60) (funlen)
func TestFullPipe(t *testing.T) {
internal/pipe/aursources/aursources_test.go:350: Function 'TestRunPipe' is too long (66 > 60) (funlen)
func TestRunPipe(t *testing.T) {
internal/pipe/aursources/aursources_test.go:419: Function 'TestRunPipeMultipleConfigurations' is too long (77 > 60) (funlen)
func TestRunPipeMultipleConfigurations(t *testing.T) {
internal/pipe/aursources/aursources_test.go:689: Function 'TestDefault' is too long (74 > 60) (funlen)
func TestDefault(t *testing.T) {
internal/pipe/nfpm/nfpm.go:181: Function 'create' has too many statements (116 > 40) (funlen)
func create(ctx *context.Context, fpm config.NFPM, format string, artifacts []*artifact.Artifact) error {
internal/pipe/nfpm/nfpm_test.go:95: Function 'TestRunPipe' has too many statements (95 > 40) (funlen)
func TestRunPipe(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:493: Function 'doTestRunPipeConventionalNameTemplate' has too many statements (47 > 40) (funlen)
func doTestRunPipeConventionalNameTemplate(t *testing.T, snapshot bool) {
internal/pipe/nfpm/nfpm_test.go:722: Function 'TestInvalidTemplate' is too long (108 > 60) (funlen)
func TestInvalidTemplate(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1006: Function 'TestDebSpecificConfig' is too long (132 > 60) (funlen)
func TestDebSpecificConfig(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1141: Function 'TestRPMSpecificConfig' is too long (69 > 60) (funlen)
func TestRPMSpecificConfig(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1274: Function 'TestAPKSpecificConfig' is too long (70 > 60) (funlen)
func TestAPKSpecificConfig(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1347: Function 'TestAPKSpecificScriptsConfig' is too long (69 > 60) (funlen)
func TestAPKSpecificScriptsConfig(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1419: Function 'TestIPKSpecificConfig' is too long (69 > 60) (funlen)
func TestIPKSpecificConfig(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1505: Function 'TestMeta' is too long (91 > 60) (funlen)
func TestMeta(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1599: Function 'TestSkipSign' is too long (68 > 60) (funlen)
func TestSkipSign(t *testing.T) {
internal/pipe/nfpm/nfpm_test.go:1670: Function 'TestBinDirTemplating' is too long (61 > 60) (funlen)
func TestBinDirTemplating(t *testing.T) {
internal/pipe/winget/winget.go:106: Function 'doRun' has too many statements (42 > 40) (funlen)
func (p Pipe) doRun(ctx *context.Context, winget config.Winget, cl client.ReleaseURLTemplater) error {
internal/pipe/winget/winget.go:269: Function 'doPublish' has too many statements (41 > 40) (funlen)
func doPublish(ctx *context.Context, cl client.Client, wingets []*artifact.Artifact) error {
internal/pipe/winget/winget.go:412: Function 'makeInstaller' is too long (71 > 60) (funlen)
func makeInstaller(ctx *context.Context, winget config.Winget, archives []*artifact.Artifact) (Installer, error) {
internal/pipe/winget/winget_test.go:44: Function 'TestRunPipe' is too long (720 > 60) (funlen)
func TestRunPipe(t *testing.T) {
internal/pipe/winget/winget_test.go:786: Function 'TestFormatBinary' is too long (64 > 60) (funlen)
func TestFormatBinary(t *testing.T) {
internal/pipe/bluesky/bluesky.go:40: Function 'Announce' is too long (70 > 60) (funlen)
func (p Pipe) Announce(ctx *context.Context) error {
pkg/archive/tarxz/tarxz_test.go:18: Function 'TestTarXzFile' has too many statements (41 > 40) (funlen)
func TestTarXzFile(t *testing.T) {
internal/pipe/changelog/changelog_test.go:633: Function 'TestGetChangeloger' is too long (119 > 60) (funlen)
func TestGetChangeloger(t *testing.T) {
internal/pipe/changelog/changelog_test.go:813: Function 'TestGroup' is too long (64 > 60) (funlen)
func TestGroup(t *testing.T) {
internal/pipe/changelog/changelog_test.go:900: Function 'TestChangelogFormat' is too long (80 > 60) (funlen)
func TestChangelogFormat(t *testing.T) {
internal/pipe/changelog/changelog_test.go:983: Function 'TestAbbrev' is too long (68 > 60) (funlen)
func TestAbbrev(t *testing.T) {
internal/archivefiles/archivefiles_test.go:14: Function 'TestEval' is too long (285 > 60) (funlen)
func TestEval(t *testing.T) {
internal/pipe/metadata/metadata_test.go:29: Function 'TestRun' is too long (70 > 60) (funlen)
func TestRun(t *testing.T) {
internal/builders/golang/build.go:93: Function 'WithDefaults' is too long (73 > 60) (funlen)
func (*Builder) WithDefaults(build config.Build) (config.Build, error) {
internal/builders/golang/build.go:243: Function 'Build' has too many statements (42 > 40) (funlen)
func (*Builder) Build(ctx *context.Context, build config.Build, options api.Options) error {
internal/builders/golang/build.go:366: Function 'buildGoBuildLine' is too long (64 > 60) (funlen)
func buildGoBuildLine(
internal/builders/golang/build_test.go:41: Function 'TestParse' is too long (69 > 60) (funlen)
func TestParse(t *testing.T) {
internal/builders/golang/build_test.go:113: Function 'TestWithDefaults' is too long (251 > 60) (funlen)
func TestWithDefaults(t *testing.T) {
internal/builders/golang/build_test.go:456: Function 'TestBuild' is too long (203 > 60) (funlen)
func TestBuild(t *testing.T) {
internal/builders/golang/build_test.go:1070: Function 'TestBuildModTimestamp' is too long (67 > 60) (funlen)
func TestBuildModTimestamp(t *testing.T) {
internal/builders/golang/build_test.go:1140: Function 'TestBuildGoBuildLine' is too long (148 > 60) (funlen)
func TestBuildGoBuildLine(t *testing.T) {
internal/builders/golang/build_test.go:1291: Function 'TestOverrides' is too long (361 > 60) (funlen)
func TestOverrides(t *testing.T) {
internal/pipe/build/build_test.go:606: Function 'TestBuildOptionsForTarget' is too long (127 > 60) (funlen)
func TestBuildOptionsForTarget(t *testing.T) {
internal/pipe/universalbinary/universalbinary.go:140: Function 'makeUniversalBinary' has too many statements (56 > 40) (funlen)
func makeUniversalBinary(ctx *context.Context, opts *build.Options, unibin config.UniversalBinary) error {
internal/pipe/universalbinary/universalbinary_test.go:26: Function 'TestDefault' is too long (70 > 60) (funlen)
func TestDefault(t *testing.T) {
internal/pipe/universalbinary/universalbinary_test.go:112: Function 'TestRun' has too many statements (45 > 40) (funlen)
func TestRun(t *testing.T) {
internal/artifact/artifact.go:98: Function 'String' has too many statements (53 > 40) (funlen)
func (t Type) String() string {
internal/artifact/artifact.go:250: Function 'Checksum' has too many statements (46 > 40) (funlen)
func (a Artifact) Checksum(algorithm string) (string, error) {
internal/artifact/artifact_test.go:62: Function 'TestFilter' is too long (114 > 60) (funlen)
func TestFilter(t *testing.T) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 870.4 ± 7.9 858.1 883.2 1.03 ± 0.02
v1.62.2 842.2 ± 17.1 815.1 881.7 1.00

grpc/grpc-go

local
benchmark/benchmark.go:139:22: Function 'UnconstrainedStreamingCall' has too many statements (43 > 40) (funlen)
func (s *testServer) UnconstrainedStreamingCall(stream testgrpc.BenchmarkService_StreamingCallServer, preloadMsgSize int) error {
                     ^
benchmark/benchmain/main.go:317:6: Function 'makeClients' has too many statements (43 > 40) (funlen)
func makeClients(bf stats.Features) ([]testgrpc.BenchmarkServiceClient, func()) {
     ^
benchmark/benchmain/main.go:644:6: Function 'makeFeaturesNum' has too many statements (44 > 40) (funlen)
func makeFeaturesNum(b *benchOpts) []int {
     ^
benchmark/benchmain/main.go:795:6: Function 'processFlags' is too long (84 > 60) (funlen)
func processFlags() *benchOpts {
     ^
benchmark/stats/stats.go:192:19: Function 'partialString' has too many statements (45 > 40) (funlen)
func (f Features) partialString(b *bytes.Buffer, wantFeatures []bool, sep, delim string) {
                  ^
benchmark/worker/benchmark_server.go:72:6: Function 'startBenchmarkServer' has too many statements (46 > 40) (funlen)
func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchmarkServer, error) {
     ^
channelz/internal/protoconv/sockopt_linux.go:38:6: Function 'sockoptToProto' is too long (84 > 60) (funlen)
func sockoptToProto(skopts *channelz.SocketOptionData) []*channelzpb.SocketOption {
     ^
internal/testutils/fakegrpclb/server.go:162:18: Function 'BalanceLoad' is too long (78 > 60) (funlen)
func (s *Server) BalanceLoad(stream lbgrpc.LoadBalancer_BalanceLoadServer) error {
                 ^
internal/testutils/xds/e2e/clientresources.go:211:6: Function 'defaultServerListenerCommon' is too long (140 > 60) (funlen)
func defaultServerListenerCommon(host string, port uint32, secLevel SecurityLevel, routeName string, inlineRouteConfig bool) *v3listenerpb.Listener {
     ^
internal/testutils/xds/e2e/clientresources.go:437:6: Function 'RouteConfigResourceWithOptions' is too long (64 > 60) (funlen)
func RouteConfigResourceWithOptions(opts RouteConfigOptions) *v3routepb.RouteConfiguration {
     ^
internal/testutils/xds/e2e/clientresources.go:569:6: Function 'ClusterResourceWithOptions' is too long (98 > 60) (funlen)
func ClusterResourceWithOptions(opts ClusterOptions) *v3clusterpb.Cluster {
     ^
internal/testutils/xds/e2e/clientresources.go:741:6: Function 'EndpointResourceWithOptions' is too long (72 > 60) (funlen)
func EndpointResourceWithOptions(opts EndpointOptions) *v3endpointpb.ClusterLoadAssignment {
     ^
interop/client/client.go:152:6: Function 'main' has too many statements (175 > 40) (funlen)
func main() {
     ^
interop/xds_federation/client.go:71:6: Function 'main' has too many statements (42 > 40) (funlen)
func main() {
     ^
profiling/cmd/catapult.go:121:6: Function 'streamStatsCatapultJSONSingle' is too long (170 > 60) (funlen)
func streamStatsCatapultJSONSingle(stat *ppb.Stat, baseSec int64, baseNsec int32) []jsonNode {
     ^
profiling/cmd/catapult.go:306:6: Function 'streamStatsCatapultJSON' has too many statements (45 > 40) (funlen)
func streamStatsCatapultJSON(s *snapshot, streamStatsCatapultJSONFileName string) (err error) {
     ^
reflection/internal/internal.go:153:34: Function 'ServerReflectionInfo' is too long (94 > 60) (funlen)
func (s *ServerReflectionServer) ServerReflectionInfo(stream v1reflectiongrpc.ServerReflection_ServerReflectionInfoServer) error {
                                 ^
stats/opentelemetry/internal/testutils/testutils.go:149:6: Function 'MetricDataUnary' is too long (173 > 60) (funlen)
func MetricDataUnary(options MetricDataOptions) []metricdata.Metrics {
     ^
stats/opentelemetry/internal/testutils/testutils.go:327:6: Function 'MetricDataStreaming' is too long (170 > 60) (funlen)
func MetricDataStreaming(options MetricDataOptions) []metricdata.Metrics {
     ^
stats/opentelemetry/internal/testutils/testutils.go:504:6: Function 'MetricData' is too long (251 > 60) (funlen)
func MetricData(options MetricDataOptions) []metricdata.Metrics {
     ^
clientconn.go:131:6: Function 'NewClient' is too long (68 > 60) (funlen)
func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error) {
     ^
clientconn.go:225:6: Function 'DialContext' is too long (64 > 60) (funlen)
func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) {
     ^
picker_wrapper.go:103:26: Function 'pick' has too many statements (42 > 40) (funlen)
func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer.PickInfo) (transport.ClientTransport, balancer.PickResult, error) {
                         ^
server.go:839:18: Function 'Serve' has too many statements (50 > 40) (funlen)
func (s *Server) Serve(lis net.Listener) error {
                 ^
server.go:1216:18: Function 'processUnaryRPC' has too many statements (132 > 40) (funlen)
func (s *Server) processUnaryRPC(ctx context.Context, stream *transport.ServerStream, info *serviceInfo, md *MethodDesc, trInfo *traceInfo) (err error) {
                 ^
server.go:1539:18: Function 'processStreamingRPC' has too many statements (90 > 40) (funlen)
func (s *Server) processStreamingRPC(ctx context.Context, stream *transport.ServerStream, info *serviceInfo, sd *StreamDesc, trInfo *traceInfo) (err error) {
                 ^
server.go:1735:18: Function 'handleStream' has too many statements (58 > 40) (funlen)
func (s *Server) handleStream(t transport.ServerTransport, stream *transport.ServerStream) {
                 ^
service_config.go:172:6: Function 'parseServiceConfig' has too many statements (58 > 40) (funlen)
func parseServiceConfig(js string, maxAttempts int) *serviceconfig.ParseResult {
     ^
stream.go:180:6: Function 'newClientStream' has too many statements (43 > 40) (funlen)
func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (_ ClientStream, err error) {
     ^
stream.go:260:6: Function 'newClientStreamWithParams' has too many statements (59 > 40) (funlen)
func newClientStreamWithParams(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, mc serviceconfig.MethodConfig, onCommit, doneFunc func(), opts ...CallOption) (_ iresolver.ClientStream, err error) {
     ^
stream.go:635:21: Function 'shouldRetry' has too many statements (44 > 40) (funlen)
func (a *csAttempt) shouldRetry(err error) (bool, error) {
                    ^
stream.go:1232:6: Function 'newNonRetryClientStream' has too many statements (42 > 40) (funlen)
func newNonRetryClientStream(ctx context.Context, desc *StreamDesc, method string, t transport.ClientTransport, ac *addrConn, opts ...CallOption) (_ ClientStream, err error) {
     ^
stream.go:1643:25: Function 'SendMsg' is too long (70 > 60) (funlen)
func (ss *serverStream) SendMsg(m any) (err error) {
                        ^
clientconn_authority_test.go:31:10: Function 'TestClientConnAuthority' is too long (90 > 60) (funlen)
func (s) TestClientConnAuthority(t *testing.T) {
         ^
clientconn_parsed_target_test.go:62:10: Function 'TestParsedTarget_Success_WithoutCustomDialer' is too long (118 > 60) (funlen)
func (s) TestParsedTarget_Success_WithoutCustomDialer(t *testing.T) {
         ^
clientconn_parsed_target_test.go:206:10: Function 'TestParsedTarget_WithCustomDialer' is too long (86 > 60) (funlen)
func (s) TestParsedTarget_WithCustomDialer(t *testing.T) {
         ^
clientconn_test.go:262:10: Function 'TestCloseConnectionWhenServerPrefaceNotReceived' has too many statements (47 > 40) (funlen)
func (s) TestCloseConnectionWhenServerPrefaceNotReceived(t *testing.T) {
         ^
clientconn_test.go:423:10: Function 'TestDial_BackoffCountPerRetryGroup' has too many statements (50 > 40) (funlen)
func (s) TestDial_BackoffCountPerRetryGroup(t *testing.T) {
         ^
clientconn_test.go:703:10: Function 'TestClientUpdatesParamsAfterGoAway' has too many statements (42 > 40) (funlen)
func (s) TestClientUpdatesParamsAfterGoAway(t *testing.T) {
         ^
clientconn_test.go:928:10: Function 'TestUpdateAddresses_NoopIfCalledWithSameAddresses' has too many statements (82 > 40) (funlen)
func (s) TestUpdateAddresses_NoopIfCalledWithSameAddresses(t *testing.T) {
         ^
service_config_test.go:193:10: Function 'TestParseWaitForReady' is too long (75 > 60) (funlen)
func (s) TestParseWaitForReady(t *testing.T) {
         ^
service_config_test.go:271:10: Function 'TestParseTimeOut' is too long (68 > 60) (funlen)
func (s) TestParseTimeOut(t *testing.T) {
         ^
service_config_test.go:474:10: Function 'TestParseRetryPolicy' is too long (126 > 60) (funlen)
func (s) TestParseRetryPolicy(t *testing.T) {
         ^
authz/rbac_translator_test.go:37:6: Function 'TestTranslatePolicy' is too long (997 > 60) (funlen)
func TestTranslatePolicy(t *testing.T) {
     ^
authz/grpc_authz_end2end_test.go:419:10: Function 'TestAllowsRPCRequestWithPrincipalsFieldOnMTLSAuthenticatedConnection' is too long (72 > 60) (funlen)
func (s) TestAllowsRPCRequestWithPrincipalsFieldOnMTLSAuthenticatedConnection(t *testing.T) {
         ^
authz/audit/audit_logging_test.go:91:10: Function 'TestAuditLogger' is too long (222 > 60) (funlen)
func (s) TestAuditLogger(t *testing.T) {
         ^
balancer/grpclb/grpclb_remote_balancer.go:108:23: Function 'refreshSubConns' has too many statements (60 > 40) (funlen)
func (lb *lbBalancer) refreshSubConns(backendAddrs []resolver.Address, fallback bool, pickFirst bool) {
                      ^
balancer/grpclb/grpclb_test.go:233:26: Function 'BalanceLoad' is too long (65 > 60) (funlen)
func (b *remoteBalancer) BalanceLoad(stream lbgrpc.LoadBalancer_BalanceLoadServer) error {
                         ^
balancer/grpclb/grpclb_test.go:555:10: Function 'TestGRPCLB_DropRequest' has too many statements (66 > 40) (funlen)
func (s) TestGRPCLB_DropRequest(t *testing.T) {
         ^
balancer/grpclb/grpclb_test.go:720:10: Function 'TestGRPCLB_BalancerDisconnects' is too long (63 > 60) (funlen)
func (s) TestGRPCLB_BalancerDisconnects(t *testing.T) {
         ^
v1.62.2
xds/internal/xdsclient/xdsresource/tests/unmarshal_cds_test.go:96: Function 'TestValidateCluster_Success' is too long (481 > 60) (funlen)
func (s) TestValidateCluster_Success(t *testing.T) {
channelz/service/service_test.go:161: Function 'TestGetServers' is too long (77 > 60) (funlen)
func (s) TestGetServers(t *testing.T) {
channelz/service/service_test.go:312: Function 'TestGetChannel' has too many statements (43 > 40) (funlen)
func (s) TestGetChannel(t *testing.T) {
channelz/service/service_test.go:415: Function 'TestGetSubChannel' is too long (75 > 60) (funlen)
func (s) TestGetSubChannel(t *testing.T) {
channelz/service/service_test.go:595: Function 'TestGetSocket' is too long (189 > 60) (funlen)
func (s) TestGetSocket(t *testing.T) {
internal/testutils/fakegrpclb/server.go:162: Function 'BalanceLoad' is too long (87 > 60) (funlen)
func (s *Server) BalanceLoad(stream lbgrpc.LoadBalancer_BalanceLoadServer) error {
internal/balancer/gracefulswitch/gracefulswitch_test.go:94: Function 'TestTwoBalancersSameType' has too many statements (41 > 40) (funlen)
func (s) TestTwoBalancersSameType(t *testing.T) {
internal/balancer/gracefulswitch/gracefulswitch_test.go:265: Function 'TestCurrentLeavingReady' is too long (78 > 60) (funlen)
func (s) TestCurrentLeavingReady(t *testing.T) {
internal/balancer/gracefulswitch/gracefulswitch_test.go:349: Function 'TestBalancerSubconns' is too long (86 > 60) (funlen)
func (s) TestBalancerSubconns(t *testing.T) {
internal/balancer/gracefulswitch/gracefulswitch_test.go:443: Function 'TestBalancerClose' has too many statements (44 > 40) (funlen)
func (s) TestBalancerClose(t *testing.T) {
internal/balancer/gracefulswitch/gracefulswitch_test.go:591: Function 'TestPendingReplacedByAnotherPending' is too long (72 > 60) (funlen)
func (s) TestPendingReplacedByAnotherPending(t *testing.T) {
internal/balancer/gracefulswitch/gracefulswitch_test.go:729: Function 'TestInlineCallbackInBuild' is too long (66 > 60) (funlen)
func (s) TestInlineCallbackInBuild(t *testing.T) {
balancer/rls/internal/keys/builder.go:37: Function 'MakeBuilderMap' is too long (66 > 60) (funlen)
func MakeBuilderMap(cfg *rlspb.RouteLookupConfig) (BuilderMap, error) {
balancer/rls/internal/keys/builder_test.go:110: Function 'TestMakeBuilderMapErrors' is too long (147 > 60) (funlen)
func TestMakeBuilderMapErrors(t *testing.T) {
balancer/rls/internal/keys/builder_test.go:260: Function 'TestRLSKey' is too long (108 > 60) (funlen)
func TestRLSKey(t *testing.T) {
balancer/rls/internal/keys/builder_test.go:418: Function 'TestBuilderMapEqual' is too long (84 > 60) (funlen)
func TestBuilderMapEqual(t *testing.T) {
balancer/rls/internal/keys/builder_test.go:505: Function 'TestBuilderEqual' is too long (95 > 60) (funlen)
func TestBuilderEqual(t *testing.T) {
credentials/xds/xds.go:96: Function 'ClientHandshake' is too long (107 > 60) (funlen)
func (c *credsImpl) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) {
credentials/xds/xds_client_test.go:351: Function 'TestClientCredsSuccess' is too long (65 > 60) (funlen)
func (s) TestClientCredsSuccess(t *testing.T) {
credentials/xds/xds_server_test.go:330: Function 'TestServerCredsHandshakeSuccess' is too long (97 > 60) (funlen)
func (s) TestServerCredsHandshakeSuccess(t *testing.T) {
credentials/xds/xds_server_test.go:430: Function 'TestServerCredsProviderSwitch' is too long (95 > 60) (funlen)
func (s) TestServerCredsProviderSwitch(t *testing.T) {
xds/internal/balancer/clusterimpl/clusterimpl.go:165: Function 'updateLoadStore' is too long (73 > 60) (funlen)
func (b *clusterImplBalancer) updateLoadStore(newConfig *LBConfig) error {
xds/internal/balancer/clusterimpl/clusterimpl.go:241: Function 'UpdateClientConnState' is too long (73 > 60) (funlen)
func (b *clusterImplBalancer) UpdateClientConnState(s balancer.ClientConnState) error {
xds/internal/balancer/clusterimpl/picker.go:101: Function 'Pick' has too many statements (47 > 40) (funlen)
func (d *picker) Pick(info balancer.PickInfo) (balancer.PickResult, error) {
xds/internal/balancer/clusterimpl/balancer_test.go:87: Function 'TestDropByCategory' has too many statements (45 > 40) (funlen)
func (s) TestDropByCategory(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:269: Function 'TestDropCircuitBreaking' is too long (118 > 60) (funlen)
func (s) TestDropCircuitBreaking(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:394: Function 'TestPickerUpdateAfterClose' is too long (65 > 60) (funlen)
func (s) TestPickerUpdateAfterClose(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:464: Function 'TestClusterNameInAddressAttributes' is too long (70 > 60) (funlen)
func (s) TestClusterNameInAddressAttributes(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:539: Function 'TestReResolution' is too long (62 > 60) (funlen)
func (s) TestReResolution(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:604: Function 'TestLoadReporting' has too many statements (59 > 40) (funlen)
func (s) TestLoadReporting(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:737: Function 'TestUpdateLRSServer' has too many statements (41 > 40) (funlen)
func (s) TestUpdateLRSServer(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:846: Function 'TestChildPolicyUpdatedOnConfigUpdate' is too long (63 > 60) (funlen)
func (s) TestChildPolicyUpdatedOnConfigUpdate(t *testing.T) {
xds/internal/balancer/clusterimpl/balancer_test.go:948: Function 'TestPickerUpdatedSynchronouslyOnConfigUpdate' is too long (63 > 60) (funlen)
func (s) TestPickerUpdatedSynchronouslyOnConfigUpdate(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:28: Function 'TestHeaderExactMatcherMatch' is too long (69 > 60) (funlen)
func TestHeaderExactMatcherMatch(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:100: Function 'TestHeaderRegexMatcherMatch' is too long (82 > 60) (funlen)
func TestHeaderRegexMatcherMatch(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:185: Function 'TestHeaderRangeMatcherMatch' is too long (69 > 60) (funlen)
func TestHeaderRangeMatcherMatch(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:257: Function 'TestHeaderPresentMatcherMatch' is too long (69 > 60) (funlen)
func TestHeaderPresentMatcherMatch(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:329: Function 'TestHeaderPrefixMatcherMatch' is too long (68 > 60) (funlen)
func TestHeaderPrefixMatcherMatch(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:400: Function 'TestHeaderSuffixMatcherMatch' is too long (68 > 60) (funlen)
func TestHeaderSuffixMatcherMatch(t *testing.T) {
internal/xds/matcher/matcher_header_test.go:471: Function 'TestHeaderStringMatch' is too long (77 > 60) (funlen)
func TestHeaderStringMatch(t *testing.T) {
internal/xds/matcher/string_matcher_test.go:29: Function 'TestStringMatcherFromProto' is too long (134 > 60) (funlen)
func TestStringMatcherFromProto(t *testing.T) {
internal/xds/matcher/string_matcher_test.go:166: Function 'TestMatch' is too long (144 > 60) (funlen)
func TestMatch(t *testing.T) {
status/status_ext_test.go:101: Function 'TestStatusDetails' is too long (106 > 60) (funlen)
func (s) TestStatusDetails(t *testing.T) {
internal/grpcsync/callback_serializer_test.go:37: Function 'TestCallbackSerializer_Schedule_FIFO' is too long (63 > 60) (funlen)
func (s) TestCallbackSerializer_Schedule_FIFO(t *testing.T) {
internal/grpcsync/callback_serializer_test.go:141: Function 'TestCallbackSerializer_Schedule_Close' is too long (64 > 60) (funlen)
func (s) TestCallbackSerializer_Schedule_Close(t *testing.T) {
internal/grpcsync/pubsub_test.go:58: Function 'TestPubSub_PublishMsgs_RegisterSubs_And_Stop' has too many statements (54 > 40) (funlen)
func (s) TestPubSub_PublishMsgs_RegisterSubs_And_Stop(t *testing.T) {
test/bufconn/bufconn_test.go:211: Function 'TestDeadline' has too many statements (48 > 40) (funlen)
func (s) TestDeadline(t *testing.T) {
credentials/alts/internal/conn/aeadrekey_test.go:34: Function 'TestAES128GCMRekeyEncrypt' is too long (217 > 60) (funlen)
func (s) TestAES128GCMRekeyEncrypt(t *testing.T) {
credentials/alts/internal/conn/aes128gcm_test.go:84: Function 'TestAES128GCMEncrypt' is too long (74 > 60) (funlen)
func (s) TestAES128GCMEncrypt(t *testing.T) {
balancer/weightedroundrobin/metrics_test.go:41: Function 'TestWRR_Metrics_SubConnWeight' is too long (90 > 60) (funlen)
func (s) TestWRR_Metrics_SubConnWeight(t *testing.T) {
Command Mean [s] Min [s] Max [s] Relative
local 1.211 ± 0.007 1.199 1.222 1.00 ± 0.03
v1.62.2 1.206 ± 0.032 1.180 1.292 1.00

gohugoio/hugo

local
cache/filecache/filecache_config.go:138:6: Function 'DecodeConfig' has too many statements (47 > 40) (funlen)
func DecodeConfig(fs afero.Fs, bcfg config.BaseConfig, m map[string]any) (Configs, error) {
     ^
cache/filecache/filecache_pruner.go:52:17: Function 'Prune' is too long (61 > 60) (funlen)
func (c *Cache) Prune(force bool) (int, error) {
                ^
commands/commandeer.go:219:23: Function 'ConfigFromProvider' is too long (100 > 60) (funlen)
func (r *rootCommand) ConfigFromProvider(key configKey, cfg config.Provider) (*commonConfig, error) {
                      ^
commands/convert.go:133:26: Function 'convertAndSavePage' is too long (64 > 60) (funlen)
func (c *convertCommand) convertAndSavePage(p page.Page, site *hugolib.Site, targetFormat metadecoders.Format) error {
                         ^
commands/gen.go:41:6: Function 'newGenCommand' is too long (206 > 60) (funlen)
func newGenCommand() *genCommand {
     ^
commands/hugobuilder.go:289:23: Function 'newWatcher' is too long (91 > 60) (funlen)
func (c *hugoBuilder) newWatcher(pollIntervalStr string, dirList ...string) (*watcher.Batcher, error) {
                      ^
commands/hugobuilder.go:518:23: Function 'fullBuild' is too long (66 > 60) (funlen)
func (c *hugoBuilder) fullBuild(noBuildLock bool) error {
                      ^
commands/hugobuilder.go:650:23: Function 'handleEvents' has too many statements (145 > 40) (funlen)
func (c *hugoBuilder) handleEvents(watcher *watcher.Batcher,
                      ^
commands/import.go:399:25: Function 'importFromJekyll' has too many statements (48 > 40) (funlen)
func (c *importCommand) importFromJekyll(args []string) error {
                        ^
commands/list.go:33:6: Function 'newListCommand' is too long (147 > 60) (funlen)
func newListCommand() *listCommand {
     ^
commands/mod.go:38:6: Function 'newModCommands' is too long (258 > 60) (funlen)
func newModCommands() *modCommands {
     ^
commands/new.go:30:6: Function 'newNewCommand' is too long (131 > 60) (funlen)
func newNewCommand() *newCommand {
     ^
commands/server.go:235:22: Function 'createEndpoint' is too long (163 > 60) (funlen)
func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string, string, error) {
                     ^
commands/server.go:858:25: Function 'serve' has too many statements (65 > 40) (funlen)
func (c *serverCommand) serve() error {
                        ^
commands/server.go:1059:24: Function 'syncsStaticEvents' is too long (64 > 60) (funlen)
func (s *staticSyncer) syncsStaticEvents(staticEvents []fsnotify.Event) error {
                       ^
create/content.go:53:6: Function 'NewContent' is too long (62 > 60) (funlen)
func NewContent(h *hugolib.HugoSites, kind, targetPath string, force bool) error {
     ^
create/content.go:135:26: Function 'buildDir' is too long (76 > 60) (funlen)
func (b *contentBuilder) buildDir() error {
                         ^
deps/deps.go:137:16: Function 'Init' has too many statements (63 > 40) (funlen)
func (d *Deps) Init() error {
               ^
hugolib/filesystems/basefs.go:541:36: Function 'Build' is too long (64 > 60) (funlen)
func (b *sourceFilesystemsBuilder) Build() (*SourceFilesystems, error) {
                                   ^
hugolib/filesystems/basefs.go:664:36: Function 'createOverlayFs' has too many statements (65 > 40) (funlen)
func (b *sourceFilesystemsBuilder) createOverlayFs(
                                   ^
markup/markup.go:36:6: Function 'NewConverterProvider' is too long (61 > 60) (funlen)
func NewConverterProvider(cfg converter.ProviderConfig) (ConverterProvider, error) {
     ^
markup/asciidocext/internal/converter.go:72:29: Function 'ParseArgs' is too long (78 > 60) (funlen)
func (a *AsciidocConverter) ParseArgs(ctx converter.DocumentContext) []string {
                            ^
resources/resource_transformers/babel/babel.go:115:31: Function 'Transform' has too many statements (66 > 40) (funlen)
func (t *babelTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
                              ^
resources/resource_transformers/tocss/dartsass/transform.go:58:21: Function 'Transform' is too long (68 > 60) (funlen)
func (t *transform) Transform(ctx *resources.ResourceTransformationCtx) error {
                    ^
tpl/transform/init.go:25:6: Function 'init' is too long (103 > 60) (funlen)
func init() {
     ^
tpl/transform/transform.go:203:22: Function 'ToMath' is too long (65 > 60) (funlen)
func (ns *Namespace) ToMath(ctx context.Context, args ...any) (types.Result[template.HTML], error) {
                     ^
tpl/transform/unmarshal.go:38:22: Function 'Unmarshal' is too long (106 > 60) (funlen)
func (ns *Namespace) Unmarshal(args ...any) (any, error) {
                     ^
cache/filecache/filecache_pruner_test.go:27:6: Function 'TestPrune' is too long (80 > 60) (funlen)
func TestPrune(t *testing.T) {
     ^
cache/filecache/filecache_test.go:37:6: Function 'TestFileCache' has too many statements (62 > 40) (funlen)
func TestFileCache(t *testing.T) {
     ^
codegen/methods.go:56:21: Function 'MethodsFromTypes' has too many statements (53 > 40) (funlen)
func (c *Inspector) MethodsFromTypes(include []reflect.Type, exclude []reflect.Type) Methods {
                    ^
codegen/methods.go:172:21: Function 'parseSource' is too long (69 > 60) (funlen)
func (c *Inspector) parseSource() {
                    ^
codegen/methods.go:369:18: Function 'ToMarshalJSON' is too long (72 > 60) (funlen)
func (m Methods) ToMarshalJSON(receiver, pkgPath string, excludes ...string) (string, []string) {
                 ^
common/collections/append.go:24:6: Function 'Append' has too many statements (46 > 40) (funlen)
func Append(to any, from ...any) (any, error) {
     ^
common/collections/append_test.go:23:6: Function 'TestAppend' is too long (66 > 60) (funlen)
func TestAppend(t *testing.T) {
     ^
common/herrors/error_locator_test.go:24:6: Function 'TestErrorLocator' has too many statements (61 > 40) (funlen)
func TestErrorLocator(t *testing.T) {
     ^
common/htime/time_test.go:24:6: Function 'TestTimeFormatter' is too long (82 > 60) (funlen)
func TestTimeFormatter(t *testing.T) {
     ^
common/loggers/logger.go:50:6: Function 'New' is too long (98 > 60) (funlen)
func New(opts Options) Logger {
     ^
common/maps/params_test.go:73:6: Function 'TestParamsSetAndMerge' is too long (82 > 60) (funlen)
func TestParamsSetAndMerge(t *testing.T) {
     ^
common/math/math.go:23:6: Function 'DoArithmetic' has too many statements (80 > 40) (funlen)
func DoArithmetic(a, b any, op rune) (any, error) {
     ^
common/math/math_test.go:22:6: Function 'TestDoArithmetic' is too long (88 > 60) (funlen)
func TestDoArithmetic(t *testing.T) {
     ^
common/para/para_test.go:30:6: Function 'TestPara' is too long (64 > 60) (funlen)
func TestPara(t *testing.T) {
     ^
common/paths/pathparser.go:117:23: Function 'doParse' has too many statements (47 > 40) (funlen)
func (pp *PathParser) doParse(component, s string, p *Path) (*Path, error) {
                      ^
common/paths/pathparser_test.go:35:6: Function 'TestParse' is too long (324 > 60) (funlen)
func TestParse(t *testing.T) {
     ^
common/urls/baseURL_test.go:22:6: Function 'TestBaseURL' has too many statements (42 > 40) (funlen)
func TestBaseURL(t *testing.T) {
     ^
compare/compare_strings.go:36:6: Function 'compareFold' is too long (68 > 60) (funlen)
func compareFold(s, t string) int {
     ^
config/configLoader.go:119:6: Function 'LoadConfigFromDir' is too long (85 > 60) (funlen)
func LoadConfigFromDir(sourceFs afero.Fs, configDir, environment string) (Provider, []string, error) {
     ^
config/commonConfig_test.go:61:6: Function 'TestServer' is too long (79 > 60) (funlen)
func TestServer(t *testing.T) {
     ^
config/defaultConfigProvider_test.go:31:6: Function 'TestDefaultConfigProvider' is too long (322 > 60) (funlen)
func TestDefaultConfigProvider(t *testing.T) {
     ^
config/allconfig/allconfig.go:250:18: Function 'CompileConfig' has too many statements (99 > 40) (funlen)
func (c *Config) CompileConfig(logger loggers.Logger) error {
                 ^
config/allconfig/allconfig.go:750:19: Function 'Init' has too many statements (46 > 40) (funlen)
func (c *Configs) Init() error {
                  ^
v1.62.2
hugolib/hugolib_integration_test.go:24: Function 'TestPageTranslationsMap' is too long (64 > 60) (funlen)
func TestPageTranslationsMap(t *testing.T) {
hugolib/filesystems/basefs_test.go:37: Function 'TestNewBaseFs' has too many statements (69 > 40) (funlen)
func TestNewBaseFs(t *testing.T) {
common/herrors/error_locator_test.go:24: Function 'TestErrorLocator' has too many statements (61 > 40) (funlen)
func TestErrorLocator(t *testing.T) {
resources/resource/resources_test.go:22: Function 'TestResourcesMount' has too many statements (52 > 40) (funlen)
func TestResourcesMount(t *testing.T) {
tpl/resources/resources_integration_test.go:177: Function 'TestGlobalResourcesNotPublishedRegressionIssue12214' is too long (64 > 60) (funlen)
func TestGlobalResourcesNotPublishedRegressionIssue12214(t *testing.T) {
common/loggers/logger.go:50: Function 'New' is too long (100 > 60) (funlen)
func New(opts Options) Logger {
watcher/filenotify/poller_test.go:46: Function 'TestPollerEvent' is too long (76 > 60) (funlen)
func TestPollerEvent(t *testing.T) {
resources/resource_transformers/js/js_integration_test.go:136: Function 'TestBuildWithNpm' is too long (95 > 60) (funlen)
func TestBuildWithNpm(t *testing.T) {
internal/js/esbuild/batch.go:206: Function 'New' is too long (74 > 60) (funlen)
func (c *BatcherClient) New(id string) (js.Batcher, error) {
internal/js/esbuild/batch.go:430: Function 'doBuild' has too many statements (88 > 40) (funlen)
func (b *batcher) doBuild(ctx context.Context) (*Package, error) {
internal/js/esbuild/build.go:49: Function 'Build' has too many statements (75 > 40) (funlen)
func (c *BuildClient) Build(opts Options) (api.BuildResult, error) {
internal/js/esbuild/options.go:215: Function 'compile' has too many statements (87 > 40) (funlen)
func (opts *Options) compile() (err error) {
internal/js/esbuild/resolve.go:156: Function 'createBuildPlugins' is too long (158 > 60) (funlen)
func createBuildPlugins(rs *resources.Spec, assetsResolver *fsResolver, depsManager identity.Manager, opts Options) ([]api.Plugin, error) {
internal/js/esbuild/options_test.go:26: Function 'TestToBuildOptions' is too long (153 > 60) (funlen)
func TestToBuildOptions(t *testing.T) {
tpl/internal/go_templates/testenv/exec.go:133: Function 'CommandContext' is too long (81 > 60) (funlen)
func CommandContext(t testing.TB, ctx context.Context, name string, args ...string) *exec.Cmd {
tpl/internal/go_templates/testenv/testenv.go:128: Function 'findGOROOT' is too long (68 > 60) (funlen)
func findGOROOT() (string, error) {
markup/goldmark/convert.go:84: Function 'newMarkdown' has too many statements (55 > 40) (funlen)
func newMarkdown(pcfg converter.ProviderConfig) goldmark.Markdown {
markup/goldmark/render_hooks.go:149: Function 'renderImage' is too long (62 > 60) (funlen)
func (r *hookedRenderer) renderImage(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error) {
markup/goldmark/toc.go:42: Function 'Transform' is too long (74 > 60) (funlen)
func (t *tocTransformer) Transform(n *ast.Document, reader text.Reader, pc parser.Context) {
markup/goldmark/autoid_test.go:25: Function 'TestSanitizeAnchorName' is too long (61 > 60) (funlen)
func TestSanitizeAnchorName(t *testing.T) {
resources/resource_transformers/babel/babel_integration_test.go:24: Function 'TestTransformBabel' is too long (68 > 60) (funlen)
func TestTransformBabel(t *testing.T) {
markup/goldmark/codeblocks/codeblocks_integration_test.go:26: Function 'TestCodeblocks' is too long (83 > 60) (funlen)
func TestCodeblocks(t *testing.T) {
tpl/transform/remarshal_test.go:26: Function 'TestRemarshal' is too long (176 > 60) (funlen)
func TestRemarshal(t *testing.T) {
tpl/transform/unmarshal_test.go:84: Function 'TestUnmarshal' is too long (98 > 60) (funlen)
func TestUnmarshal(t *testing.T) {
media/config_test.go:23: Function 'TestDecodeTypes' is too long (85 > 60) (funlen)
func TestDecodeTypes(t *testing.T) {
resources/resource_transformers/cssjs/inline_imports.go:81: Function 'importRecursive' is too long (76 > 60) (funlen)
func (imp *importResolver) importRecursive(
resources/resource_transformers/cssjs/postcss.go:138: Function 'Transform' has too many statements (50 > 40) (funlen)
func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
resources/resource_transformers/cssjs/tailwindcss.go:80: Function 'Transform' is too long (72 > 60) (funlen)
func (t *tailwindcssTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
tpl/lang/lang.go:144: Function 'FormatNumberCustom' is too long (95 > 60) (funlen)
func (ns *Namespace) FormatNumberCustom(precision, number any, options ...any) (string, error) {
tpl/page/page_integration_test.go:24: Function 'TestThatPageIsAvailableEverywhere' is too long (152 > 60) (funlen)
func TestThatPageIsAvailableEverywhere(t *testing.T) {
resources/page/pagemeta/page_frontmatter.go:153: Function 'Compile' is too long (62 > 60) (funlen)
func (p *PageConfig) Compile(basePath string, pagesFromData bool, ext string, logger loggers.Logger, mediaTypes media.Types) error {
resources/page/pagemeta/page_frontmatter.go:625: Function 'createContentAdapterDatesHandler' has too many statements (48 > 40) (funlen)
func (f FrontMatterHandler) createContentAdapterDatesHandler(fmcfg FrontmatterConfig) (func(d *FrontMatterDescriptor) error, error) {
resources/page/pagemeta/pagemeta_test.go:28: Function 'TestDecodeBuildConfig' is too long (64 > 60) (funlen)
func TestDecodeBuildConfig(t *testing.T) {
common/htime/time_test.go:24: Function 'TestTimeFormatter' is too long (84 > 60) (funlen)
func TestTimeFormatter(t *testing.T) {
hugolib/segments/segments.go:139: Function 'compileSegments' is too long (61 > 60) (funlen)
func compileSegments(f []SegmentMatcherFields) (predicate.P[SegmentMatcherFields], error) {
hugolib/segments/segments_test.go:9: Function 'TestCompileSegments' is too long (83 > 60) (funlen)
func TestCompileSegments(t *testing.T) {
hugolib/filesystems/basefs.go:541: Function 'Build' is too long (67 > 60) (funlen)
func (b *sourceFilesystemsBuilder) Build() (*SourceFilesystems, error) {
hugolib/filesystems/basefs.go:664: Function 'createOverlayFs' has too many statements (65 > 40) (funlen)
func (b *sourceFilesystemsBuilder) createOverlayFs(
tpl/collections/collections.go:417: Function 'Seq' is too long (64 > 60) (funlen)
func (ns *Namespace) Seq(args ...any) ([]int, error) {
tpl/collections/collections.go:562: Function 'Union' has too many statements (41 > 40) (funlen)
func (ns *Namespace) Union(l1, l2 any) (any, error) {
tpl/collections/index.go:41: Function 'doIndex' has too many statements (43 > 40) (funlen)
func (ns *Namespace) doIndex(item any, args ...any) (any, error) {
tpl/collections/init.go:25: Function 'init' is too long (183 > 60) (funlen)
func init() {
tpl/collections/sort.go:30: Function 'Sort' has too many statements (45 > 40) (funlen)
func (ns *Namespace) Sort(ctx context.Context, l any, args ...any) (any, error) {
tpl/collections/where.go:58: Function 'checkCondition' has too many statements (138 > 40) (funlen)
func (ns *Namespace) checkCondition(v, mv reflect.Value, op string) (bool, error) {
tpl/collections/where.go:293: Function 'evaluateSubElem' has too many statements (51 > 40) (funlen)
func evaluateSubElem(ctx, obj reflect.Value, elemName string) (reflect.Value, error) {
tpl/collections/collections_test.go:348: Function 'TestIntersect' is too long (88 > 60) (funlen)
func TestIntersect(t *testing.T) {
tpl/collections/collections_test.go:652: Function 'TestUnion' is too long (87 > 60) (funlen)
func TestUnion(t *testing.T) {
tpl/collections/complement_test.go:30: Function 'TestComplement' is too long (64 > 60) (funlen)
func TestComplement(t *testing.T) {
tpl/collections/index_test.go:25: Function 'TestIndex' is too long (66 > 60) (funlen)
func TestIndex(t *testing.T) {
tpl/collections/merge_test.go:28: Function 'TestMerge' is too long (131 > 60) (funlen)
func TestMerge(t *testing.T) {
Command Mean [s] Min [s] Max [s] Relative
local 1.047 ± 0.030 1.023 1.129 1.04 ± 0.03
v1.62.2 1.006 ± 0.009 0.991 1.017 1.00

kubernetes/kubernetes

local
cmd/cloud-controller-manager/nodeipamcontroller.go:66:6: Function 'startNodeIpamController' is too long (69 > 60) (funlen)
func startNodeIpamController(ctx context.Context, initContext app.ControllerInitContext, ccmConfig *cloudcontrollerconfig.CompletedConfig, nodeIPAMConfig nodeipamconfig.NodeIPAMControllerConfiguration, controllerCtx genericcontrollermanager.ControllerContext, cloud cloudprovider.Interface) (controller.Interface, bool, error) {
     ^
cmd/cloud-controller-manager/nodeipamcontroller.go:168:6: Function 'setNodeCIDRMaskSizes' is too long (61 > 60) (funlen)
func setNodeCIDRMaskSizes(cfg nodeipamconfig.NodeIPAMControllerConfiguration, clusterCIDRs []*net.IPNet) ([]int, error) {
     ^
cmd/dependencycheck/dependencycheck.go:46:6: Function 'main' has too many statements (46 > 40) (funlen)
func main() {
     ^
cmd/dependencyverifier/dependencyverifier.go:166:6: Function 'main' has too many statements (109 > 40) (funlen)
func main() {
     ^
cmd/genman/gen_kube_man.go:40:6: Function 'main' has too many statements (49 > 40) (funlen)
func main() {
     ^
cmd/kube-apiserver/app/server.go:66:6: Function 'NewAPIServerCommand' is too long (63 > 60) (funlen)
func NewAPIServerCommand() *cobra.Command {
     ^
cmd/kube-apiserver/app/testing/testserver.go:157:6: Function 'StartTestServer' has too many statements (179 > 40) (funlen)
func StartTestServer(t ktesting.TB, instanceOptions *TestServerInstanceOptions, customFlags []string, storageConfig *storagebackend.Config) (result TestServer, err error) {
     ^
cmd/kube-controller-manager/app/testing/testserver.go:63:6: Function 'StartTestServer' has too many statements (52 > 40) (funlen)
func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) {
     ^
cmd/kube-scheduler/app/testing/testserver.go:66:6: Function 'StartTestServer' has too many statements (52 > 40) (funlen)
func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) {
     ^
cmd/kubeadm/app/discovery/file/file.go:52:6: Function 'ValidateConfigInfo' is too long (75 > 60) (funlen)
func ValidateConfigInfo(config *clientcmdapi.Config, discoveryTimeout time.Duration) (*clientcmdapi.Config, error) {
     ^
cmd/preferredimports/preferredimports.go:70:20: Function 'collect' has too many statements (49 > 40) (funlen)
func (a *analyzer) collect(dir string) {
                   ^
pkg/apis/core/helper/qos/qos.go:89:6: Function 'ComputePodQOS' is too long (74 > 60) (funlen)
func ComputePodQOS(pod *core.Pod) core.PodQOSClass {
     ^
pkg/apis/core/v1/conversion.go:34:6: Function 'addConversionFuncs' is too long (67 > 60) (funlen)
func addConversionFuncs(scheme *runtime.Scheme) error {
     ^
pkg/controller/nodeipam/node_ipam_controller.go:65:6: Function 'NewNodeIpamController' is too long (63 > 60) (funlen)
func NewNodeIpamController(
     ^
pkg/controller/storageversionmigrator/resourceversion.go:161:38: Function 'sync' is too long (61 > 60) (funlen)
func (rv *ResourceVersionController) sync(ctx context.Context, key string) error {
                                     ^
pkg/controller/storageversionmigrator/storageversionmigrator.go:170:28: Function 'sync' has too many statements (66 > 40) (funlen)
func (svmc *SVMController) sync(ctx context.Context, key string) error {
                           ^
pkg/controller/testutil/test_utils.go:288:27: Function 'Patch' has too many statements (51 > 40) (funlen)
func (m *FakeNodeHandler) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, _ metav1.PatchOptions, subresources ...string) (*v1.Node, error) {
                          ^
pkg/controller/volume/attachdetach/testing/testvolumespec.go:57:6: Function 'CreateTestClient' is too long (138 > 60) (funlen)
func CreateTestClient() *fake.Clientset {
     ^
pkg/controller/volume/persistentvolume/testing/testing.go:92:25: Function 'React' has too many statements (120 > 40) (funlen)
func (r *VolumeReactor) React(ctx context.Context, action core.Action) (handled bool, ret runtime.Object, err error) {
                        ^
pkg/controlplane/apiserver/samples/generic/server/testing/testserver.go:92:6: Function 'StartTestServer' has too many statements (96 > 40) (funlen)
func StartTestServer(t ktesting.TB, instanceOptions *TestServerInstanceOptions, customFlags []string, storageConfig *storagebackend.Config) (result TestServer, err error) {
     ^
pkg/kubeapiserver/authenticator/config.go:100:22: Function 'New' has too many statements (57 > 40) (funlen)
func (config Config) New(serverLifecycle context.Context) (authenticator.Request, func(context.Context, *apiserver.AuthenticationConfiguration) error, *spec.SecurityDefinitions, spec3.SecuritySchemes, error) {
                     ^
pkg/kubeapiserver/authorizer/config.go:78:22: Function 'New' is too long (68 > 60) (funlen)
func (config Config) New(ctx context.Context, serverID string) (authorizer.Authorizer, authorizer.RuleResolver, error) {
                     ^
pkg/kubeapiserver/authorizer/reload.go:87:40: Function 'newForConfig' has too many statements (54 > 40) (funlen)
func (r *reloadableAuthorizerResolver) newForConfig(authzConfig *authzconfig.AuthorizationConfiguration) (authorizer.Authorizer, authorizer.RuleResolver, error) {
                                       ^
pkg/kubelet/apis/config/fuzzer/fuzzer.go:38:6: Function 'Funcs' is too long (90 > 60) (funlen)
func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
     ^
pkg/kubemark/hollow_kubelet.go:149:6: Function 'GetHollowKubeletConfig' has too many statements (54 > 40) (funlen)
func GetHollowKubeletConfig(opt *HollowKubeletOptions) (*options.KubeletFlags, *kubeletconfig.KubeletConfiguration) {
     ^
pkg/scheduler/testing/framework/fake_extender.go:224:24: Function 'selectVictimsOnNodeByExtender' is too long (61 > 60) (funlen)
func (f *FakeExtender) selectVictimsOnNodeByExtender(logger klog.Logger, pod *v1.Pod, node *framework.NodeInfo) ([]*v1.Pod, int, bool, error) {
                       ^
pkg/volume/csi/fake/fake_client.go:348:22: Function 'NodeGetCapabilities' is too long (62 > 60) (funlen)
func (f *NodeClient) NodeGetCapabilities(ctx context.Context, in *csipb.NodeGetCapabilitiesRequest, opts ...grpc.CallOption) (*csipb.NodeGetCapabilitiesResponse, error) {
                     ^
pkg/volume/util/fs/fs.go:66:6: Function 'DiskUsage' is too long (72 > 60) (funlen)
func DiskUsage(path string) (UsageInfo, error) {
     ^
test/e2e/apimachinery/aggregator.go:140:6: Function 'SetUpSampleAPIServer' has too many statements (63 > 40) (funlen)
func SetUpSampleAPIServer(ctx context.Context, f *framework.Framework, aggrclient *aggregatorclient.Clientset, image string, n sampleAPIServerObjectNames, apiServiceGroupName, apiServiceVersion string) {
     ^
test/e2e/apimachinery/aggregator.go:424:6: Function 'TestSampleAPIServer' has too many statements (174 > 40) (funlen)
func TestSampleAPIServer(ctx context.Context, f *framework.Framework, aggrclient *aggregatorclient.Clientset, image, apiServiceGroupName, apiServiceVersion string) {
     ^
test/e2e/apimachinery/certs.go:40:6: Function 'setupServerCert' is too long (61 > 60) (funlen)
func setupServerCert(namespaceName, serviceName string) *certContext {
     ^
test/e2e/apimachinery/crd_conversion_webhook.go:239:6: Function 'deployCustomResourceWebhookAndService' is too long (102 > 60) (funlen)
func deployCustomResourceWebhookAndService(ctx context.Context, f *framework.Framework, image string, certCtx *certContext, servicePort int32, containerPort int32) {
     ^
test/e2e/apimachinery/crd_conversion_webhook.go:405:6: Function 'testCRListConversion' is too long (66 > 60) (funlen)
func testCRListConversion(ctx context.Context, f *framework.Framework, testCrd *crd.TestCrd) {
     ^
test/e2e/apimachinery/garbage_collector.go:186:6: Function 'verifyRemainingObjects' has too many statements (48 > 40) (funlen)
func verifyRemainingObjects(ctx context.Context, f *framework.Framework, objects map[string]int) (bool, error) {
     ^
test/e2e/apimachinery/webhook.go:1047:6: Function 'deployWebhookAndService' is too long (99 > 60) (funlen)
func deployWebhookAndService(ctx context.Context, f *framework.Framework, image string, certCtx *certContext, servicePort int32, containerPort int32) {
     ^
test/e2e/apimachinery/webhook.go:1363:6: Function 'testWebhook' has too many statements (56 > 40) (funlen)
func testWebhook(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apimachinery/webhook.go:1687:6: Function 'testWebhooksForWebhookConfigurations' is too long (103 > 60) (funlen)
func testWebhooksForWebhookConfigurations(ctx context.Context, f *framework.Framework, markersNamespaceName string, configName string, certCtx *certContext, servicePort int32) {
     ^
test/e2e/apimachinery/webhook.go:1995:6: Function 'registerMutatingWebhookForCustomResource' is too long (70 > 60) (funlen)
func registerMutatingWebhookForCustomResource(ctx context.Context, f *framework.Framework, markersNamespaceName string, configName string, certCtx *certContext, testcrd *crd.TestCrd, servicePort int32) {
     ^
test/e2e/apps/deployment.go:820:6: Function 'testDeploymentCleanUpPolicy' is too long (62 > 60) (funlen)
func testDeploymentCleanUpPolicy(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/deployment.go:892:6: Function 'testRolloverDeployment' has too many statements (59 > 40) (funlen)
func testRolloverDeployment(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/deployment.go:1002:6: Function 'testIterativeDeployments' has too many statements (70 > 40) (funlen)
func testIterativeDeployments(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/deployment.go:1182:6: Function 'testProportionalScalingDeployment' has too many statements (77 > 40) (funlen)
func testProportionalScalingDeployment(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/deployment.go:1348:6: Function 'testRollingUpdateDeploymentWithLocalTrafficLoadBalancer' has too many statements (50 > 40) (funlen)
func testRollingUpdateDeploymentWithLocalTrafficLoadBalancer(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/deployment.go:1640:6: Function 'testDeploymentSubresources' has too many statements (41 > 40) (funlen)
func testDeploymentSubresources(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/rc.go:539:6: Function 'testReplicationControllerConditionCheck' is too long (78 > 60) (funlen)
func testReplicationControllerConditionCheck(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/replica_set.go:236:6: Function 'testReplicaSetConditionCheck' is too long (79 > 60) (funlen)
func testReplicaSetConditionCheck(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/replica_set.go:318:6: Function 'testRSAdoptMatchingAndReleaseNotMatching' is too long (75 > 60) (funlen)
func testRSAdoptMatchingAndReleaseNotMatching(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/replica_set.go:465:6: Function 'testRSLifeCycle' is too long (82 > 60) (funlen)
func testRSLifeCycle(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/replica_set.go:600:6: Function 'testRSStatus' has too many statements (50 > 40) (funlen)
func testRSStatus(ctx context.Context, f *framework.Framework) {
     ^
test/e2e/apps/statefulset.go:2164:6: Function 'rollbackTest' has too many statements (56 > 40) (funlen)
func rollbackTest(ctx context.Context, c clientset.Interface, ns string, ss *appsv1.StatefulSet) {
     ^
v1.62.2
cmd/kube-apiserver/app/options/options_test.go:50: Function 'TestAddFlags' is too long (305 > 60) (funlen)
func TestAddFlags(t *testing.T) {
cmd/kube-apiserver/app/options/validation_test.go:61: Function 'TestClusterServiceIPRange' is too long (136 > 60) (funlen)
func TestClusterServiceIPRange(t *testing.T) {
cmd/kube-apiserver/app/options/validation_test.go:200: Function 'TestValidatePublicIPServiceClusterIPRangeIPFamilies' is too long (127 > 60) (funlen)
func TestValidatePublicIPServiceClusterIPRangeIPFamilies(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:126: Function 'TestEqualIgnoreHash' is too long (90 > 60) (funlen)
func TestEqualIgnoreHash(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:272: Function 'TestFindOldReplicaSets' is too long (71 > 60) (funlen)
func TestFindOldReplicaSets(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:388: Function 'TestResolveFenceposts' is too long (87 > 60) (funlen)
func TestResolveFenceposts(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:690: Function 'TestDeploymentComplete' is too long (74 > 60) (funlen)
func TestDeploymentComplete(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:767: Function 'TestDeploymentProgressing' is too long (92 > 60) (funlen)
func TestDeploymentProgressing(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:862: Function 'TestDeploymentTimedOut' is too long (80 > 60) (funlen)
func TestDeploymentTimedOut(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:945: Function 'TestMaxUnavailable' is too long (76 > 60) (funlen)
func TestMaxUnavailable(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:1024: Function 'TestGetNonNegativeInt32FromAnnotation' is too long (78 > 60) (funlen)
func TestGetNonNegativeInt32FromAnnotation(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:1106: Function 'TestAnnotationUtils' is too long (63 > 60) (funlen)
func TestAnnotationUtils(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:1172: Function 'TestReplicasAnnotationsNeedUpdate' is too long (71 > 60) (funlen)
func TestReplicasAnnotationsNeedUpdate(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:1246: Function 'TestGetDeploymentsForReplicaSet' is too long (78 > 60) (funlen)
func TestGetDeploymentsForReplicaSet(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:1327: Function 'TestMinAvailable' is too long (75 > 60) (funlen)
func TestMinAvailable(t *testing.T) {
pkg/controller/deployment/util/deployment_util_test.go:1405: Function 'TestGetReplicaSetFraction' is too long (115 > 60) (funlen)
func TestGetReplicaSetFraction(t *testing.T) {
test/e2e/windows/density.go:93: Function 'runDensityBatchTest' is too long (67 > 60) (funlen)
func runDensityBatchTest(ctx context.Context, f *framework.Framework, testArg densityTest) (time.Duration, []e2emetrics.PodLatencyData) {
test/e2e/windows/gmsa_full.go:298: Function 'deployGmsaWebhook' is too long (76 > 60) (funlen)
func deployGmsaWebhook(ctx context.Context, f *framework.Framework) error {
test/e2e/windows/host_process.go:807: Function 'makeTestPodWithVolumeMounts' is too long (126 > 60) (funlen)
func makeTestPodWithVolumeMounts(name string) *v1.Pod {
test/e2e/windows/memory_limits.go:101: Function 'overrideAllocatableMemoryTest' is too long (75 > 60) (funlen)
func overrideAllocatableMemoryTest(ctx context.Context, f *framework.Framework, allocatablePods int) {
cmd/kubeadm/app/phases/controlplane/manifests.go:166: Function 'getAPIServerCommand' is too long (73 > 60) (funlen)
func getAPIServerCommand(cfg *kubeadmapi.ClusterConfiguration, localAPIEndpoint *kubeadmapi.APIEndpoint) []string {
cmd/kubeadm/app/phases/controlplane/manifests_test.go:51: Function 'TestGetStaticPodSpecs' is too long (91 > 60) (funlen)
func TestGetStaticPodSpecs(t *testing.T) {
cmd/kubeadm/app/phases/controlplane/manifests_test.go:244: Function 'TestGetAPIServerCommand' is too long (421 > 60) (funlen)
func TestGetAPIServerCommand(t *testing.T) {
cmd/kubeadm/app/phases/controlplane/manifests_test.go:686: Function 'TestGetControllerManagerCommand' is too long (286 > 60) (funlen)
func TestGetControllerManagerCommand(t *testing.T) {
cmd/kubeadm/app/phases/controlplane/manifests_test.go:975: Function 'TestGetControllerManagerCommandExternalCA' is too long (98 > 60) (funlen)
func TestGetControllerManagerCommandExternalCA(t *testing.T) {
cmd/kubeadm/app/phases/controlplane/volumes_test.go:35: Function 'TestGetEtcdCertVolumes' is too long (226 > 60) (funlen)
func TestGetEtcdCertVolumes(t *testing.T) {
cmd/kubeadm/app/phases/controlplane/volumes_test.go:264: Function 'TestGetHostPathVolumesForTheControlPlane' has too many statements (59 > 40) (funlen)
func TestGetHostPathVolumesForTheControlPlane(t *testing.T) {
cmd/kubeadm/app/phases/controlplane/volumes_test.go:551: Function 'TestAddExtraHostPathMounts' is too long (98 > 60) (funlen)
func TestAddExtraHostPathMounts(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns.go:105: Function 'coreDNSAddon' is too long (64 > 60) (funlen)
func coreDNSAddon(cfg *kubeadmapi.ClusterConfiguration, client clientset.Interface, replicas *int32, patchesDir string, out io.Writer, printManifest bool) error {
cmd/kubeadm/app/phases/addons/dns/dns.go:172: Function 'createCoreDNSAddon' is too long (91 > 60) (funlen)
func createCoreDNSAddon(deploymentBytes, serviceBytes, configBytes []byte, client clientset.Interface) error {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:162: Function 'TestCreateCoreDNSAddon' is too long (362 > 60) (funlen)
func TestCreateCoreDNSAddon(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:612: Function 'TestCoreDNSAddon' is too long (273 > 60) (funlen)
func TestCoreDNSAddon(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:888: Function 'TestEnsureDNSAddon' is too long (280 > 60) (funlen)
func TestEnsureDNSAddon(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:1171: Function 'TestCreateDNSService' is too long (242 > 60) (funlen)
func TestCreateDNSService(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:1416: Function 'TestDeployedDNSAddon' is too long (71 > 60) (funlen)
func TestDeployedDNSAddon(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:1490: Function 'TestGetCoreDNSInfo' is too long (119 > 60) (funlen)
func TestGetCoreDNSInfo(t *testing.T) {
cmd/kubeadm/app/phases/addons/dns/dns_test.go:1665: Function 'newMockClientForTest' is too long (110 > 60) (funlen)
func newMockClientForTest(t *testing.T, replicas int32, deploymentSize int, image string, configMap string, configData string) *clientsetfake.Clientset {
test/integration/apiserver/admissionwebhook/admission_test.go:474: Function 'testWebhookAdmission' has too many statements (85 > 40) (funlen)
func testWebhookAdmission(t *testing.T, watchCache bool, reconfigureClient func(testing.TB, *rest.Config)) {
test/integration/apiserver/admissionwebhook/admission_test.go:747: Function 'testResourceDelete' has too many statements (42 > 40) (funlen)
func testResourceDelete(c *testContext) {
test/integration/apiserver/admissionwebhook/admission_test.go:1292: Function 'newV1beta1WebhookHandler' is too long (95 > 60) (funlen)
func newV1beta1WebhookHandler(t *testing.T, holder *holder, phase string, converted bool) http.Handler {
test/integration/apiserver/admissionwebhook/admission_test.go:1390: Function 'newV1WebhookHandler' is too long (91 > 60) (funlen)
func newV1WebhookHandler(t *testing.T, holder *holder, phase string, converted bool) http.Handler {
test/integration/apiserver/admissionwebhook/broken_webhook_test.go:39: Function 'TestBrokenWebhook' has too many statements (44 > 40) (funlen)
func TestBrokenWebhook(t *testing.T) {
test/integration/apiserver/admissionwebhook/client_auth_test.go:62: Function 'testWebhookClientAuth' has too many statements (52 > 40) (funlen)
func testWebhookClientAuth(t *testing.T, enableAggregatorRouting bool) {
test/integration/apiserver/admissionwebhook/duplicate_owner_ref_test.go:50: Function 'TestMutatingWebhookDuplicateOwnerReferences' has too many statements (51 > 40) (funlen)
func TestMutatingWebhookDuplicateOwnerReferences(t *testing.T) {
test/integration/apiserver/admissionwebhook/invalid_managedFields_test.go:52: Function 'TestMutatingWebhookResetsInvalidManagedFields' has too many statements (44 > 40) (funlen)
func TestMutatingWebhookResetsInvalidManagedFields(t *testing.T) {
test/integration/apiserver/admissionwebhook/load_balance_test.go:58: Function 'TestWebhookLoadBalance' is too long (194 > 60) (funlen)
func TestWebhookLoadBalance(t *testing.T) {
test/integration/apiserver/admissionwebhook/match_conditions_test.go:114: Function 'TestMatchConditions' is too long (455 > 60) (funlen)
func TestMatchConditions(t *testing.T) {
test/integration/apiserver/admissionwebhook/match_conditions_test.go:572: Function 'TestMatchConditionsWithoutStrictCostEnforcement' is too long (315 > 60) (funlen)
func TestMatchConditionsWithoutStrictCostEnforcement(t *testing.T) {
test/integration/apiserver/admissionwebhook/match_conditions_test.go:890: Function 'TestMatchConditionsWithStrictCostEnforcement' is too long (313 > 60) (funlen)
func TestMatchConditionsWithStrictCostEnforcement(t *testing.T) {
test/integration/apiserver/admissionwebhook/match_conditions_test.go:1206: Function 'TestMatchConditions_validation' is too long (167 > 60) (funlen)
func TestMatchConditions_validation(t *testing.T) {
Command Mean [s] Min [s] Max [s] Relative
local 6.999 ± 0.091 6.920 7.242 1.00
v1.62.2 7.044 ± 0.042 6.984 7.115 1.01 ± 0.01

go-acme/lego

Command Mean [ms] Min [ms] Max [ms] Relative
local 904.0 ± 16.0 890.7 948.1 1.00 ± 0.09
v1.62.2 901.1 ± 79.7 849.2 1076.5 1.00

pact-foundation/pact-go

local
message/verifier.go:52:6: Function 'CreateMessageHandler' is too long (70 > 60) (funlen)
func CreateMessageHandler(messageHandlers Handlers) proxy.Middleware {
     ^
consumer/http_v4_test.go:13:6: Function 'TestHttpV4TypeSystem' is too long (66 > 60) (funlen)
func TestHttpV4TypeSystem(t *testing.T) {
     ^
installer/installer_test.go:29:6: Function 'TestInstallerDownloader' is too long (89 > 60) (funlen)
func TestInstallerDownloader(t *testing.T) {
     ^
internal/native/message_server_test.go:353:6: Function 'TestGrpcPluginInteraction' is too long (69 > 60) (funlen)
func TestGrpcPluginInteraction(t *testing.T) {
     ^
internal/native/message_server_test.go:431:6: Function 'TestGrpcPluginInteraction_ErrorResponse' is too long (63 > 60) (funlen)
func TestGrpcPluginInteraction_ErrorResponse(t *testing.T) {
     ^
matchers/matcher_test.go:271:6: Function 'TestMatcher_NestAllTheThings' is too long (68 > 60) (funlen)
func TestMatcher_NestAllTheThings(t *testing.T) {
     ^
matchers/matcher_test.go:381:6: Function 'TestMatcher_SugarMatchers' is too long (118 > 60) (funlen)
func TestMatcher_SugarMatchers(t *testing.T) {
     ^
matchers/matcher_test.go:564:6: Function 'TestMatch' is too long (233 > 60) (funlen)
func TestMatch(t *testing.T) {
     ^
matchers/matcher_test.go:800:6: Function 'Test_pluckParams' is too long (195 > 60) (funlen)
func Test_pluckParams(t *testing.T) {
     ^
provider/verifier.go:71:20: Function 'verifyProviderRaw' has too many statements (41 > 40) (funlen)
func (v *Verifier) verifyProviderRaw(request VerifyRequest, writer outputWriter) error {
                   ^
provider/verifier.go:253:6: Function 'stateHandlerMiddleware' is too long (85 > 60) (funlen)
func stateHandlerMiddleware(stateHandlers models.StateHandlers, afterEach Hook) proxy.Middleware {
     ^
provider/verify_request.go:173:25: Function 'validate' has too many statements (42 > 40) (funlen)
func (v *VerifyRequest) validate(handle *native.Verifier) error {
                        ^
provider/verify_request_test.go:12:6: Function 'TestVerifyRequestValidate' is too long (98 > 60) (funlen)
func TestVerifyRequestValidate(t *testing.T) {
     ^
utils/port_test.go:20:6: Function 'Test_FindPortInRange' is too long (69 > 60) (funlen)
func Test_FindPortInRange(t *testing.T) {
     ^
v1.62.2
utils/port_test.go:20: Function 'Test_FindPortInRange' is too long (69 > 60) (funlen)
func Test_FindPortInRange(t *testing.T) {
message/verifier.go:52: Function 'CreateMessageHandler' is too long (75 > 60) (funlen)
func CreateMessageHandler(messageHandlers Handlers) proxy.Middleware {
installer/installer_test.go:29: Function 'TestInstallerDownloader' is too long (91 > 60) (funlen)
func TestInstallerDownloader(t *testing.T) {
consumer/http_v4_test.go:13: Function 'TestHttpV4TypeSystem' is too long (72 > 60) (funlen)
func TestHttpV4TypeSystem(t *testing.T) {
provider/verifier.go:71: Function 'verifyProviderRaw' has too many statements (41 > 40) (funlen)
func (v *Verifier) verifyProviderRaw(request VerifyRequest, writer outputWriter) error {
provider/verifier.go:253: Function 'stateHandlerMiddleware' is too long (95 > 60) (funlen)
func stateHandlerMiddleware(stateHandlers models.StateHandlers, afterEach Hook) proxy.Middleware {
provider/verify_request.go:173: Function 'validate' has too many statements (42 > 40) (funlen)
func (v *VerifyRequest) validate(handle *native.Verifier) error {
provider/verify_request_test.go:12: Function 'TestVerifyRequestValidate' is too long (98 > 60) (funlen)
func TestVerifyRequestValidate(t *testing.T) {
matchers/matcher_test.go:271: Function 'TestMatcher_NestAllTheThings' is too long (68 > 60) (funlen)
func TestMatcher_NestAllTheThings(t *testing.T) {
matchers/matcher_test.go:381: Function 'TestMatcher_SugarMatchers' is too long (120 > 60) (funlen)
func TestMatcher_SugarMatchers(t *testing.T) {
matchers/matcher_test.go:564: Function 'TestMatch' is too long (233 > 60) (funlen)
func TestMatch(t *testing.T) {
matchers/matcher_test.go:800: Function 'Test_pluckParams' is too long (195 > 60) (funlen)
func Test_pluckParams(t *testing.T) {
internal/native/message_server_test.go:353: Function 'TestGrpcPluginInteraction' is too long (75 > 60) (funlen)
func TestGrpcPluginInteraction(t *testing.T) {
internal/native/message_server_test.go:431: Function 'TestGrpcPluginInteraction_ErrorResponse' is too long (69 > 60) (funlen)
func TestGrpcPluginInteraction_ErrorResponse(t *testing.T) {
internal/native/message_server.go:329: Function 'GetMessageRequestContents' is too long (81 > 60) (funlen)
func (m *Message) GetMessageRequestContents() ([]byte, error) {
Command Mean [ms] Min [ms] Max [ms] Relative
local 291.1 ± 8.1 284.2 312.5 1.11 ± 0.04
v1.62.2 261.8 ± 7.5 255.5 282.0 1.00

rclone/rclone

local
backend/box/box.go:83:6: Function 'init' is too long (91 > 60) (funlen)
func init() {
     ^
backend/box/box.go:433:6: Function 'NewFs' has too many statements (48 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/box/box.go:943:14: Function 'Copy' is too long (64 > 60) (funlen)
func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object, error) {
             ^
backend/box/box.go:1339:14: Function 'changeNotifyRunner' has too many statements (75 > 40) (funlen)
func (f *Fs) changeNotifyRunner(ctx context.Context, notifyFunc func(string, fs.EntryType), streamPosition string, processedEventIDs map[string]time.Time) (nextStreamPosition string, err error) {
             ^
backend/box/upload.go:86:18: Function 'commitUpload' is too long (65 > 60) (funlen)
func (o *Object) commitUpload(ctx context.Context, SessionID string, parts []api.Part, modTime time.Time, sha1sum []byte) (result *api.FolderItems, err error) {
                 ^
backend/box/upload.go:176:18: Function 'uploadMultipart' is too long (87 > 60) (funlen)
func (o *Object) uploadMultipart(ctx context.Context, in io.Reader, leaf, directoryID string, size int64, modTime time.Time, options ...fs.OpenOption) (err error) {
                 ^
backend/filefabric/filefabric.go:60:6: Function 'init' is too long (74 > 60) (funlen)
func init() {
     ^
backend/filefabric/filefabric.go:423:6: Function 'NewFs' is too long (68 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/filefabric/filefabric.go:1208:18: Function 'Update' has too many statements (47 > 40) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (err error) {
                 ^
backend/gofile/gofile.go:301:6: Function 'NewFs' is too long (66 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/gofile/gofile.go:737:14: Function 'listR' has too many statements (43 > 40) (funlen)
func (f *Fs) listR(ctx context.Context, dir string, list *walk.ListRHelper) (err error) {
             ^
backend/googlecloudstorage/googlecloudstorage.go:76:6: Function 'init' is too long (292 > 60) (funlen)
func init() {
     ^
backend/googlecloudstorage/googlecloudstorage.go:510:6: Function 'NewFs' is too long (95 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/googlecloudstorage/googlecloudstorage.go:649:14: Function 'list' has too many statements (61 > 40) (funlen)
func (f *Fs) list(ctx context.Context, bucket, directory, prefix string, addBucket bool, recurse bool, fn listFn) (err error) {
             ^
backend/iclouddrive/iclouddrive.go:141:6: Function 'Config' has too many statements (43 > 40) (funlen)
func Config(ctx context.Context, name string, m configmap.Mapper, config fs.ConfigIn) (*fs.ConfigOut, error) {
     ^
backend/iclouddrive/iclouddrive.go:796:6: Function 'NewFs' has too many statements (47 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/iclouddrive/iclouddrive.go:1080:18: Function 'Update' is too long (69 > 60) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error {
                 ^
backend/internetarchive/internetarchive.go:36:6: Function 'init' is too long (146 > 60) (funlen)
func init() {
     ^
backend/internetarchive/internetarchive.go:779:18: Function 'Update' is too long (65 > 60) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (err error) {
                 ^
backend/internetarchive/internetarchive.go:1013:14: Function 'waitFileUpload' has too many statements (52 > 40) (funlen)
func (f *Fs) waitFileUpload(ctx context.Context, reqPath, tracker string, newSize int64) (ret *Object, err error) {
             ^
backend/koofr/koofr.go:29:6: Function 'init' is too long (63 > 60) (funlen)
func init() {
     ^
backend/linkbox/linkbox.go:560:18: Function 'Update' has too many statements (58 > 40) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (err error) {
                 ^
backend/mailru/mailru.go:80:6: Function 'init' is too long (134 > 60) (funlen)
func init() {
     ^
backend/mailru/mailru.go:310:6: Function 'NewFs' is too long (70 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/mailru/mailru.go:780:14: Function 'listBin' has too many statements (46 > 40) (funlen)
func (f *Fs) listBin(ctx context.Context, dirPath string, depth int) (entries fs.DirEntries, err error) {
             ^
backend/mailru/mailru.go:875:21: Function 'NextRecord' has too many statements (79 > 40) (funlen)
func (t *treeState) NextRecord() (fs.DirEntry, error) {
                    ^
backend/mailru/mailru.go:1247:14: Function 'Copy' has too many statements (44 > 40) (funlen)
func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object, error) {
             ^
backend/mailru/mailru.go:1604:18: Function 'Update' has too many statements (56 > 40) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error {
                 ^
backend/mailru/mailru.go:2143:18: Function 'Open' is too long (75 > 60) (funlen)
func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) {
                 ^
backend/mega/mega.go:193:6: Function 'NewFs' is too long (62 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/netstorage/netstorage.go:495:14: Function 'ListR' has too many statements (54 > 40) (funlen)
func (f *Fs) ListR(ctx context.Context, dir string, callback fs.ListRCallback) (err error) {
             ^
backend/netstorage/netstorage.go:976:18: Function 'netStorageUploadRequest' is too long (77 > 60) (funlen)
func (o *Object) netStorageUploadRequest(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error {
                 ^
backend/opendrive/opendrive.go:170:6: Function 'NewFs' is too long (73 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/opendrive/opendrive.go:442:14: Function 'Move' is too long (64 > 60) (funlen)
func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object, error) {
             ^
backend/opendrive/opendrive.go:981:18: Function 'Update' is too long (102 > 60) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error {
                 ^
backend/pcloud/pcloud.go:67:6: Function 'init' is too long (77 > 60) (funlen)
func init() {
     ^
backend/pcloud/pcloud.go:302:6: Function 'NewFs' is too long (64 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/pcloud/pcloud.go:1252:18: Function 'Update' has too many statements (41 > 40) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (err error) {
                 ^
backend/pikpak/pikpak.go:141:6: Function 'init' is too long (138 > 60) (funlen)
func init() {
     ^
backend/premiumizeme/premiumizeme.go:236:6: Function 'NewFs' is too long (65 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/premiumizeme/premiumizeme.go:926:18: Function 'Update' has too many statements (43 > 40) (funlen)
func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (err error) {
                 ^
backend/protondrive/protondrive.go:57:6: Function 'init' is too long (128 > 60) (funlen)
func init() {
     ^
backend/protondrive/protondrive.go:372:6: Function 'NewFs' has too many statements (46 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/quatrix/quatrix.go:170:6: Function 'NewFs' is too long (72 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/quatrix/quatrix.go:709:14: Function 'Copy' is too long (67 > 60) (funlen)
func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object, error) {
             ^
backend/sia/sia.go:420:6: Function 'NewFs' is too long (61 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
     ^
backend/smb/smb.go:38:6: Function 'init' is too long (76 > 60) (funlen)
func init() {
     ^
backend/storj/fs.go:40:6: Function 'init' is too long (94 > 60) (funlen)
func init() {
     ^
backend/storj/fs.go:172:6: Function 'NewFs' has too many statements (44 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (_ fs.Fs, err error) {
     ^
backend/storj/fs.go:536:14: Function 'put' is too long (65 > 60) (funlen)
func (f *Fs) put(ctx context.Context, in io.Reader, src fs.ObjectInfo, remote string, options ...fs.OpenOption) (_ fs.Object, err error) {
             ^
v1.62.2
fs/cache/cache_test.go:195: Function 'TestPinFile' has too many statements (50 > 40) (funlen)
func TestPinFile(t *testing.T) {
cmd/serve/http/http.go:237: Function 'serveFile' is too long (85 > 60) (funlen)
func (s *HTTP) serveFile(w http.ResponseWriter, r *http.Request, remote string) {
cmd/serve/http/http_test.go:93: Function 'testGET' is too long (167 > 60) (funlen)
func testGET(t *testing.T, useProxy bool) {
backend/combine/combine.go:155: Function 'NewFs' has too many statements (81 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (outFs fs.Fs, err error) {
cmd/cmd.go:240: Function 'Run' has too many statements (61 > 40) (funlen)
func Run(Retry bool, showStats bool, cmd *cobra.Command, f func() error) {
cmd/cmd.go:385: Function 'initConfig' is too long (97 > 60) (funlen)
func initConfig() {
cmd/help.go:285: Function 'showBackend' has too many statements (65 > 40) (funlen)
func showBackend(name string) {
backend/oracleobjectstorage/multipart.go:129: Function 'WriteChunk' is too long (68 > 60) (funlen)
func (w *objectChunkWriter) WriteChunk(ctx context.Context, chunkNumber int, reader io.ReadSeeker) (bytesWritten int64, err error) {
backend/oracleobjectstorage/multipart.go:285: Function 'prepareUpload' has too many statements (60 > 40) (funlen)
func (o *Object) prepareUpload(ctx context.Context, src fs.ObjectInfo, options []fs.OpenOption) (ui uploadInfo, err error) {
backend/oracleobjectstorage/options.go:77: Function 'newOptions' is too long (272 > 60) (funlen)
func newOptions() []fs.Option {
backend/oracleobjectstorage/oracleobjectstorage.go:241: Function 'list' has too many statements (64 > 40) (funlen)
func (f *Fs) list(ctx context.Context, bucket, directory, prefix string, addBucket bool, recurse bool, limit int,
backend/oracleobjectstorage/waiter.go:59: Function 'WaitForStateContext' has too many statements (50 > 40) (funlen)
func (conf *StateChangeConf) WaitForStateContext(ctx context.Context, entityType string) (interface{}, error) {
cmd/test/info/base32768.go:20: Function 'checkBase32768' has too many statements (44 > 40) (funlen)
func (r *results) checkBase32768() {
cmd/test/info/info.go:327: Function 'checkControlsList' is too long (61 > 60) (funlen)
func (r *results) checkControlsList() {
backend/hidrive/helpers.go:618: Function 'updateFileChunked' is too long (74 > 60) (funlen)
func (f *Fs) updateFileChunked(ctx context.Context, path string, content io.Reader, offset uint64, chunkSize int, transferLimit int64) (okSize uint64, err error) {
backend/hidrive/hidrive.go:62: Function 'init' is too long (129 > 60) (funlen)
func init() {
backend/hidrive/hidrive.go:285: Function 'NewFs' is too long (81 > 60) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
backend/hidrive/hidrive.go:506: Function 'PutUnchecked' is too long (71 > 60) (funlen)
func (f *Fs) PutUnchecked(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) {
backend/azureblob/azureblob.go:83: Function 'init' is too long (370 > 60) (funlen)
func init() {
backend/azureblob/azureblob.go:685: Function 'NewFs' has too many statements (155 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
backend/azureblob/azureblob.go:1075: Function 'list' has too many statements (62 > 40) (funlen)
func (f *Fs) list(ctx context.Context, containerName, directory, prefix string, addContainer bool, recurse bool, maxResults int32, fn listFn) error {
backend/azureblob/azureblob.go:2307: Function 'prepareUpload' is too long (61 > 60) (funlen)
func (o *Object) prepareUpload(ctx context.Context, src fs.ObjectInfo, options []fs.OpenOption) (ui uploadInfo, err error) {
cmd/gitannex/gitannex.go:191: Function 'run' has too many statements (41 > 40) (funlen)
func (s *server) run() error {
cmd/gitannex/gitannex.go:385: Function 'handleTransfer' has too many statements (53 > 40) (funlen)
func (s *server) handleTransfer(message *messageParser) error {
cmd/gitannex/e2e_test.go:309: Function 'TestEndToEndRepoLayoutCompat' is too long (88 > 60) (funlen)
func TestEndToEndRepoLayoutCompat(t *testing.T) {
cmd/bisync/compare.go:31: Function 'setCompareDefaults' has too many statements (43 > 40) (funlen)
func (b *bisyncRun) setCompareDefaults(ctx context.Context) error {
cmd/bisync/deltas.go:76: Function 'printStats' has too many statements (50 > 40) (funlen)
func (ds *deltaSet) printStats() {
cmd/bisync/deltas.go:150: Function 'findDeltas' has too many statements (46 > 40) (funlen)
func (b *bisyncRun) findDeltas(fctx context.Context, f fs.Fs, oldListing string, now *fileList, msg string) (ds *deltaSet, err error) {
cmd/bisync/deltas.go:289: Function 'applyDeltas' has too many statements (96 > 40) (funlen)
func (b *bisyncRun) applyDeltas(ctx context.Context, ds1, ds2 *deltaSet) (changes1, changes2 bool, results2to1, results1to2 []Results, queues queues, err error) {
cmd/bisync/listing.go:298: Function 'loadListing' is too long (65 > 60) (funlen)
func (b *bisyncRun) loadListing(listing string) (*fileList, error) {
cmd/bisync/listing.go:456: Function 'modifyListing' has too many statements (132 > 40) (funlen)
func (b *bisyncRun) modifyListing(ctx context.Context, src fs.Fs, dst fs.Fs, results []Results, queues queues, is1to2 bool) (err error) {
cmd/bisync/listing.go:720: Function 'recheck' has too many statements (42 > 40) (funlen)
func (b *bisyncRun) recheck(ctxRecheck context.Context, src, dst fs.Fs, srcList, dstList *fileList, is1to2 bool) {
cmd/bisync/operations.go:66: Function 'Bisync' has too many statements (58 > 40) (funlen)
func Bisync(ctx context.Context, fs1, fs2 fs.Fs, optArg *Options) (err error) {
cmd/bisync/operations.go:213: Function 'runLocked' has too many statements (138 > 40) (funlen)
func (b *bisyncRun) runLocked(octx context.Context) (err error) {
cmd/bisync/queue.go:109: Function 'WriteResults' is too long (63 > 60) (funlen)
func WriteResults(ctx context.Context, sigil operations.Sigil, src, dst fs.DirEntry, err error) {
cmd/bisync/queue.go:304: Function 'syncEmptyDirs' is too long (64 > 60) (funlen)
func (b *bisyncRun) syncEmptyDirs(ctx context.Context, dst fs.Fs, candidates bilib.Names, dirsList *fileList, results *[]Results, operation string) {
cmd/bisync/rc.go:23: Function 'rcBisync' has too many statements (51 > 40) (funlen)
func rcBisync(ctx context.Context, in rc.Params) (out rc.Params, err error) {
cmd/bisync/resolve.go:138: Function 'resolve' is too long (92 > 60) (funlen)
func (b *bisyncRun) resolve(ctxMove context.Context, path1, path2, file, alias string, renameSkipped, copy1to2, copy2to1 *bilib.Names, ds1, ds2 *deltaSet) error {
cmd/bisync/resync.go:44: Function 'resync' has too many statements (80 > 40) (funlen)
func (b *bisyncRun) resync(octx, fctx context.Context) error {
backend/onedrive/onedrive.go:110: Function 'init' is too long (341 > 60) (funlen)
func init() {
backend/onedrive/onedrive.go:470: Function 'chooseDrive' is too long (71 > 60) (funlen)
func chooseDrive(ctx context.Context, name string, m configmap.Mapper, srv *rest.Client, opt chooseDriveOpt) (*fs.ConfigOut, error) {
backend/onedrive/onedrive.go:576: Function 'Config' has too many statements (77 > 40) (funlen)
func Config(ctx context.Context, name string, m configmap.Mapper, conf fs.ConfigIn) (*fs.ConfigOut, error) {
backend/onedrive/onedrive.go:925: Function 'readMetaDataForPath' is too long (62 > 60) (funlen)
func (f *Fs) readMetaDataForPath(ctx context.Context, path string) (info *api.Item, resp *http.Response, err error) {
backend/onedrive/onedrive.go:1025: Function 'NewFs' has too many statements (59 > 40) (funlen)
func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {
backend/onedrive/onedrive.go:1388: Function 'ListR' has too many statements (55 > 40) (funlen)
func (f *Fs) ListR(ctx context.Context, dir string, callback fs.ListRCallback) (err error) {
backend/onedrive/onedrive.go:1659: Function 'Copy' has too many statements (50 > 40) (funlen)
func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (dst fs.Object, err error) {
backend/onedrive/onedrive.go:1945: Function 'PublicLink' has too many statements (55 > 40) (funlen)
func (f *Fs) PublicLink(ctx context.Context, remote string, expire fs.Duration, unlink bool) (link string, err error) {
backend/onedrive/onedrive.go:2318: Function 'Open' is too long (61 > 60) (funlen)
func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) {
backend/onedrive/onedrive_internal_test.go:45: Function 'TestWritePermissions' has too many statements (50 > 40) (funlen)
func (f *Fs) TestWritePermissions(t *testing.T, r *fstest.Run) {
backend/onedrive/onedrive_internal_test.go:172: Function 'TestDirectoryMetadata' has too many statements (71 > 40) (funlen)
func (f *Fs) TestDirectoryMetadata(t *testing.T, r *fstest.Run) {
Command Mean [s] Min [s] Max [s] Relative
local 1.567 ± 0.058 1.521 1.715 1.03 ± 0.04
v1.62.2 1.515 ± 0.014 1.500 1.541 1.00

hashicorp/terraform

local
internal/backend/testing.go:78:6: Function 'TestBackendStates' has too many statements (90 > 40) (funlen)
func TestBackendStates(t *testing.T, b Backend) {
     ^
internal/backend/testing.go:306:6: Function 'testLocksInWorkspace' has too many statements (68 > 40) (funlen)
func testLocksInWorkspace(t *testing.T, b1, b2 Backend, testForceUnlock bool, workspace string) {
     ^
internal/e2e/e2e.go:38:6: Function 'NewBinary' is too long (61 > 60) (funlen)
func NewBinary(t *testing.T, binaryPath, workingDir string) *binary {
     ^
internal/grpcwrap/provider.go:468:20: Function 'CallFunction' is too long (67 > 60) (funlen)
func (p *provider) CallFunction(_ context.Context, req *tfplugin5.CallFunction_Request) (*tfplugin5.CallFunction_Response, error) {
                   ^
internal/grpcwrap/provider6.go:524:21: Function 'CallFunction' is too long (65 > 60) (funlen)
func (p *provider6) CallFunction(_ context.Context, req *tfplugin6.CallFunction_Request) (*tfplugin6.CallFunction_Response, error) {
                    ^
internal/promising/promise.go:77:6: Function 'NewPromise' is too long (135 > 60) (funlen)
func NewPromise[T any](ctx context.Context) (PromiseResolver[T], PromiseGet[T]) {
     ^
internal/providers/testing/provider_mock.go:407:24: Function 'PlanResourceChange' is too long (69 > 60) (funlen)
func (p *MockProvider) PlanResourceChange(r providers.PlanResourceChangeRequest) (resp providers.PlanResourceChangeResponse) {
                       ^
internal/registry/test/mock_registry.go:134:6: Function 'mockRegHandler' has too many statements (52 > 40) (funlen)
func mockRegHandler() http.Handler {
     ^
internal/rpcapi/dynrpcserver/generator/main.go:32:6: Function 'main' is too long (177 > 60) (funlen)
func main() {
     ^
internal/schemarepo/loadschemas/plugins.go:95:20: Function 'ProviderSchema' has too many statements (46 > 40) (funlen)
func (cp *Plugins) ProviderSchema(addr addrs.Provider) (providers.ProviderSchema, error) {
                   ^
internal/stacks/stackconfig/typeexpr/typeexpr.go:31:6: Function 'getType' has too many statements (133 > 40) (funlen)
func getType(expr hcl.Expression, typeInfo TypeInformation, constraint, withDefaults bool) (cty.Type, *Defaults, hcl.Diagnostics) {
     ^
internal/stacks/stackruntime/testing/provider.go:82:6: Function 'NewProviderWithData' is too long (164 > 60) (funlen)
func NewProviderWithData(t *testing.T, store *ResourceStore) *MockProvider {
     ^
tools/loggraphdiff/loggraphdiff.go:48:6: Function 'main' has too many statements (48 > 40) (funlen)
func main() {
     ^
tools/protobuf-compile/protobuf-compile.go:119:6: Function 'main' is too long (63 > 60) (funlen)
func main() {
     ^
commands.go:56:6: Function 'initCommands' is too long (383 > 60) (funlen)
func initCommands(
     ^
main.go:67:6: Function 'realMain' has too many statements (120 > 40) (funlen)
func realMain() int {
     ^
main_test.go:15:6: Function 'TestMain_cliArgsFromEnv' is too long (133 > 60) (funlen)
func TestMain_cliArgsFromEnv(t *testing.T) {
     ^
main_test.go:171:6: Function 'TestMain_cliArgsFromEnvAdvanced' is too long (94 > 60) (funlen)
func TestMain_cliArgsFromEnvAdvanced(t *testing.T) {
     ^
internal/addrs/checkable.go:94:6: Function 'ParseCheckableStr' has too many statements (48 > 40) (funlen)
func ParseCheckableStr(kind CheckableKind, src string) (Checkable, tfdiags.Diagnostics) {
     ^
internal/addrs/module.go:190:6: Function 'parseModulePrefix' is too long (81 > 60) (funlen)
func parseModulePrefix(traversal hcl.Traversal) (Module, hcl.Traversal, tfdiags.Diagnostics) {
     ^
internal/addrs/module_instance.go:83:6: Function 'parseModuleInstancePrefix' is too long (110 > 60) (funlen)
func parseModuleInstancePrefix(traversal hcl.Traversal, allowPartial bool) (ModuleInstance, hcl.Traversal, tfdiags.Diagnostics) {
     ^
internal/addrs/move_endpoint_module.go:638:30: Function 'MoveDestination' has too many statements (41 > 40) (funlen)
func (r AbsResourceInstance) MoveDestination(fromMatch, toMatch *MoveEndpointInModule) (AbsResourceInstance, bool) {
                             ^
internal/addrs/parse_ref.go:192:6: Function 'parseRef' has too many statements (68 > 40) (funlen)
func parseRef(traversal hcl.Traversal) (*Reference, tfdiags.Diagnostics) {
     ^
internal/addrs/parse_ref.go:392:6: Function 'parseResourceRef' has too many statements (49 > 40) (funlen)
func parseResourceRef(mode ResourceMode, startRange hcl.Range, traversal hcl.Traversal) (*Reference, tfdiags.Diagnostics) {
     ^
internal/addrs/parse_target.go:85:6: Function 'parseConfigResourceUnderModule' is too long (77 > 60) (funlen)
func parseConfigResourceUnderModule(moduleAddr Module, remain hcl.Traversal) (ConfigResource, tfdiags.Diagnostics) {
     ^
internal/addrs/parse_target.go:165:6: Function 'parseResourceInstanceUnderModule' has too many statements (63 > 40) (funlen)
func parseResourceInstanceUnderModule(moduleAddr ModuleInstance, allowPartial bool, remain hcl.Traversal) (AbsResourceInstance, tfdiags.Diagnostics) {
     ^
internal/addrs/partial_expanded.go:45:6: Function 'ParsePartialExpandedModule' is too long (125 > 60) (funlen)
func ParsePartialExpandedModule(traversal hcl.Traversal) (PartialExpandedModule, hcl.Traversal, tfdiags.Diagnostics) {
     ^
internal/addrs/partial_expanded.go:419:6: Function 'ParsePartialExpandedResource' is too long (88 > 60) (funlen)
func ParsePartialExpandedResource(traversal hcl.Traversal) (PartialExpandedResource, hcl.Traversal, tfdiags.Diagnostics) {
     ^
internal/addrs/partial_expanded.go:669:36: Function 'IsTargetedBy' is too long (67 > 60) (funlen)
func (per PartialExpandedResource) IsTargetedBy(addr Targetable) bool {
                                   ^
internal/addrs/provider_config.go:124:6: Function 'ParseAbsProviderConfig' is too long (76 > 60) (funlen)
func ParseAbsProviderConfig(traversal hcl.Traversal) (AbsProviderConfig, tfdiags.Diagnostics) {
     ^
internal/addrs/provider_config.go:263:6: Function 'ParseLegacyAbsProviderConfig' is too long (66 > 60) (funlen)
func ParseLegacyAbsProviderConfig(traversal hcl.Traversal) (AbsProviderConfig, tfdiags.Diagnostics) {
     ^
internal/addrs/graph_test.go:11:6: Function 'TestGraph' is too long (146 > 60) (funlen)
func TestGraph(t *testing.T) {
     ^
internal/addrs/map_test.go:10:6: Function 'TestMap' has too many statements (48 > 40) (funlen)
func TestMap(t *testing.T) {
     ^
internal/addrs/module_instance_test.go:98:6: Function 'TestModuleInstance_IsDeclaredByCall' is too long (63 > 60) (funlen)
func TestModuleInstance_IsDeclaredByCall(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:17:6: Function 'TestModuleInstanceMoveDestination' is too long (276 > 60) (funlen)
func TestModuleInstanceMoveDestination(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:311:6: Function 'TestAbsResourceInstanceMoveDestination' is too long (373 > 60) (funlen)
func TestAbsResourceInstanceMoveDestination(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:708:6: Function 'TestAbsResourceMoveDestination' is too long (347 > 60) (funlen)
func TestAbsResourceMoveDestination(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:1082:6: Function 'TestMoveEndpointChainAndNested' is too long (274 > 60) (funlen)
func TestMoveEndpointChainAndNested(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:1359:6: Function 'TestSelectsModule' is too long (102 > 60) (funlen)
func TestSelectsModule(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:1464:6: Function 'TestSelectsResource' is too long (112 > 60) (funlen)
func TestSelectsResource(t *testing.T) {
     ^
internal/addrs/move_endpoint_module_test.go:1591:6: Function 'TestIsModuleMoveReIndex' is too long (149 > 60) (funlen)
func TestIsModuleMoveReIndex(t *testing.T) {
     ^
internal/addrs/move_endpoint_test.go:15:6: Function 'TestParseMoveEndpoint' is too long (319 > 60) (funlen)
func TestParseMoveEndpoint(t *testing.T) {
     ^
internal/addrs/move_endpoint_test.go:341:6: Function 'TestUnifyMoveEndpoints' is too long (151 > 60) (funlen)
func TestUnifyMoveEndpoints(t *testing.T) {
     ^
internal/addrs/move_endpoint_test.go:502:6: Function 'TestMoveEndpointConfigMoveable' is too long (129 > 60) (funlen)
func TestMoveEndpointConfigMoveable(t *testing.T) {
     ^
internal/addrs/parse_ref_test.go:17:6: Function 'TestParseRefInTestingScope' is too long (146 > 60) (funlen)
func TestParseRefInTestingScope(t *testing.T) {
     ^
internal/addrs/parse_ref_test.go:168:6: Function 'TestParseRef' is too long (862 > 60) (funlen)
func TestParseRef(t *testing.T) {
     ^
internal/addrs/parse_target_test.go:16:6: Function 'TestParseTarget' is too long (508 > 60) (funlen)
func TestParseTarget(t *testing.T) {
     ^
internal/addrs/partial_expanded_test.go:15:6: Function 'TestPartialExpandedResourceIsTargetedBy' is too long (100 > 60) (funlen)
func TestPartialExpandedResourceIsTargetedBy(t *testing.T) {
     ^
internal/addrs/partial_expanded_test.go:118:6: Function 'TestParsePartialExpandedModule' is too long (177 > 60) (funlen)
func TestParsePartialExpandedModule(t *testing.T) {
     ^
internal/addrs/partial_expanded_test.go:303:6: Function 'TestParsePartialExpandedResource' is too long (95 > 60) (funlen)
func TestParsePartialExpandedResource(t *testing.T) {
     ^
v1.62.2
internal/registry/test/mock_registry.go:134: Function 'mockRegHandler' has too many statements (52 > 40) (funlen)
func mockRegHandler() http.Handler {
internal/stacks/stackstate/statekeys/key_parse_test.go:15: Function 'TestParse' is too long (342 > 60) (funlen)
func TestParse(t *testing.T) {
internal/depsfile/locks_file.go:167: Function 'decodeLocksFromHCL' is too long (67 > 60) (funlen)
func decodeLocksFromHCL(locks *Locks, body hcl.Body) tfdiags.Diagnostics {
internal/depsfile/locks_file.go:237: Function 'decodeProviderLockFromHCL' is too long (81 > 60) (funlen)
func decodeProviderLockFromHCL(block *hcl.Block) (*ProviderLock, tfdiags.Diagnostics) {
internal/depsfile/locks_file_test.go:21: Function 'TestLoadLocksFromFile' is too long (142 > 60) (funlen)
func TestLoadLocksFromFile(t *testing.T) {
internal/depsfile/locks_file_test.go:205: Function 'TestSaveLocksToFile' is too long (72 > 60) (funlen)
func TestSaveLocksToFile(t *testing.T) {
internal/depsfile/locks_test.go:15: Function 'TestLocksEqual' is too long (71 > 60) (funlen)
func TestLocksEqual(t *testing.T) {
internal/depsfile/locks_test.go:147: Function 'TestLocksProviderSetRemove' is too long (74 > 60) (funlen)
func TestLocksProviderSetRemove(t *testing.T) {
internal/depsfile/locks_test.go:224: Function 'TestProviderLockContainsAll' is too long (88 > 60) (funlen)
func TestProviderLockContainsAll(t *testing.T) {
internal/providers/functions.go:62: Function 'BuildFunction' is too long (72 > 60) (funlen)
func (d FunctionDecl) BuildFunction(providerAddr addrs.Provider, name string, resTable *FunctionResults, factory func() (Interface, error)) function.Function {
internal/providers/functions_test.go:17: Function 'TestFunctionCache' is too long (169 > 60) (funlen)
func TestFunctionCache(t *testing.T) {
internal/lang/blocktoattr/schema.go:26: Function 'effectiveSchema' is too long (77 > 60) (funlen)
func effectiveSchema(given *hcl.BodySchema, body hcl.Body, ambiguousNames map[string]struct{}, dynamicExpanded bool) *hcl.BodySchema {
internal/lang/blocktoattr/fixup_test.go:18: Function 'TestFixUpBlockAttrs' is too long (505 > 60) (funlen)
func TestFixUpBlockAttrs(t *testing.T) {
internal/lang/blocktoattr/variables_test.go:18: Function 'TestExpandedVariables' is too long (184 > 60) (funlen)
func TestExpandedVariables(t *testing.T) {
internal/initwd/from_module.go:51: Function 'DirFromModule' has too many statements (130 > 40) (funlen)
func DirFromModule(ctx context.Context, loader *configload.Loader, rootDir, modulesDir, sourceAddrStr string, reg *registry.Client, hooks ModuleInstallHooks) tfdiags.Diagnostics {
internal/initwd/module_install.go:146: Function 'moduleInstallWalker' is too long (146 > 60) (funlen)
func (i *ModuleInstaller) moduleInstallWalker(ctx context.Context, manifest modsdir.Manifest, upgrade bool, hooks ModuleInstallHooks, fetcher *getmodules.PackageFetcher) configs.ModuleWalker {
internal/initwd/module_install.go:347: Function 'installLocalModule' is too long (64 > 60) (funlen)
func (i *ModuleInstaller) installLocalModule(req *configs.ModuleRequest, key string, manifest modsdir.Manifest, hooks ModuleInstallHooks) (*configs.Module, hcl.Diagnostics) {
internal/initwd/module_install.go:414: Function 'installRegistryModule' has too many statements (86 > 40) (funlen)
func (i *ModuleInstaller) installRegistryModule(ctx context.Context, req *configs.ModuleRequest, key string, instPath string, addr addrs.ModuleSourceRegistry, manifest modsdir.Manifest, hooks ModuleInstallHooks, fetcher *getmodules.PackageFetcher) (*configs.Module, *version.Version, hcl.Diagnostics) {
internal/initwd/module_install.go:723: Function 'installGoGetterModule' is too long (97 > 60) (funlen)
func (i *ModuleInstaller) installGoGetterModule(ctx context.Context, req *configs.ModuleRequest, key string, instPath string, manifest modsdir.Manifest, hooks ModuleInstallHooks, fetcher *getmodules.PackageFetcher) (*configs.Module, hcl.Diagnostics) {
internal/initwd/module_install.go:836: Function 'maybeImproveLocalInstallError' is too long (115 > 60) (funlen)
func maybeImproveLocalInstallError(req *configs.ModuleRequest, diags hcl.Diagnostics) hcl.Diagnostics {
internal/initwd/from_module_test.go:22: Function 'TestDirFromModule_registry' is too long (109 > 60) (funlen)
func TestDirFromModule_registry(t *testing.T) {
internal/initwd/from_module_test.go:134: Function 'TestDirFromModule_submodules' is too long (78 > 60) (funlen)
func TestDirFromModule_submodules(t *testing.T) {
internal/initwd/from_module_test.go:250: Function 'TestDirFromModule_rel_submodules' is too long (88 > 60) (funlen)
func TestDirFromModule_rel_submodules(t *testing.T) {
internal/initwd/module_install_test.go:370: Function 'TestModuleInstaller_symlink' is too long (61 > 60) (funlen)
func TestModuleInstaller_symlink(t *testing.T) {
internal/initwd/module_install_test.go:473: Function 'TestLoaderInstallModules_registry' is too long (161 > 60) (funlen)
func TestLoaderInstallModules_registry(t *testing.T) {
internal/initwd/module_install_test.go:637: Function 'TestLoaderInstallModules_goGetter' is too long (127 > 60) (funlen)
func TestLoaderInstallModules_goGetter(t *testing.T) {
internal/initwd/module_install_test.go:811: Function 'TestLoadInstallModules_registryFromTest' is too long (106 > 60) (funlen)
func TestLoadInstallModules_registryFromTest(t *testing.T) {
internal/backend/testing.go:78: Function 'TestBackendStates' has too many statements (90 > 40) (funlen)
func TestBackendStates(t *testing.T, b Backend) {
internal/backend/testing.go:306: Function 'testLocksInWorkspace' has too many statements (68 > 40) (funlen)
func testLocksInWorkspace(t *testing.T, b1, b2 Backend, testForceUnlock bool, workspace string) {
internal/checks/state_init.go:25: Function 'collectInitialStatuses' is too long (69 > 60) (funlen)
func collectInitialStatuses(into addrs.Map[addrs.ConfigCheckable, *configCheckableState], cfg *configs.Config) {
internal/checks/state_test.go:17: Function 'TestChecksHappyPath' has too many statements (98 > 40) (funlen)
func TestChecksHappyPath(t *testing.T) {
internal/cloudplugin/binary.go:111: Function 'resolveRelease' is too long (61 > 60) (funlen)
func (v BinaryManager) resolveRelease() (*Binary, error) {
internal/command/format/diagnostic.go:36: Function 'DiagnosticFromJSON' has too many statements (45 > 40) (funlen)
func DiagnosticFromJSON(diag *viewsjson.Diagnostic, color *colorstring.Colorize, width int) string {
internal/command/format/diagnostic.go:218: Function 'appendSourceSnippets' is too long (103 > 60) (funlen)
func appendSourceSnippets(buf *bytes.Buffer, diag *viewsjson.Diagnostic, color *colorstring.Colorize) {
internal/command/format/diagnostic_test.go:24: Function 'TestDiagnostic' is too long (265 > 60) (funlen)
func TestDiagnostic(t *testing.T) {
internal/command/format/diagnostic_test.go:292: Function 'TestDiagnosticPlain' is too long (301 > 60) (funlen)
func TestDiagnosticPlain(t *testing.T) {
internal/command/format/object_id_test.go:14: Function 'TestObjectValueIDOrName' is too long (201 > 60) (funlen)
func TestObjectValueIDOrName(t *testing.T) {
internal/command/jsonformat/diff.go:15: Function 'precomputeDiffs' is too long (67 > 60) (funlen)
func precomputeDiffs(plan Plan, mode plans.Mode) diffs {
internal/command/jsonformat/plan.go:50: Function 'renderHuman' has too many statements (66 > 40) (funlen)
func (plan Plan) renderHuman(renderer Renderer, mode plans.Mode, opts ...plans.Quality) {
internal/command/jsonformat/plan.go:438: Function 'resourceChangeComment' has too many statements (100 > 40) (funlen)
func resourceChangeComment(resource jsonplan.ResourceChange, action plans.Action, changeCause string) string {
internal/command/jsonformat/renderer.go:145: Function 'RenderLog' has too many statements (90 > 40) (funlen)
func (renderer Renderer) RenderLog(log *JSONLog) error {
internal/command/jsonformat/plan_test.go:51: Function 'TestRenderHuman_DeferredPlan' is too long (71 > 60) (funlen)
func TestRenderHuman_DeferredPlan(t *testing.T) {
internal/command/jsonformat/plan_test.go:156: Function 'TestRenderHuman_Imports' is too long (344 > 60) (funlen)
func TestRenderHuman_Imports(t *testing.T) {
internal/command/jsonformat/plan_test.go:503: Function 'TestResourceChange_primitiveTypes' is too long (746 > 60) (funlen)
func TestResourceChange_primitiveTypes(t *testing.T) {
internal/command/jsonformat/plan_test.go:1252: Function 'TestResourceChange_JSON' is too long (612 > 60) (funlen)
func TestResourceChange_JSON(t *testing.T) {
internal/command/jsonformat/plan_test.go:1867: Function 'TestResourceChange_listObject' is too long (82 > 60) (funlen)
func TestResourceChange_listObject(t *testing.T) {
internal/command/jsonformat/plan_test.go:1952: Function 'TestResourceChange_primitiveList' is too long (376 > 60) (funlen)
func TestResourceChange_primitiveList(t *testing.T) {
internal/command/jsonformat/plan_test.go:2379: Function 'TestResourceChange_primitiveSet' is too long (342 > 60) (funlen)
func TestResourceChange_primitiveSet(t *testing.T) {
internal/command/jsonformat/plan_test.go:2724: Function 'TestResourceChange_map' is too long (253 > 60) (funlen)
func TestResourceChange_map(t *testing.T) {
internal/command/jsonformat/plan_test.go:2980: Function 'TestResourceChange_nestedList' is too long (714 > 60) (funlen)
func TestResourceChange_nestedList(t *testing.T) {
Command Mean [s] Min [s] Max [s] Relative
local 2.119 ± 0.045 2.060 2.215 1.01 ± 0.02
v1.62.2 2.092 ± 0.018 2.063 2.127 1.00

traefik/traefik

Command Mean [s] Min [s] Max [s] Relative
local 1.316 ± 0.020 1.284 1.351 1.02 ± 0.04
v1.62.2 1.292 ± 0.043 1.262 1.396 1.00

You can find the workflow here:
https://github.com/ldez/golangci-lint-bench/actions/runs/12352994497

@ldez ldez closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant