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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 4640 finding(s).
Are imports declared and package/API names verified? 301 finding(s).
Are wrappers, guards, and repeated structures necessary? 4919 finding(s).
Which changes need focused human review? 5429 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 33 | def _reset_config_dir_writable_cache(): | CODE |
| LOW | tests/conftest.py | 43 | def _clear_torrent_fetch_cache(): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 199 | def test_from_release_data_without_extra(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 207 | def test_directory_derived_when_missing(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 212 | def test_from_task_round_trip(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 219 | def test_from_task_without_context(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 222 | def test_bad_sizes_become_zero(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 227 | def test_build_retry_fields_empty_without_spec(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 237 | def test_list_files_none_without_spec(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 245 | def test_local_path_uses_last_folder_only(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 248 | def test_local_path_forward_slashes(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 251 | def test_local_path_bare_file(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 254 | def test_local_path_refuses_traversal(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 274 | def test_local_path_refuses_names_that_could_leave_the_root(self, tmp_path, filename): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 277 | def test_a_windows_peers_drive_is_only_its_share_root(self): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 280 | def test_local_path_refuses_a_folder_that_links_outside_the_root(self, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 295 | def test_root_from_slskd_options(self, config_values): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 300 | def test_root_remapped_by_path_mapping(self, config_values): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 309 | def test_root_error_when_slskd_reports_nothing(self, config_values): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 316 | def test_root_error_when_slskd_unreachable(self, config_values): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 799 | def test_success_removes_transfer_and_empty_folder(self, fast_handler, config_values, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 809 | def test_success_keeps_folder_with_other_files(self, fast_handler, config_values, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 818 | def test_success_respects_remove_setting(self, fast_handler, config_values, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 826 | def test_failure_leaves_everything(self, fast_handler, config_values, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 835 | def test_cleanup_without_refs_is_noop(self, fast_handler): | CODE |
| LOW⚡ | tests/slskd/test_handler.py | 845 | def test_a_cancel_after_the_transfers_finished_still_removes_their_records( | CODE |
| LOW | tests/slskd/test_handler.py | 373 | def test_ignores_unrelated_and_removed(self): | CODE |
| LOW | tests/slskd/test_handler.py | 383 | def test_prefers_live_record_over_old_failure(self): | CODE |
| LOW | tests/slskd/test_handler.py | 404 | def test_single_file_success_returns_client_path(self, fast_handler, config_values, tmp_path): | CODE |
| LOW | tests/slskd/test_handler.py | 428 | def test_multi_file_success_stages_into_tmp( | CODE |
| LOW | tests/slskd/test_handler.py | 465 | def test_failed_transfer_reports_outcome_and_removes(self, fast_handler, config_values): | CODE |
| LOW | tests/slskd/test_handler.py | 477 | def test_failed_file_named_in_multi_file_release(self, fast_handler, config_values): | CODE |
| LOW | tests/slskd/test_handler.py | 497 | def test_cancel_flag_cancels_transfers(self, fast_handler, config_values): | CODE |
| LOW | tests/slskd/test_handler.py | 516 | def test_cancelled_before_start(self, fast_handler, config_values): | CODE |
| LOW | tests/slskd/test_handler.py | 541 | def test_unconfigured_client_errors(self, fast_handler, config_values): | CODE |
| LOW | tests/slskd/test_handler.py | 552 | def test_enqueue_failure_errors(self, fast_handler, config_values): | CODE |
| LOW | tests/slskd/test_handler.py | 565 | def test_transfer_vanishing_errors_after_grace(self, fast_handler, config_values, monkeypatch): | CODE |
| LOW | tests/slskd/test_handler.py | 582 | def test_a_file_vanishing_from_a_multi_file_release_cancels_the_others( | CODE |
| LOW | tests/slskd/test_handler.py | 602 | def test_queue_timeout_errors(self, fast_handler, config_values, monkeypatch): | CODE |
| LOW | tests/slskd/test_handler.py | 621 | def test_completed_file_missing_errors(self, fast_handler, config_values, tmp_path): | CODE |
| LOW | tests/slskd/test_handler.py | 635 | def test_completed_file_appears_after_wait( | CODE |
| LOW | tests/slskd/test_handler.py | 661 | def test_unsafe_remote_name_errors(self, fast_handler, config_values, tmp_path): | CODE |
| LOW | tests/slskd/test_handler.py | 676 | def test_a_peer_file_name_cannot_reach_files_outside_the_root( | CODE |
| LOW | tests/slskd/test_handler.py | 710 | def test_a_peer_queue_asks_the_orchestrator_not_to_stall_the_download( | CODE |
| LOW | tests/slskd/test_handler.py | 739 | def test_a_long_peer_queue_renews_the_grace_until_the_queue_timeout( | CODE |
| LOW | tests/slskd/test_handler.py | 760 | def test_status_check_errors_are_retried(self, fast_handler, config_values, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_live_slskd.py | 30 | def test_connection_reports_login_state(live_client): | CODE |
| LOW⚡ | tests/slskd/test_live_slskd.py | 39 | def test_bad_api_key_is_rejected(live_client): | CODE |
| LOW⚡ | tests/slskd/test_live_slskd.py | 45 | def test_download_directory_is_reported(live_client): | CODE |
| LOW | tests/slskd/test_live_slskd.py | 61 | def test_missing_transfer_is_none(live_client): | CODE |
| LOW | tests/slskd/test_live_slskd.py | 69 | def test_network_search_returns_ebooks_when_logged_in(live_client): | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 191 | def test_the_orchestrator_is_told_the_folder_is_the_clients_so_it_copies_not_moves( | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 200 | def test_transfers_are_read_by_id_never_by_the_list(self, handler, cfg, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 207 | def test_a_failure_to_name_a_safe_folder_never_escapes_the_downloads_root( | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 397 | def test_a_client_error_is_not_retried(self, handler, cfg, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 406 | def test_a_connection_error_is_not_retried(self, handler, cfg, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 416 | def test_cancelling_during_the_wait_stops_without_a_second_try( | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 664 | def test_the_files_asked_for_are_complete(self, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 669 | def test_a_file_of_the_wrong_size_is_not_complete(self, tmp_path): | CODE |
| LOW⚡ | tests/slskd/test_handler_isolated.py | 675 | def test_names_do_not_matter_because_slskd_may_rename_a_duplicate(self, tmp_path): | CODE |
| 4367 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | wireguard.sh | 250 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 252 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 525 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 528 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 638 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 640 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 848 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | wireguard.sh | 850 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/slskd/test_handler.py | 241 | # ── local path resolution ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_handler.py | 324 | # ── snapshot aggregation ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_handler.py | 33 | # ── helpers ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_handler.py | 187 | # ── spec parsing ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_handler.py | 397 | # ── download lifecycle ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_handler.py | 783 | # ── post-processing cleanup ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_source.py | 77 | # ── path helpers ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_source.py | 168 | # ── build_releases ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_source.py | 353 | # ── query planning ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_source.py | 25 | # ── fixtures / helpers ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_source.py | 124 | # ── iter_peer_files ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_source.py | 281 | # ── ranking ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_source.py | 314 | # ── supported formats ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_source.py | 375 | # ── SlskdSource ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_source.py | 563 | # ── fork additions: containers, merged variants, strict-match signals ─────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_api.py | 68 | # ── URL construction / auth ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_api.py | 133 | # ── test_connection ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_api.py | 179 | # ── options ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_api.py | 195 | # ── searches ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_api.py | 355 | # ── transfers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/slskd/test_api.py | 435 | # ── helpers ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_api.py | 20 | # ── helpers ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/slskd/test_api.py | 464 | # ── batch downloads, batches by id, events (fork additions) ───────────────────── | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 31 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 33 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 78 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 80 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 123 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 125 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 152 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 154 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 206 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 208 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 271 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 273 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 313 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 315 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 349 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 351 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 387 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 389 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 470 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_integration_failures.py | 472 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 172 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 174 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 411 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 413 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 500 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 502 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 574 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 576 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/prowlarr/test_failure_scenarios.py | 677 | # ============================================================================= | COMMENT |
| 173 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/slskd/conftest.py | 0 | newznab test configuration. stubs out optional heavy dependencies (flask_socketio) that are not available in lightweight | STRING |
| HIGH | tests/jackett/conftest.py | 0 | newznab test configuration. stubs out optional heavy dependencies (flask_socketio) that are not available in lightweight | STRING |
| HIGH | tests/newznab/conftest.py | 0 | newznab test configuration. stubs out optional heavy dependencies (flask_socketio) that are not available in lightweight | STRING |
| HIGH | tests/audiobookbay/test_handler.py | 0 | records progress and status updates during download. | STRING |
| HIGH | tests/prowlarr/test_handler.py | 0 | records progress and status updates during download. | STRING |
| HIGH | tests/prowlarr/test_failure_scenarios.py | 0 | records progress and status updates during download. | STRING |
| HIGH | tests/prowlarr/test_integration_handler.py | 0 | records progress and status updates during download. | STRING |
| HIGH | tests/prowlarr/test_deluge_client.py | 0 | create a config.get function that returns values from a dict. | STRING |
| HIGH | tests/prowlarr/test_rtorrent_client.py | 0 | create a config.get function that returns values from a dict. | STRING |
| HIGH | tests/prowlarr/test_transmission_client.py | 0 | create a config.get function that returns values from a dict. | STRING |
| HIGH | tests/prowlarr/test_client_settings_ssl_verify.py | 0 | create a config.get function that returns values from a dict. | STRING |
| HIGH | tests/prowlarr/test_qbittorrent_settings.py | 0 | create a config.get function that returns values from a dict. | STRING |
| HIGH | tests/prowlarr/test_rtorrent_client.py | 0 | test is_configured returns true when properly configured. | STRING |
| HIGH | tests/prowlarr/test_transmission_client.py | 0 | test is_configured returns true when properly configured. | STRING |
| HIGH | tests/prowlarr/test_sabnzbd_client.py | 0 | test is_configured returns true when properly configured. | STRING |
| HIGH | tests/prowlarr/test_qbittorrent_client.py | 0 | test is_configured returns true when properly configured. | STRING |
| HIGH | tests/prowlarr/test_nzbget_client.py | 0 | test is_configured returns true when properly configured. | STRING |
| HIGH | tests/prowlarr/test_rtorrent_client.py | 0 | test is_configured returns false when different client selected. | STRING |
| HIGH | tests/prowlarr/test_transmission_client.py | 0 | test is_configured returns false when different client selected. | STRING |
| HIGH | tests/prowlarr/test_sabnzbd_client.py | 0 | test is_configured returns false when different client selected. | STRING |
| HIGH | tests/prowlarr/test_qbittorrent_client.py | 0 | test is_configured returns false when different client selected. | STRING |
| HIGH | tests/prowlarr/test_nzbget_client.py | 0 | test is_configured returns false when different client selected. | STRING |
| HIGH | tests/core/test_download_api_guardrails.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_health_endpoint.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_request_routes_api.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_config_api.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_onboarding_routes.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_activity_terminal_snapshots.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_auth_api.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_cover_proxy_api.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_activity_routes_api.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_settings_routes.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_provider_account_access.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_notifications_settings_api.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_api_key_env.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/core/test_releases_api_direct_provider.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/e2e/test_auth_endpoints.py | 0 | import `shelfmark.main` with background thread startup disabled. | STRING |
| HIGH | tests/download/test_http_challenge_503.py | 0 | minimal stand-in for requests.response covering what html_get_page touches. | STRING |
| HIGH | tests/download/test_ddg_check_probe_handoff.py | 0 | minimal stand-in for requests.response covering what html_get_page touches. | STRING |
| HIGH | tests/download/test_http_cookie_challenge.py | 0 | minimal stand-in for requests.response covering what html_get_page touches. | STRING |
| HIGH | shelfmark/bypass/internal_bypasser.py | 0 | return a positive integer config value or the provided default. | STRING |
| HIGH | shelfmark/release_sources/audiobookbay/source.py | 0 | return a positive integer config value or the provided default. | STRING |
| HIGH | shelfmark/release_sources/libgen/source.py | 0 | return a positive integer config value or the provided default. | STRING |
| HIGH | shelfmark/release_sources/webshare/source.py | 0 | return a positive integer config value or the provided default. | STRING |
| HIGH | shelfmark/download/clients/realdebrid.py | 0 | return the local directory containing downloaded files. | STRING |
| HIGH | shelfmark/download/clients/debridlink.py | 0 | return the local directory containing downloaded files. | STRING |
| HIGH | shelfmark/download/clients/alldebrid.py | 0 | return the local directory containing downloaded files. | STRING |
| HIGH | shelfmark/download/clients/rtorrent.py | 0 | add torrent by url (magnet or .torrent). args: url: magnet link or .torrent url name: display name for the torrent categ | STRING |
| HIGH | shelfmark/download/clients/transmission.py | 0 | add torrent by url (magnet or .torrent). args: url: magnet link or .torrent url name: display name for the torrent categ | STRING |
| HIGH | shelfmark/download/clients/qbittorrent.py | 0 | add torrent by url (magnet or .torrent). args: url: magnet link or .torrent url name: display name for the torrent categ | STRING |
| HIGH | shelfmark/download/clients/rtorrent.py | 0 | get torrent status by hash. args: download_id: torrent info_hash returns: current download status. | STRING |
| HIGH | shelfmark/download/clients/transmission.py | 0 | get torrent status by hash. args: download_id: torrent info_hash returns: current download status. | STRING |
| HIGH | shelfmark/download/clients/qbittorrent.py | 0 | get torrent status by hash. args: download_id: torrent info_hash returns: current download status. | STRING |
| HIGH | shelfmark/metadata_providers/moly.py | 0 | return a normalized isbn-10/13 (digits, with optional x check digit), else none. | STRING |
| HIGH | shelfmark/metadata_providers/databazeknih.py | 0 | return a normalized isbn-10/13 (digits, with optional x check digit), else none. | STRING |
| HIGH | shelfmark/metadata_providers/dnb.py | 0 | return a normalized isbn-10/13 (digits, with optional x check digit), else none. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/slskd/test_handler_isolated.py | 10 | CODE | |
| LOW | tests/slskd/test_settings.py | 130 | CODE | |
| LOW | tests/audiobookbay/test_scraper_contract.py | 15 | CODE | |
| LOW | tests/prowlarr/test_blackhole_client.py | 3 | CODE | |
| LOW | tests/core/test_download_api_guardrails.py | 3 | CODE | |
| LOW | tests/core/test_library_provider_audiobookshelf.py | 3 | CODE | |
| LOW | tests/core/conftest.py | 3 | CODE | |
| LOW | tests/core/test_library_provider_calibre.py | 3 | CODE | |
| LOW | tests/core/test_stats.py | 3 | CODE | |
| LOW | tests/core/test_release_search.py | 3 | CODE | |
| LOW | tests/core/test_health_endpoint.py | 3 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3 | CODE | |
| LOW | tests/core/test_viewer_redaction.py | 3 | CODE | |
| LOW | tests/core/test_config_api.py | 3 | CODE | |
| LOW | tests/core/test_custom_script_argv.py | 3 | CODE | |
| LOW | tests/core/test_onboarding_routes.py | 3 | CODE | |
| LOW | tests/core/test_notifications_user_routes.py | 3 | CODE | |
| LOW | tests/core/test_activity_terminal_snapshots.py | 3 | CODE | |
| LOW | tests/core/test_socketio_origins.py | 3 | CODE | |
| LOW | tests/core/test_settings_reload.py | 3 | CODE | |
| LOW | tests/core/test_metadata_search_library.py | 3 | CODE | |
| LOW | tests/core/test_auth_api.py | 3 | CODE | |
| LOW | tests/core/test_config_user_overrides.py | 3 | CODE | |
| LOW | tests/core/test_config_user_overrides.py | 14 | CODE | |
| LOW | tests/core/test_config_user_overrides.py | 117 | CODE | |
| LOW | tests/core/test_config_user_overrides.py | 180 | CODE | |
| LOW | tests/core/test_config_user_overrides.py | 257 | CODE | |
| LOW | tests/core/test_onboarding.py | 1 | CODE | |
| LOW | tests/core/test_download_history_service.py | 3 | CODE | |
| LOW | tests/core/test_release_routes_policy.py | 10 | CODE | |
| LOW | tests/core/test_builtin_admin_sync.py | 3 | CODE | |
| LOW | tests/core/test_auto_download.py | 992 | CODE | |
| LOW | tests/core/test_library_index.py | 3 | CODE | |
| LOW | tests/core/test_cover_proxy_api.py | 3 | CODE | |
| LOW | tests/core/test_existence_check.py | 8 | CODE | |
| LOW | tests/core/test_activity_routes_api.py | 3 | CODE | |
| LOW | tests/core/test_settings_routes.py | 3 | CODE | |
| LOW | tests/core/fakes.py | 3 | CODE | |
| LOW | tests/core/test_debug_routes_admin.py | 3 | CODE | |
| LOW | tests/core/test_provider_account_access.py | 3 | CODE | |
| LOW | tests/core/test_releases_api_budget.py | 10 | CODE | |
| LOW | tests/core/test_releases_api_title_override.py | 10 | CODE | |
| LOW | tests/core/test_release_inspect_routes.py | 3 | CODE | |
| LOW | tests/core/test_notifications_settings_api.py | 3 | CODE | |
| LOW | tests/core/test_startup_reconcile_guard.py | 3 | CODE | |
| LOW | tests/core/test_api_key_env.py | 3 | CODE | |
| LOW | tests/core/test_activity_view_state_service.py | 3 | CODE | |
| LOW | tests/core/test_startup_reconcile.py | 7 | CODE | |
| LOW | tests/core/test_releases_api_direct_provider.py | 3 | CODE | |
| LOW | tests/config/test_mirror_settings_migration.py | 5 | CODE | |
| LOW | tests/config/test_mirror_settings_migration.py | 117 | CODE | |
| LOW | tests/config/test_tor_script_rules.py | 1 | CODE | |
| LOW | tests/config/test_dns_settings_live_apply.py | 2 | CODE | |
| LOW | tests/config/test_hardcover_sync_settings.py | 3 | CODE | |
| LOW | tests/config/test_users_settings.py | 3 | CODE | |
| LOW | tests/config/test_docker_volumes.py | 3 | CODE | |
| LOW | tests/config/test_mirror_settings_live_apply.py | 3 | CODE | |
| LOW | tests/config/test_mirror_settings_live_apply.py | 32 | CODE | |
| LOW | tests/config/test_download_settings.py | 186 | CODE | |
| LOW | tests/config/test_download_settings.py | 346 | CODE | |
| 190 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/slskd/test_live_slskd.py | 25 | except Exception as e: # pragma: no cover - environment dependent | CODE |
| LOW⚡ | tests/prowlarr/test_integration_failures.py | 91 | except Exception: | CODE |
| LOW⚡ | tests/prowlarr/test_integration_failures.py | 104 | except Exception: | CODE |
| LOW⚡ | tests/prowlarr/test_integration_failures.py | 118 | except Exception: | CODE |
| LOW⚡ | tests/prowlarr/test_integration_failures.py | 264 | except Exception: | CODE |
| LOW | tests/prowlarr/test_integration_failures.py | 240 | except Exception as e: | CODE |
| LOW⚡ | tests/prowlarr/test_integration_clients.py | 190 | except Exception: | CODE |
| LOW⚡ | tests/prowlarr/test_integration_clients.py | 207 | except Exception: | CODE |
| LOW⚡ | tests/prowlarr/test_integration_clients.py | 221 | except Exception: | CODE |
| LOW | tests/prowlarr/test_integration_clients.py | 236 | except Exception: | CODE |
| LOW | tests/prowlarr/test_integration_clients.py | 252 | except Exception: | CODE |
| LOW | tests/prowlarr/test_integration_clients.py | 267 | except Exception: | CODE |
| LOW | tests/prowlarr/test_integration_handler.py | 49 | except Exception: | CODE |
| LOW | tests/prowlarr/test_cache.py | 112 | except Exception as e: | CODE |
| MEDIUM | tests/prowlarr/test_cache.py | 105 | def cache_operations(): | CODE |
| MEDIUM | docs/dev/release-sources-plugin-guide.md | 390 | def download(self, task, cancel_flag, progress_callback, status_callback): | CODE |
| MEDIUM | docs/dev/release-sources-plugin-guide.md | 974 | def search(self, book, plan, *, expand_search=False, content_type="ebook") -> Li | CODE |
| MEDIUM | docs/dev/release-sources-plugin-guide.md | 995 | def download(self, task, cancel_flag, progress_callback, status_callback): | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 276 | except Exception: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 431 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 682 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 985 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1000 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1129 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1236 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1424 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1428 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1502 | except Exception: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1510 | except Exception as e: | CODE |
| LOW | docs/dev/release-sources-plugin-guide.md | 1563 | except Exception: | CODE |
| LOW | docs/dev/plugin-settings.md | 230 | except Exception as e: | CODE |
| LOW | docs/dev/plugin-settings.md | 465 | except Exception as e: | CODE |
| LOW | docs/dev/plugin-settings.md | 583 | except Exception as e: | CODE |
| LOW | scripts/bypasser_permission_lab.sh | 102 | except Exception as e: | CODE |
| LOW | scripts/bypasser_permission_lab.sh | 113 | except Exception as e: | CODE |
| LOW | scripts/generate_env_docs.py | 101 | except Exception: | CODE |
| LOW | scripts/test_clients.py | 175 | except Exception as e: | CODE |
| LOW | scripts/test_clients.py | 202 | except Exception as e: | CODE |
| LOW | scripts/test_clients.py | 240 | except Exception as e: | CODE |
| LOW | scripts/test_clients.py | 304 | except Exception as e: | CODE |
| LOW | scripts/test_clients.py | 362 | except Exception as e: | CODE |
| LOW | scripts/test_clients.py | 464 | except Exception as e: | CODE |
| LOW | scripts/test_clients.py | 556 | except Exception as e: | CODE |
| MEDIUM⚡ | skills/shelfmark/download_books.py | 300 | print(f"Error: Invalid JSON in {source}: {e}") | CODE |
| MEDIUM⚡ | skills/shelfmark/download_books.py | 304 | print(f"Error: JSON in {source} must be an array of book objects") | CODE |
| MEDIUM⚡ | skills/shelfmark/download_books.py | 311 | print(f"Error: Each book object must have 'title' and 'author' keys: {item}") | CODE |
| MEDIUM⚡ | skills/shelfmark/download_books.py | 348 | print(f"Error: File not found: {args.file}") | CODE |
| MEDIUM⚡ | skills/shelfmark/download_books.py | 351 | print(f"Error reading file: {e}") | CODE |
| MEDIUM⚡ | skills/shelfmark/download_books.py | 358 | print("Error: No books specified. Use positional JSON args or --file <path>") | CODE |
| LOW | shelfmark/core/hardcover_sync.py | 229 | except Exception as exc: # noqa: BLE001 - network/provider errors shouldn't abort the sync | CODE |
| LOW | shelfmark/core/hardcover_sync.py | 332 | except Exception: | CODE |
| LOW | shelfmark/core/admin_routes.py | 457 | except Exception: | CODE |
| LOW | shelfmark/core/onboarding.py | 64 | except Exception: | CODE |
| LOW | shelfmark/core/onboarding.py | 744 | except Exception as e: | CODE |
| LOW | shelfmark/core/oidc_routes.py | 247 | except Exception: | CODE |
| LOW | shelfmark/core/oidc_routes.py | 313 | except Exception: | CODE |
| LOW | shelfmark/core/oidc_routes.py | 367 | except Exception: | CODE |
| LOW | shelfmark/core/auto_download.py | 399 | except Exception: # noqa: BLE001 - a settings problem must not turn the filter off | CODE |
| LOW | shelfmark/core/auto_download.py | 516 | except Exception as exc: # noqa: BLE001 - a lookup failure only leaves it unmatched | CODE |
| LOW | shelfmark/core/auto_download.py | 601 | except Exception as exc: # noqa: BLE001 — inspection is advisory; never block a download | CODE |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/slskd/test_handler.py | 101 | CODE | |
| LOW | tests/prowlarr/test_integration_clients.py | 174 | CODE | |
| LOW | tests/core/test_download_api_guardrails.py | 663 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 70 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 133 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 164 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 194 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 250 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 322 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 389 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 436 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 481 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 549 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 826 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 870 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 915 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 958 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1311 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1393 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1448 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1504 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1567 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1630 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1735 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1786 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 1854 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 2092 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 2687 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 2739 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 2882 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 2938 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3093 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3124 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3152 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3180 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3211 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3239 | CODE | |
| LOW | tests/core/test_request_routes_api.py | 3287 | CODE | |
| LOW | tests/core/test_processing_integration.py | 1016 | CODE | |
| LOW | tests/config/test_security.py | 43 | CODE | |
| LOW | tests/config/test_security.py | 83 | CODE | |
| LOW | tests/config/test_security.py | 121 | CODE | |
| LOW | tests/config/test_security.py | 142 | CODE | |
| LOW | tests/config/test_security.py | 176 | CODE | |
| LOW | tests/config/test_security.py | 210 | CODE | |
| LOW | tests/config/test_security.py | 234 | CODE | |
| LOW | tests/config/test_security.py | 282 | CODE | |
| LOW | tests/e2e/test_download_flow.py | 103 | CODE | |
| LOW | tests/e2e/test_auth_flow.py | 88 | CODE | |
| LOW | tests/e2e/test_prowlarr_flow.py | 170 | CODE | |
| LOW | tests/e2e/platform/suite/conftest.py | 92 | CODE | |
| LOW | scripts/test_clients.py | 180 | CODE | |
| LOW | scripts/test_clients.py | 367 | CODE | |
| LOW | skills/shelfmark/download_books.py | 47 | CODE | |
| LOW | skills/shelfmark/download_books.py | 169 | CODE | |
| LOW | skills/shelfmark/download_books.py | 295 | CODE | |
| LOW | shelfmark/core/queue.py | 95 | CODE | |
| LOW | shelfmark/core/queue.py | 224 | CODE | |
| LOW | shelfmark/core/queue.py | 299 | CODE | |
| LOW | shelfmark/core/queue.py | 370 | CODE | |
| 63 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/slskd/test_api.py | 238 | except StopIteration: | CODE |
| HIGH | tests/prowlarr/test_integration_failures.py | 104 | except Exception: | CODE |
| HIGH | tests/prowlarr/test_integration_failures.py | 118 | except Exception: | CODE |
| HIGH | tests/prowlarr/test_integration_failures.py | 264 | except Exception: | CODE |
| HIGH | tests/prowlarr/test_integration_clients.py | 221 | except Exception: | CODE |
| HIGH | tests/prowlarr/test_integration_clients.py | 236 | except Exception: | CODE |
| HIGH | tests/prowlarr/test_integration_clients.py | 267 | except Exception: | CODE |
| HIGH | tests/config/test_tor_script_rules.py | 211 | except subprocess.TimeoutExpired: | CODE |
| HIGH | tests/download/test_orchestrator_lifecycle.py | 195 | except _StopCoordinator: | CODE |
| HIGH | tests/e2e/platform/suite/conftest.py | 59 | except requests.RequestException: | CODE |
| HIGH | shelfmark/core/settings_registry.py | 1237 | except ImportError: | CODE |
| HIGH | shelfmark/core/settings_registry.py | 1261 | except ImportError: | CODE |
| HIGH | shelfmark/core/settings_registry.py | 1278 | except ImportError: | CODE |
| HIGH | shelfmark/download/fs.py | 478 | except OSError: | CODE |
| HIGH | shelfmark/download/network.py | 580 | except ValueError: | CODE |
| HIGH | shelfmark/download/network.py | 117 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | shelfmark/download/fs.py | 233 | Write data to a file with atomic collision detection. If the destination already exists, retries with counter suffi | STRING |
| HIGH | shelfmark/download/fs.py | 508 | Move a file with collision detection. Uses os.rename() for same-filesystem moves (atomic, triggers inotify events), | STRING |
| HIGH | shelfmark/download/fs.py | 682 | Create a hardlink with atomic collision detection. Args: source_path: Source file to link from dest | STRING |
| HIGH | shelfmark/download/fs.py | 734 | Copy a file with atomic collision detection. Uses a temp file in the destination directory and publishes it via ren | STRING |
| HIGH | shelfmark/download/clients/nzbget.py | 74 | Make a JSON-RPC call to NZBGet. Args: method: RPC method name params: Method parameters | STRING |
| HIGH | shelfmark/download/clients/nzbget.py | 137 | Add NZB by URL. Fetches the NZB content from the URL (e.g., Prowlarr proxy) and sends it base64-encoded | STRING |
| HIGH | shelfmark/download/clients/__init__.py | 302 | Add a download to the client. Args: url: Download URL (magnet link, .torrent URL, or NZB URL) | STRING |
| HIGH | shelfmark/download/clients/rtorrent.py | 164 | Add torrent by URL (magnet or .torrent). Args: url: Magnet link or .torrent URL name: D | STRING |
| HIGH | shelfmark/download/clients/sabnzbd.py | 194 | Make an API call to SABnzbd. Args: mode: API mode (e.g., "version", "addurl", "queue", "history") | STRING |
| HIGH | shelfmark/download/clients/sabnzbd.py | 405 | Add NZB by URL. Args: url: NZB URL (can be Prowlarr proxy URL) name: Display name for t | STRING |
| HIGH | shelfmark/download/clients/transmission.py | 225 | Add torrent by URL (magnet or .torrent). Args: url: Magnet link or .torrent URL name: D | STRING |
| HIGH | shelfmark/download/clients/qbittorrent.py | 488 | Add torrent by URL (magnet or .torrent). Args: url: Magnet link or .torrent URL name: D | STRING |
| HIGH | …fmark/release_sources/direct_download/annas_archive.py | 713 | Search for books matching the query. Args: query: Search term (ISBN, title, author, etc.) filters: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/core/test_requests_service.py | 1746 | "author": "Jane Doe", | CODE |
| LOW | tests/core/test_requests_service.py | 44 | "author": "Jane Doe", | CODE |
| LOW | tests/core/test_requests_service.py | 199 | "author": "Jane Doe", | CODE |
| LOW | tests/core/test_requests_service.py | 960 | "author": "Jane Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 76 | id_token = {"email": "user@example.com"} | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 128 | "name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 134 | assert info["display_name"] == "John Doe" | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 143 | "name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 177 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 192 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 204 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 217 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 235 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 251 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_oidc_auth.py | 272 | "display_name": "John Doe", | CODE |
| LOW⚡ | tests/core/test_user_db.py | 507 | display_name="John Doe", | CODE |
| LOW⚡ | tests/core/test_user_db.py | 512 | assert user["display_name"] == "John Doe" | CODE |
| LOW | tests/core/test_notifications.py | 793 | lambda user_id: {"username": username, "email": "user@example.com"}, | CODE |
| LOW⚡ | tests/core/test_cwa_user_sync.py | 23 | email="admin@example.com", | CODE |
| LOW⚡ | tests/core/test_cwa_user_sync.py | 31 | cwa_email="admin@example.com", | CODE |
| LOW⚡ | tests/core/test_oidc_routes.py | 254 | "name": "John Doe", | CODE |
| LOW | tests/core/test_oidc_routes.py | 279 | "name": "John Doe", | CODE |
| LOW | tests/core/test_oidc_routes.py | 304 | "name": "John Doe", | CODE |
| LOW | tests/core/test_oidc_routes.py | 333 | "email": "admin@example.com", | CODE |
| LOW | tests/config/test_download_settings.py | 217 | assert bound_fields[0]["placeholder"] == "{Author}/{Series/}{Title} ({Year})" | CODE |
| LOW | docs/dev/plugin-settings.md | 202 | {"key": "name", "label": "Name", "type": "text", "placeholder": "Rule name"}, | CODE |
| LOW | shelfmark/core/settings_registry.py | 1072 | result["placeholder"] = field.placeholder | CODE |
| LOW | shelfmark/core/settings_registry.py | 1076 | result["placeholder"] = field.placeholder | CODE |
| LOW | shelfmark/core/settings_registry.py | 1095 | result["placeholder"] = field.placeholder | CODE |
| LOW | shelfmark/config/notifications_settings.py | 327 | "placeholder": "Select events...", | CODE |
| LOW | shelfmark/config/notifications_settings.py | 333 | "placeholder": "e.g. ntfys://ntfy.sh/shelfmark", | CODE |
| LOW | shelfmark/config/notifications_settings.py | 364 | "placeholder": "Select events...", | CODE |
| LOW | shelfmark/config/notifications_settings.py | 370 | "placeholder": "e.g. ntfys://ntfy.sh/username-topic", | CODE |
| LOW | shelfmark/config/security.py | 210 | "placeholder": "https://auth.example.com/.well-known/openid-configuration", | CODE |
| LOW | shelfmark/config/security.py | 220 | "placeholder": "shelfmark", | CODE |
| LOW | shelfmark/config/security.py | 248 | "placeholder": "groups", | CODE |
| LOW | shelfmark/config/security.py | 258 | "placeholder": "shelfmark-admins", | CODE |
| LOW | shelfmark/config/security.py | 286 | "placeholder": "Sign in with OIDC", | CODE |
| LOW⚡ | shelfmark/config/users_settings.py | 171 | "placeholder": "Select source...", | CODE |
| LOW⚡ | shelfmark/config/users_settings.py | 179 | "placeholder": "Select content type...", | CODE |
| LOW⚡ | shelfmark/config/users_settings.py | 188 | "placeholder": "Select mode...", | CODE |
| LOW | shelfmark/config/settings.py | 1368 | placeholder="user@example.com", | CODE |
| LOW | shelfmark/metadata_providers/__init__.py | 141 | "placeholder": getattr(search_field, "placeholder", ""), | CODE |
| LOW⚡ | shelfmark/release_sources/newznab/settings.py | 104 | "placeholder": "NZBGeek", | CODE |
| LOW⚡ | shelfmark/release_sources/newznab/settings.py | 110 | "placeholder": "https://api.nzbgeek.info", | CODE |
| LOW⚡ | shelfmark/release_sources/newznab/settings.py | 116 | "placeholder": "Optional", | CODE |
| LOW | src/frontend/src/components/settings/users/UserCard.tsx | 369 | const emailField = createTextField('email', 'Email', form.email, 'user@example.com'); | CODE |
| LOW | src/frontend/src/components/settings/users/UserCard.tsx | 487 | const emailField = createTextField('email', 'Email', user.email || '', 'user@example.com'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tor.sh | 31 | # Check if EXT_BYPASSER_URL is defined | COMMENT |
| LOW | tor.sh | 304 | # Check if outgoing IP is using Tor | COMMENT |
| LOW | genDebug.sh | 65 | # Check if IPv6 is enabled | COMMENT |
| LOW | genDebug.sh | 132 | # Check if running in Docker | COMMENT |
| LOW | tests/e2e/test_download_flow.py | 346 | # Check if it errored | COMMENT |
| LOW | skills/shelfmark/download_books.py | 123 | # Check if any matching book is already in the download queue | COMMENT |
| LOW | skills/shelfmark/download_books.py | 135 | # Check if the current download matches our search | COMMENT |
| LOW | shelfmark/main.py | 1084 | # Check if user has a valid session | COMMENT |
| LOW | shelfmark/main.py | 2052 | # Check if caching is enabled | COMMENT |
| LOW | shelfmark/main.py | 2484 | # Check if account is locked due to failed login attempts | COMMENT |
| LOW | shelfmark/main.py | 2573 | # Check if user exists and password is correct | COMMENT |
| LOW | shelfmark/main.py | 2577 | # Check if user has admin role (ROLE_ADMIN = 1, bit flag) | COMMENT |
| LOW | shelfmark/main.py | 2674 | # Check if user has a valid session | COMMENT |
| LOW | shelfmark/core/queue.py | 115 | # Check if task was cancelled while in queue | COMMENT |
| LOW | shelfmark/core/admin_routes.py | 242 | # Check if username already exists | COMMENT |
| LOW | shelfmark/core/cache.py | 148 | # Check if metadata caching is enabled | COMMENT |
| LOW | shelfmark/core/utils.py | 386 | # Check if content-type routing is enabled (new or legacy setting) | COMMENT |
| LOW | shelfmark/core/utils.py | 439 | # Check if cover caching is enabled | COMMENT |
| LOW⚡ | shelfmark/core/settings_registry.py | 1213 | # Check if callback accepts current_values parameter | COMMENT |
| LOW | shelfmark/core/settings_registry.py | 507 | # Check if config directory exists and is writable | COMMENT |
| LOW | shelfmark/download/network.py | 761 | # Check if hostname is already an IP address, no need to resolve | COMMENT |
| LOW | shelfmark/download/network.py | 766 | # Check if hostname is a private IP address, and skip DoH if it is | COMMENT |
| LOW | shelfmark/download/network.py | 1420 | # Check if it looks like IP addresses | COMMENT |
| LOW | shelfmark/download/clients/torrent_utils.py | 291 | # Check if response is actually a magnet link (text response) | COMMENT |
| LOW | shelfmark/download/clients/base_handler.py | 1148 | # Check if this download already exists in the client | COMMENT |
| LOW | shelfmark/metadata_providers/__init__.py | 560 | # Check if the provider is enabled | COMMENT |
| LOW | shelfmark/release_sources/audiobookbay/scraper.py | 238 | # Check if we were redirected to the homepage (search was rejected/blocked) | COMMENT |
| LOW | …fmark/release_sources/direct_download/annas_archive.py | 1576 | # Check if we've hit the failure threshold | COMMENT |
| LOW | shelfmark/release_sources/irc/client.py | 307 | # Check if user has an elevated prefix | COMMENT |
| LOW | shelfmark/release_sources/irc/client.py | 340 | # Check if we have a complete line in buffer | COMMENT |
| LOW | shelfmark/release_sources/irc/connection_manager.py | 133 | # Check if we need to join a different channel | COMMENT |
| LOW | shelfmark/release_sources/irc/connection_manager.py | 142 | # Check if another thread is already connecting | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/core/test_request_routes_api.py | 29 | def _set_session(client, *, user_id: str, db_user_id: int | None, is_admin: bool) -> None: | CODE |
| LOW | tests/core/test_config_api.py | 27 | def _set_session(client, *, user_id: str, db_user_id: int, is_admin: bool) -> None: | CODE |
| LOW | tests/core/test_activity_routes_api.py | 35 | def _set_session(client, *, user_id: str, db_user_id: int | None, is_admin: bool) -> None: | CODE |
| LOW | tests/core/test_debug_routes_admin.py | 45 | def _set_session(client, *, user_id: str, is_admin: bool) -> None: | CODE |
| LOW | tests/core/test_notifications_settings_api.py | 32 | def _set_session(client, *, user_id: str, db_user_id: int, is_admin: bool) -> None: | CODE |
| LOW | tests/config/test_security.py | 18 | def _set_config_dir(monkeypatch, config_dir: Path) -> None: | CODE |
| LOW | shelfmark/core/queue.py | 143 | def _update_status(self, book_id: str, status: QueueStatus) -> None: | CODE |
| LOW⚡ | shelfmark/core/queue.py | 198 | def update_status(self, book_id: str, status: QueueStatus) -> None: | CODE |
| LOW⚡ | shelfmark/core/queue.py | 206 | def update_download_path(self, task_id: str, download_path: str) -> None: | CODE |
| LOW⚡ | shelfmark/core/queue.py | 212 | def update_progress(self, task_id: str, progress: float) -> None: | CODE |
| LOW⚡ | shelfmark/core/queue.py | 218 | def update_status_message(self, task_id: str, message: str) -> None: | CODE |
| LOW | shelfmark/core/admin_routes.py | 52 | __all__ = [ | CODE |
| LOW | shelfmark/core/__init__.py | 7 | __all__ = [ | CODE |
| LOW | shelfmark/core/user_db.py | 421 | def update_user(self, user_id: int, **kwargs: object) -> None: | CODE |
| LOW | shelfmark/core/user_db.py | 530 | def set_user_settings(self, user_id: int, settings: dict[str, Any]) -> None: | CODE |
| LOW | shelfmark/download/orchestrator.py | 924 | def update_download_progress(book_id: str, progress: float) -> None: | CODE |
| LOW | shelfmark/download/orchestrator.py | 970 | def update_download_status(book_id: str, status: str, message: str | None = None) -> None: | CODE |
| LOW | shelfmark/download/orchestrator.py | 1124 | def set_activity_grace(book_id: str, seconds: float) -> None: | CODE |
| LOW | shelfmark/download/network.py | 251 | def _set_runtime_dns_state(servers: list[str], doh_server: str) -> None: | CODE |
| LOW | shelfmark/download/network.py | 745 | def _set_cached(self, hostname: str, record_type: str, ips: list[str]) -> None: | CODE |
| LOW | shelfmark/download/clients/torbox.py | 619 | def _set_error(state: _DownloadState, message: str) -> None: | CODE |
| LOW⚡ | shelfmark/download/clients/transmission.py | 86 | def _set_transmission_protocol_if_supported(client: object, protocol: str) -> None: | CODE |
| LOW⚡ | shelfmark/download/clients/settings.py | 98 | def _set_transmission_protocol_if_supported(client: object, protocol: str) -> None: | CODE |
| LOW | shelfmark/download/postprocess/policy.py | 33 | __all__ = [ | CODE |
| LOW | shelfmark/download/postprocess/__init__.py | 13 | __all__ = ["post_process_download"] | CODE |
| LOW | shelfmark/download/postprocess/pipeline.py | 58 | __all__ = [ | CODE |
| LOW⚡ | shelfmark/api/websocket.py | 66 | def set_queue_status_fn(self, fn: Callable) -> None: | CODE |
| LOW⚡ | shelfmark/api/websocket.py | 80 | def _set_sid_room_locked(self, sid: str, room: str | None) -> None: | CODE |
| LOW | shelfmark/release_sources/prowlarr/handler.py | 66 | __all__ = [ | CODE |
| LOW | shelfmark/release_sources/direct_download/__init__.py | 11 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | genDebug.sh | 204 | # Create the zip file directly from LOG_DIR | COMMENT |
| MEDIUM | tests/conftest.py | 20 | # Create the directories that will be used | COMMENT |
| MEDIUM | tests/conftest.py | 118 | # Create a mock config module | COMMENT |
| MEDIUM | tests/prowlarr/test_handler.py | 902 | # Create a test file | COMMENT |
| MEDIUM | tests/prowlarr/test_bencode.py | 166 | # Create a minimal valid v1 torrent structure (has 'pieces' key) | COMMENT |
| MEDIUM | tests/prowlarr/test_remote_path_mappings.py | 710 | # Create a local file that represents the mounted path | COMMENT |
| MEDIUM | tests/prowlarr/test_remote_path_mappings.py | 790 | # Create a local file that represents the mounted path | COMMENT |
| MEDIUM⚡ | tests/core/test_oidc_auth.py | 265 | # Create a local user with the same username | COMMENT |
| MEDIUM⚡ | tests/core/test_naming.py | 625 | # Create the directory structure | COMMENT |
| MEDIUM | shelfmark/download/orchestrator.py | 323 | # Create a source-agnostic download task from release data | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.test-clients.yml | 1 | # Test stack for download client development | COMMENT |
| LOW | wireguard.sh | 1 | #!/bin/bash | COMMENT |
| LOW | wireguard.sh | 21 | # lookups use a defined resolver instead of the container's | COMMENT |
| LOW | wireguard.sh | 41 | # loopback, the tunnel device and the LAN allowlist. Set true | COMMENT |
| LOW | wireguard.sh | 221 | PATH="${SYSCTL_SHIM_DIR}:${PATH}" wg-quick "$@" | COMMENT |
| LOW | wireguard.sh | 241 | COMMENT | |
| LOW | wireguard.sh | 261 | # the config file: after wg-quick is up these are always concrete resolved | COMMENT |
| LOW | wireguard.sh | 301 | fi | COMMENT |
| LOW | wireguard.sh | 321 | # re-runnable after a bounce. | COMMENT |
| LOW | wireguard.sh | 421 | # closed at all times: during the (app-traffic-free) build window, and if any | COMMENT |
| LOW | wireguard.sh | 521 | ip6tables -A OUTPUT -j DROP | COMMENT |
| LOW | wireguard.sh | 541 | DNS_TO_USE="$(echo "$DNS_TO_USE" | tr ',' ' ' | xargs || true)" | COMMENT |
| LOW | wireguard.sh | 581 | echo "[*] Enforcing resolver(s): $DNS_TO_USE" | COMMENT |
| LOW | wireguard.sh | 701 | COMMENT | |
| LOW | wireguard.sh | 721 | # | COMMENT |
| LOW | compose/docker-compose.wireguard.yml | 1 | # Routes all traffic through a WireGuard tunnel - requires root startup. | COMMENT |
| LOW | tests/e2e/platform/docker-compose.e2e.yml | 1 | # Shelfmark e2e Docker testing platform | COMMENT |
| LOW | .github/dependabot.yml | 61 | # pre-release heuristic to catch PEP 440 tags like 3.15.0a2 / 3.5.0b3, but | COMMENT |
| LOW | shelfmark/main.py | 3421 | COMMENT | |
| LOW | shelfmark/core/utils.py | 121 | def is_audiobook(content_type: str | None) -> bool: | COMMENT |
| LOW | shelfmark/config/env.py | 241 | # Debug: keep DDoS-Guard's __ddg8_/__ddg9_/__ddg10_ in the clearance store instead of | COMMENT |
| LOW | shelfmark/bypass/internal_bypasser.py | 61 | _BYPASS_EMOJI_MATCH_MIN = 3 | COMMENT |
| LOW | shelfmark/bypass/internal_bypasser.py | 641 | # works, so a separate method ahead of it could only ever repeat the half that had | COMMENT |
| LOW | shelfmark/bypass/cookie_store.py | 41 | # Anna's Archive's own pass for its ?check=1 hop. Without it the hop 302s back | COMMENT |
| LOW | shelfmark/download/http.py | 701 | COMMENT | |
| LOW | shelfmark/download/network.py | 281 | COMMENT | |
| LOW | shelfmark/download/clients/base_handler.py | 61 | # A torrent the client has queued is waiting for a free slot, not stalled. Its status never | COMMENT |
| LOW | …fmark/release_sources/direct_download/annas_archive.py | 661 | # ahead of the challenge branch: AA's own pages carry the protection's | COMMENT |
| LOW | src/frontend/src/services/api.ts | 161 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/prowlarr/test_rtorrent_client.py | 38 | client._rpc.d.custom1.set.assert_called_once_with("ABC123", "imported") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/core/test_auto_download.py | 1534 | "Jack Reacher 29 In Too Deep + Short Stories, Killing Floor better quality || Complete to date 2024", | CODE |
| HIGH | tests/config/test_tor_script_rules.py | 304 | calls=$(cat "$FAKE_CURL_CALLS" 2>/dev/null || echo 0) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/prowlarr/test_qbittorrent_client.py | 20 | CODE | |
| LOW | tests/core/test_activity_routes_api.py | 50 | CODE | |
| LOW | shelfmark/core/external_user_linking.py | 230 | CODE | |
| LOW | shelfmark/core/release_search.py | 28 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | shelfmark/release_sources/irc/parser.py | 44 | # This comprehensive list is used to identify file extensions in results. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.test-clients.yml | 4 | # Usage: | COMMENT |