summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMehmet Samet Duman <yongdohyun@projecttick.org>2026-03-28 20:20:49 +0300
committerMehmet Samet Duman <yongdohyun@projecttick.org>2026-03-28 20:20:49 +0300
commit58d07465a9ca90cab240627dce5da65629bc0f72 (patch)
tree450fbc4330fbb108c589a98593457dc70fad31e3 /scripts
parent2ba08372b09725edfb92ef1bbe7745ffaac4a14e (diff)
downloadProject-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-xscripts/checkpatch.pl6
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)");
}