AI Slop Code RIsk Monitor

rq/django-rq

A simple app that provides django integration for RQ (Redis Queue)

18.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for rq/django-rq, a Python project with 1,953 GitHub stars. SynthScan examined 11,063 lines of code across 94 source files, recording 145 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 18.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

18.0
Adjusted Signal
18.0
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
2.0K
Stars
Python
Language
11.1K
Lines of Code
94
Files
145
Pattern Hits
2026-10-12
Scan Date
0.14
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 39.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 102 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.8/100 · LOW

Are imports declared and package/API names verified? 24 finding(s).

Agent Over-Engineering Ratio 51.3/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 108 finding(s).

PR Review Velocity Impact 61.6/100 · HIGH

Which changes need focused human review? 145 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 13MEDIUM 1LOW 131

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 145 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers87 hits · 90 pts
SeverityFileLineSnippetContext
LOWREADME.md465 def test_something_that_creates_jobs(self):CODE
LOWintegration_test/_tests.py57def terminate_all_postgres_connections(profile="default"):CODE
LOWintegration_test/_tests.py120 def test_site_fails_and_the_reconnects(self):CODE
LOWintegration_test/_tests.py131 def test_worker_lost_connection(self):CODE
LOWdjango_rq/cron.py89def get_cron_job_history_count(cron_job: CronJob, connection: Redis) -> int:CODE
LOWdjango_rq/connection_utils.py113def get_unique_connection_configs(config: dict[str, dict[str, Any]] | None = None) -> list[dict[str, Any]]:CODE
LOWdjango_rq/utils.py105def get_displayable_connection_kwargs(obj: Union[Queue, CronScheduler]) -> dict[str, Any]:CODE
LOWtests/test_connections.py24 def test_get_connection_default(self):CODE
LOWtests/test_connections.py43 def test_get_connection_sentinel(self, sentinel_class_mock):CODE
LOWtests/test_connections.py66 def test_sentinel_class_initialized_with_kw_args(self, sentinel_class_mock):CODE
LOWtests/test_connections.py94 def test_get_unique_connection_configs(self):CODE
LOWtests/test_connections.py117 def test_get_unique_connection_configs_with_different_timeout(self):CODE
LOWtests/test_connections.py142 def test_get_unique_connection_configs_deterministic_order(self):CODE
LOWtests/test_connections.py194 def test_get_connection_by_index(self):CODE
LOWtests/test_connections.py230 def test_get_queue_django_redis(self, mocked):CODE
LOWtests/test_connections.py240 def test_get_queue_django_redis_cache(self):CODE
LOW⚡tests/test_commit_modes.py14 def test_default_commit_mode_is_on_db_commit(self):CODE
LOW⚡tests/test_commit_modes.py18 def test_commit_mode_auto_explicit(self):CODE
LOW⚡tests/test_commit_modes.py22 def test_commit_mode_request_finished(self):CODE
LOW⚡tests/test_commit_modes.py26 def test_commit_mode_on_db_commit(self):CODE
LOW⚡tests/test_commit_modes.py30 def test_autocommit_fallback_with_warning(self):CODE
LOW⚡tests/test_commit_modes.py36 def test_commit_mode_empty_string_falls_back(self):CODE
LOW⚡tests/test_commit_modes.py40 def test_commit_mode_invalid_type(self):CODE
LOW⚡tests/test_commit_modes.py45 def test_commit_mode_invalid_bool(self):CODE
LOW⚡tests/test_commit_modes.py50 def test_commit_mode_invalid_value(self):CODE
LOW⚡tests/test_commit_modes.py57 def test_enqueue_autocommit_on(self):CODE
LOWtests/test_commit_modes.py68 def test_enqueue_autocommit_off(self):CODE
LOWtests/test_commit_modes.py135 def test_job_enqueued_after_transaction_commits(self):CODE
LOWtests/test_commit_modes.py151 def test_job_discarded_on_rollback(self):CODE
LOWtests/test_commit_modes.py170 def test_job_enqueued_immediately_without_transaction(self):CODE
LOWtests/test_commit_modes.py188 def test_nested_atomic_blocks(self):CODE
LOWtests/test_views.py83 def test_job_details_with_webhooks(self):CODE
LOWtests/test_views.py103 def test_job_details_with_results(self):CODE
LOWtests/test_views.py159 def test_job_details_on_deleted_dependency(self):CODE
LOWtests/test_views.py172 def test_job_details_with_dependents(self):CODE
LOWtests/test_views.py228 def test_requeue_all_if_deleted_job(self):CODE
LOWtests/test_views.py279 def test_confirm_action_filters_missing_jobs(self):CODE
LOWtests/test_views.py413 def test_scheduled_jobs_registry_removal(self):CODE
LOWtests/test_views.py482 def test_statistics_json_view(self):CODE
LOWtests/test_cron.py30 def test_django_cron_scheduler_init(self):CODE
LOWtests/test_cron.py39 def test_first_register_initializes_connection(self):CODE
LOWtests/test_cron.py57 def test_register_with_webhooks(self):CODE
LOWtests/test_cron.py102 def test_connection_validation(self):CODE
LOWtests/test_cron.py130 def test_connection_index_property(self):CODE
LOWtests/test_cron.py185 def test_rqcron_command_exceptions(self, mock_load_config, mock_start):CODE
LOWtests/test_cron.py201 def test_rqcron_command_successful_run(self):CODE
LOWtests/test_cron.py237 def test_cron_scheduler_detail_view(self):CODE
LOWtests/test_cron.py305 def test_cron_scheduler_detail_view_with_no_jobs(self):CODE
LOWtests/test_cron.py321 def test_cron_job_detail_view(self):CODE
LOWtests/test_cron.py381 def test_cron_job_detail_view_pagination(self):CODE
LOWtests/test_cron.py427 def test_cron_job_detail_view_with_no_jobs(self):CODE
LOWtests/test_admin_integration.py98 def test_url_names_still_work(self):CODE
LOWtests/test_admin_integration.py126 def test_requires_staff_authentication(self):CODE
LOWtests/test_admin_integration.py146 def test_api_token_authentication(self):CODE
LOWtests/test_prometheus_metrics.py138 def test_no_metrics_without_prometheus_client(self):CODE
LOW⚡tests/tests.py191 def test_get_queues_same_connection(self):CODE
LOW⚡tests/tests.py197 def test_get_queues_different_connections(self):CODE
LOW⚡tests/tests.py204 def test_get_queues_different_classes(self):CODE
LOW⚡tests/tests.py211 def test_pass_queue_via_commandline_args(self):CODE
LOW⚡tests/tests.py421 def test_get_worker_specified(self):CODE
27 more matches not shown…
Empty Error Handlers12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHdjango_rq/thread_queue.py47except AttributeError:CODE
HIGHdjango_rq/connection_utils.py33except ImportError:CODE
HIGHdjango_rq/utils.py236except Exception:CODE
HIGHdjango_rq/utils.py281except ValueError:CODE
HIGHdjango_rq/utils.py214except ImproperlyConfigured:CODE
HIGHdjango_rq/views.py319except NoSuchJobError:CODE
HIGHdjango_rq/views.py494except NoSuchJobError:CODE
HIGHdjango_rq/decorators.py63except KeyError:CODE
HIGHdjango_rq/management/commands/rqstats.py121except KeyboardInterrupt:CODE
HIGHtests/test_commit_modes.py164except Exception:CODE
HIGHtests/utils.py77except NoSuchJobError:CODE
HIGHtests/fixtures.py26except ImportError:CODE
Unused Imports23 hits · 20 pts
SeverityFileLineSnippetContext
LOWintegration_test/manage.py14CODE
LOWdjango_rq/__init__.py3CODE
LOWdjango_rq/__init__.py4CODE
LOWdjango_rq/__init__.py5CODE
LOWdjango_rq/__init__.py5CODE
LOWdjango_rq/__init__.py5CODE
LOWdjango_rq/__init__.py6CODE
LOWdjango_rq/thread_queue.py5CODE
LOWdjango_rq/settings.py1CODE
LOWdjango_rq/decorators.py8CODE
LOWdjango_rq/management/commands/rqworker-pool.py2CODE
LOWtests/test_connections.py1CODE
LOWtests/test_connections.py2CODE
LOWtests/settings.py11CODE
LOWtests/settings.py16CODE
LOWtests/tests.py3CODE
LOWtests/tests.py6CODE
LOWtests/tests.py7CODE
LOWtests/tests.py15CODE
LOWtests/tests.py24CODE
LOWtests/tests.py28CODE
LOWtests/tests.py38CODE
LOWtests/redis_config.py1CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdjango_rq/utils.py300CODE
LOWdjango_rq/views.py540CODE
LOWdjango_rq/views.py572CODE
LOWdjango_rq/views.py649CODE
LOWdjango_rq/contrib/prometheus.py16CODE
LOWtests/test_connections.py194CODE
LOWtests/utils.py36CODE
LOWtests/redis_config.py17CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdjango_rq/cron.py169 Register a function to be run at regular intervals. On first call, this sets the Redis connection for STRING
Excessive Try-Catch Wrapping5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdjango_rq/utils.py81 except Exception:CODE
LOWdjango_rq/utils.py236 except Exception:CODE
LOWdjango_rq/utils.py293 except Exception:CODE
LOWdjango_rq/templatetags/django_rq.py54 except Exception as e:CODE
LOWtests/test_commit_modes.py164 except Exception:CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cron.py239 # Create a real scheduler and register itCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWintegration_test/_tests.py18logger = logging.getLogger(__name__)CODE
LOWdjango_rq/__init__.py8__all__ = [CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdjango_rq/queues.py116CODE
LOWdjango_rq/cron.py153CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_views.py561 # }COMMENT
LOWtests/test_views.py581 # func=access_self,COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_views.py532 # Check if the jobs are startedCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_admin_integration.py38 username='admin', email='admin@example.com', password='admin123'CODE