adding profanity checks
This commit is contained in:
parent
7c3982fe3d
commit
1ebbcf493d
2 changed files with 16 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -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
8
PROFANITY
Normal 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"
|
||||||
|
|
Loading…
Reference in a new issue