Prefer intent-revealing names over cryptic abbreviations.
readability-refactorstyle-conventions
Low
Use destructuring for function parameters
Ensure that destructuring is used in function parameters where applicable. This improves readability by clearly showing accessed properties and default values.
readability-refactorstyle-conventions
Low
Use destructuring for props and objects
Use object and array destructuring to access properties from objects (like `props`, `this`, context in `setup`) or elements from arrays, especially when accessing multiple items.
readability-refactorstack-vue+1
Low
Use deterministic ordering in queries
Always specify ORDER BY when the processing logic relies on a particular order.
database-query-performancestack-php
Low
Use dict.get() with defaults for safe key access
When keys may be absent, prefer dict.get(key, default) or setdefault instead of direct indexing.
error-handlingstack-python
Low
Use Dictionary lookups instead of linear searches
For frequent key lookups, use Dictionary/ConcurrentDictionary instead of repeated linear scans.
performance-efficiency
Low
Use early return patterns for control flow
Validate and return early to reduce nesting and improve readability.
readability-refactor
Low
Use enum constants instead of hardcoded values
When a value comes from a finite set, model it as an enum constant instead of string/int literals.
maintainabilityreadability-refactor+1
Low
Use enums instead of magic strings
Replace string literals that represent finite sets with enums (optionally flagged) or constants.
maintainabilityreadability-refactor+1
Low
Use ES Modules (`import`/`export`)
Always use ES Modules (`import` and `export`) for managing dependencies and organizing code in Vue applications. Avoid non-standard module systems or global namespace pollution.
module-architecturestack-vue+1
Low
Use Expression-Bodied Members Where Appropriate
Ensure that simple methods and properties use expression-bodied syntax to improve code conciseness and readability.
readability-refactorstyle-conventions
Low
Use generateStaticParams for SSG on dynamic routes
When statically prebuilding dynamic segments, implement generateStaticParams and validate params; fall back to notFound() for invalid slugs.
stack-nextjsstack-react+2
Low
Use graphql-upload with caution
Check for the use of graphql-upload. This library enables file uploads using multipart requests, which can be exploited for CSRF attacks if not properly secured.
security-hardeningstack-nodejs
Low
Use guard clauses for early returns
Validate and return early to avoid deep nesting.
readability-refactor
Low
Use HashSet for fast membership checks
Use HashSet<T> for repeated contains checks on large collections.
performance-efficiency
Low
Use idiomatic Kotlin null-handling patterns
Use safe calls (?.), the Elvis operator (?:), let/run/also for scoped handling, and early returns for invalid input.
error-handlingreadability-refactor+1
Low
Use IReadOnlyList for immutable collections
Expose read-only views (IReadOnlyList/IReadOnlyCollection) from APIs that should not allow mutation.
api-conventionsmodule-architecture
Low
Use item docs (///) and module/crate docs (!//) with examples
Document public items with /// and modules/crates with //!; include minimal runnable examples that pass doctests where applicable.
style-conventionsreadability-refactor+1
Low
Use lazy loading/streaming for large datasets
Stream results (cursor/generator) or paginate instead of loading entire result sets into memory.
performance-efficiencystack-php
Low
Use list comprehensions and avoid redundant sorting
Prefer comprehensions over map/filter chains and avoid double-sorting or sorting inside loops.
performance-efficiencyreadability-refactor+1
Low
Use localized strings instead of hardcoded text
Read UI strings from a localization source (e.g., AppLocalizations, arb) rather than hardcoding.
internationalization-i18nstack-flutter
Low
Use map lookups instead of iteration
Prefer direct Map access over linear scans when looking up by key.