bandep

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2017 License: MIT Imports: 13 Imported by: 0

README

bandep

Bandep is a tool meant to be used in the CI and/or git commit hooks to prevent users from adding banned deps.

Use Cases

  • you have multiple packages with the same name in GOPATH (maybe even the same methods) and your editor sometimes import the wrong import in some files
  • you have explicit rules in your codebase regarding which packages can import which packages

Usage

bandep --pkg ./... --ban foo/bar --ban github.com/foo/bar

Install

go get github.com/caarlos0/bandep

or

brew install caarlos0/tap/bandep

Or download one from the releases tab and install manually.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL