Logotype Mälardalen University

MRTC publications



Code Evaluation Using Fuzzy Logic

Authors: Zikrija Avdagic (Faculty of Electrical Engineering, Sarajevo, B&H), Dusanka Boskovic (Faculty of Electrical Engineering, Sarajevo, B&H), Aida Delic
Source: WSEAS Conference FUZZY 2008 in Sofia, Bulgaria, WSEAS and International Journal of Applied Mathematics
 

Abstract

This paper presents application of a fuzzy logic based system to automatically evaluate the maintainability of code. Code evaluation is accomplished by rating its quality provided with bad smells in code as inputs. Straightforward bad smells with existing software metrics tools are selected as inputs: duplicated code, long methods, large classes having a high cyclomatic complexity, or a large number of parameters and temporary fields. Removing these bad smells can result in significant code improvements concerning readability and maintainability. However, the precise definition of attributes like small, long, large or high is not clear, and their identification is rather subjective. Fuzzy logic values are suitable for capturing partial correspondence to attributes and fuzzy rules model have been used to describe the relation between bad smells and code quality. Model supporting the experimental evaluation of the fuzzy based code evaluation is implemented in Java. Key-Words: - Fuzzy Logic, Reasoning Systems, Refactoring, Bad Smells
 

BibTeX entry

@inproceedings{Avdagic_1466:2008,
   author = {Zikrija Avdagic and Dusanka Boskovic and Aida Delic},
   title = {Code Evaluation Using Fuzzy Logic},
   booktitle = {WSEAS Conference FUZZY 2008 in Sofia, Bulgaria},
   month = {May},
   year = {2008},
   publisher = {WSEAS and International Journal of Applied Mathematics},
   url = {http://www.mrtc.mdh.se/index.php?choice=publications&id=1466},
}

  • Mälardalen University |
  • Box 883 |
  • 721 23 Västerås/Eskilstuna |
  • 021-101300, 016-153600 |
  • webmaster |
  • Latest update: 2010.02.23