summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Hunter <donald.hunter@gmail.com>2025-11-27 12:35:00 +0000
committerJakub Kicinski <kuba@kernel.org>2025-11-28 19:53:19 -0800
commit129dc6075a150f82926ed10942f02f941985d51f (patch)
treec1074b53639ae27c0541bb759a3985d59fd1ddab
parent362d051c90b6e27b01dceed8c47ddfc86e60db2c (diff)
tools: ynl: add a lint makefile target
Add a lint target to run yamllint on the YNL specs. make -C tools/net/ynl lint make: Entering directory '/home/donaldh/net-next/tools/net/ynl' yamllint ../../../Documentation/netlink/specs/*.yaml ../../../Documentation/netlink/specs/ethtool.yaml 1272:21 warning truthy value should be one of [false, true] (truthy) make: Leaving directory '/home/donaldh/net-next/tools/net/ynl' Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Link: https://patch.msgid.link/20251127123502.89142-3-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--tools/net/ynl/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile
index b23083b2dfb2..7736b492f559 100644
--- a/tools/net/ynl/Makefile
+++ b/tools/net/ynl/Makefile
@@ -56,6 +56,8 @@ install: libynl.a lib/*.h
run_tests:
@$(MAKE) -C tests run_tests
+lint:
+ yamllint $(SPECDIR)
schema_check:
@N=1; \
@@ -72,4 +74,4 @@ schema_check:
N=$$((N+1)) ; \
done
-.PHONY: all clean distclean install run_tests schema_check $(SUBDIRS)
+.PHONY: all clean distclean install run_tests lint schema_check $(SUBDIRS)