DEV Community

TekWizely
TekWizely

Posted on

1 3

pre-commit-golang v0.8.3 - Now with revive support

About

pre-commit-golang is a set of pre-commit hooks for Golang with support for Modules.

Quick Links: Project Page | Available Hooks | Installation | Releases

Release Announcement: v0.8.3

This release adds support for revive, a ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint.

revive hooks

The following revive hooks are now available:

Hook ID Description
go-revive Run 'revive [$ARGS] $FILE' for each staged .go file
go-revive-mod Run 'cd $(mod_root $FILE); revive [$ARGS] ./...' for each staged .go file
go-revive-repo-mod Run 'cd $(mod_root); revive [$ARGS] ./...' for each module in the repo
Installing revive
go get -u github.com/mgechev/revive
Enter fullscreen mode Exit fullscreen mode
Learning More About revive

Conclusion

If you use git for your golang project's source control, I hope you will give my project a try.

I am happy to answer any questions you might have.

Thank you for your time,

-TekWizely ( https://github.com/TekWizely )

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay