AI Slop Code Risk Monitor

calibrain/shelfmark

SlopCodeMonitor badge for calibrain/shelfmark Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
27.3 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for calibrain/shelfmark, a Python project with 4,101 GitHub stars. SynthScan examined 231,162 lines of code across 795 source files, recording 5429 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 27.3 (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.

27.3
Adjusted Signal
27.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
4.1K
Stars
Python
Language
231.2K
Lines of Code
795
Files
5.4K
Pattern Hits
2026-10-31
Scan Date
0.11
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 63.0/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 6.3/100 · LOW

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

Agent Over-Engineering Ratio 71.2/100 · HIGH

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

PR Review Velocity Impact 74.9/100 · HIGH

Which changes need focused human review? 5429 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 1HIGH 87MEDIUM 255LOW 5086

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 5429 distinct pattern matches across 18 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 Identifiers4427 hits · 4329 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py33def _reset_config_dir_writable_cache():CODE
LOWtests/conftest.py43def _clear_torrent_fetch_cache():CODE
LOW⚡tests/slskd/test_handler.py199 def test_from_release_data_without_extra(self):CODE
LOW⚡tests/slskd/test_handler.py207 def test_directory_derived_when_missing(self):CODE
LOW⚡tests/slskd/test_handler.py212 def test_from_task_round_trip(self):CODE
LOW⚡tests/slskd/test_handler.py219 def test_from_task_without_context(self):CODE
LOW⚡tests/slskd/test_handler.py222 def test_bad_sizes_become_zero(self):CODE
LOW⚡tests/slskd/test_handler.py227 def test_build_retry_fields_empty_without_spec(self):CODE
LOW⚡tests/slskd/test_handler.py237 def test_list_files_none_without_spec(self):CODE
LOW⚡tests/slskd/test_handler.py245 def test_local_path_uses_last_folder_only(self):CODE
LOW⚡tests/slskd/test_handler.py248 def test_local_path_forward_slashes(self):CODE
LOW⚡tests/slskd/test_handler.py251 def test_local_path_bare_file(self):CODE
LOW⚡tests/slskd/test_handler.py254 def test_local_path_refuses_traversal(self):CODE
LOW⚡tests/slskd/test_handler.py274 def test_local_path_refuses_names_that_could_leave_the_root(self, tmp_path, filename):CODE
LOW⚡tests/slskd/test_handler.py277 def test_a_windows_peers_drive_is_only_its_share_root(self):CODE
LOW⚡tests/slskd/test_handler.py280 def test_local_path_refuses_a_folder_that_links_outside_the_root(self, tmp_path):CODE
LOW⚡tests/slskd/test_handler.py295 def test_root_from_slskd_options(self, config_values):CODE
LOW⚡tests/slskd/test_handler.py300 def test_root_remapped_by_path_mapping(self, config_values):CODE
LOW⚡tests/slskd/test_handler.py309 def test_root_error_when_slskd_reports_nothing(self, config_values):CODE
LOW⚡tests/slskd/test_handler.py316 def test_root_error_when_slskd_unreachable(self, config_values):CODE
LOW⚡tests/slskd/test_handler.py799 def test_success_removes_transfer_and_empty_folder(self, fast_handler, config_values, tmp_path):CODE
LOW⚡tests/slskd/test_handler.py809 def test_success_keeps_folder_with_other_files(self, fast_handler, config_values, tmp_path):CODE
LOW⚡tests/slskd/test_handler.py818 def test_success_respects_remove_setting(self, fast_handler, config_values, tmp_path):CODE
LOW⚡tests/slskd/test_handler.py826 def test_failure_leaves_everything(self, fast_handler, config_values, tmp_path):CODE
LOW⚡tests/slskd/test_handler.py835 def test_cleanup_without_refs_is_noop(self, fast_handler):CODE
LOW⚡tests/slskd/test_handler.py845 def test_a_cancel_after_the_transfers_finished_still_removes_their_records(CODE
LOWtests/slskd/test_handler.py373 def test_ignores_unrelated_and_removed(self):CODE
LOWtests/slskd/test_handler.py383 def test_prefers_live_record_over_old_failure(self):CODE
LOWtests/slskd/test_handler.py404 def test_single_file_success_returns_client_path(self, fast_handler, config_values, tmp_path):CODE
LOWtests/slskd/test_handler.py428 def test_multi_file_success_stages_into_tmp(CODE
LOWtests/slskd/test_handler.py465 def test_failed_transfer_reports_outcome_and_removes(self, fast_handler, config_values):CODE
LOWtests/slskd/test_handler.py477 def test_failed_file_named_in_multi_file_release(self, fast_handler, config_values):CODE
LOWtests/slskd/test_handler.py497 def test_cancel_flag_cancels_transfers(self, fast_handler, config_values):CODE
LOWtests/slskd/test_handler.py516 def test_cancelled_before_start(self, fast_handler, config_values):CODE
LOWtests/slskd/test_handler.py541 def test_unconfigured_client_errors(self, fast_handler, config_values):CODE
LOWtests/slskd/test_handler.py552 def test_enqueue_failure_errors(self, fast_handler, config_values):CODE
LOWtests/slskd/test_handler.py565 def test_transfer_vanishing_errors_after_grace(self, fast_handler, config_values, monkeypatch):CODE
LOWtests/slskd/test_handler.py582 def test_a_file_vanishing_from_a_multi_file_release_cancels_the_others(CODE
LOWtests/slskd/test_handler.py602 def test_queue_timeout_errors(self, fast_handler, config_values, monkeypatch):CODE
LOWtests/slskd/test_handler.py621 def test_completed_file_missing_errors(self, fast_handler, config_values, tmp_path):CODE
LOWtests/slskd/test_handler.py635 def test_completed_file_appears_after_wait(CODE
LOWtests/slskd/test_handler.py661 def test_unsafe_remote_name_errors(self, fast_handler, config_values, tmp_path):CODE
LOWtests/slskd/test_handler.py676 def test_a_peer_file_name_cannot_reach_files_outside_the_root(CODE
LOWtests/slskd/test_handler.py710 def test_a_peer_queue_asks_the_orchestrator_not_to_stall_the_download(CODE
LOWtests/slskd/test_handler.py739 def test_a_long_peer_queue_renews_the_grace_until_the_queue_timeout(CODE
LOWtests/slskd/test_handler.py760 def test_status_check_errors_are_retried(self, fast_handler, config_values, tmp_path):CODE
LOW⚡tests/slskd/test_live_slskd.py30def test_connection_reports_login_state(live_client):CODE
LOW⚡tests/slskd/test_live_slskd.py39def test_bad_api_key_is_rejected(live_client):CODE
LOW⚡tests/slskd/test_live_slskd.py45def test_download_directory_is_reported(live_client):CODE
LOWtests/slskd/test_live_slskd.py61def test_missing_transfer_is_none(live_client):CODE
LOWtests/slskd/test_live_slskd.py69def test_network_search_returns_ebooks_when_logged_in(live_client):CODE
LOW⚡tests/slskd/test_handler_isolated.py191 def test_the_orchestrator_is_told_the_folder_is_the_clients_so_it_copies_not_moves(CODE
LOW⚡tests/slskd/test_handler_isolated.py200 def test_transfers_are_read_by_id_never_by_the_list(self, handler, cfg, tmp_path):CODE
LOW⚡tests/slskd/test_handler_isolated.py207 def test_a_failure_to_name_a_safe_folder_never_escapes_the_downloads_root(CODE
LOW⚡tests/slskd/test_handler_isolated.py397 def test_a_client_error_is_not_retried(self, handler, cfg, tmp_path):CODE
LOW⚡tests/slskd/test_handler_isolated.py406 def test_a_connection_error_is_not_retried(self, handler, cfg, tmp_path):CODE
LOW⚡tests/slskd/test_handler_isolated.py416 def test_cancelling_during_the_wait_stops_without_a_second_try(CODE
LOW⚡tests/slskd/test_handler_isolated.py664 def test_the_files_asked_for_are_complete(self, tmp_path):CODE
LOW⚡tests/slskd/test_handler_isolated.py669 def test_a_file_of_the_wrong_size_is_not_complete(self, tmp_path):CODE
LOW⚡tests/slskd/test_handler_isolated.py675 def test_names_do_not_matter_because_slskd_may_rename_a_duplicate(self, tmp_path):CODE
4367 more matches not shown…
Decorative Section Separators233 hits · 853 pts
SeverityFileLineSnippetContext
MEDIUMwireguard.sh250# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh252# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh525# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh528# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh638# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh640# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh848# ---------------------------------------------------------------------------COMMENT
MEDIUMwireguard.sh850# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/slskd/test_handler.py241# ── local path resolution ──────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_handler.py324# ── snapshot aggregation ───────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_handler.py33# ── helpers ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_handler.py187# ── spec parsing ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_handler.py397# ── download lifecycle ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_handler.py783# ── post-processing cleanup ────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_source.py77# ── path helpers ───────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_source.py168# ── build_releases ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_source.py353# ── query planning ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_source.py25# ── fixtures / helpers ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_source.py124# ── iter_peer_files ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_source.py281# ── ranking ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_source.py314# ── supported formats ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_source.py375# ── SlskdSource ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_source.py563# ── fork additions: containers, merged variants, strict-match signals ───────────COMMENT
MEDIUM⚡tests/slskd/test_api.py68# ── URL construction / auth ────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_api.py133# ── test_connection ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_api.py179# ── options ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_api.py195# ── searches ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_api.py355# ── transfers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tests/slskd/test_api.py435# ── helpers ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_api.py20# ── helpers ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/slskd/test_api.py464# ── batch downloads, batches by id, events (fork additions) ─────────────────────COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py31# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py33# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py78# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py80# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py123# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py125# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py152# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py154# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py206# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py208# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py271# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py273# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py313# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py315# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py349# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py351# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py387# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py389# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py470# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_integration_failures.py472# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py172# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py174# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py411# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py413# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py500# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py502# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py574# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py576# =============================================================================COMMENT
MEDIUM⚡tests/prowlarr/test_failure_scenarios.py677# =============================================================================COMMENT
173 more matches not shown…
Cross-File Repetition56 hits · 280 pts
SeverityFileLineSnippetContext
HIGHtests/slskd/conftest.py0newznab test configuration. stubs out optional heavy dependencies (flask_socketio) that are not available in lightweightSTRING
HIGHtests/jackett/conftest.py0newznab test configuration. stubs out optional heavy dependencies (flask_socketio) that are not available in lightweightSTRING
HIGHtests/newznab/conftest.py0newznab test configuration. stubs out optional heavy dependencies (flask_socketio) that are not available in lightweightSTRING
HIGHtests/audiobookbay/test_handler.py0records progress and status updates during download.STRING
HIGHtests/prowlarr/test_handler.py0records progress and status updates during download.STRING
HIGHtests/prowlarr/test_failure_scenarios.py0records progress and status updates during download.STRING
HIGHtests/prowlarr/test_integration_handler.py0records progress and status updates during download.STRING
HIGHtests/prowlarr/test_deluge_client.py0create a config.get function that returns values from a dict.STRING
HIGHtests/prowlarr/test_rtorrent_client.py0create a config.get function that returns values from a dict.STRING
HIGHtests/prowlarr/test_transmission_client.py0create a config.get function that returns values from a dict.STRING
HIGHtests/prowlarr/test_client_settings_ssl_verify.py0create a config.get function that returns values from a dict.STRING
HIGHtests/prowlarr/test_qbittorrent_settings.py0create a config.get function that returns values from a dict.STRING
HIGHtests/prowlarr/test_rtorrent_client.py0test is_configured returns true when properly configured.STRING
HIGHtests/prowlarr/test_transmission_client.py0test is_configured returns true when properly configured.STRING
HIGHtests/prowlarr/test_sabnzbd_client.py0test is_configured returns true when properly configured.STRING
HIGHtests/prowlarr/test_qbittorrent_client.py0test is_configured returns true when properly configured.STRING
HIGHtests/prowlarr/test_nzbget_client.py0test is_configured returns true when properly configured.STRING
HIGHtests/prowlarr/test_rtorrent_client.py0test is_configured returns false when different client selected.STRING
HIGHtests/prowlarr/test_transmission_client.py0test is_configured returns false when different client selected.STRING
HIGHtests/prowlarr/test_sabnzbd_client.py0test is_configured returns false when different client selected.STRING
HIGHtests/prowlarr/test_qbittorrent_client.py0test is_configured returns false when different client selected.STRING
HIGHtests/prowlarr/test_nzbget_client.py0test is_configured returns false when different client selected.STRING
HIGHtests/core/test_download_api_guardrails.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_health_endpoint.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_request_routes_api.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_config_api.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_onboarding_routes.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_activity_terminal_snapshots.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_auth_api.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_cover_proxy_api.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_activity_routes_api.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_settings_routes.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_provider_account_access.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_notifications_settings_api.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_api_key_env.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/core/test_releases_api_direct_provider.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/e2e/test_auth_endpoints.py0import `shelfmark.main` with background thread startup disabled.STRING
HIGHtests/download/test_http_challenge_503.py0minimal stand-in for requests.response covering what html_get_page touches.STRING
HIGHtests/download/test_ddg_check_probe_handoff.py0minimal stand-in for requests.response covering what html_get_page touches.STRING
HIGHtests/download/test_http_cookie_challenge.py0minimal stand-in for requests.response covering what html_get_page touches.STRING
HIGHshelfmark/bypass/internal_bypasser.py0return a positive integer config value or the provided default.STRING
HIGHshelfmark/release_sources/audiobookbay/source.py0return a positive integer config value or the provided default.STRING
HIGHshelfmark/release_sources/libgen/source.py0return a positive integer config value or the provided default.STRING
HIGHshelfmark/release_sources/webshare/source.py0return a positive integer config value or the provided default.STRING
HIGHshelfmark/download/clients/realdebrid.py0return the local directory containing downloaded files.STRING
HIGHshelfmark/download/clients/debridlink.py0return the local directory containing downloaded files.STRING
HIGHshelfmark/download/clients/alldebrid.py0return the local directory containing downloaded files.STRING
HIGHshelfmark/download/clients/rtorrent.py0add torrent by url (magnet or .torrent). args: url: magnet link or .torrent url name: display name for the torrent categSTRING
HIGHshelfmark/download/clients/transmission.py0add torrent by url (magnet or .torrent). args: url: magnet link or .torrent url name: display name for the torrent categSTRING
HIGHshelfmark/download/clients/qbittorrent.py0add torrent by url (magnet or .torrent). args: url: magnet link or .torrent url name: display name for the torrent categSTRING
HIGHshelfmark/download/clients/rtorrent.py0get torrent status by hash. args: download_id: torrent info_hash returns: current download status.STRING
HIGHshelfmark/download/clients/transmission.py0get torrent status by hash. args: download_id: torrent info_hash returns: current download status.STRING
HIGHshelfmark/download/clients/qbittorrent.py0get torrent status by hash. args: download_id: torrent info_hash returns: current download status.STRING
HIGHshelfmark/metadata_providers/moly.py0return a normalized isbn-10/13 (digits, with optional x check digit), else none.STRING
HIGHshelfmark/metadata_providers/databazeknih.py0return a normalized isbn-10/13 (digits, with optional x check digit), else none.STRING
HIGHshelfmark/metadata_providers/dnb.py0return a normalized isbn-10/13 (digits, with optional x check digit), else none.STRING
Unused Imports250 hits · 230 pts
SeverityFileLineSnippetContext
LOWtests/slskd/test_handler_isolated.py10CODE
LOWtests/slskd/test_settings.py130CODE
LOWtests/audiobookbay/test_scraper_contract.py15CODE
LOWtests/prowlarr/test_blackhole_client.py3CODE
LOWtests/core/test_download_api_guardrails.py3CODE
LOWtests/core/test_library_provider_audiobookshelf.py3CODE
LOWtests/core/conftest.py3CODE
LOWtests/core/test_library_provider_calibre.py3CODE
LOWtests/core/test_stats.py3CODE
LOWtests/core/test_release_search.py3CODE
LOWtests/core/test_health_endpoint.py3CODE
LOWtests/core/test_request_routes_api.py3CODE
LOWtests/core/test_viewer_redaction.py3CODE
LOWtests/core/test_config_api.py3CODE
LOWtests/core/test_custom_script_argv.py3CODE
LOWtests/core/test_onboarding_routes.py3CODE
LOWtests/core/test_notifications_user_routes.py3CODE
LOWtests/core/test_activity_terminal_snapshots.py3CODE
LOWtests/core/test_socketio_origins.py3CODE
LOWtests/core/test_settings_reload.py3CODE
LOWtests/core/test_metadata_search_library.py3CODE
LOWtests/core/test_auth_api.py3CODE
LOWtests/core/test_config_user_overrides.py3CODE
LOWtests/core/test_config_user_overrides.py14CODE
LOWtests/core/test_config_user_overrides.py117CODE
LOWtests/core/test_config_user_overrides.py180CODE
LOWtests/core/test_config_user_overrides.py257CODE
LOWtests/core/test_onboarding.py1CODE
LOWtests/core/test_download_history_service.py3CODE
LOWtests/core/test_release_routes_policy.py10CODE
LOWtests/core/test_builtin_admin_sync.py3CODE
LOWtests/core/test_auto_download.py992CODE
LOWtests/core/test_library_index.py3CODE
LOWtests/core/test_cover_proxy_api.py3CODE
LOWtests/core/test_existence_check.py8CODE
LOWtests/core/test_activity_routes_api.py3CODE
LOWtests/core/test_settings_routes.py3CODE
LOWtests/core/fakes.py3CODE
LOWtests/core/test_debug_routes_admin.py3CODE
LOWtests/core/test_provider_account_access.py3CODE
LOWtests/core/test_releases_api_budget.py10CODE
LOWtests/core/test_releases_api_title_override.py10CODE
LOWtests/core/test_release_inspect_routes.py3CODE
LOWtests/core/test_notifications_settings_api.py3CODE
LOWtests/core/test_startup_reconcile_guard.py3CODE
LOWtests/core/test_api_key_env.py3CODE
LOWtests/core/test_activity_view_state_service.py3CODE
LOWtests/core/test_startup_reconcile.py7CODE
LOWtests/core/test_releases_api_direct_provider.py3CODE
LOWtests/config/test_mirror_settings_migration.py5CODE
LOWtests/config/test_mirror_settings_migration.py117CODE
LOWtests/config/test_tor_script_rules.py1CODE
LOWtests/config/test_dns_settings_live_apply.py2CODE
LOWtests/config/test_hardcover_sync_settings.py3CODE
LOWtests/config/test_users_settings.py3CODE
LOWtests/config/test_docker_volumes.py3CODE
LOWtests/config/test_mirror_settings_live_apply.py3CODE
LOWtests/config/test_mirror_settings_live_apply.py32CODE
LOWtests/config/test_download_settings.py186CODE
LOWtests/config/test_download_settings.py346CODE
190 more matches not shown…
Excessive Try-Catch Wrapping153 hits · 168 pts
SeverityFileLineSnippetContext
LOW⚡tests/slskd/test_live_slskd.py25 except Exception as e: # pragma: no cover - environment dependentCODE
LOW⚡tests/prowlarr/test_integration_failures.py91 except Exception:CODE
LOW⚡tests/prowlarr/test_integration_failures.py104 except Exception:CODE
LOW⚡tests/prowlarr/test_integration_failures.py118 except Exception:CODE
LOW⚡tests/prowlarr/test_integration_failures.py264 except Exception:CODE
LOWtests/prowlarr/test_integration_failures.py240 except Exception as e:CODE
LOW⚡tests/prowlarr/test_integration_clients.py190 except Exception:CODE
LOW⚡tests/prowlarr/test_integration_clients.py207 except Exception:CODE
LOW⚡tests/prowlarr/test_integration_clients.py221 except Exception:CODE
LOWtests/prowlarr/test_integration_clients.py236 except Exception:CODE
LOWtests/prowlarr/test_integration_clients.py252 except Exception:CODE
LOWtests/prowlarr/test_integration_clients.py267 except Exception:CODE
LOWtests/prowlarr/test_integration_handler.py49 except Exception:CODE
LOWtests/prowlarr/test_cache.py112 except Exception as e:CODE
MEDIUMtests/prowlarr/test_cache.py105def cache_operations():CODE
MEDIUMdocs/dev/release-sources-plugin-guide.md390def download(self, task, cancel_flag, progress_callback, status_callback):CODE
MEDIUMdocs/dev/release-sources-plugin-guide.md974def search(self, book, plan, *, expand_search=False, content_type="ebook") -> LiCODE
MEDIUMdocs/dev/release-sources-plugin-guide.md995def download(self, task, cancel_flag, progress_callback, status_callback):CODE
LOWdocs/dev/release-sources-plugin-guide.md276 except Exception:CODE
LOWdocs/dev/release-sources-plugin-guide.md431 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md682 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md985 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1000 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1129 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1236 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1424 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1428 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1502 except Exception:CODE
LOWdocs/dev/release-sources-plugin-guide.md1510 except Exception as e:CODE
LOWdocs/dev/release-sources-plugin-guide.md1563except Exception:CODE
LOWdocs/dev/plugin-settings.md230 except Exception as e:CODE
LOWdocs/dev/plugin-settings.md465 except Exception as e:CODE
LOWdocs/dev/plugin-settings.md583 except Exception as e:CODE
LOWscripts/bypasser_permission_lab.sh102 except Exception as e:CODE
LOWscripts/bypasser_permission_lab.sh113 except Exception as e:CODE
LOWscripts/generate_env_docs.py101 except Exception:CODE
LOWscripts/test_clients.py175 except Exception as e:CODE
LOWscripts/test_clients.py202 except Exception as e:CODE
LOWscripts/test_clients.py240 except Exception as e:CODE
LOWscripts/test_clients.py304 except Exception as e:CODE
LOWscripts/test_clients.py362 except Exception as e:CODE
LOWscripts/test_clients.py464 except Exception as e:CODE
LOWscripts/test_clients.py556 except Exception as e:CODE
MEDIUM⚡skills/shelfmark/download_books.py300 print(f"Error: Invalid JSON in {source}: {e}")CODE
MEDIUM⚡skills/shelfmark/download_books.py304 print(f"Error: JSON in {source} must be an array of book objects")CODE
MEDIUM⚡skills/shelfmark/download_books.py311 print(f"Error: Each book object must have 'title' and 'author' keys: {item}")CODE
MEDIUM⚡skills/shelfmark/download_books.py348 print(f"Error: File not found: {args.file}")CODE
MEDIUM⚡skills/shelfmark/download_books.py351 print(f"Error reading file: {e}")CODE
MEDIUM⚡skills/shelfmark/download_books.py358 print("Error: No books specified. Use positional JSON args or --file <path>")CODE
LOWshelfmark/core/hardcover_sync.py229 except Exception as exc: # noqa: BLE001 - network/provider errors shouldn't abort the syncCODE
LOWshelfmark/core/hardcover_sync.py332 except Exception:CODE
LOWshelfmark/core/admin_routes.py457 except Exception:CODE
LOWshelfmark/core/onboarding.py64 except Exception:CODE
LOWshelfmark/core/onboarding.py744 except Exception as e:CODE
LOWshelfmark/core/oidc_routes.py247 except Exception:CODE
LOWshelfmark/core/oidc_routes.py313 except Exception:CODE
LOWshelfmark/core/oidc_routes.py367 except Exception:CODE
LOWshelfmark/core/auto_download.py399 except Exception: # noqa: BLE001 - a settings problem must not turn the filter offCODE
LOWshelfmark/core/auto_download.py516 except Exception as exc: # noqa: BLE001 - a lookup failure only leaves it unmatchedCODE
LOWshelfmark/core/auto_download.py601 except Exception as exc: # noqa: BLE001 — inspection is advisory; never block a downloadCODE
93 more matches not shown…
Deep Nesting123 hits · 92 pts
SeverityFileLineSnippetContext
LOWtests/slskd/test_handler.py101CODE
LOWtests/prowlarr/test_integration_clients.py174CODE
LOWtests/core/test_download_api_guardrails.py663CODE
LOWtests/core/test_request_routes_api.py70CODE
LOWtests/core/test_request_routes_api.py133CODE
LOWtests/core/test_request_routes_api.py164CODE
LOWtests/core/test_request_routes_api.py194CODE
LOWtests/core/test_request_routes_api.py250CODE
LOWtests/core/test_request_routes_api.py322CODE
LOWtests/core/test_request_routes_api.py389CODE
LOWtests/core/test_request_routes_api.py436CODE
LOWtests/core/test_request_routes_api.py481CODE
LOWtests/core/test_request_routes_api.py549CODE
LOWtests/core/test_request_routes_api.py826CODE
LOWtests/core/test_request_routes_api.py870CODE
LOWtests/core/test_request_routes_api.py915CODE
LOWtests/core/test_request_routes_api.py958CODE
LOWtests/core/test_request_routes_api.py1311CODE
LOWtests/core/test_request_routes_api.py1393CODE
LOWtests/core/test_request_routes_api.py1448CODE
LOWtests/core/test_request_routes_api.py1504CODE
LOWtests/core/test_request_routes_api.py1567CODE
LOWtests/core/test_request_routes_api.py1630CODE
LOWtests/core/test_request_routes_api.py1735CODE
LOWtests/core/test_request_routes_api.py1786CODE
LOWtests/core/test_request_routes_api.py1854CODE
LOWtests/core/test_request_routes_api.py2092CODE
LOWtests/core/test_request_routes_api.py2687CODE
LOWtests/core/test_request_routes_api.py2739CODE
LOWtests/core/test_request_routes_api.py2882CODE
LOWtests/core/test_request_routes_api.py2938CODE
LOWtests/core/test_request_routes_api.py3093CODE
LOWtests/core/test_request_routes_api.py3124CODE
LOWtests/core/test_request_routes_api.py3152CODE
LOWtests/core/test_request_routes_api.py3180CODE
LOWtests/core/test_request_routes_api.py3211CODE
LOWtests/core/test_request_routes_api.py3239CODE
LOWtests/core/test_request_routes_api.py3287CODE
LOWtests/core/test_processing_integration.py1016CODE
LOWtests/config/test_security.py43CODE
LOWtests/config/test_security.py83CODE
LOWtests/config/test_security.py121CODE
LOWtests/config/test_security.py142CODE
LOWtests/config/test_security.py176CODE
LOWtests/config/test_security.py210CODE
LOWtests/config/test_security.py234CODE
LOWtests/config/test_security.py282CODE
LOWtests/e2e/test_download_flow.py103CODE
LOWtests/e2e/test_auth_flow.py88CODE
LOWtests/e2e/test_prowlarr_flow.py170CODE
LOWtests/e2e/platform/suite/conftest.py92CODE
LOWscripts/test_clients.py180CODE
LOWscripts/test_clients.py367CODE
LOWskills/shelfmark/download_books.py47CODE
LOWskills/shelfmark/download_books.py169CODE
LOWskills/shelfmark/download_books.py295CODE
LOWshelfmark/core/queue.py95CODE
LOWshelfmark/core/queue.py224CODE
LOWshelfmark/core/queue.py299CODE
LOWshelfmark/core/queue.py370CODE
63 more matches not shown…
Empty Error Handlers16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHtests/slskd/test_api.py238except StopIteration:CODE
HIGHtests/prowlarr/test_integration_failures.py104except Exception:CODE
HIGHtests/prowlarr/test_integration_failures.py118except Exception:CODE
HIGHtests/prowlarr/test_integration_failures.py264except Exception:CODE
HIGHtests/prowlarr/test_integration_clients.py221except Exception:CODE
HIGHtests/prowlarr/test_integration_clients.py236except Exception:CODE
HIGHtests/prowlarr/test_integration_clients.py267except Exception:CODE
HIGHtests/config/test_tor_script_rules.py211except subprocess.TimeoutExpired:CODE
HIGHtests/download/test_orchestrator_lifecycle.py195except _StopCoordinator:CODE
HIGHtests/e2e/platform/suite/conftest.py59except requests.RequestException:CODE
HIGHshelfmark/core/settings_registry.py1237except ImportError:CODE
HIGHshelfmark/core/settings_registry.py1261except ImportError:CODE
HIGHshelfmark/core/settings_registry.py1278except ImportError:CODE
HIGHshelfmark/download/fs.py478except OSError:CODE
HIGHshelfmark/download/network.py580except ValueError:CODE
HIGHshelfmark/download/network.py117except ValueError:CODE
Docstring Block Structure13 hits · 65 pts
SeverityFileLineSnippetContext
HIGHshelfmark/download/fs.py233Write data to a file with atomic collision detection. If the destination already exists, retries with counter suffiSTRING
HIGHshelfmark/download/fs.py508Move a file with collision detection. Uses os.rename() for same-filesystem moves (atomic, triggers inotify events),STRING
HIGHshelfmark/download/fs.py682Create a hardlink with atomic collision detection. Args: source_path: Source file to link from destSTRING
HIGHshelfmark/download/fs.py734Copy a file with atomic collision detection. Uses a temp file in the destination directory and publishes it via renSTRING
HIGHshelfmark/download/clients/nzbget.py74Make a JSON-RPC call to NZBGet. Args: method: RPC method name params: Method parametersSTRING
HIGHshelfmark/download/clients/nzbget.py137Add NZB by URL. Fetches the NZB content from the URL (e.g., Prowlarr proxy) and sends it base64-encodedSTRING
HIGHshelfmark/download/clients/__init__.py302Add a download to the client. Args: url: Download URL (magnet link, .torrent URL, or NZB URL) STRING
HIGHshelfmark/download/clients/rtorrent.py164Add torrent by URL (magnet or .torrent). Args: url: Magnet link or .torrent URL name: DSTRING
HIGHshelfmark/download/clients/sabnzbd.py194Make an API call to SABnzbd. Args: mode: API mode (e.g., "version", "addurl", "queue", "history") STRING
HIGHshelfmark/download/clients/sabnzbd.py405Add NZB by URL. Args: url: NZB URL (can be Prowlarr proxy URL) name: Display name for tSTRING
HIGHshelfmark/download/clients/transmission.py225Add torrent by URL (magnet or .torrent). Args: url: Magnet link or .torrent URL name: DSTRING
HIGHshelfmark/download/clients/qbittorrent.py488Add torrent by URL (magnet or .torrent). Args: url: Magnet link or .torrent URL name: DSTRING
HIGH…fmark/release_sources/direct_download/annas_archive.py713Search for books matching the query. Args: query: Search term (ISBN, title, author, etc.) filters: STRING
Fake / Example Data48 hits · 53 pts
SeverityFileLineSnippetContext
LOW⚡tests/core/test_requests_service.py1746 "author": "Jane Doe",CODE
LOWtests/core/test_requests_service.py44 "author": "Jane Doe",CODE
LOWtests/core/test_requests_service.py199 "author": "Jane Doe",CODE
LOWtests/core/test_requests_service.py960 "author": "Jane Doe",CODE
LOW⚡tests/core/test_oidc_auth.py76 id_token = {"email": "user@example.com"}CODE
LOW⚡tests/core/test_oidc_auth.py128 "name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py134 assert info["display_name"] == "John Doe"CODE
LOW⚡tests/core/test_oidc_auth.py143 "name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py177 "display_name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py192 "display_name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py204 "display_name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py217 "display_name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py235 "display_name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py251 "display_name": "John Doe",CODE
LOW⚡tests/core/test_oidc_auth.py272 "display_name": "John Doe",CODE
LOW⚡tests/core/test_user_db.py507 display_name="John Doe",CODE
LOW⚡tests/core/test_user_db.py512 assert user["display_name"] == "John Doe"CODE
LOWtests/core/test_notifications.py793 lambda user_id: {"username": username, "email": "user@example.com"},CODE
LOW⚡tests/core/test_cwa_user_sync.py23 email="admin@example.com",CODE
LOW⚡tests/core/test_cwa_user_sync.py31 cwa_email="admin@example.com",CODE
LOW⚡tests/core/test_oidc_routes.py254 "name": "John Doe",CODE
LOWtests/core/test_oidc_routes.py279 "name": "John Doe",CODE
LOWtests/core/test_oidc_routes.py304 "name": "John Doe",CODE
LOWtests/core/test_oidc_routes.py333 "email": "admin@example.com",CODE
LOWtests/config/test_download_settings.py217 assert bound_fields[0]["placeholder"] == "{Author}/{Series/}{Title} ({Year})"CODE
LOWdocs/dev/plugin-settings.md202 {"key": "name", "label": "Name", "type": "text", "placeholder": "Rule name"},CODE
LOWshelfmark/core/settings_registry.py1072 result["placeholder"] = field.placeholderCODE
LOWshelfmark/core/settings_registry.py1076 result["placeholder"] = field.placeholderCODE
LOWshelfmark/core/settings_registry.py1095 result["placeholder"] = field.placeholderCODE
LOWshelfmark/config/notifications_settings.py327 "placeholder": "Select events...",CODE
LOWshelfmark/config/notifications_settings.py333 "placeholder": "e.g. ntfys://ntfy.sh/shelfmark",CODE
LOWshelfmark/config/notifications_settings.py364 "placeholder": "Select events...",CODE
LOWshelfmark/config/notifications_settings.py370 "placeholder": "e.g. ntfys://ntfy.sh/username-topic",CODE
LOWshelfmark/config/security.py210 "placeholder": "https://auth.example.com/.well-known/openid-configuration",CODE
LOWshelfmark/config/security.py220 "placeholder": "shelfmark",CODE
LOWshelfmark/config/security.py248 "placeholder": "groups",CODE
LOWshelfmark/config/security.py258 "placeholder": "shelfmark-admins",CODE
LOWshelfmark/config/security.py286 "placeholder": "Sign in with OIDC",CODE
LOW⚡shelfmark/config/users_settings.py171 "placeholder": "Select source...",CODE
LOW⚡shelfmark/config/users_settings.py179 "placeholder": "Select content type...",CODE
LOW⚡shelfmark/config/users_settings.py188 "placeholder": "Select mode...",CODE
LOWshelfmark/config/settings.py1368 placeholder="user@example.com",CODE
LOWshelfmark/metadata_providers/__init__.py141 "placeholder": getattr(search_field, "placeholder", ""),CODE
LOW⚡shelfmark/release_sources/newznab/settings.py104 "placeholder": "NZBGeek",CODE
LOW⚡shelfmark/release_sources/newznab/settings.py110 "placeholder": "https://api.nzbgeek.info",CODE
LOW⚡shelfmark/release_sources/newznab/settings.py116 "placeholder": "Optional",CODE
LOWsrc/frontend/src/components/settings/users/UserCard.tsx369 const emailField = createTextField('email', 'Email', form.email, 'user@example.com');CODE
LOWsrc/frontend/src/components/settings/users/UserCard.tsx487 const emailField = createTextField('email', 'Email', user.email || '', 'user@example.com');CODE
Redundant / Tautological Comments32 hits · 49 pts
SeverityFileLineSnippetContext
LOWtor.sh31# Check if EXT_BYPASSER_URL is definedCOMMENT
LOWtor.sh304# Check if outgoing IP is using TorCOMMENT
LOWgenDebug.sh65# Check if IPv6 is enabledCOMMENT
LOWgenDebug.sh132# Check if running in DockerCOMMENT
LOWtests/e2e/test_download_flow.py346 # Check if it erroredCOMMENT
LOWskills/shelfmark/download_books.py123 # Check if any matching book is already in the download queueCOMMENT
LOWskills/shelfmark/download_books.py135 # Check if the current download matches our searchCOMMENT
LOWshelfmark/main.py1084 # Check if user has a valid sessionCOMMENT
LOWshelfmark/main.py2052 # Check if caching is enabledCOMMENT
LOWshelfmark/main.py2484 # Check if account is locked due to failed login attemptsCOMMENT
LOWshelfmark/main.py2573 # Check if user exists and password is correctCOMMENT
LOWshelfmark/main.py2577 # Check if user has admin role (ROLE_ADMIN = 1, bit flag)COMMENT
LOWshelfmark/main.py2674 # Check if user has a valid sessionCOMMENT
LOWshelfmark/core/queue.py115 # Check if task was cancelled while in queueCOMMENT
LOWshelfmark/core/admin_routes.py242 # Check if username already existsCOMMENT
LOWshelfmark/core/cache.py148 # Check if metadata caching is enabledCOMMENT
LOWshelfmark/core/utils.py386 # Check if content-type routing is enabled (new or legacy setting)COMMENT
LOWshelfmark/core/utils.py439 # Check if cover caching is enabledCOMMENT
LOW⚡shelfmark/core/settings_registry.py1213 # Check if callback accepts current_values parameterCOMMENT
LOWshelfmark/core/settings_registry.py507 # Check if config directory exists and is writableCOMMENT
LOWshelfmark/download/network.py761 # Check if hostname is already an IP address, no need to resolveCOMMENT
LOWshelfmark/download/network.py766 # Check if hostname is a private IP address, and skip DoH if it isCOMMENT
LOWshelfmark/download/network.py1420 # Check if it looks like IP addressesCOMMENT
LOWshelfmark/download/clients/torrent_utils.py291 # Check if response is actually a magnet link (text response)COMMENT
LOWshelfmark/download/clients/base_handler.py1148 # Check if this download already exists in the clientCOMMENT
LOWshelfmark/metadata_providers/__init__.py560 # Check if the provider is enabledCOMMENT
LOWshelfmark/release_sources/audiobookbay/scraper.py238 # Check if we were redirected to the homepage (search was rejected/blocked)COMMENT
LOW…fmark/release_sources/direct_download/annas_archive.py1576 # Check if we've hit the failure thresholdCOMMENT
LOWshelfmark/release_sources/irc/client.py307 # Check if user has an elevated prefixCOMMENT
LOWshelfmark/release_sources/irc/client.py340 # Check if we have a complete line in bufferCOMMENT
LOWshelfmark/release_sources/irc/connection_manager.py133 # Check if we need to join a different channelCOMMENT
LOWshelfmark/release_sources/irc/connection_manager.py142 # Check if another thread is already connectingCOMMENT
Modern Structural Boilerplate30 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/core/test_request_routes_api.py29def _set_session(client, *, user_id: str, db_user_id: int | None, is_admin: bool) -> None:CODE
LOWtests/core/test_config_api.py27def _set_session(client, *, user_id: str, db_user_id: int, is_admin: bool) -> None:CODE
LOWtests/core/test_activity_routes_api.py35def _set_session(client, *, user_id: str, db_user_id: int | None, is_admin: bool) -> None:CODE
LOWtests/core/test_debug_routes_admin.py45def _set_session(client, *, user_id: str, is_admin: bool) -> None:CODE
LOWtests/core/test_notifications_settings_api.py32def _set_session(client, *, user_id: str, db_user_id: int, is_admin: bool) -> None:CODE
LOWtests/config/test_security.py18def _set_config_dir(monkeypatch, config_dir: Path) -> None:CODE
LOWshelfmark/core/queue.py143 def _update_status(self, book_id: str, status: QueueStatus) -> None:CODE
LOW⚡shelfmark/core/queue.py198 def update_status(self, book_id: str, status: QueueStatus) -> None:CODE
LOW⚡shelfmark/core/queue.py206 def update_download_path(self, task_id: str, download_path: str) -> None:CODE
LOW⚡shelfmark/core/queue.py212 def update_progress(self, task_id: str, progress: float) -> None:CODE
LOW⚡shelfmark/core/queue.py218 def update_status_message(self, task_id: str, message: str) -> None:CODE
LOWshelfmark/core/admin_routes.py52__all__ = [CODE
LOWshelfmark/core/__init__.py7__all__ = [CODE
LOWshelfmark/core/user_db.py421 def update_user(self, user_id: int, **kwargs: object) -> None:CODE
LOWshelfmark/core/user_db.py530 def set_user_settings(self, user_id: int, settings: dict[str, Any]) -> None:CODE
LOWshelfmark/download/orchestrator.py924def update_download_progress(book_id: str, progress: float) -> None:CODE
LOWshelfmark/download/orchestrator.py970def update_download_status(book_id: str, status: str, message: str | None = None) -> None:CODE
LOWshelfmark/download/orchestrator.py1124def set_activity_grace(book_id: str, seconds: float) -> None:CODE
LOWshelfmark/download/network.py251def _set_runtime_dns_state(servers: list[str], doh_server: str) -> None:CODE
LOWshelfmark/download/network.py745 def _set_cached(self, hostname: str, record_type: str, ips: list[str]) -> None:CODE
LOWshelfmark/download/clients/torbox.py619 def _set_error(state: _DownloadState, message: str) -> None:CODE
LOW⚡shelfmark/download/clients/transmission.py86def _set_transmission_protocol_if_supported(client: object, protocol: str) -> None:CODE
LOW⚡shelfmark/download/clients/settings.py98def _set_transmission_protocol_if_supported(client: object, protocol: str) -> None:CODE
LOWshelfmark/download/postprocess/policy.py33__all__ = [CODE
LOWshelfmark/download/postprocess/__init__.py13__all__ = ["post_process_download"]CODE
LOWshelfmark/download/postprocess/pipeline.py58__all__ = [CODE
LOW⚡shelfmark/api/websocket.py66 def set_queue_status_fn(self, fn: Callable) -> None:CODE
LOW⚡shelfmark/api/websocket.py80 def _set_sid_room_locked(self, sid: str, room: str | None) -> None:CODE
LOWshelfmark/release_sources/prowlarr/handler.py66__all__ = [CODE
LOWshelfmark/release_sources/direct_download/__init__.py11__all__ = [CODE
Self-Referential Comments10 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMgenDebug.sh204# Create the zip file directly from LOG_DIRCOMMENT
MEDIUMtests/conftest.py20# Create the directories that will be usedCOMMENT
MEDIUMtests/conftest.py118 # Create a mock config moduleCOMMENT
MEDIUMtests/prowlarr/test_handler.py902 # Create a test fileCOMMENT
MEDIUMtests/prowlarr/test_bencode.py166 # Create a minimal valid v1 torrent structure (has 'pieces' key)COMMENT
MEDIUMtests/prowlarr/test_remote_path_mappings.py710 # Create a local file that represents the mounted pathCOMMENT
MEDIUMtests/prowlarr/test_remote_path_mappings.py790 # Create a local file that represents the mounted pathCOMMENT
MEDIUM⚡tests/core/test_oidc_auth.py265 # Create a local user with the same usernameCOMMENT
MEDIUM⚡tests/core/test_naming.py625 # Create the directory structureCOMMENT
MEDIUMshelfmark/download/orchestrator.py323 # Create a source-agnostic download task from release dataCOMMENT
Over-Commented Block29 hits · 26 pts
SeverityFileLineSnippetContext
LOWdocker-compose.test-clients.yml1# Test stack for download client developmentCOMMENT
LOWwireguard.sh1#!/bin/bashCOMMENT
LOWwireguard.sh21# lookups use a defined resolver instead of the container'sCOMMENT
LOWwireguard.sh41# loopback, the tunnel device and the LAN allowlist. Set trueCOMMENT
LOWwireguard.sh221 PATH="${SYSCTL_SHIM_DIR}:${PATH}" wg-quick "$@"COMMENT
LOWwireguard.sh241COMMENT
LOWwireguard.sh261# the config file: after wg-quick is up these are always concrete resolvedCOMMENT
LOWwireguard.sh301 fiCOMMENT
LOWwireguard.sh321# re-runnable after a bounce.COMMENT
LOWwireguard.sh421# closed at all times: during the (app-traffic-free) build window, and if anyCOMMENT
LOWwireguard.sh521 ip6tables -A OUTPUT -j DROPCOMMENT
LOWwireguard.sh541 DNS_TO_USE="$(echo "$DNS_TO_USE" | tr ',' ' ' | xargs || true)"COMMENT
LOWwireguard.sh581 echo "[*] Enforcing resolver(s): $DNS_TO_USE"COMMENT
LOWwireguard.sh701COMMENT
LOWwireguard.sh721#COMMENT
LOWcompose/docker-compose.wireguard.yml1# Routes all traffic through a WireGuard tunnel - requires root startup.COMMENT
LOWtests/e2e/platform/docker-compose.e2e.yml1# Shelfmark e2e Docker testing platformCOMMENT
LOW.github/dependabot.yml61 # pre-release heuristic to catch PEP 440 tags like 3.15.0a2 / 3.5.0b3, butCOMMENT
LOWshelfmark/main.py3421COMMENT
LOWshelfmark/core/utils.py121def is_audiobook(content_type: str | None) -> bool:COMMENT
LOWshelfmark/config/env.py241# Debug: keep DDoS-Guard's __ddg8_/__ddg9_/__ddg10_ in the clearance store instead ofCOMMENT
LOWshelfmark/bypass/internal_bypasser.py61_BYPASS_EMOJI_MATCH_MIN = 3COMMENT
LOWshelfmark/bypass/internal_bypasser.py641# works, so a separate method ahead of it could only ever repeat the half that hadCOMMENT
LOWshelfmark/bypass/cookie_store.py41# Anna's Archive's own pass for its ?check=1 hop. Without it the hop 302s backCOMMENT
LOWshelfmark/download/http.py701COMMENT
LOWshelfmark/download/network.py281COMMENT
LOWshelfmark/download/clients/base_handler.py61# A torrent the client has queued is waiting for a free slot, not stalled. Its status neverCOMMENT
LOW…fmark/release_sources/direct_download/annas_archive.py661 # ahead of the challenge branch: AA's own pages carry the protection'sCOMMENT
LOWsrc/frontend/src/services/api.ts161COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/prowlarr/test_rtorrent_client.py38 client._rpc.d.custom1.set.assert_called_once_with("ABC123", "imported")CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtests/core/test_auto_download.py1534 "Jack Reacher 29 In Too Deep + Short Stories, Killing Floor better quality || Complete to date 2024",CODE
HIGHtests/config/test_tor_script_rules.py304calls=$(cat "$FAKE_CURL_CALLS" 2>/dev/null || echo 0)CODE
AI Structural Patterns4 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/prowlarr/test_qbittorrent_client.py20CODE
LOWtests/core/test_activity_routes_api.py50CODE
LOWshelfmark/core/external_user_linking.py230CODE
LOWshelfmark/core/release_search.py28CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMshelfmark/release_sources/irc/parser.py44# This comprehensive list is used to identify file extensions in results.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocker-compose.test-clients.yml4# Usage:COMMENT