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

Warning emitted on golangci-lint linters without any configuration #4586

Closed
5 tasks done
matthewhughes-uw opened this issue Mar 28, 2024 · 2 comments · Fixed by #4587
Closed
5 tasks done

Warning emitted on golangci-lint linters without any configuration #4586

matthewhughes-uw opened this issue Mar 28, 2024 · 2 comments · Fixed by #4587
Assignees
Labels
area: CLI Related to CLI bug Something isn't working

Comments

@matthewhughes-uw
Copy link

Welcome

Description of the problem

A warning is emitted when running golangci-lint linters without having configured the deprecated option

WARN [config_reader] The configuration option run.skip-dirs-use-default is deprecated, please use issues.exclude-dirs-use-default.

Expectation: I don't receive a warning about using a deprecated option unless I'm explicitly using it

Maybe this command should explicitly hide the deprecation warning like config appears to

Version of golangci-lint

$ golangci-lint --version
golangci-lint has version 1.57.1 built with go1.22.1 from cd890db2 on 2024-03-20T16:34:34Z

Configuration

N/A reproducible without a config file

Go environment

$ go version && go env
go version go1.22.1 linux/amd64
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/my-user/.cache/go-build'
GOENV='/home/my-user/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/my-user/.local/share/go/pkg/mod'
GOOS='linux'
GOPATH='/home/my-user/.local/share/go'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2547323891=/tmp/go-build -gno-record-gcc-switches'

Verbose output of running

N/A not related to golangci-lint run

A minimal reproducible example or link to a public repository

Set up a clean module (or just run golangci-lint linters in a directory without any config):

$ go mod init some-proj
$ cat <<EOF >main.go
package main

import (
	"fmt"
)

func main() {
	fmt.Println("hello, world")
}
EOF
$ golangci-lint linters >/dev/null
WARN [config_reader] The configuration option `run.skip-dirs-use-default` is deprecated, please use `issues.exclude-dirs-use-default`. 

Validation

  • Yes, I've included all information above (version, config, etc.).
@matthewhughes-uw matthewhughes-uw added the bug Something isn't working label Mar 28, 2024
Copy link

boring-cyborg bot commented Mar 28, 2024

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez ldez self-assigned this Mar 28, 2024
@ldez ldez added the area: CLI Related to CLI label Mar 28, 2024
@matthewhughes-uw
Copy link
Author

Thanks! That was quick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CLI Related to CLI bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants