mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
Detect code style violations in deeply nested files
So far the style check did not recognize issues in files in deeply nested directories, e.g. retrieval/discovery/kubernetes/discovery.go.
This commit is contained in:
parent
7a0c0c3ca2
commit
d7889e61bb
2
Makefile
2
Makefile
|
@ -23,7 +23,7 @@ all: format build test
|
||||||
|
|
||||||
style:
|
style:
|
||||||
@echo ">> checking code style"
|
@echo ">> checking code style"
|
||||||
@! gofmt -d **/*.go | grep '^'
|
@! gofmt -d $(shell find . -path ./vendor -prune -o -name '*.go' -print) | grep '^'
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo ">> running tests"
|
@echo ">> running tests"
|
||||||
|
|
Loading…
Reference in a new issue