Skip to content

Commit 129dc60

Browse files
donaldhkuba-moo
authored andcommitted
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>
1 parent 362d051 commit 129dc60

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/net/ynl/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ install: libynl.a lib/*.h
5656
run_tests:
5757
@$(MAKE) -C tests run_tests
5858

59+
lint:
60+
yamllint $(SPECDIR)
5961

6062
schema_check:
6163
@N=1; \
@@ -72,4 +74,4 @@ schema_check:
7274
N=$$((N+1)) ; \
7375
done
7476

75-
.PHONY: all clean distclean install run_tests schema_check $(SUBDIRS)
77+
.PHONY: all clean distclean install run_tests lint schema_check $(SUBDIRS)

0 commit comments

Comments
 (0)