Replace repeated similar if/elif blocks with data-driven loops or dispatch tables.
duplication-complexityreadability-refactor+1
Low
Refactor large methods into smaller functions
Split long methods into cohesive private helpers with clear names and single responsibilities.
readability-refactor
Low
Refactor nested flatMap chains
Break deep map/flatMap chains into named suspend functions or use runCatching/Result for clearer composition.
error-handlingreadability-refactor
Low
Remove redundant LINQ calls
Avoid unnecessary AsQueryable/ToList/Where/Select chains that do nothing; keep pipelines minimal.
performance-efficiencyreadability-refactor
Low
Remove redundant null-assertion operators
Avoid `!` when nullability is already proven or a safer alternative (`??`, early return) exists.
readability-refactorstack-flutter+1
Low
Remove Unused Assignments
Eliminate assignments to variables that are never used or overwritten immediately to improve code efficiency and readability.
maintainabilityreadability-refactor
Low
Rename functions to reflect their purpose
Function names must describe side effects and return values (e.g., fetchUser vs. process).
readability-refactorstyle-conventions
Low
Replace hardcoded values with named constants
Give semantic names to magic numbers/strings and freeze where appropriate.
maintainabilityreadability-refactor
Low
Replace lambda with regular functions
Prefer named def functions for non-trivial logic; keep lambdas only for tiny, inline expressions.
readability-refactorstack-python+1
Low
Replace magic numbers with named constants
Extract numeric literals with meaning into named constants or readonly fields.
maintainabilityreadability-refactor+1
Low
Return consistent types from methods
A method should return the same type in all code paths (e.g., always an array or always nil/record).
api-conventionsreadability-refactor
Low
Simple computed properties
Complex computed properties should be split into as many simpler properties as possible.
duplication-complexityreadability-refactor+1
Low
Simple expressions in templates
Component templates should only include simple expressions, with more complex expressions refactored into computed properties or methods.
readability-refactorstack-vue
Low
Simplify else blocks with single if statements
Detect unnecessary nesting where an if statement is the only statement inside an else block. Recommend using else-if instead for improved readability.
readability-refactorstyle-conventions
Low
Standardize parameter naming conventions
Use lowerCamelCase for parameters; prefer full, descriptive names over abbreviations.
readability-refactorstyle-conventions
Low
Use @since/@deprecated with guidance
When introducing or deprecating public APIs, include @since for introductions and @deprecated with migration notes and links for removals.
maintainabilityreadability-refactor+1
Low
Use `var` Wisely
Check if `var` is used only when the variable type is clear and enhances readability. Avoid using `var` when the type is not obvious.
readability-refactorstyle-conventions
Low
Use <inheritdoc/> judiciously and document exceptions explicitly
Use <inheritdoc/> to inherit docs for overrides/implementations, but explicitly add <exception> and behavior differences when applicable.
maintainabilityreadability-refactor+1
Low
Use aliased imports to avoid naming collisions
Alias imports when names overlap with locals or other modules; keep clear, unique identifiers.
readability-refactorstack-python+1
Low
Use Appropriate Time Types (time.Time, time.Duration)
Use the time package's types for handling time. For example, represent instants as `time.Time` and durations or time intervals as `time.Duration` instead of raw numeric types (int, int64).
performance-efficiencyreadability-refactor+1
Low
Use Comprehensions for Simple Cases Only
Ensure that list, set, or dictionary comprehensions are not overly complex. If a comprehension includes multiple conditions or nested loops, recommend refactoring to a regular loop for better readability.
readability-refactorstack-python+1
Low
Use Descriptive Exception Variable Names
Ensure that exception variables in `rescue` blocks use meaningful titles instead of generic ones like `e`.