Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkstyle support #95

Merged
merged 4 commits into from
Jun 13, 2018
Merged

Checkstyle support #95

merged 4 commits into from
Jun 13, 2018

Conversation

mxpv
Copy link
Contributor

@mxpv mxpv commented Jun 13, 2018

Adds checkstyle output format #93

@mxpv mxpv changed the title Checkstyle support #93 Checkstyle support Jun 13, 2018
file.Errors = append(file.Errors, newError)
}

out.Files = make([]*checkstyleFile, len(files))
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe make([]*checkstyleFile, 0, len(files))?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This kind of syntax is not supported for maps.
It'll give an error too many arguments to make(map)
https://play.golang.org/p/b7b5e8jgEVp

Copy link
Contributor

Choose a reason for hiding this comment

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

But it’s a slice, not map

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, crap. yes, you're right :)

@jirfag
Copy link
Contributor

jirfag commented Jun 13, 2018

thank you for pull request!

@jirfag jirfag merged commit 219a547 into golangci:master Jun 13, 2018
@mxpv mxpv deleted the checkstyle branch June 13, 2018 17:54
@ldez ldez added this to the v1.7 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants