diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-28 16:51:11 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-28 16:51:11 +0300 |
| commit | ad35f12ac9211715cb2f28884bf3fecc68e53f32 (patch) | |
| tree | 6fb025ed4b2db3bfc214ef2e8e6831e525c0775b | |
| parent | 9d82ee2b70c4685c0aa230d7a3285065afea4c2c (diff) | |
| download | Project-Tick-ad35f12ac9211715cb2f28884bf3fecc68e53f32.tar.gz Project-Tick-ad35f12ac9211715cb2f28884bf3fecc68e53f32.zip | |
NOISSUE removed obsolute cmake spdx check in checkpatch.pl
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
| -rw-r--r-- | REUSE.toml | 4 | ||||
| -rwxr-xr-x | scripts/checkpatch.pl | 15 |
2 files changed, 3 insertions, 16 deletions
diff --git a/REUSE.toml b/REUSE.toml index e739def7c6..563bb0972b 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -13,7 +13,9 @@ path = [ "default.nix", "flake.lock", "flake.nix", - "shell.nix" + "shell.nix", + "vcpkg-configuration.json", + "vcpkg.json" ] SPDX-License-Identifier = "CC0-1.0" SPDX-FileCopyrightText = "NONE" 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) = @_; |
