You are required to read and agree to the below before accessing a full-text version of an article in the IDE article repository.

The full-text document you are about to access is subject to national and international copyright laws. In most cases (but not necessarily all) the consequence is that personal use is allowed given that the copyright owner is duly acknowledged and respected. All other use (typically) require an explicit permission (often in writing) by the copyright owner.

For the reports in this repository we specifically note that

  • the use of articles under IEEE copyright is governed by the IEEE copyright policy (available at
  • the use of articles under ACM copyright is governed by the ACM copyright policy (available at
  • technical reports and other articles issued by M‰lardalen University is free for personal use. For other use, the explicit consent of the authors is required
  • in other cases, please contact the copyright owner for detailed information

By accepting I agree to acknowledge and respect the rights of the copyright owner of the document I am about to access.

If you are in doubt, feel free to contact

Code Evaluation Using Fuzzy Logic



Zikrija Avdagic , Dusanka Boskovic , Aida Causevic

Publication Type:

Conference/Workshop Paper


WSEAS Conference FUZZY 2008 in Sofia, Bulgaria


WSEAS and International Journal of Applied Mathematics


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


author = {Zikrija Avdagic and Dusanka Boskovic and Aida Causevic},
title = {Code Evaluation Using Fuzzy Logic},
month = {May},
year = {2008},
booktitle = {WSEAS Conference FUZZY 2008 in Sofia, Bulgaria},
publisher = {WSEAS and International Journal of Applied Mathematics},
url = {}