adding profanity checks

This commit is contained in:
Will Charczuk 2018-04-15 12:43:32 -07:00
parent 7c3982fe3d
commit 1ebbcf493d
2 changed files with 16 additions and 1 deletions

View file

@ -3,7 +3,14 @@ all: test
test: test:
@go test ./... @go test ./...
.PHONY: profanity
profanity:
@profanity
cover: cover:
@go test -short -covermode=set -coverprofile=profile.cov @go test -short -covermode=set -coverprofile=profile.cov
@go tool cover -html=profile.cov @go tool cover -html=profile.cov
@rm profile.cov @rm profile.cov
deps:
@go get -u github.com/blend/go-sdk/_bin/profanity

8
PROFANITY Normal file
View file

@ -0,0 +1,8 @@
- contains: "github.com/blend/"
message: "should not include go-sdk in this (outside tests)"
include: "*.go"
exclude: "*_test.go"
- contains: "github.com/blendlabs/"
message: "should not include blend go-* packages in this"
include: "*.go"