Skip to content

Stylecheck doesn't ignore ignored files #846

Closed
@ferhatelmas

Description

@ferhatelmas

Method receiver naming convention rule from stylecheck still consider ignored files.

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).

Please include the following information:

Version of golangci-lint
$ golangci-lint --version
golangci-lint has version 1.21.0 built from 645e794 on 2019-10-15T18:16:56Z
Config file

https://github.com/GetStream/stream-chat-go/blob/master/.golangci.yml

Go environment
$ go version && go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/ferhat/go/bin"
GOCACHE="/home/ferhat/.cache/go-build"
GOENV="/home/ferhat/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ferhat/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/ferhat/.gimme/versions/go1.13.3.linux.amd64"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/ferhat/.gimme/versions/go1.13.3.linux.amd64/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/ferhat/Stream/stream-chat-go/go.mod"
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-build186360300=/tmp/go-build -gno-record-gcc-switches"
Verbose output of running
$ golangci-lint run -v
device.go:43:18: ST1016: methods on the same type should have the same receiver name (seen 45x "c", 4x "v") (stylecheck)
func (c *Client) AddDevice(device *Device) error {
                 ^
channel.go:140:20: ST1016: methods on the same type should have the same receiver name (seen 27x "ch", 4x "v") (stylecheck)
func (ch *Channel) AddMembers(userIDs ...string) error {

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesRelates to an upstream dependencyfalse positiveAn error is reported when one does not existstaleNo recent correspondence or work activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions