<commit_before>all: format
	# A Go build bug causes it to behave badly with symlinks.
	cd -P . && go build . && go build -o ./minion/minion ./minion

install:
	cd -P . && go install ./...

generate:
	go generate ./...

format:
	gofmt -w -s .

docker:
	cd -P minion && \
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build . && \
	docker build -t quay.io/netsys/di-minion .

check:
	go test ./...

lint:
	go vet ./...
	for package in `go list ./... | grep -v minion/pb`; do \
	    golint -min_confidence .25 $$package ; \<commit_msg>makefile: fix symlink and `go vet` bug<commit_after>all: format
	# A Go build bug causes it to behave badly with symlinks.
	cd -P . && go build . && go build -o ./minion/minion ./minion

install:
	cd -P . && go install ./...

generate:
	go generate ./...

format:
	gofmt -w -s .

docker:
	cd -P minion && \
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build . && \
	docker build -t quay.io/netsys/di-minion .

check:
	go test ./...

lint:
	cd -P . && go vet ./...
	for package in `go list ./... | grep -v minion/pb`; do \
	    golint -min_confidence .25 $$package ; \
{'fraction_non_alphanumeric': 0.16575091575091574, 'fraction_numerical': 0.009157509157509158, 'mean_word_length': 2.1681159420289857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7597299', 'n_tokens_mistral': 433, 'n_tokens_neox': 422, 'n_words': 140}