github TekWizely/pre-commit-golang v1.0.0-beta.5
Support for Repo-Level revive.toml Config File - v1.0.0-beta.5

latest release: v1.0.0-rc.1
2 years ago

Release v1.0.0-beta.5

Adds Built-in Support for Repo-Level revive.toml Config File

Modifies revive hooks:

  • Auto-adds -config=revive.toml argument if file is present in repository root
  • Triggers hooks when repo-level revive.toml is modified
  • Updates README

NOTE: Although the file-based go-revive hook is configured to trigger when revive.toml is modified, it will essentially do nothing if there are no .go files staged. We might consider adding some logic to run against ALL .go files in the repo, but I'm really not sure thats a good idea, and I probably didn't need to add a trigger to the file-level hook at all.

Full Changelog: v1.0.0-beta.4...v1.0.0-beta.5


cc: @mgechev, @adambabik

Don't miss a new pre-commit-golang release

NewReleases is sending notifications on new releases.