Similar code
Duplicate code which is not identical but shares the same structure (e.g. variable names may differ)Identical code
Duplicate code which is syntactically identical (but may be formatted differently)Many function parameters
Methods or functions defined with a high number of argumentsBad example
Good example
Complex boolean logic
Boolean logic that may be hard to understandHigh file complexity
Excessive lines of code within a single fileHigh function complexity
Functions or methods that may be hard to understand (Cognitive Complexity)Deeply nested control flow
Deeply nested control structures like if or caseMany return statements
Functions or methods with a high number of return statementsEach maintainability check ships with a default threshold. These thresholds can be adjusted or
the check can be disabled entirely in the
qlty.toml configuration
file.