-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
pkg/printers/checkstyle.go
Outdated
file.Errors = append(file.Errors, newError) | ||
} | ||
|
||
out.Files = make([]*checkstyleFile, len(files)) |
There was a problem hiding this comment.
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))
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
thank you for pull request! |
Adds checkstyle output format #93