diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-28 20:20:49 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-28 20:20:49 +0300 |
| commit | 58d07465a9ca90cab240627dce5da65629bc0f72 (patch) | |
| tree | 450fbc4330fbb108c589a98593457dc70fad31e3 /scripts | |
| parent | 2ba08372b09725edfb92ef1bbe7745ffaac4a14e (diff) | |
| download | Project-Tick-58d07465a9ca90cab240627dce5da65629bc0f72.tar.gz Project-Tick-58d07465a9ca90cab240627dce5da65629bc0f72.zip | |
NOISSUE fix MojangVersionFormat.cpp
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index deb950b0f7..703363a787 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4816,10 +4816,10 @@ sub check_cyclomatic_complexity { $complexity++ if $stripped =~ /\|\|/; if ($brace_depth <= 0 && $stripped =~ /}/) { - if ($complexity > 15) { + if ($complexity > 40) { report($filepath, $function_start, SEV_WARNING, 'HIGH_COMPLEXITY', - "Function '$function_name' has cyclomatic complexity of $complexity (recommended max: 15). Consider refactoring."); - } elsif ($complexity > 10) { + "Function '$function_name' has cyclomatic complexity of $complexity (recommended max: 40). Consider refactoring."); + } elsif ($complexity > 30) { report($filepath, $function_start, SEV_INFO, 'MODERATE_COMPLEXITY', "Function '$function_name' has cyclomatic complexity of $complexity (consider simplifying)"); } |
