Abstract

Code smellings are not bugs or errors; rather, they are a fundamental deviation in software design that lowers code quality. Code smells don't always mean the software won't work; it will still provide a result, but it can slow down processing, increase the risk of failure and errors, and make the programme more vulnerable to future flaws. The conceptual theory behind code smell and its various kinds are discussed in this chapter. Identifying and eradicating code smells is a time-consuming and endless process with no guarantee that the software will be smell-free. Also, because it's very hard to uncover and eliminate all smells by hand, adopting automated code review techniques that can detect smells becomes essential. Code refactoring is one method of restructuring written code to reduce the effects of bad code smell on generated software code. A novel three-phase code refactoring framework has been proposed in this study. The effectiveness of Python code smell detection using Pysmell tool and refactoring using the rope automation tool are also studied in this chapter.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.