golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
15.63k stars 1.39k forks source link

The configuration option `output.format` is deprecated, please use `output.formats` #4913

Closed al-ship closed 2 months ago

al-ship commented 2 months ago

Welcome

Description of the problem

Hi! I run with this params : golangci-lint run --out-format=checkstyle ./... WARN [config_reader] The configuration option output.format is deprecated, please use output.formats

And it outputs in default format, option checkstyle not working

Version of golangci-lint

golangci-lint has version 1.60.1 built with go1.23.0 from 3298c104 on 2024-08-14T01:15:05Z

Configuration

Go environment

go version go1.19.5 linux/amd64 GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/shipulya/.cache/go-build" GOENV="/home/shipulya/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/shipulya/go/pkg/mod" GONOPROXY="*.bank24.int,*.tochka-tech.com" GONOSUMDB="*.bank24.int,*.tochka-tech.com" GOOS="linux" GOPATH="/home/shipulya/go" GOPRIVATE="*.bank24.int,*.tochka-tech.com" GOPROXY="https://proxy.golang.org,direct" GOROOT="/home/shipulya/devel/go/go1.19.5" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/shipulya/devel/go/go1.19.5/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.19.5" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/dev/null" 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 -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2738763784=/tmp/go-build -gno-record-gcc-switches"

Verbose output of running

INFO golangci-lint has version 1.60.1 built with go1.23.0 from 3298c104 on 2024-08-14T01:15:05Z INFO [config_reader] Config search paths: [./ /home/***/workspace /home/*** /home /] INFO [lintersdb] Active 6 linters: [errcheck gosimple govet ineffassign staticcheck unused] INFO [loader] Go packages loading at mode 575 (imports|name|types_sizes|compiled_files|deps|exports_file|files) took 5.138729ms INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 7.497µs ERRO [linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies INFO [linters_context/goanalysis] analyzers took 5.375417ms with top 10 stages: buildir: 487.383µs, S1008: 359.389µs, atomic: 336.201µs, unusedresult: 335.427µs, appends: 314.254µs, asmdecl: 280.169µs, inspect: 258.266µs, SA4017: 257.754µs, S1011: 234.737µs, fact_deprecated: 208.253µs INFO [runner] processing took 2.369µs with stages: max_same_issues: 871ns, nolint: 208ns, skip_dirs: 173ns, max_from_linter: 116ns, cgo: 115ns, identifier_marker: 110ns, max_per_file_from_linter: 99ns, filename_unadjuster: 91ns, invalid_issue: 90ns, skip_files: 90ns, path_prettifier: 38ns, diff: 38ns, exclude: 36ns, exclude-rules: 34ns, path_shortener: 34ns, severity-rules: 34ns, uniq_by_line: 34ns, source_code: 33ns, fixer: 32ns, autogenerated_exclude: 32ns, sort_results: 31ns, path_prefixer: 30ns INFO [runner] linters took 8.908292ms with stages: goanalysis_metalinter: 8.884486ms INFO File cache stats: 0 entries of total size 0B INFO Memory: 2 samples, avg is

A minimal reproducible example or link to a public repository

Validation

Supporter

al-ship commented 2 months ago

I use option as described here: https://golangci-lint.run/usage/configuration/

al-ship commented 2 months ago

found .golangci.yml I dont know why it has more priority than option