]> git.proxmox.com Git - proxmox-backup.git/commitdiff
buildsys: add 'make lint'
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 11 Sep 2019 11:59:56 +0000 (13:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 11 Sep 2019 11:59:58 +0000 (13:59 +0200)
for now we only activate lints for code that is "outright
wrong"

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 7dfbb656ccf697271ae50d89e2ddabbff69ca829..9695a132fcde74d495588f30da78a51c9c945ec9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,10 @@ cargo-build:
 
 $(COMPILED_BINS): cargo-build
 
+.PHONY: lint
+lint:
+       cargo clippy -- -A clippy::all -D clippy::correctness
+
 install: $(COMPILED_BINS)
        install -dm755 $(DESTDIR)$(BINDIR)
        $(foreach i,$(USR_BIN), \