Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Test with issues #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Test with issues #33

wants to merge 3 commits into from

Conversation

jirfag
Copy link
Member

@jirfag jirfag commented Jun 11, 2018

No description provided.

a := 1
if a != 0 {
return
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if block ends with a return statement, so drop this else and outdent its block

import "log"

func withIssue() {
log.Printf("bad format: %s", 1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Printf format %s has arg 1 of wrong type int

}

func withAnotherIssue() {
a := 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File is not goimports-ed


import "log"

func withIssue() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withIssue is unused

log.Printf("bad format: %s", 1)
}

func withAnotherIssue() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

withAnotherIssue is unused

@golangci golangci force-pushed the test-with-issues branch from c75fb2c to 98222d2 Compare July 1, 2018 13:52
@jirfag jirfag force-pushed the master branch 2 times, most recently from e557432 to 93bb034 Compare November 7, 2018 07:53
@jirfag jirfag force-pushed the master branch 4 times, most recently from 9d4340e to 15c38dd Compare November 25, 2018 06:54
funcs := []func(){}
for _, v := range []int{1, 2} {
funcs = append(funcs, func() {
log.Print(v)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the variable on range scope v in function literal (from scopelint)

}
}

func testScopeLint() {
Copy link

@golangcibot golangcibot Nov 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testScopeLint is unused (deadcode)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants