Verify that heading elements contain meaningful content. Headings are used for structure and navigation, so empty or generic headings negatively impact accessibility and usability.
accessibility-a11y
High
Ensure JSX list components have a key property
Check that JSX list components have unique key properties. Missing keys can cause unnecessary re-renders and lead to state inconsistencies.
performance-efficiencystack-react+1
High
Ensure Parameter Names Match Base Methods
Verify that method parameters in overrides and interface implementations match the base method’s parameter titles to maintain consistency.
readability-refactorstyle-conventions
High
Ensure React list keys are stable between renders
Check if React list keys are stable and unique. Using dynamic values like Math.random() or Date.now() can cause rendering issues. Recommend using unique IDs.
performance-efficiencystack-react+1
High
Ensure Special Methods Have the Correct Parameters
Verify that special methods (e.g., `__eq__`, `__len__`) have the correct number of parameters. Incorrect parameters can cause runtime errors or unexpected behavior.
error-handlingstack-python
High
Escape Output to Prevent XSS
Always escape or sanitize user‐provided content before displaying it in HTML. Use functions like htmlspecialchars() to convert special characters into HTML entities.
security-hardeningstack-php
High
Explicitly Close Resources in `finally` Blocks
Check if resources such as files or database connections are properly closed in a `finally` block. This ensures resources are always released, even if an exception occurs.
error-handlingperformance-efficiency+1
High
Externalize URLs and API keys to configuration
Read API URLs/keys from ENV/credentials and inject where needed; do not hardcode.
config-environmentsecrets-credentials
High
Fix goroutine execution to run in parallel
Launch goroutines outside of waits, capture loop variables, and use sync.WaitGroup (and buffered channels when needed) to achieve true concurrency.
concurrency-safety
High
Forbid cross-package relative imports in JS/TS
In JS/TS workspaces, imports must use workspace package names (as defined in each package.json and exports) rather than relative paths crossing package boundaries.
monorepo-hygienemodule-architecture+1
High
force_ssl and parameter filtering
Enable config.force_ssl = true; add filter_parameters to redact PII and secrets; use secure_same_site for cookies.
compliance-soc2-essentialssecurity-hardening+1
High
Freeze time and random sources for deterministic tests
In unit and integration tests, call a time-freeze utility and set a fixed random seed before exercising the system under test; unfreeze after assertions.
testing-quality
High
Gate analytics cookies on explicit consent (Web)
Only set analytics/marketing cookies if consent.purposes.analytics === true and consent.version matches current policy; re-check on version bump. (GDPR Art. 7, ePrivacy)
compliance-gdprprivacy-pii+1
High
Gate CHD token access with explicit PCI roles
Any code path that reads, decrypts, or exchanges PAN tokens must require an explicit authorization policy (e.g., role "pci:read_token") and log access without PAN. Deny by default. (PCI DSS 4.0 Req. 7 & 10)
compliance-pci-dsssecurity-hardening+1
High
Generate and verify SBOM; fail build on critical CVEs
Produce an SBOM (e.g., SPDX/CycloneDX) during CI and block releases if SCA finds CVEs ≥ High severity or disallowed licenses.
Go: parallel-safe tests with t.Parallel and t.TempDir
Mark tests that don't mutate shared state with t.Parallel() and use t.TempDir() for filesystem isolation; avoid package-level globals.
testing-qualityconcurrency-safety
High
Handle ActiveRecord::RecordNotFound specifically
Rescue RecordNotFound and return 404 (or domain-appropriate response) instead of 500.
api-conventionserror-handling
High
Handle async operations with proper error handling
Every awaited async operation must be guarded with error handling. Use try/catch for await and .catch for promise chains; never leave rejections unhandled.
error-handling
High
Handle asynchronous operation failures
Attach exceptionally/handle to CompletableFuture chains; never assume success.
concurrency-safetyerror-handling
High
Handle database operation exceptions
Catch and map DB exceptions (e.g., SQLIntegrityConstraintViolationException) to domain results; always close resources with use { }.
database-query-performanceerror-handling
High
Handle database transaction failures
Use transactions for multi-step writes; on Throwable, rollback and rethrow with context.
database-query-performanceerror-handling+1
High
Handle Errors Properly (Don't Ignore or Double-Handle)
Never silently ignore an error, and avoid handling an error (e.g., logging it) and then still returning it. Either handle the error fully or propagate it upward, but not both.
error-handlingobservability-logging
High
Handle file operations errors
Guard file IO with try/except; handle OSError and data parse errors with clear messages.
error-handlingstack-python
High
Handle JSON encoding and decoding failures
Use JSON_THROW_ON_ERROR (PHP ≥7.3) and wrap json_encode/json_decode in try/catch; validate the decoded shape.