* [PATCH] checkpatch: check SPDX tags in YAML files
@ 2020-01-29 12:33 Lubomir Rintel
2020-01-30 1:21 ` Joe Perches
0 siblings, 1 reply; 2+ messages in thread
From: Lubomir Rintel @ 2020-01-29 12:33 UTC (permalink / raw)
To: Andy Whitcroft
Cc: Joe Perches, Rob Herring, devicetree, linux-kernel, Lubomir Rintel
This adds a warning when a YAML file is lacking a SPDX header on first
line, or it uses incorrect commenting style.
Currently the only YAML files in three are Devicetree binding documents.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index a63380c6b0d20..e2976c3fe5ff8 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3087,7 +3087,7 @@ sub process {
$comment = '/*';
} elsif ($realfile =~ /\.(c|dts|dtsi)$/) {
$comment = '//';
- } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc)$/) {
+ } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc|yaml)$/) {
$comment = '#';
} elsif ($realfile =~ /\.rst$/) {
$comment = '..';
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] checkpatch: check SPDX tags in YAML files
2020-01-29 12:33 [PATCH] checkpatch: check SPDX tags in YAML files Lubomir Rintel
@ 2020-01-30 1:21 ` Joe Perches
0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2020-01-30 1:21 UTC (permalink / raw)
To: Lubomir Rintel, Andy Whitcroft, Andrew Morton
Cc: Rob Herring, devicetree, linux-kernel
On Wed, 2020-01-29 at 13:33 +0100, Lubomir Rintel wrote:
> This adds a warning when a YAML file is lacking a SPDX header on first
> line, or it uses incorrect commenting style.
>
> Currently the only YAML files in three are Devicetree binding documents.
three/tree typo?
Otherwise, looks fine.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-30 1:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-29 12:33 [PATCH] checkpatch: check SPDX tags in YAML files Lubomir Rintel
2020-01-30 1:21 ` Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).