From ad35f12ac9211715cb2f28884bf3fecc68e53f32 Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Sat, 28 Mar 2026 16:51:11 +0300 Subject: NOISSUE removed obsolute cmake spdx check in checkpatch.pl Signed-off-by: Mehmet Samet Duman --- scripts/checkpatch.pl | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'scripts') diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2652eedf1b..7f279f62d9 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3298,27 +3298,12 @@ sub check_using_namespace { sub check_cmake_conventions { my ($filepath, $lines_ref, $changed_ref) = @_; - check_cmake_license_header($filepath, $lines_ref); check_cmake_indentation($filepath, $lines_ref, $changed_ref); check_cmake_function_style($filepath, $lines_ref, $changed_ref); check_cmake_variable_naming($filepath, $lines_ref, $changed_ref); check_cmake_best_practices($filepath, $lines_ref, $changed_ref); } -sub check_cmake_license_header { - my ($filepath, $lines_ref) = @_; - - return unless @$lines_ref; - - my $header_text = join("\n", @{$lines_ref}[0 .. min(10, $#$lines_ref)]); - - # CMake files should have SPDX header as comments - unless ($header_text =~ /SPDX-License-Identifier/) { - report($filepath, 1, SEV_WARNING, 'CMAKE_MISSING_SPDX', - "CMake file missing SPDX license header"); - } -} - sub check_cmake_indentation { my ($filepath, $lines_ref, $changed_ref) = @_; -- cgit 0.0.5-2-1-g0f52