Add golint to test (#255)
* Add a new lint rule to the Makefile Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Fix linter errors Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> * Allow replacing the default apt mirror Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
4176ba7b52
commit
5624732128
38 changed files with 297 additions and 151 deletions
4
Makefile
4
Makefile
|
@ -80,7 +80,7 @@ fmt:
|
|||
@gofmt -s -l . | grep -v vendor | grep -v .pb. | tee /dev/stderr
|
||||
|
||||
lint:
|
||||
@golint ./... | grep -v vendor | grep -v .pb. | tee /dev/stderr
|
||||
@hack/validate-lint
|
||||
|
||||
shell: dbuild
|
||||
$(DOCKER_RUN) bash
|
||||
|
@ -95,7 +95,7 @@ endif
|
|||
bench: shim validate install bundles-rootfs
|
||||
go test -bench=. -v $(shell go list ./... | grep -v /vendor | grep -v /integration-test)
|
||||
|
||||
validate: fmt
|
||||
validate: fmt lint
|
||||
|
||||
uninstall:
|
||||
$(foreach file,containerd containerd-shim ctr,rm /usr/local/bin/$(file);)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue