Tagged articles
8 articles
Page 1 of 1
大转转FE
大转转FE
Jan 23, 2025 · Frontend Development

How to Measure and Reduce Frontend Cyclomatic Complexity with ESLint

This article explains cyclomatic complexity concepts, industry standards, calculation methods, and how a custom ESLint rule can be used to assess both single‑function and nested‑function complexity in front‑end projects, including scoring thresholds and practical implementation details.

ASTESLintcode quality
0 likes · 19 min read
How to Measure and Reduce Frontend Cyclomatic Complexity with ESLint
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.

Software Engineeringcode qualitycyclomatic complexity
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.

code duplicationcode qualitycyclomatic complexity
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.

JavaScriptSonarQubecode metrics
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 SplittingGzipPerformance Optimization
0 likes · 12 min read
Performance Optimization and Code Quality Improvement for a Large Vue3 + Vite PC Web Application
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 11, 2023 · Fundamentals

Why Software Gets Complex and How to Measure & Tame It

This article examines the root causes of software complexity, explains how to quantify it using metrics such as Halstead, cyclomatic and Ousterhout complexity, showcases real code examples, and offers practical strategies—including high cohesion, low coupling, strategic design, documentation, and refactoring—to prevent and reduce complexity in large systems.

Halsteadcode metricscyclomatic complexity
0 likes · 22 min read
Why Software Gets Complex and How to Measure & Tame It
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.

cyclomatic complexitylizardsoftware metrics
0 likes · 8 min read
Automated Monitoring of Cyclomatic Complexity in Python Projects Using Lizard