mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
don't make typecheck issues without file/line info
This commit is contained in:
parent
7278b7ae8a
commit
55a18ae18a
2 changed files with 3 additions and 6 deletions
|
@ -395,7 +395,7 @@ func (e *Executor) setupExitCode(ctx context.Context) {
|
|||
}
|
||||
|
||||
if e.exitCode == exitcodes.Success &&
|
||||
os.Getenv("GL_TEST_RUN") == "1" &&
|
||||
(os.Getenv("GL_TEST_RUN") == "1" || os.Getenv("FAIL_ON_WARNINGS") == "1") &&
|
||||
len(e.reportData.Warnings) != 0 {
|
||||
|
||||
e.exitCode = exitcodes.WarningInTest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue