scripts: Rewrite lint scripts

Rewrite lint scripts to report what they do and if they pass. In the
case they fail list the files that caused the failure, except for
clang-format, which will be slow to run of every file individually
(should just run `make fmt` anyway). Also add a script to run all the
lints in order with a single command.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2023-01-09 10:38:48 -07:00
committed by Jeremy Soller
parent b03c960b4f
commit 1aadc68257
8 changed files with 127 additions and 51 deletions

View File

@@ -69,6 +69,10 @@ include $(ARCH_DIR)/toolchain.mk
# The architecture defines build targets, no more is required
endif
# Target to remove build artifacts
.PHONY: clean
clean:
rm -rf $(obj)
.PHONY: lint
lint:
./scripts/lint/lint.sh