You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release v1.60.1 includes #4870, "fix: typecheck issues should never be ignored".
This seems to result in also overriding issues.exclude-dirs in the configuration, i.e., reporting typecheck errors in excluded directories.
$ go run github.com/golangci/golangci-lint/cmd/[email protected] run ./...
$ go run github.com/golangci/golangci-lint/cmd/[email protected] run ./...somepackage/main.go:1: : # golangcitest/somepackagesomepackage/main.go:6:14: invalid operation: 1 + "2" (mismatched types untyped int and untyped string) (typecheck)package mainexit status 1
I'd expect issues.exclude-dirs to ignore all errors in the listed directories.
Version of golangci-lint
$ golangci-lint --versiongolangci-lint has version 1.60.1 built with go1.23.0 from 3298c104 on 2024-08-14T01:15:05Z
The PR that you quote is to avoid side effects: linters are not able to perform the analysis when there are typecheck errors. This is not related to golangci-lint itself but to how the analysis system works inside Go tooling.
This is explained in the issue attached to the PR.
typecheck errors are reported in the same style as reports/issues but they are completely different because they are related to compilation problems.
Welcome
typecheck
section of the FAQ.Description of the problem
Release v1.60.1 includes #4870, "fix: typecheck issues should never be ignored".
This seems to result in also overriding
issues.exclude-dirs
in the configuration, i.e., reporting typecheck errors in excluded directories.I'd expect
issues.exclude-dirs
to ignore all errors in the listed directories.Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation
Supporter
The text was updated successfully, but these errors were encountered: