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.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -3106,7 +3106,7 @@ sub process { · 3105 unmodified lines | ||
| 3106 | 3106 | $comment = '/*'; |
| 3107 | 3107 | } elsif ($realfile =~ /\.(c|dts|dtsi)$/) { |
| 3108 | 3108 | $comment = '//'; |
| 3109 | − } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc)$/) { | |
| 3109 | + } elsif (($checklicenseline == 2) || $realfile =~ /\.(sh|pl|py|awk|tc|yaml)$/) { | |
| 3110 | 3110 | $comment = '#'; |
| 3111 | 3111 | } elsif ($realfile =~ /\.rst$/) { |
| 3112 | 3112 | $comment = '..'; |