mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-13 14:58:45 -04:00
Fix staticcheck panic on packages that do not compile
The bug was introduced in golangci-lint when migrating staticcheck to go/packages. Also, thanks to pkg.IllTyped we can analyze as max as we can by staticcheck. Relates: #418, #369, #429, #489
This commit is contained in:
parent
09677d574e
commit
39f46be460
4 changed files with 17 additions and 79 deletions
test
|
@ -32,7 +32,7 @@ func TestEmptyDirRun(t *testing.T) {
|
|||
|
||||
func TestNotExistingDirRun(t *testing.T) {
|
||||
testshared.NewLintRunner(t).Run(getTestDataDir("no_such_dir")).
|
||||
ExpectExitCode(exitcodes.WarningInTest).
|
||||
ExpectExitCode(exitcodes.Failure).
|
||||
ExpectOutputContains(`cannot find package \"./testdata/no_such_dir\"`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue