Hi, I have intermittent timeout issues while runninggolangci-lint in a CI/CD pipeline, and I'm looking for a solution to address it. Image
golangci-lint:v1.51.1-alpine Command
golangci-lint run --timeout 5m --verbose Log file level=info msg="[config_reader] Config search paths: [./ /builds/coder-platform/lib-coder-go /builds/coder-platform /builds / /root]"[27](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L27)level=info msg="[config_reader] Used config file .golangci.yml"[28](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L28)level=info msg="[lintersdb] Active 14 linters: [errcheck gocritic gocyclo gofmt gosimple govet ineffassign staticcheck stylecheck thelper typecheck unparam unused whitespace]"[29](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L29)level=info msg="[loader] Go packages loading at mode 575 (types_sizes|compiled_files|deps|files|imports|name|exports_file) took 4m7.286819353s"[30](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L30)level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 8.412936ms"[31](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L31)level=info msg="Memory: 3002 samples, avg is 88.8MB, max is 660.0MB"[32](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L32)level=info msg="Execution took 5m0.035606149s"[33](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L33)level=info msg="[linters_context/goanalysis] analyzers took 3m40.107801481s with top 10 stages: buildir: 2m58.786667461s, nilness: 5.781479055s, buildssa: 5.391092792s, ctrlflow: 4.913690066s, fact_deprecated: 4.610432749s, fact_purity: 4.492219529s, printf: 4.3574425[34](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L34)s, inspect: 3.93605581s, SA5012: 2.78[35](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L35)61572s, typedness: 2.773405192s"34level=info msg="[runner] Issues before processing: 44, after processing: 0"35level=info msg="[runner] Processors filtering stat (out/in): filename_unadjuster: 44/44, path_prettifier: 44/44, skip_files: 44/44, identifier_marker: 44/44, cgo: 44/44, exclude: 44/44, nolint: 0/1, skip_dirs: 44/44, autogenerated_exclude: 44/44, exclude-rules: 1/44"[36](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L36)level=info msg="[runner] processing took 15.977503ms with stages: exclude-rules: 12.782781ms, identifier_marker: 1.409134ms, path_prettifier: 588.225µs, autogenerated_exclude: 534.201µs, nolint: [37](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L37)6.867µs, skip_dirs: 267.015µs, cgo: 9.044µs, filename_unadjuster: 4.796µs, max_same_issues: 1.232µs, uniq_by_line: 694ns, source_code: 464ns, skip_files: 428ns, max_from_linter: 425ns, severity-rules: 394ns, exclude: [38](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L38)9ns, diff: 372ns, sort_results: 359ns, path_shortener: 283ns, path_prefixer: 203ns, max_per_file_from_linter: 197ns"37level=info msg="[runner] linters took 2m3.30888723s with stages: goanalysis_metalinter: 2m3.292645813s"38level=info msg="File cache stats: 0 entries of total size 0B"[39](https://git.vwx.spirent.com/indigo-platform/lib-indigoctl-go/-/jobs/288700#L39)level=error msg="Timeout exceeded: try increasing it by passing --timeout option"
Is there a way to improve the linter execution time? (Likego mod download) |