pre-commit-golang icon indicating copy to clipboard operation
pre-commit-golang copied to clipboard

Add staticcheck hook

Open kwanhur opened this issue 2 years ago • 2 comments

staticcheck hook

kwanhur avatar Mar 06 '22 15:03 kwanhur

Thank you for the PR! It is possible to run staticcheck as part of the golangci-lint hook. Would that work for your use case, or are you looking to run only staticcheck?

dnephin avatar Mar 30 '22 00:03 dnephin

Yep, just run only staticcheck.

golangci-lint could do the same, but it has to install both staticcheck and golangci-lint.

Hopefully could separate them.

kwanhur avatar Mar 30 '22 02:03 kwanhur