An Empirical Evaluation of Code Smell Detection in Angular Applications
- URL: http://arxiv.org/abs/2604.27893v1
- Date: Thu, 30 Apr 2026 14:08:25 GMT
- Title: An Empirical Evaluation of Code Smell Detection in Angular Applications
- Abstract summary: Angular is one of the most widely adopted frameworks for developing large-scale, dynamic web applications.<n>Developers face growing challenges in managing architecture and maintaining clean, modular code.<n>This study investigates Angular code smells through a grey literature review, consolidating community knowledge and technical discussions.
- Score: 0.37331950863394864
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Angular is one of the most widely adopted frameworks for developing large-scale, dynamic web applications. As projects increase in scope and complexity, developers face growing challenges in managing architecture and maintaining clean, modular code. These challenges often lead to design flaws, commonly referred to as code smells. While React-specific smells have been cataloged in prior studies, limited knowledge exists regarding Angular-specific smells and how they manifest. This study investigates Angular code smells through a grey literature review, consolidating community knowledge and technical discussions. From the collected sources, 11 distinct Angular code smells were identified, 6 of which also occur in React-based systems, suggesting that some issues are cross-framework. Each smell was analyzed, exemplified, and grouped according to its technical characteristics. Based on the resulting catalog, we implemented an automated static analysis tool to detect Angular code smells. The tool was empirically evaluated using a manually validated dataset, and its effectiveness was assessed through standard information retrieval metrics. The evaluation results indicate high detection performance across all smells, achieving accuracy values above 0.88 and F1-scores ranging from 0.89 to 1.00. The findings reveal recurring issues such as component overloading, duplicated logic, and inefficient template bindings, reinforcing the relevance of systematic detection support. This study presents the first catalog of Angular-specific code smells derived from grey literature and demonstrates the feasibility and effectiveness of automated detection, providing a solid foundation for future empirical studies and tool development aimed at improving front-end code quality.
Related papers
- An Event-Driven Tool for Context-Aware Code Smell Detection Using SmellDSL [0.5424799109837065]
Code smells signal violations of design principles that degrade the internal quality of evolving software systems.<n>SmellHunter is a context-aware tool that interprets scripts written in the Smell domain-specific language to detect and code smells.<n>SmellHunter is integrated into the development environment via a dedicated plugin and provides aggregated insights via a mobile application.
arXiv Detail & Related papers (2026-05-20T03:43:32Z) - SmellBench: Evaluating LLM Agents on Architectural Code Smell Repair [1.6922906233636834]
Architectural code smells erode software maintainability and are costly to repair manually.<n>We present the first empirical evaluation of large language model agents on architectural code smell repair.<n>We contribute SmellBench, a task orchestration framework that incorporates smell-type-specific optimized prompts.
arXiv Detail & Related papers (2026-05-07T22:33:32Z) - Paper Circle: An Open-source Multi-agent Research Discovery and Analysis Framework [82.66443886385125]
Paper Circle is a discovery and analysis system designed to reduce the effort required to find, assess, organize, and understand academic literature.<n>The system comprises two complementary pipelines: (1) a Discovery Pipeline that integrates offline and online retrieval from multiple sources, multi-agent scoring, diversity-aware ranking, and structured outputs; and (2) an Analysis Pipeline that transforms individual papers into structured knowledge graphs with typed nodes such as concepts, methods, and figures.
arXiv Detail & Related papers (2026-04-07T17:59:58Z) - SACS: A Code Smell Dataset using Semi-automatic Generation Approach [7.718926822172738]
Code smell is a great challenge in software, which indicates latent design or implementation flaws.<n>One of the biggest challenges to apply machine learning-technique is the lack of high-quality code smell datasets.<n>In this study, we explore a semi-automatic approach to generate a code smell dataset with high quality data samples.
arXiv Detail & Related papers (2026-02-17T04:15:22Z) - A Causal Perspective on Measuring, Explaining and Mitigating Smells in LLM-Generated Code [49.09545217453401]
Propensity Smelly Score (PSC) is a metric that estimates the likelihood of generating particular smell types.<n>We identify how generation strategy, model size, model architecture and prompt formulation shape the structural properties of generated code.<n> PSC helps developers interpret model behavior and assess code quality, providing evidence that smell propensity signals can support human judgement.
arXiv Detail & Related papers (2025-11-19T19:18:28Z) - From Code Smells to Best Practices: Tackling Resource Leaks in PyTorch, TensorFlow, and Keras [2.0939163364197317]
We identify 30 PyTorch-related smells and 16 snippets/Keras smells linked to resource leaks.<n>For each smell, we derived at least one best practice, resulting in 50 recommended coding patterns.<n>This is the first comprehensive study to examine resource-leak-inducing code smells across major ML frameworks.
arXiv Detail & Related papers (2025-11-19T08:32:17Z) - Demystifying deep search: a holistic evaluation with hint-free multi-hop questions and factorised metrics [89.1999907891494]
We present WebDetective, a benchmark of hint-free multi-hop questions paired with a controlled Wikipedia sandbox.<n>Our evaluation of 25 state-of-the-art models reveals systematic weaknesses across all architectures.<n>We develop an agentic workflow, EvidenceLoop, that explicitly targets the challenges our benchmark identifies.
arXiv Detail & Related papers (2025-10-01T07:59:03Z) - Loong: Synthesize Long Chain-of-Thoughts at Scale through Verifiers [103.4410890572479]
We introduce the Loong Project: an open-source framework for scalable synthetic data generation and verification.<n>LoongBench is a curated seed dataset containing 8,729 human-vetted examples across 12 domains.<n>LoongEnv is a modular synthetic data generation environment that supports multiple prompting strategies to produce new question-answer-code triples.
arXiv Detail & Related papers (2025-09-03T06:42:40Z) - Towards Automated Detection of Inline Code Comment Smells [1.4465033892011254]
We aim to automatically detect and classify inline code comment smells through machine learning (ML) models and a large language model (LLM)<n>In parallel, we trained and tested seven different machine learning algorithms on the augmented dataset to compare their classification performance against GPT 4.<n>The performance of models, particularly Random Forest, which achieved an overall accuracy of 69 percent, establishes a solid baseline for future research in this domain.
arXiv Detail & Related papers (2025-04-26T15:38:14Z) - EnseSmells: Deep ensemble and programming language models for automated code smells detection [3.974095344344234]
A smell in software source code denotes an indication of suboptimal design and implementation decisions.<n>This paper proposes a novel approach to code smell detection, constructing a deep learning architecture that places importance on the fusion of structural features and statistical semantics.
arXiv Detail & Related papers (2025-02-07T15:35:19Z) - DeepfakeBench: A Comprehensive Benchmark of Deepfake Detection [55.70982767084996]
A critical yet frequently overlooked challenge in the field of deepfake detection is the lack of a standardized, unified, comprehensive benchmark.
We present the first comprehensive benchmark for deepfake detection, called DeepfakeBench, which offers three key contributions.
DeepfakeBench contains 15 state-of-the-art detection methods, 9CL datasets, a series of deepfake detection evaluation protocols and analysis tools, as well as comprehensive evaluations.
arXiv Detail & Related papers (2023-07-04T01:34:41Z) - Petri Nets with Parameterised Data: Modelling and Verification (Extended
Version) [67.99023219822564]
We introduce and study an extension of coloured Petri nets, called catalog-nets, providing two key features to capture this type of processes.
We show that fresh-value injection is a particularly complex feature to handle, and discuss strategies to tame it.
arXiv Detail & Related papers (2020-06-11T17:26:08Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.