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

Include go-critic #132

Closed
cloudlena opened this issue Jun 27, 2018 · 7 comments
Closed

Include go-critic #132

cloudlena opened this issue Jun 27, 2018 · 7 comments
Labels
linter: new Support new linter

Comments

@cloudlena
Copy link

cloudlena commented Jun 27, 2018

It would be awesome to include the go-critic linter which covers cases that aren't covered by other linters.

@jirfag jirfag added the linter: new Support new linter label Jun 28, 2018
@JonKohler
Copy link

I'm curious if it makes sense to reach out to the maintainers / makers over at go-critic and see if it makes sense to just join forces here, with a "better together" strategy.

I've got no skin in the game here, other than loving the high quality analysis that both the golangci-lint and the golangci github webhooks have been giving my project.

cc @quasilyte cc @jirfag

@rgeronimi
Copy link

Joining forces seem even critical. There are a millions "must-have" linters right now. And on top of that 3 meta linters frameworks now. Diversity is needed for innovation, but it just seems some checks are so standard now that they should be declared as "standard" either within or outside the golang project, with all the benefits entailed - more eyeballs to improve them, better integration into all offline and online tools, better deployment over Golang open-source codebases. It is surprising that Golang has standardized so many things which other language communities considered as non-standard (e.g., formatting) and yet has completely missed the linter standardization train.

@quasilyte
Copy link
Contributor

@rgeronimi, I'm not sure I understand the whole message.

Integration into golangci-lint is planned, and most likely if it ever happens, that would be an effort of go-critic maintainers. Some coordination may be required, but I don't think there are any big roadblocks on the horizon.

@rgeronimi
Copy link

Yes that is what i was pointing to - great then!

@ewgRa
Copy link

ewgRa commented Aug 28, 2018

Initial integration done: https://github.com/ewgRa/golangci-lint/commit/694cfa32a68bc445b1b2a2ffa7873e50736d1cb3

There is FIXME left https://github.com/ewgRa/golangci-lint/commit/694cfa32a68bc445b1b2a2ffa7873e50736d1cb3#diff-e8f32f7051f960c9db2c0346f10a8390R26, that will made actual gocritic run, but for this there is changes on go-critic side needed and it will be the next step.

Changes on go-critic side: mostly extract criticize command to be able to reuse it for golangci-lint.

@AlekSi
Copy link
Contributor

AlekSi commented Oct 24, 2018

Would really like to see that issue solved.

@jirfag
Copy link
Contributor

jirfag commented Oct 28, 2018

hi!
it's on the roadmap, I expect it to be added in 1-3 weeks.

jirfag added a commit that referenced this issue Nov 5, 2018
jirfag added a commit that referenced this issue Nov 5, 2018
jirfag added a commit that referenced this issue Nov 5, 2018
jirfag added a commit that referenced this issue Nov 5, 2018
jirfag added a commit that referenced this issue Nov 6, 2018
jirfag added a commit that referenced this issue Nov 7, 2018
jirfag added a commit that referenced this issue Nov 7, 2018
jirfag added a commit that referenced this issue Nov 7, 2018
@jirfag jirfag closed this as completed in 0935ce1 Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: new Support new linter
Projects
None yet
Development

No branches or pull requests

7 participants