In this paper, we represent automated code smell detection and refactoring tools for calculating code quality by detecting Code Smells and increase code quality by Refactoring Techniques. Refactoring is a process for restructuring or improving internal structure of software without changing its behavior. To achieve this aim Declarative Programming approach is followed along with object-oriented software metrics. Detection of Code Smells is based on various Facts and Rules. We used this tool to detect the bad smells in oops based case studies. Code maintainability index is represented in three categories (Hi, Low, Medium) that shows source code quality (Low, Hi, Medium).
Code Smells, Code Quality, Maintainability Index, Detection of Code Smell, Refactoring, Object Oriented Metrics