错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Cognitive Complexity Analysis and Optimization Tool for Java

  • D. I. De Silva,
  • D. A. R. Wijesundara,
  • V. H. P. Perera,
  • M. R. T. N. Rathnayake,
  • C. J. Udumulla,
  • V. Godapitiya

摘要

Cognitive complexity, often neglected initially, becomes a significant challenge as software systems expand. This article introduces the Cognitive Complexity Analysis and Optimization Tool to address this issue comprehensively. Cognitive Complexity Analysis and Optimization Tool incorporates various metrics, graphical visualizations, and suggestions for complexity reduction, enhancing code quality and maintainability. The study outlines specific objectives: reducing cognitive complexity, enhancing code reliability, streamlining software maintenance, providing reporting and visualization capabilities, and offering an interface for automatic code complexity reduction. This research focuses on modern software development challenges, emphasizing the importance of lower cognitive complexity and streamlined maintenance processes. The article reviews extensive research in cognitive complexity metrics, highlighting the limitations of existing methods and introducing the Improved CB measure as the proposed tool’s primary metric. The methodology adheres to the Institute of Electrical and Electronics Engineers Standard for Software Quality Metric Methodology, ensuring rigorous quality standards. In conclusion, the proposed tool automates the computation of cognitive complexity, code size, and code maintainability, offering enhanced insights into Java-based system development. It streamlines code refactoring and provides optimized code suggestions, contributing to cost and time savings in software development and maintenance.