Avoid unnecessary AsQueryable/ToList/Where/Select chains that do nothing; keep pipelines minimal.
performance-efficiencyreadability-refactor
Low
Remove redundant method calls
Avoid no-op or duplicate calls (e.g., flatten.flatten, compact followed by compact!).
duplication-complexitymaintainability
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 temporary debug code
Eliminate debug helpers (var_dump, die, print_r) and commented-out blocks before merging.
maintainabilitystack-php
Low
Remove unnecessary files from production images
Ship only runtime artifacts (binaries, compiled assets, minimal configs). Exclude tests, sources, docs, and dev tooling.
container-docker-hygienesecurity-hardening
Low
Remove Unnecessary Trailing Whitespace
Detect lines with trailing whitespace. Trailing spaces add unnecessary noise to version control diffs. Recommend removing them to keep the codebase clean.
maintainabilitystack-python+1
Low
Remove unreachable code
Delete dead code and after-return/throw statements that never execute.
maintainability
Low
Remove Unused Assignments
Eliminate assignments to variables that are never used or overwritten immediately to improve code efficiency and readability.
maintainabilityreadability-refactor
Low
Remove unused configuration variables
Delete dead configuration fields and env flags; keep only variables that change behavior.
config-environmentmaintainability
Low
Remove unused imports
Delete imports that are not referenced by the compilation unit.
maintainabilitystyle-conventions
Low
Remove unused imports and variables
Delete imports and locals that are not referenced; prefer tooling (ruff/flake8/mypy) to enforce.
maintainabilitystack-python+1
Low
Remove unused parameters and commented code
Delete dead/commented code and unused params; rely on version control for history.
maintainability
Low
Remove unused variables and assignments
Delete unused locals or prefix with underscore when required by interface.
maintainabilitystyle-conventions
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 echo with proper logging
Do not use echo/var_dump for diagnostics in application code; use a PSR-3 logger or error_log with levels.
observability-loggingstack-php
Low
Replace hardcoded paths with configuration
Derive paths/URLs from configuration or environment variables, not string literals in code.
config-environmentmaintainability+1
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
Replace print statements with logging framework
Use the standard logging module (or your app's logger) instead of print() in committed code.
observability-loggingstack-python+1
Low
Replace unsafe type casts with explicit checking
Use safe casts (as?) with null checks or require statements instead of unchecked as.
error-handlingsecurity-hardening
Low
Restrict production source maps
Do not expose full, unminified source maps publicly in production. If source maps are required for error tracking, serve them behind authentication or IP allowlists and set "X-Robots-Tag: noindex".