연구 분야: Verification
학회: Iran Journal of Computer Science
Software metrics that count class elements, like methods and attributes, are widely used to measure cohesion, detect God Classes, and support software refactoring. However, these metrics treat all class elements the same, leading to errors. This paper presents empirical evidence that counting elements evenly introduces significant bias. To address this issue, the paper proposes a weighted approach based on scientific literature and expert input. Using Sahand 2.0, a code analysis tool with detailed inspection abilities, the proposed method was tested on three Java open-source systems (RxJava, jmt, and Hibernate). The experiments show that weighted measures reduce bias compared to simple counts. Still, finding optimal weights is challenging due to differing professional opinions, and more validation is needed. The research suggests that data-driven or machine learning methods could further improve the reliability of software quality metrics.
| 발행 연도 | 2025년 |
|---|---|
| 인용수 | 0 |
| 출판 국가 | Iran |
| 사이트 | Springer |
| 좋아요 수 | 0 |