fix(tests): make all the tests pass #57
Annotations
19 errors and 2 warnings
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats.go#L118
ifElseChain: rewrite if-else to switch statement (gocritic)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats.go#L94
mnd: Magic number: 2, in <condition> detected (gomnd)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats.go#L99
mnd: Magic number: 2, in <condition> detected (gomnd)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats_test.go#L138
error-nil: use assert.Error (testifylint)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats_test.go#L140
error-nil: use assert.NoError (testifylint)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats_test.go#L145
len: use assert.Len (testifylint)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats_test.go#L146
len: use assert.Len (testifylint)
|
Lint (1.21.x, ubuntu-latest):
pkg/plugin/linuxutil/netstat_stats_test.go#L147
len: use assert.Len (testifylint)
|
Lint (1.21.x, ubuntu-latest)
issues found
|
Lint (1.21.x, windows-latest)
undefined: unix.Mount"
|
Lint (1.21.x, windows-latest)
undefined: unix.Mount)"
|
Lint (1.21.x, windows-latest)
undefined: dropreason.New"
|
Lint (1.21.x, windows-latest)
undefined: packetforward.New"
|
Lint (1.21.x, windows-latest)
undefined: packetparser.New"
|
Lint (1.21.x, windows-latest)
could not import github.com/microsoft/retina/pkg/plugin/common (-: build constraints exclude all Go files in D:\\a\\retina\\retina\\pkg\\plugin\\common)"
|
Lint (1.21.x, windows-latest)
d.Stop undefined (type *dns has no field or method Stop)"
|
Lint (1.21.x, windows-latest)
d.Stop undefined (type *dns has no field or method Stop)"
|
Lint (1.21.x, windows-latest)
d.Start undefined (type *dns has no field or method Start)"
|
Lint (1.21.x, windows-latest)
d.Start undefined (type *dns has no field or method Start)"
|
Lint (1.21.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/retina/retina. Supported file pattern: go.sum
|
Lint (1.21.x, windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\retina\retina. Supported file pattern: go.sum
|