Commit 129dc607 authored by Donald Hunter's avatar Donald Hunter Committed by Jakub Kicinski
Browse files

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: default avatarDonald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20251127123502.89142-3-donald.hunter@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 362d051c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)