🌐自动更新域名解析到本机IP,支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...
This report summarizes scanner evidence for NewFuture/DDNS, a Python project with 4,695 GitHub stars. SynthScan examined 71,766 lines of code across 234 source files, recording 1384 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 25.2 (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.
Can maintainers explain intent, assumptions, and trade-offs? 1143 finding(s).
Are imports declared and package/API names verified? 78 finding(s).
Are wrappers, guards, and repeated structures necessary? 1191 finding(s).
Which changes need focused human review? 1384 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 1384 distinct pattern matches across 19 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 | tools/check.py | 199 | def _literal_provider_mapping(path: Path) -> dict[str, str]: | CODE |
| LOW | tools/check.py | 272 | def _strip_typescript_comments(content: str) -> str: | CODE |
| LOW | tools/check.py | 313 | def _provider_docs_in_config_section(config: str, locale: str, section: str) -> set[str]: | CODE |
| LOW | tools/check.py | 383 | def _provider_doc_file_errors(repo: Path, docs: set[str]) -> list[str]: | CODE |
| LOW | tools/check.py | 394 | def _provider_navigation_errors(repo: Path, docs: set[str]) -> list[str]: | CODE |
| LOW | tools/check.py | 430 | def _provider_overview_errors(repo: Path, ids: set[str]) -> list[str]: | CODE |
| LOW | tools/check.py | 501 | def _provider_documentation_errors(repo: Path, ids: set[str], docs: set[str]) -> list[str]: | CODE |
| LOW⚡ | tools/tests/test_check.py | 27 | def test_provider_documentation_selects_provider_and_docs(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 30 | def test_unknown_path_selects_full_conservative_set(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 35 | def test_dot_directories_are_preserved_for_agent_lane(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 41 | def test_nearest_agent_instructions_select_agent_lane(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 45 | def test_copilot_instructions_select_only_agent_lane(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 50 | def test_executable_docs_are_build_changes(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 54 | def test_run_entrypoint_selects_core_and_build_release(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 57 | def test_schema_changes_also_validate_docs(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 60 | def test_generated_docs_inputs_select_docs(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 64 | def test_provider_contract_inputs_select_provider(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 69 | def test_explicit_base_precedes_github_and_default_refs(self) -> None: | CODE |
| LOW | tools/tests/test_check.py | 80 | def test_changed_paths_collects_every_git_source(self) -> None: | CODE |
| LOW | tools/tests/test_check.py | 115 | def test_changed_paths_fails_without_base(self) -> None: | CODE |
| LOW | tools/tests/test_check.py | 123 | def test_format_arguments_respect_git_ignores_and_scope(self) -> None: | CODE |
| LOW⚡ | tools/tests/test_check.py | 211 | def test_provider_parity_accepts_consistent_surfaces(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 214 | def test_provider_parity_reports_schema_drift(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 221 | def test_provider_navigation_requires_nav_and_sidebar(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 374 | def test_portable_contracts_require_nearest_instruction_files(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 382 | def test_current_portable_contracts_pass(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 385 | def test_agent_contract_workflow_watches_all_workflows(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 389 | def test_portable_skill_must_not_preapprove_tools(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 417 | def test_unknown_changed_path_uses_nonduplicative_full_commands( | STRING |
| LOW⚡ | tools/tests/test_check.py | 423 | def test_format_check_only_targets_python_files(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 428 | def test_docs_lane_installs_before_building(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 438 | def test_run_command_uses_resolved_executable(self, mock_which, mock_run) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 444 | def test_merge_gate_rejects_required_skip_and_cancellation(self) -> None: | STRING |
| LOW⚡ | tools/tests/test_check.py | 452 | def test_merge_gate_allows_only_pr_policy_skips(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 239 | def test_provider_navigation_ignores_commented_links(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 256 | def test_provider_navigation_rejects_unknown_links(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 270 | def test_provider_parity_rejects_empty_metadata(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 275 | def test_runtime_provider_class_requires_canonical_id(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 287 | def test_llms_provider_index_rejects_duplicates_and_comments(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 302 | def test_llms_provider_count_and_inventory_match_metadata(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 321 | def test_missing_temporary_surface_raises_check_error(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 326 | def test_provider_overview_requires_table_row(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 354 | def test_provider_overview_rejects_unknown_table_row(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 360 | def test_portable_profiles_must_reference_skills(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 463 | def test_provider_repositories_are_removed_after_test_run(self) -> None: | STRING |
| LOW | tools/tests/test_check.py | 492 | def test_reporting_writes_issue_before_failing_contract(self, _mock_drift, _mock_contracts) -> None: | STRING |
| LOW | tools/tests/test_check.py | 504 | def test_contract_only_report_omits_structure_actions(self) -> None: | STRING |
| LOW | web/dashboard.js | 309 | function isHealthyProductionConfiguration() { | CODE |
| LOW | tests/test_provider_he.py | 22 | def test_init_with_basic_config(self): | CODE |
| LOW⚡ | tests/test_provider_he.py | 41 | def test_validate_success_with_token_only(self): | CODE |
| LOW⚡ | tests/test_provider_he.py | 47 | def test_validate_fails_with_id(self): | CODE |
| LOW⚡ | tests/test_provider_he.py | 53 | def test_validate_fails_without_token(self): | CODE |
| LOW⚡ | tests/test_provider_he.py | 60 | def test_set_record_success_good_response(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 84 | def test_set_record_success_nochg_response(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 126 | def test_set_record_with_all_parameters(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 147 | def test_set_record_empty_response_error(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 161 | def test_set_record_none_response_error(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 179 | def test_set_record_http_exception(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 197 | def test_set_record_error_response(self, mock_http): | CODE |
| LOW | tests/test_provider_he.py | 211 | def test_set_record_abuse_response(self, mock_http): | CODE |
| 966 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_provider_he.py | 0 | test set_record method with all optional parameters | STRING |
| HIGH | tests/test_provider_debug.py | 0 | test set_record method with all optional parameters | STRING |
| HIGH | tests/test_provider_noip.py | 0 | test set_record method with all optional parameters | STRING |
| HIGH | tests/test_provider_dnspod.py | 0 | test _query_zone_id method with successful response | STRING |
| HIGH | tests/test_provider_dnscom.py | 0 | test _query_zone_id method with successful response | STRING |
| HIGH | tests/test_provider_cloudflare.py | 0 | test _query_zone_id method with successful response | STRING |
| HIGH | tests/test_provider_huaweidns.py | 0 | test _query_zone_id method with successful response | STRING |
| HIGH | tests/test_provider_dnspod.py | 0 | test _query_zone_id method when domain is not found | STRING |
| HIGH | tests/test_provider_dnscom.py | 0 | test _query_zone_id method when domain is not found | STRING |
| HIGH | tests/test_provider_cloudflare.py | 0 | test _query_zone_id method when domain is not found | STRING |
| HIGH | tests/test_provider_huaweidns.py | 0 | test _query_zone_id method when domain is not found | STRING |
| HIGH | tests/test_provider_dnspod.py | 0 | test _create_record method with successful creation | STRING |
| HIGH | tests/test_provider_dnscom.py | 0 | test _create_record method with successful creation | STRING |
| HIGH | tests/test_provider_cloudflare.py | 0 | test _create_record method with successful creation | STRING |
| HIGH | tests/test_provider_cloudns.py | 0 | test _create_record method with successful creation | STRING |
| HIGH | tests/test_provider_alidns.py | 0 | test _create_record method with successful creation | STRING |
| HIGH | tests/test_provider_huaweidns.py | 0 | test _create_record method with successful creation | STRING |
| HIGH | tests/test_provider_dnspod.py | 0 | test that extra parameters take priority over old_record values | STRING |
| HIGH | tests/test_provider_namesilo.py | 0 | test that extra parameters take priority over old_record values | STRING |
| HIGH | tests/test_provider_tencentcloud.py | 0 | test that extra parameters take priority over old_record values | STRING |
| HIGH | tests/test_provider_dnscom.py | 0 | test that extra parameters take priority over old_record values | STRING |
| HIGH | tests/test_provider_alidns.py | 0 | test that extra parameters take priority over old_record values | STRING |
| HIGH | tests/test_provider_huaweidns.py | 0 | test that extra parameters take priority over old_record values | STRING |
| HIGH | tests/test_provider_dnspod.py | 0 | test complete workflow for updating an existing record | STRING |
| HIGH | tests/test_provider_dnscom.py | 0 | test complete workflow for updating an existing record | STRING |
| HIGH | tests/test_provider_cloudflare.py | 0 | test complete workflow for updating an existing record | STRING |
| HIGH | tests/test_provider_cloudns.py | 0 | test complete workflow for updating an existing record | STRING |
| HIGH | tests/test_provider_alidns.py | 0 | test complete workflow for updating an existing record | STRING |
| HIGH | tests/test_provider_huaweidns.py | 0 | test complete workflow for updating an existing record | STRING |
| HIGH | tests/test_scheduler_systemd.py | 0 | test real scheduler methods that don't modify system state | STRING |
| HIGH | tests/test_scheduler_schtasks.py | 0 | test real scheduler methods that don't modify system state | STRING |
| HIGH | tests/test_scheduler_launchd.py | 0 | test real scheduler methods that don't modify system state | STRING |
| HIGH | tests/test_scheduler_cron.py | 0 | test real scheduler methods that don't modify system state | STRING |
| HIGH | tests/test_provider_dnscom.py | 0 | test _query_record when no matching record is found | STRING |
| HIGH | tests/test_provider_cloudflare.py | 0 | test _query_record when no matching record is found | STRING |
| HIGH | tests/test_provider_alidns.py | 0 | test _query_record when no matching record is found | STRING |
| HIGH | tests/test_provider_huaweidns.py | 0 | test _query_record when no matching record is found | STRING |
| HIGH | tests/test_provider_cloudns.py | 0 | test _query_record when no matching record is found | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_config_cli_task.py | 73 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 100 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 129 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 157 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 184 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 211 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 252 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 332 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 361 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 423 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 450 | except SystemExit: | CODE |
| HIGH | tests/test_config_cli_task.py | 390 | except SystemExit: | CODE |
| HIGH | tests/test_config_file.py | 293 | except OSError: | CODE |
| HIGH | tests/test_config_file.py | 391 | except OSError: | CODE |
| HIGH | tests/test_config_file.py | 567 | except OSError: | CODE |
| HIGH | tests/test_scheduler_systemd.py | 320 | except Exception: | CODE |
| HIGH | tests/test_scheduler_schtasks.py | 325 | except Exception: | CODE |
| HIGH | tests/test_scheduler_schtasks.py | 317 | except Exception: | CODE |
| HIGH | tests/test_util_fileio.py | 340 | except Exception: | CODE |
| HIGH | tests/test_config_file_remote.py | 306 | except Exception: | CODE |
| HIGH | tests/test_config_file_remote.py | 316 | except Exception: | CODE |
| HIGH | tests/test_scheduler_launchd.py | 333 | except Exception: | CODE |
| HIGH | tests/test_scheduler_launchd.py | 344 | except Exception: | CODE |
| HIGH | tests/test_scheduler_launchd.py | 435 | except (OSError, IOError): | CODE |
| HIGH | tests/test_scheduler_cron.py | 222 | except Exception: | CODE |
| HIGH | ddns/http_config.py | 43 | except (AttributeError, socket.error, struct.error): | CODE |
| HIGH | ddns/http_config.py | 51 | except (AttributeError, socket.error): | CODE |
| HIGH | ddns/cache.py | 54 | except ValueError: | CODE |
| HIGH | ddns/mcp_http.py | 283 | except (IOError, OSError): | CODE |
| HIGH | ddns/util/try_run.py | 35 | except Exception: | CODE |
| HIGH | ddns/web/service.py | 972 | except (ConfigValidationError, DashboardOperationError): | CODE |
| HIGH | ddns/web/service.py | 1001 | except (ConfigValidationError, DashboardOperationError): | CODE |
| HIGH | ddns/scheduler/launchd.py | 102 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_util_http.py | 116 | except Exception as e: | CODE |
| LOW | tests/test_util_http.py | 360 | except Exception as e: | CODE |
| LOW | tests/test_util_http.py | 381 | except Exception as e: | CODE |
| LOW | tests/test_util_http.py | 397 | except Exception as e: | CODE |
| LOW | tests/test_util_http.py | 413 | except Exception as e: | CODE |
| LOW | tests/test_util_http.py | 487 | except Exception as e: | CODE |
| LOW | tests/test_util_http.py | 530 | except Exception as e: | CODE |
| LOW | tests/test_config_cli_task.py | 402 | except Exception as e: | CODE |
| LOW | tests/test_provider_callback.py | 484 | except Exception as e: | CODE |
| LOW | tests/test_provider_callback.py | 525 | except Exception as e: | CODE |
| LOW⚡ | tests/test_provider_namesilo.py | 37 | except Exception as e: | CODE |
| LOW⚡ | tests/test_provider_namesilo.py | 52 | except Exception as e: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 137 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 165 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 176 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 204 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 246 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 320 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_systemd.py | 332 | except Exception: | CODE |
| LOW | tests/test_scheduler_systemd.py | 149 | except Exception: | CODE |
| LOW | tests/test_scheduler_systemd.py | 300 | except Exception as e: | CODE |
| LOW⚡ | tests/test_scheduler_schtasks.py | 312 | except Exception as e: | CODE |
| LOW⚡ | tests/test_scheduler_schtasks.py | 317 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_schtasks.py | 325 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_init.py | 49 | except Exception as e: | CODE |
| LOW⚡ | tests/test_scheduler_init.py | 95 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_init.py | 117 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_init.py | 141 | except Exception as e: | CODE |
| LOW⚡ | tests/test_scheduler_init.py | 149 | except Exception as e: | CODE |
| LOW⚡ | tests/test_scheduler_init.py | 162 | except Exception as e: | CODE |
| LOW | tests/test_scheduler_init.py | 258 | except Exception as e: | CODE |
| LOW | tests/test_util_http_proxy_list.py | 152 | except Exception as e: | CODE |
| LOW | tests/test_util_http_proxy_list.py | 202 | except Exception as e: | CODE |
| LOW | tests/test_util_fileio.py | 340 | except Exception: | CODE |
| LOW⚡ | tests/test_config_file_remote.py | 306 | except Exception: | CODE |
| LOW⚡ | tests/test_config_file_remote.py | 316 | except Exception: | CODE |
| LOW | tests/test_config_file_remote.py | 401 | except Exception as e: | CODE |
| LOW | tests/test_scheduler_launchd.py | 213 | except Exception: | CODE |
| LOW | tests/test_scheduler_launchd.py | 224 | except Exception: | CODE |
| LOW | tests/test_scheduler_launchd.py | 333 | except Exception: | CODE |
| LOW | tests/test_scheduler_launchd.py | 344 | except Exception: | CODE |
| LOW⚡ | tests/test_scheduler_cron.py | 191 | except Exception: | CODE |
| LOW | tests/test_scheduler_cron.py | 211 | except Exception: | CODE |
| LOW | tests/test_scheduler_cron.py | 222 | except Exception: | CODE |
| LOW | docs/en/dev/config.md | 311 | except Exception as e: | CODE |
| MEDIUM | docs/en/dev/config.md | 308 | def __init__(self, ...): | CODE |
| LOW | .github/patch.py | 284 | except Exception as e: | CODE |
| MEDIUM | .github/patch.py | 285 | print("Error fetching tag:", e) | CODE |
| MEDIUM | .github/scripts/update_agents_structure.py | 50 | print("Error: AGENTS.md not found") | CODE |
| MEDIUM⚡ | .github/scripts/update_agents_structure.py | 152 | print("Error: unable to load tools/check.py: {}".format(error)) | CODE |
| MEDIUM⚡ | .github/scripts/update_agents_structure.py | 158 | print("Error: {}".format(error)) | CODE |
| LOW | ddns/cache.py | 56 | except Exception as e: | CODE |
| LOW | ddns/mcp.py | 234 | except Exception: | CODE |
| LOW | ddns/ip.py | 85 | except Exception as e: | CODE |
| LOW | ddns/ip.py | 102 | except Exception as e: | CODE |
| MEDIUM | ddns/ip.py | 71 | def _open(url, reg): | CODE |
| LOW | ddns/__main__.py | 60 | except Exception as e: | CODE |
| LOW | ddns/__main__.py | 108 | except Exception as e: | CODE |
| LOW | ddns/util/http.py | 135 | except Exception as e: | CODE |
| LOW | ddns/util/http.py | 285 | except Exception as e: | CODE |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_provider_callback.py | 439 | # Check if the response contains the expected strings | COMMENT |
| LOW⚡ | tests/test_scheduler_systemd.py | 130 | # Check if systemctl command is available | COMMENT |
| LOW⚡ | tests/test_scheduler_systemd.py | 171 | # Check if systemctl command is available | COMMENT |
| LOW⚡ | tests/test_scheduler_systemd.py | 199 | # Check if systemctl command is available | COMMENT |
| LOW⚡ | tests/test_scheduler_systemd.py | 241 | # Check if systemctl command is available | COMMENT |
| LOW⚡ | tests/test_scheduler_systemd.py | 327 | # Check if systemctl command is available | COMMENT |
| LOW⚡ | tests/test_scheduler_init.py | 102 | # Check if systemd is running and we have systemctl | COMMENT |
| LOW⚡ | tests/test_scheduler_init.py | 109 | # Check if cron is available | COMMENT |
| LOW⚡ | tests/test_scheduler_init.py | 112 | # Check if we're on macOS and launchctl is available | COMMENT |
| LOW⚡ | tests/test_scheduler_init.py | 115 | # Check if we're on Windows and schtasks is available | COMMENT |
| LOW | tests/test_scheduler_launchd.py | 308 | # Check if launchctl is available first | COMMENT |
| LOW⚡ | tests/test_scheduler_cron.py | 184 | # Check if crontab command is available | COMMENT |
| LOW | tests/test_scheduler_cron.py | 206 | # Check if crontab is available first | COMMENT |
| LOW | tests/test_cache.py | 496 | # Read the file and verify it's valid JSON | COMMENT |
| LOW | tests/scripts/test-task-cron.sh | 15 | # Check if DDNS command is provided as argument | COMMENT |
| LOW | tests/scripts/test-task-cron.sh | 26 | # Check if cron is available | COMMENT |
| LOW | tests/scripts/test-task-cron.sh | 93 | # Set environment to prefer cron over systemd | COMMENT |
| LOW | tests/scripts/test-task-macos.sh | 15 | # Check if DDNS command is provided as argument | COMMENT |
| LOW | tests/scripts/test-task-macos.sh | 123 | # Check if we're actually on macOS | COMMENT |
| LOW | docs/public/install.sh | 174 | # Check if running on supported OS | COMMENT |
| LOW | docs/public/install.sh | 432 | # Check if install directory exists and create if needed | COMMENT |
| LOW | docs/public/install.sh | 445 | # Check if already exists and not forcing | COMMENT |
| LOW | docs/public/install.sh | 463 | # Check if it's a permission issue and try with sudo | COMMENT |
| LOW | docs/public/install.sh | 550 | # Check if installation directory is in PATH | COMMENT |
| LOW⚡ | .github/scripts/update_agents_structure.py | 164 | # Check if any changes are in docs/ directory | COMMENT |
| LOW | ddns/config/cli.py | 570 | # Check if there's a value for this argument | COMMENT |
| LOW | ddns/config/cli.py | 621 | # Check if task is installed for enable/disable | COMMENT |
| LOW | ddns/provider/cloudns.py | 102 | # Check if it's an error response (has status field) | COMMENT |
| LOW | ddns/scheduler/systemd.py | 44 | # Check if timer is enabled | COMMENT |
| LOW | ddns/scheduler/__init__.py | 49 | # Check if launchd directories exist | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_config_init.py | 202 | # Create a minimal config to avoid auto-generation | COMMENT |
| MEDIUM⚡ | tests/test_config_cli.py | 179 | # Create an action and test its basic properties | COMMENT |
| MEDIUM⚡ | tests/test_config_file.py | 281 | # Create a file and remove read permissions | COMMENT |
| MEDIUM | tests/test_config_file.py | 377 | # Create a directory and remove write permissions | COMMENT |
| MEDIUM | tests/test_config_file.py | 439 | # Create a large config with many keys | COMMENT |
| MEDIUM | tests/test_config_schema_v4_1.py | 109 | # Create a traditional single config | COMMENT |
| MEDIUM | tests/test_config_schema_v4_1.py | 322 | # Create a temp log file path | COMMENT |
| MEDIUM | tests/test_config_file_remote.py | 267 | # Create a local test file | COMMENT |
| MEDIUM | tests/test_cache.py | 22 | # Create a temporary directory for test cache files | COMMENT |
| MEDIUM | tests/test_cache.py | 309 | # Create a corrupted cache file | COMMENT |
| MEDIUM | tests/test_cache.py | 319 | # Create a file first | COMMENT |
| MEDIUM | tests/test_cache.py | 566 | # Create a cache file with some data | COMMENT |
| MEDIUM | tests/test_cache.py | 598 | # Create an empty cache file | COMMENT |
| MEDIUM | tests/test_cache.py | 620 | # Create a cache file with test data | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check.py | 4 | CODE | |
| LOW | tools/tests/test_check.py | 3 | CODE | |
| LOW | tests/base_test.py | 9 | CODE | |
| LOW | tests/base_test.py | 9 | CODE | |
| LOW | tests/test_util_http.py | 8 | CODE | |
| LOW | tests/test_config_file.py | 8 | CODE | |
| LOW | tests/test_web.py | 4 | CODE | |
| LOW | tests/test_config_cli_web.py | 4 | CODE | |
| LOW | tests/__init__.py | 11 | CODE | |
| LOW | tests/__init__.py | 78 | CODE | |
| LOW | tests/__init__.py | 79 | CODE | |
| LOW | tests/__init__.py | 79 | CODE | |
| LOW | tests/__init__.py | 79 | CODE | |
| LOW | tests/__init__.py | 81 | CODE | |
| LOW | tests/__init__.py | 81 | CODE | |
| LOW | tests/__init__.py | 81 | CODE | |
| LOW | tests/__init__.py | 82 | CODE | |
| LOW | tests/test_util_comment.py | 7 | CODE | |
| LOW | tests/e2e.py | 4 | CODE | |
| LOW | tests/test_config_schema_v4_1.py | 8 | CODE | |
| LOW | tests/test_util_http_retry.py | 7 | CODE | |
| LOW | tests/test_config_file_remote.py | 8 | CODE | |
| LOW | tests/test_mcp_http.py | 4 | CODE | |
| LOW | tests/test_mcp.py | 4 | CODE | |
| LOW | tests/test_config_cli_mcp.py | 4 | CODE | |
| LOW | ddns/http_config.py | 4 | CODE | |
| LOW | ddns/cache.py | 7 | CODE | |
| LOW | ddns/mcp.py | 4 | CODE | |
| LOW | ddns/__main__.py | 15 | CODE | |
| LOW | ddns/__main__.py | 16 | CODE | |
| LOW | ddns/mcp_http.py | 4 | CODE | |
| LOW | ddns/util/http.py | 29 | CODE | |
| LOW | ddns/util/http.py | 29 | CODE | |
| LOW | ddns/util/http.py | 42 | CODE | |
| LOW | ddns/util/http.py | 42 | CODE | |
| LOW | ddns/web/service.py | 4 | CODE | |
| LOW | ddns/web/server.py | 4 | CODE | |
| LOW | ddns/web/__init__.py | 4 | CODE | |
| LOW | ddns/web/__init__.py | 4 | CODE | |
| LOW | ddns/web/__init__.py | 5 | CODE | |
| LOW | ddns/web/scheduler.py | 4 | CODE | |
| LOW | ddns/provider/_base.py | 60 | CODE | |
| LOW | ddns/provider/__init__.py | 2 | CODE | |
| LOW | ddns/scheduler/_base.py | 9 | CODE | |
| LOW | ddns/scheduler/__init__.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/check.py | 199 | CODE | |
| LOW | tools/check.py | 221 | CODE | |
| LOW | tools/check.py | 238 | CODE | |
| LOW | tools/check.py | 272 | CODE | |
| LOW | tests/test_util_http.py | 82 | CODE | |
| LOW | tests/test_util_http.py | 455 | CODE | |
| LOW | tests/test_util_http.py | 497 | CODE | |
| LOW | tests/test_config_cli_task.py | 368 | CODE | |
| LOW | tests/test_scheduler_systemd.py | 239 | CODE | |
| LOW | tests/test_scheduler_init.py | 98 | CODE | |
| LOW | tests/test_util_http_proxy_list.py | 127 | CODE | |
| LOW | tests/test_util_http_proxy_list.py | 162 | CODE | |
| LOW | tests/e2e.py | 150 | CODE | |
| LOW | tests/test_scheduler_launchd.py | 351 | CODE | |
| LOW | tests/test_scheduler_cron.py | 92 | CODE | |
| LOW | tests/test_main.py | 206 | CODE | |
| LOW | .github/patch.py | 183 | CODE | |
| LOW | .github/scripts/update_agents_structure.py | 16 | CODE | |
| LOW | ddns/mcp.py | 396 | CODE | |
| LOW | ddns/__main__.py | 72 | CODE | |
| LOW | ddns/mcp_http.py | 196 | CODE | |
| LOW | ddns/util/comment.py | 41 | CODE | |
| LOW | ddns/util/http.py | 241 | CODE | |
| LOW | ddns/util/http.py | 303 | CODE | |
| LOW | ddns/config/config.py | 201 | CODE | |
| LOW | ddns/config/file.py | 45 | CODE | |
| LOW | ddns/config/file.py | 74 | CODE | |
| LOW | ddns/config/cli.py | 404 | CODE | |
| LOW | ddns/web/service.py | 382 | CODE | |
| LOW | ddns/web/service.py | 523 | CODE | |
| LOW | ddns/web/service.py | 676 | CODE | |
| LOW | ddns/web/service.py | 1065 | CODE | |
| LOW | ddns/web/service.py | 1171 | CODE | |
| LOW | ddns/web/service.py | 1227 | CODE | |
| LOW | ddns/web/server.py | 372 | CODE | |
| LOW | ddns/web/scheduler.py | 140 | CODE | |
| LOW | ddns/provider/_base.py | 176 | CODE | |
| LOW | ddns/provider/west.py | 117 | CODE | |
| LOW | ddns/provider/edgeone.py | 24 | CODE | |
| LOW | ddns/provider/edgeone.py | 42 | CODE | |
| LOW | ddns/provider/noip.py | 43 | CODE | |
| LOW | ddns/scheduler/_base.py | 27 | CODE | |
| LOW | ddns/scheduler/cron.py | 86 | CODE | |
| LOW | ddns/scheduler/__init__.py | 23 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/test_config_file.py | 188 | "ttl": null, | CODE |
| HIGH⚡ | tests/test_config_file.py | 189 | "line": null, | CODE |
| HIGH⚡ | tests/test_scheduler_cron.py | 151 | self.assertIn("*/5 * * * * cd /path && python3 -m ddns # DDNS: auto-update", cron_entry) | CODE |
| HIGH⚡ | tests/test_scheduler_cron.py | 156 | mock_run.return_value = "*/5 * * * * cd /path && python3 -m ddns # DDNS: auto-update" | CODE |
| HIGH⚡ | tests/test_scheduler_cron.py | 170 | mock_run.return_value = "*/5 * * * * cd /path && python3 -m ddns # DDNS: auto-update\nother cron job" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ddns/util/comment.py | 11 | 移除字符串中的单行注释。 支持 # 和 // 两种注释风格。 Args: content (str): 包含注释的字符串内容 Returns: str: 移除注释后的字符 | STRING |
| HIGH | ddns/util/http.py | 70 | 发送HTTP/HTTPS请求,支持自动重试和类似requests.request的参数接口 Args: method (str): HTTP方法,如GET、POST等 url (str): | STRING |
| HIGH | ddns/util/fileio.py | 63 | Read file content with UTF-8 encoding, raise exception if failed Args: file_path (str): Path to the fi | STRING |
| HIGH | ddns/config/file.py | 76 | 加载配置文件并返回配置字典或配置字典数组。 支持本地文件和远程HTTP(S) URL。 对于单个对象返回dict,对于数组返回list[dict]。 优先尝试JSON解析,失败后尝试AST解析。 | STRING |
| HIGH | ddns/config/file.py | 147 | 保存配置到文件。 Args: config_path (str): 配置文件路径 config (dict): 配置字典 Returns: bool: 保存成功返 | STRING |
| HIGH | ddns/provider/_base.py | 178 | 发送 HTTP/HTTPS 请求,自动根据 API/url 选择协议。 Args: method (str): 请求方法,如 GET、POST url (s | STRING |
| HIGH | ddns/scheduler/__init__.py | 25 | Factory function to get appropriate scheduler based on platform or user preference Args: scheduler: Sc | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/providers/51dns.md | 27 | "id": "your_api_key", // 51DNS API Key | CODE |
| HIGH | docs/providers/51dns.md | 38 | "id": "your_api_key", // 51DNS API Key | CODE |
| HIGH | docs/providers/README.md | 50 | ddns --dns cloudflare --id user@example.com --token your_api_key --ipv4 ddns.newfuture.cc | CODE |
| HIGH | docs/en/providers/51dns.md | 27 | "id": "your_api_key", // 51DNS API Key | CODE |
| HIGH | docs/en/providers/51dns.md | 38 | "id": "your_api_key", // 51DNS API Key | CODE |
| HIGH | docs/en/providers/README.md | 50 | ddns --dns cloudflare --id user@example.com --token your_api_key --ipv4 ddns.newfuture.cc | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_provider_base_simple.py | 170 | provider = _TestableSimpleProvider("user@example.com", "secret_token_123") | CODE |
| LOW⚡ | tests/test_provider_base_simple.py | 174 | id_encoded = quote("user@example.com", safe="") | CODE |
| LOW | tests/test_config_init_multi.py | 111 | "id": "user@example.com", | CODE |
| LOW | tests/test_config_init_multi.py | 170 | "id": "user@example.com", | CODE |
| LOW | tests/test_config_init_multi.py | 216 | "id": "user@example.com", | CODE |
| LOW | tests/test_config_cli.py | 447 | "user@example.com", | CODE |
| LOW | tests/test_config_cli.py | 481 | self.assertEqual(config["id"], "user@example.com") | CODE |
| LOW⚡ | tests/test_config_file.py | 223 | "id": "user@example.com", | CODE |
| LOW⚡ | tests/test_config_file.py | 231 | self.assertEqual(config["id"], "user@example.com") | CODE |
| LOW | tests/test_config_file.py | 721 | "providers": [{"provider": "debug", "token": "dummy_token", "ipv4": ["test.example.com"]}], | CODE |
| LOW | tests/test_config_file.py | 733 | self.assertEqual(config["token"], "dummy_token") | CODE |
| LOW⚡ | tests/test_provider_west.py | 75 | provider = WestProvider("user@example.com", "md5_api_password") | CODE |
| LOW⚡ | tests/test_provider_west.py | 77 | self.assertEqual(params, {"username": "user@example.com", "apikey": "md5_api_password"}) | CODE |
| LOW | tests/test_config_config.py | 259 | "id": "user@example.com", | CODE |
| LOW | docs/config/env.md | 18 | | `DDNS_ID` | 依 DNS 服务商而定 | CODE |
| LOW | docs/providers/README.md | 91 | "id": "user@example.com", | CODE |
| LOW | docs/providers/README.md | 127 | "id": "user@example.com", | CODE |
| LOW | docs/en/config/env.md | 18 | | `DDNS_ID` | Depends on the provider | CODE |
| LOW | docs/en/config/env.md | 81 | export DDNS_ID="user@example.com" | CODE |
| LOW | docs/en/config/env.md | 546 | export DDNS_ID="user@example.com" | CODE |
| LOW | docs/en/providers/README.md | 88 | "id": "user@example.com", | CODE |
| LOW | docs/en/providers/README.md | 124 | "id": "user@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/base_test.py | 43 | __all__ = ["BaseProviderTestCase", "unittest", "patch", "MagicMock", "TEST_HTTP_TIMEOUT", "is_network_error"] | CODE |
| LOW | tests/__init__.py | 84 | __all__ = ["patch", "MagicMock", "unittest", "call", "mock", "TEST_HTTP_TIMEOUT", "is_network_error"] | CODE |
| LOW | ddns/http_config.py | 251 | __all__ = [ | CODE |
| LOW | ddns/mcp.py | 451 | __all__ = ["LEGACY_PROTOCOL_VERSION", "McpServer", "PROTOCOL_VERSION", "TOOLS", "serve"] | CODE |
| LOW | ddns/mcp_http.py | 536 | __all__ = ["MCP_PATH", "McpHttpEndpoint", "McpHttpRequestHandler", "create_server", "request_token_matches", "serve"] | CODE |
| LOW | ddns/util/http.py | 45 | __all__ = ["request", "HttpResponse", "quote", "urlencode", "USER_AGENT"] | CODE |
| LOW | ddns/config/config.py | 12 | __all__ = ["Config", "split_array_string"] | CODE |
| LOW | ddns/config/env.py | 11 | __all__ = ["load_config"] | CODE |
| LOW | ddns/config/__init__.py | 174 | __all__ = ["load_configs", "Config"] | STRING |
| LOW | ddns/config/cli.py | 18 | __all__ = ["load_config", "str_bool"] | CODE |
| LOW | ddns/web/__init__.py | 7 | __all__ = ["DashboardService", "create_server", "serve"] | CODE |
| LOW | ddns/provider/__init__.py | 21 | __all__ = ["SimpleProvider", "get_provider_class"] | CODE |
| LOW | ddns/scheduler/__init__.py | 87 | __all__ = ["get_scheduler", "get_schedulers", "BaseScheduler"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_config_cli.py | 97 | """Test comprehensive SSL configuration options""" | STRING |
| MEDIUM | tests/test_scheduler_init.py | 277 | """Test real scheduler integration - comprehensive test for current platform""" | STRING |
| MEDIUM | tests/test_config_config.py | 294 | """Test comprehensive environment variable handling""" | STRING |
| MEDIUM | tests/test_scheduler_cron.py | 358 | disabled_entry = '# */5 * * * * cd "/workspaces/DDNS" && python3 -m ddns --dns debug --ipv4 test-compreh | CODE |
| MEDIUM | tests/test_scheduler_cron.py | 380 | disabled_entry = '# */5 * * * * cd "/workspaces/DDNS" && python3 -m ddns --dns debug --ipv4 test-compreh | CODE |
| MEDIUM | ddns/scheduler/systemd.py | 38 | """Get comprehensive status information""" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/en/dev/config.md | 56 | ### Step 1: Update JSON Schema | COMMENT |
| LOW | docs/en/dev/config.md | 72 | ### Step 2: Add CLI Parameter | COMMENT |
| LOW | docs/en/dev/config.md | 88 | ### Step 3: Add Environment Variable Support | COMMENT |
| LOW | docs/en/dev/config.md | 102 | ### Step 4: Update Config Class | COMMENT |
| LOW | docs/en/dev/config.md | 113 | ### Step 5: Update Documentation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tests/scripts/test-task-cron.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tests/scripts/test-task-macos.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/public/install.sh | 1 | #!/bin/sh | COMMENT |
| LOW | .github/workflows/auto-reply-issue.lock.yml | 1 | # gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"cd7198b3a0e8b66199dd4a72b7f2f90a6356fdb9fc700c69c1731821d70 | COMMENT |
| LOW | .github/workflows/auto-reply-issue.lock.yml | 21 | # gh aw compile | COMMENT |
| LOW | .github/workflows/auto-reply-issue.lock.yml | 41 | # - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ddns/web/server.py | 443 | CODE | |
| LOW | ddns/provider/huaweidns.py | 72 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/public/install.sh | 6 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/esa.js | 163 | async function handleRequest(request) { | CODE |