Open
Conversation
See,
$ golangci-lint run --disable-all -E gosimple ./...
main/main.go:82:2: S1000: should use a simple channel send/receive instead of `select` with a single case (gosimple)
select {
^
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
See,
$ golangci-lint run --disable-all -E gocritic ./...
runbook/executor_test.go:88:2: ifElseChain: rewrite if-else to switch statement (gocritic)
if runtime.GOOS == "darwin" {
^
conf/configuration.go:197:6: sloppyLen: len(confFilepath) <= 0 can be len(confFilepath) == 0 (gocritic)
if len(confFilepath) <= 0 {
^
conf/configuration_test.go:110:5: sloppyLen: len(owner) <= 0 can be len(owner) == 0 (gocritic)
if len(owner) <= 0 {
^
conf/configuration_test.go:114:5: sloppyLen: len(repo) <= 0 can be len(repo) == 0 (gocritic)
if len(repo) <= 0 {
^
conf/configuration_test.go:118:5: sloppyLen: len(filepath) <= 0 can be len(filepath) == 0 (gocritic)
if len(filepath) <= 0 {
^
conf/configuration_test.go:122:5: sloppyLen: len(token) <= 0 can be len(token) == 0 (gocritic)
if len(token) <= 0 {
^
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
See, $ golangci-lint run --disable-all -E goimports ./... Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
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.
Hi @metehanozturk @cemkucuk ,
I fixed here some trivial linter issues reported by gosimple, gocritic, and goimports.