-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Welcome
- Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've read the
typechecksection of the FAQ. - Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
- I agree to follow this project's Code of Conduct
Description of the problem
In multiple Go code repositories I run the following command:
$ golangci-lint run --disable-all -E cyclopExpecting to disable all linters except cyclop. However the only results that are returned are all (typecheck). This happens if I change from cyclop to gosec or to any other linter.
Version of golangci-lint
$ golangci-lint version
golangci-lint has version 1.62.2 built with go1.23.3 from 89476e7a on 2024-11-25T14:16:01ZConfiguration
N/A- using the --no-config switch.
Go environment
$ go version && go env
go version go1.18.1 linux/amd64
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/user/.cache/go-build'
GOENV='/home/user/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/user/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/user/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go-1.18'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLDIR='/usr/lib/go-1.18/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.18.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/user/REDACTED/go.mod'
GOWORK=''
CGO_CFLAGS='-g -O2'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-g -O2'
CGO_FFLAGS='-g -O2'
CGO_LDFLAGS='-g -O2'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1076588450=/tmp/go-build -gno-record-gcc-switches'
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -v
INFO golangci-lint has version 1.62.2 built with go1.23.3 from 89476e7a on 2024-11-25T14:16:01Z
INFO [config_reader] Config search paths: [./ //home/user/REDACTED /home/user/REDACTED/edge /home/user/REDACTED /home/user/source /home/user /home /]
INFO [config_reader] Used config file .golangci.yml
INFO [lintersdb] Active 14 linters: [bodyclose dupl errcheck gofmt gosec gosimple govet ineffassign misspell nilerr staticcheck unconvert unparam unused]
INFO [loader] Go packages loading at mode 8767 (imports|name|types_sizes|deps|files|compiled_files|exports_file) took 1.114102842s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 8.106411ms
INFO [linters_context/goanalysis] analyzers took 14.278241068s with top 10 stages: buildir: 10.55132076s, inspect: 652.884735ms, fact_deprecated: 507.377865ms, ctrlflow: 362.757208ms, printf: 289.488978ms, fact_purity: 202.279602ms, nilness: 186.727009ms, SA5012: 159.573807ms, typedness: 125.17243ms, tokenfileanalyzer: 101.74781ms
INFO [runner] Issues before processing: 3960, after processing: 22
INFO [runner] Processors filtering stat (in/out): invalid_issue: 3960/3960, path_prettifier: 3960/3960, identifier_marker: 3960/3960, max_same_issues: 22/22, source_code: 22/22, path_prefixer: 22/22, cgo: 3960/3960, filename_unadjuster: 3960/3960, sort_results: 22/22, diff: 22/22, max_per_file_from_linter: 22/22, exclude: 3960/3960, exclude-rules: 3960/3960, fixer: 22/22, skip_files: 3960/3960, nolint: 3960/3960, uniq_by_line: 3960/22, max_from_linter: 22/22, path_shortener: 22/22, severity-rules: 22/22, skip_dirs: 3960/3960, autogenerated_exclude: 3960/3960
INFO [runner] processing took 125.382878ms with stages: identifier_marker: 119.595008ms, path_prettifier: 3.79551ms, nolint: 250.082µs, exclude-rules: 240.259µs, invalid_issue: 239.674µs, uniq_by_line: 230.311µs, skip_dirs: 228.345µs, cgo: 217.058µs, filename_unadjuster: 214.294µs, autogenerated_exclude: 209.86µs, source_code: 133.686µs, max_same_issues: 13.54µs, path_shortener: 6.461µs, max_from_linter: 3.559µs, max_per_file_from_linter: 3.038µs, diff: 462ns, fixer: 432ns, skip_files: 322ns, sort_results: 312ns, exclude: 271ns, path_prefixer: 205ns, severity-rules: 189ns
INFO [runner] linters took 5.580861626s with stages: goanalysis_metalinter: 5.455032745s
REDACTED strings.CutPrefix (typecheck)
releaseServiceUrls, _ := strings.CutPrefix(urisValue, "URIs:")
^
REDACTED o.Execute undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED o.SetMetaUpdateInProgress undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED o.Execute undefined (type REDACTED has no field or method Execute) (typecheck)
REDACTED
^
REDACTED o.SetMetaUpdateInProgress undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED o.Execute undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED k.GetMetaUpdateSource undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED k.Execute undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.GetMetaUpdateSource undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.IsDeprecatedFormat undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.ConfigureDeprecatedCustomAptRepos undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.UpdatePackages undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.CleanupCustomRepos undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.ConfigureForwardProxy undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.ConfigureCustomAptRepos undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED p.UpdatePackages undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED s.SetMetaUpdateInProgress undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED s.Execute undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED i.SetMetaUpdateInProgress undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED i.GetInstallPackageList undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED e.GetMetaUpdateTime undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
REDACTED e.GetMetaUpdateDuration undefined (type REDACTED has no field or method REDACTED) (typecheck)
REDACTED
^
INFO File cache stats: 3 entries of total size 25.3KiB
INFO Memory: 69 samples, avg is 300.5MB, max is 472.6MB
INFO Execution took 6.712384384s
A minimal reproducible example or link to a public repository
Not possible to share.
Validation
- Yes, I've included all information above (version, config, etc.).
Supporter
- I am a sponsor/backer through GitHub or OpenCollective
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested