Repository navigation
[release/1.2 backport] Switch from gometalinter to golangci-lint - #4061
Merged
fuweid merged 4 commits intoFeb 27, 2020
Merged
Conversation
Signed-off-by: Maksym Pavlenko <[email protected]> (cherry picked from commit ef7f46e) Signed-off-by: Sebastiaan van Stijn <[email protected]>
This comment has been minimized.
This comment has been minimized.
thaJeztah
force-pushed
the
1.2_backport_golang_ci_lint
branch
from
February 26, 2020 22:53
da45a25 to
38be30b
Compare
thaJeztah
commented
Feb 26, 2020
Comment on lines
549
to
553
Member
Author
This comment has been minimized.
This comment has been minimized.
thaJeztah
force-pushed
the
1.2_backport_golang_ci_lint
branch
from
February 27, 2020 10:42
38be30b to
a5d62cc
Compare
Member
Author
|
Failure on Windows is DetailsLooks to be a flaky test, tracked in #3701 |
Member
Author
|
opened a backport with a possible fix for the flaky Windows test #4067 |
```
GOGC=75 golangci-lint run
services\containers\service.go:97:2: unreachable: unreachable code (govet)
return nil
^
content\local\store.go:549:75: nilness: impossible condition: nil != nil (govet)
if writeTimestampFile(filepath.Join(path, "startedat"), startedAt); err != nil {
^
content\local\store.go:553:75: nilness: impossible condition: nil != nil (govet)
if writeTimestampFile(filepath.Join(path, "updatedat"), startedAt); err != nil {
^
signals.go:29: File is not `goimports`-ed (goimports)
"github.com/opencontainers/image-spec/specs-go/v1"
task.go:44: File is not `goimports`-ed (goimports)
"github.com/opencontainers/image-spec/specs-go/v1"
container_opts_unix.go:37: File is not `goimports`-ed (goimports)
"github.com/opencontainers/image-spec/specs-go/v1"
runtime/v1/linux/runtime.go:44: File is not `goimports`-ed (goimports)
"github.com/containerd/containerd/runtime/v1"
```
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Maksym Pavlenko <[email protected]> (cherry picked from commit 2b521e2) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Michael Crosby <[email protected]> (cherry picked from commit 3bc9975) Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah
force-pushed
the
1.2_backport_golang_ci_lint
branch
from
February 27, 2020 11:21
a5d62cc to
598f7a7
Compare
Codecov Report
@@ Coverage Diff @@
## release/1.2 #4061 +/- ##
===============================================
- Coverage 47.86% 44.19% -3.68%
===============================================
Files 91 100 +9
Lines 8484 10848 +2364
===============================================
+ Hits 4061 4794 +733
- Misses 3689 5314 +1625
- Partials 734 740 +6
Continue to review full report at Codecov.
|
thaJeztah
marked this pull request as ready for review
February 27, 2020 11:50
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport of: