Code Smell
Last updated
Last updated
In code reviews, "code smell" refers to indicators or signs in the code that may indicate deeper problems or inefficiencies.
These issues are not necessarily bugs but rather characteristics that suggest the code could be improved. Code smells can take various forms, such as overly complex or convoluted logic, long and monolithic functions, or inconsistent naming conventions. They may also include redundant or duplicate code, excessive comments, or excessive coupling between different components of the codebase. While individually these issues may not cause immediate problems, they can make the code harder to understand, maintain, and extend over time.
By identifying and addressing code smells during code review, developers can enhance code quality, readability, and maintainability, ultimately leading to more robust and scalable software applications. Strategies such as refactoring, simplifying complex logic, and adhering to best practices and design patterns can help mitigate code smells and improve overall code quality.
You can manage these from the Settings > Code health > Rules.
You can filter these pre-defined rules based on severity, language, and type. Additionally, you have the option to toggle individual rules on and off to mark them as active or inactive. Once deactivated, the respective issue will no longer be highlighted during subsequent reviews.