[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251127123502.89142-3-donald.hunter@gmail.com>
Date: Thu, 27 Nov 2025 12:35:00 +0000
From: Donald Hunter <donald.hunter@...il.com>
To: Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Andrew Lunn <andrew@...n.ch>,
"Matthieu Baerts (NGI0)" <matttbe@...nel.org>,
Chuck Lever <chuck.lever@...cle.com>,
Florian Westphal <fw@...len.de>,
"Remy D. Farley" <one-d-wide@...tonmail.com>,
"Kory Maincent (Dent Project)" <kory.maincent@...tlin.com>,
Gal Pressman <gal@...dia.com>,
Oleksij Rempel <o.rempel@...gutronix.de>,
Stanislav Fomichev <sdf@...ichev.me>,
Jan Stancek <jstancek@...hat.com>,
Hangbin Liu <liuhangbin@...il.com>,
Nimrod Oren <noren@...dia.com>,
netdev@...r.kernel.org
Cc: Donald Hunter <donald.hunter@...il.com>
Subject: [PATCH net-next v1 2/4] 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@...il.com>
---
tools/net/ynl/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
--
2.51.1
Powered by blists - more mailing lists