Tag

cyclomatic complexity

0 views collected around this technical thread.

DaTaobao Tech
DaTaobao Tech
Jan 20, 2025 · Fundamentals

Cyclomatic Complexity Management via Function Extraction

The article explains that cyclomatic complexity harms code quality and testability, and shows how using IDEA’s CodeMetrics plugin together with purposeful function extraction—splitting long, complex, or duplicated code into well‑named, reusable methods—reduces complexity, improves readability, and supports maintainable, testable software.

code qualitycyclomatic complexityfunction extraction
0 likes · 10 min read
Cyclomatic Complexity Management via Function Extraction
Continuous Delivery 2.0
Continuous Delivery 2.0
Mar 28, 2024 · Fundamentals

Four Essential Code Quality Metrics and How to Manage Them

This article introduces four widely‑accepted code‑quality indicators—cyclomatic complexity, function length, file duplication rate, and class fan‑in/fan‑out ratio—explains how to set thresholds, compare error density across codebases, and apply practical management strategies without degrading quality.

Software Metricscode duplicationcode quality
0 likes · 4 min read
Four Essential Code Quality Metrics and How to Manage Them
TAL Education Technology
TAL Education Technology
Jul 13, 2023 · Fundamentals

Understanding Cyclomatic Complexity and Code Quality Metrics

This article explains cyclomatic complexity, its calculation formulas, practical examples, and how to measure and improve code quality using tools like SonarQube, ESLint, and codeMetrics, while also presenting refactoring techniques such as single‑responsibility, open‑closed, polymorphism, early returns, and functional programming to reduce complexity.

JavaScriptSonarQubeStatic Analysis
0 likes · 13 min read
Understanding Cyclomatic Complexity and Code Quality Metrics
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 8, 2023 · Frontend Development

Performance Optimization and Code Quality Improvement for a Large Vue3 + Vite PC Web Application

This article details a systematic performance‑boost and maintenance‑cost reduction effort for a 230,000‑line Vue3 + Vite PC web project, covering page‑load analysis, bundle visualization, code‑duplication detection, cyclomatic‑complexity measurement, and concrete optimization steps such as on‑demand imports, manual chunking, gzip and image compression, and ESLint rules, resulting in a 52% faster load time and a 3.43 MB smaller bundle.

Bundle SplittingVuecyclomatic complexity
0 likes · 12 min read
Performance Optimization and Code Quality Improvement for a Large Vue3 + Vite PC Web Application
JD Tech
JD Tech
Jan 10, 2023 · Fundamentals

Automated Monitoring of Cyclomatic Complexity in Python Projects Using Lizard

This article explains how to automatically monitor and analyze cyclomatic complexity of software projects with the Lizard tool, covering its definition, thresholds, reduction techniques, multi-language support, configuration options, scheduled execution, and result visualization to guide refactoring decisions.

PythonSoftware Metricsautomation
0 likes · 8 min read
Automated Monitoring of Cyclomatic Complexity in Python Projects Using Lizard
Continuous Delivery 2.0
Continuous Delivery 2.0
Nov 28, 2019 · Fundamentals

Understanding Cyclomatic Complexity and How to Apply Excessive Cyclomatic Complexity

This article explains the McCabe metric, the definition and calculation of cyclomatic complexity, its relationship to code quality, and introduces the concept of excessive cyclomatic complexity as a more meaningful indicator for managing software maintainability.

McCabe metricSoftware MetricsStatic Analysis
0 likes · 7 min read
Understanding Cyclomatic Complexity and How to Apply Excessive Cyclomatic Complexity