History

checkpatch: check SPDX tags in YAML files

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 the tree are Devicetree binding documents.

Lubomir Rintel committed 6 years ago

Commit c8df0ab1 parent dfa05c21 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -3106,7 +3106,7 @@ sub process { · 3105 unmodified lines
31063106 $comment = '/*';
31073107 } elsif ($realfile =~ /\.(c|dts|dtsi)$/) {
31083108 $comment = '//';
3109− } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc)$/) {
3109+ } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc|yaml)$/) {
31103110 $comment = '#';
31113111 } elsif ($realfile =~ /\.rst$/) {
31123112 $comment = '..';