From 2c3de0bdb63f933fecf7cf717396a16a29e38e10 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jul 2021 20:10:37 +0200 Subject: implement a basic linter Currently it just checks if the kernel doesn't accidentally use arch-dependent headers. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4441263..1d5571a 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ out/obj/%.c.o: src/%.c $(CC) $(CFLAGS) -c $^ -o $@ -.PHONY: boot debug clean +.PHONY: boot debug lint clean boot: out/fs/boot/kernel.bin qemu-system-i386 -kernel $< $(QFLAGS) -no-shutdown @@ -39,5 +39,8 @@ debug: out/fs/boot/kernel.bin sleep 1 gdb +lint: + @tools/linter/main.rb + clean: rm -rv out/ -- cgit v1.2.3