Check for the use of getters and setters. These can introduce unexpected side effects and have limited compiler support. Recommend using regular methods unless required by a framework.
maintainabilityreadability-refactor
Low
Avoid using the comma operator
Detect occurrences of the comma operator in expressions. The comma operator can make code harder to read and debug, as it executes multiple expressions but only returns the value of the last one.
readability-refactorstyle-conventions
Low
Consolidate multiple similar methods
Merge near-duplicate methods into a single parameterized method or strategy.
duplication-complexityreadability-refactor
Low
Continue should not be used in loops
Detect the use of 'continue' inside loops. This practice can make control flow harder to follow. Recommend restructuring the loop for better readability.
readability-refactorstyle-conventions
Low
Declare Variables Near Their First Use
Ensure that variables are declared as close as possible to their first use to improve readability.
readability-refactorstyle-conventions
Low
Declare Variables Separately
Ensure that each variable is declared separately instead of using multiple declarations in one statement.
readability-refactorstyle-conventions
Low
Declare Visibility on Properties and Methods
Always specify access levels (public, private, protected) when declaring class properties and methods. Don’t use the old `var` keyword for properties. Explicit visibility clarifies intent and prevents unintended access.
module-architecturereadability-refactor+2
Low
Do Not Use goto for Control Flow
Avoid using the `goto` statement for flow control. Instead, refactor code using loops (for, while) and conditional structures (if/else, switch) for clear and maintainable logic.
readability-refactorstack-php
Low
Do not use the Array constructor
Detect occurrences of the Array constructor. It behaves inconsistently depending on arguments. Recommend using array literals [] instead for clarity and predictability.
error-handlingreadability-refactor+1
Low
Do not use the Object constructor
Ensure that the Object constructor is not used. Object literals are clearer, more predictable, and improve readability.
readability-refactorstyle-conventions
Low
DO type annotate fields and top-level variables if the type isn't obvious
Check that fields and top-level variables are type-annotated explicitly when the type is not obvious from the context. This avoids ambiguity.
readability-refactorstack-flutter+1
Low
Document async/Promise behavior and errors
For async functions or functions returning Promise, document resolve value, rejection conditions, and usage with await; include @throws or @returns {Promise<Type>}.
style-conventionsreadability-refactor+1
Low
Empty lines in component/instance options
Consider adding one empty line between multi-line properties (like complex `props`, `computed`, `methods`, `watch` objects) within the component options, especially in large components.
readability-refactorstack-vue+1
Low
Enforce Async/Await for asynchronous code
Check for the use of eval() to handle asynchronous execution. Eval leads to security vulnerabilities. Recommend using Async/Await or Promises instead.
error-handlingreadability-refactor+1
Low
Extract business logic into separate methods
Move complex domain calculations out of controllers/handlers into services or private helpers.
module-architecturereadability-refactor
Low
Extract common query logic
Factor repeated LINQ predicates/projections into reusable expressions or methods.
duplication-complexityreadability-refactor
Low
Extract complex conditional logic to separate methods
Move long/branchy UI decisions into named predicates or mappers to keep build methods simple.
readability-refactorstack-flutter
Low
Extract complex conditions to private methods
Move long conditional expressions to well-named predicate methods.
readability-refactor
Low
Extract complex migration logic to separate methods
Keep migrations readable by extracting multi-step data fixes to helper methods within the migration.
migrations-backward-compatreadability-refactor
Low
Extract constants from hardcoded values
Move magic values (strings, thresholds, paths) to module-level constants with descriptive names.
maintainabilityreadability-refactor+2
Low
Extract contract processing logic
Move domain-specific processing (validation, normalization, mapping) into cohesive services instead of scattering it across controllers/handlers.
module-architecturereadability-refactor
Low
Extract duplicated business logic
Move repeated domain rules into reusable methods/services; keep controllers and handlers thin.
duplication-complexitymodule-architecture+1
Low
Extract duplicated interaction handlers
Factor common interaction/message handling into reusable functions or classes with parameters for the differing bits.
duplication-complexityreadability-refactor
Low
Extract duplicated logic into functions
Duplicate sequences of statements must be extracted into a named function or utility.