Repository Analysis

saltstack/salt

Software to automate the management and configuration of infrastructure and applications at scale.

21.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of saltstack/salt, a Python project with 15,553 GitHub stars. SynthScan v2.0 examined 1,063,472 lines of code across 3314 source files, recording 16224 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 21.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

21.3
Adjusted Score
21.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
15.6K
Stars
Python
Language
1.1M
Lines of Code
3.3K
Files
16.2K
Pattern Hits
2026-07-14
Scan Date
0.22
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 10HIGH 727MEDIUM 2062LOW 13425

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 16224 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers8621 hits · 7582 pts
SeverityFileLineSnippetContext
LOWsetup.py1017 def _property_install_requires(self):STRING
LOWsetup.py1040 def _property_freezer_options(self):STRING
LOWsetup.py1043 def get_esky_freezer_includes(self):STRING
LOWnoxfile.py167def _get_session_python_version_info(session):CODE
LOWnoxfile.py196def _get_pip_requirements_file(session, crypto=None, requirements_type="ci"):CODE
LOWnoxfile.py254def _upgrade_pip_setuptools_and_wheel(session, upgrade=True):CODE
LOWnoxfile.py333def _install_coverage_requirement(session):CODE
LOWnoxfile.py948def pytest_zeromq_pycryptodome(session, coverage):CODE
LOWnoxfile.py1525def create_html_coverage_report(session):CODE
LOWnoxfile.py1529def _create_xml_coverage_reports(session):CODE
LOWnoxfile.py1539def create_xml_coverage_reports(session):CODE
LOWnoxfile.py1548def create_xml_coverage_reports_onedir(session):CODE
LOWnoxfile.py1553def create_json_coverage_reports(session):CODE
LOWnoxfile.py1562def create_json_coverage_reports_onedir(session):CODE
LOWtools/ci.py206def get_release_changelog_target(ctx: Context, event_name: str):CODE
LOWtools/ci.py255def _get_pr_test_labels_from_api(CODE
LOWtools/ci.py285def _get_pr_test_labels_from_event_payload(CODE
LOWtools/changelog.py60def _get_pkg_changelog_contents(ctx: Context, version: Version):CODE
LOWtools/utils/__init__.py411def get_platform_and_arch_from_slug(slug: str) -> tuple[str, str]:CODE
LOWtools/utils/repo.py36def get_repo_json_file_contents(CODE
LOWtools/utils/repo.py75def create_top_level_repo_path(CODE
LOWtools/precommit/docs.py153def build_python_module_paths(files):CODE
LOWtools/precommit/docstrings.py1073def _check_valid_versions_on_docstrings(docstring):STRING
LOWtools/precommit/docstrings.py1093def _check_cli_example_present(docstring):STRING
LOWtools/precommit/docstrings.py1102def _check_cli_example_proper_formatting(docstring):STRING
LOWtools/pkg/build.py1239def _check_pkg_build_files_exist(ctx: Context, **kwargs):CODE
LOWtools/pkg/salt_build_backend.py56def prepare_metadata_for_build_editable(metadata_directory, config_settings=None):CODE
LOWtests/conftest.py52def _pin_multiprocessing_fork_for_tests() -> None:CODE
LOWtests/conftest.py86def _patch_psutil_pidfd_open_einval() -> None:CODE
LOWtests/conftest.py126def _remove_redundant_salt_utils_vault_py() -> None:CODE
LOWtests/conftest.py482def _maybe_disable_subprocess_coverage(request, monkeypatch):CODE
LOWtests/conftest.py513def set_max_open_files_limits(min_soft=8192, min_hard=16384):CODE
LOWtests/conftest.py598def pytest_collection_modifyitems(config, items):CODE
LOWtests/conftest.py642def pytest_markeval_namespace(config):CODE
LOWtests/conftest.py906def groups_collection_modifyitems(config, items):CODE
LOWtests/conftest.py955def salt_factories_default_root_dir(salt_factories_default_root_dir):CODE
LOWtests/conftest.py1086def base_env_state_tree_root_dir(state_tree_root_dir):CODE
LOWtests/conftest.py1099def prod_env_state_tree_root_dir(state_tree_root_dir):CODE
LOWtests/conftest.py1111def base_env_pillar_tree_root_dir(pillar_tree_root_dir):CODE
LOWtests/conftest.py1124def ext_pillar_file_tree_root_dir(pillar_tree_root_dir):CODE
LOWtests/conftest.py1135def prod_env_pillar_tree_root_dir(pillar_tree_root_dir):CODE
LOWtests/conftest.py1147def salt_syndic_master_factory(CODE
LOWtests/conftest.py1530def _destroy_live_zmq_asyncio_contexts():CODE
LOWtests/conftest.py1728def bridge_pytest_and_runtests(CODE
LOWtests/conftest.py1895def from_filenames_collection_modifyitems(config, items):STRING
LOWtests/eventlisten.py86def check_access_and_print_warning(sock_dir):CODE
LOWtests/unit/test_loader.py1113 def test_module_package_collision(self):STRING
LOWtests/unit/test_loader.py1333 def test_loader_clean_modules(self):STRING
LOWtests/unit/test_loader.py1689 def test_osrelease_info_has_correct_type(self):STRING
LOWtests/unit/test_loader.py1697 def test_deserialization_error_caught(self):STRING
LOWtests/unit/test_loader.py1760 def test_lazyloader_refresh_file_mapping_called_with_lock_at___init__(self):STRING
LOWtests/unit/test_loader.py1774 def test_lazyloader_zip_modules(self):STRING
LOWtests/unit/test_loader.py1786 def test_lazyloader_pyx_modules(self):STRING
LOWtests/unit/test_module_names.py104 def test_module_name_source_match(self):CODE
LOWtests/unit/test_config.py1583 def test_is_provider_configured_no_alias(self):CODE
LOWtests/unit/test_config.py1591 def test_is_provider_configured_no_driver(self):CODE
LOWtests/unit/test_config.py1599 def test_is_provider_configured_key_is_none(self):CODE
LOWtests/unit/test_config.py81 def test_conf_master_sample_is_commented(self):CODE
LOWtests/unit/test_config.py94 def test_conf_minion_sample_is_commented(self):CODE
LOWtests/unit/test_config.py107 def test_conf_cloud_sample_is_commented(self):CODE
8561 more matches not shown…
Decorative Section Separators1490 hits · 5412 pts
SeverityFileLineSnippetContext
MEDIUMtools/precommit/docstrings.py1106# ---------------------------------------------------------------------------STRING
MEDIUMtools/precommit/docstrings.py1120# ---------------------------------------------------------------------------STRING
MEDIUMtests/pytests/smoke-tests.txt15# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt17# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt19# ── UNIT: core data structures ───────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt29# ── UNIT: SaltStorage (per-entry log keys, state, snapshot round-trip) ───────COMMENT
MEDIUMtests/pytests/smoke-tests.txt37# used by cluster/peer/join-reply state-sync) ──────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt41# install helpers, and StateSyncSession state machine) ──────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt48# ── FUNCTIONAL: HashRing under realistic clustering ──────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt51# ── UNIT: salt.scripts CLI entry-point pin (Python 3.14 forkserver fix) ──────COMMENT
MEDIUMtests/pytests/smoke-tests.txt55# ── UNIT: node state machine ─────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt82# ── FUNCTIONAL: transport + dispatcher ───────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt88# ── FUNCTIONAL: election + replication ───────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt94# ── FUNCTIONAL: RaftService lifecycle ────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt102# ── SCENARIO: full join-and-promote path ─────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt133# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt135# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt138# SaltPeer non-blocking publish, TCP pool router) ──────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt148# join-reply, multi-minion routing across all peers ──────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt158# ── SCENARIO: notify_peer_joined on receiver, dynamic 4th-master join ────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt162# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt164# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt194# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt196# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt198# ── UNIT: per-ring SaltStorage path keying (slice 1) ────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt211# ── UNIT: cluster-log SMs — registry + routing + entry dispatch ─────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt221# ── UNIT: multi-ring runner fan-out wire shape (cluster_aes envelope) ───────COMMENT
MEDIUMtests/pytests/smoke-tests.txt224# ── UNIT: state-sync bank: channel + selective key_filter ───────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt236# ── UNIT: salt_cache returner — every public function + bank layout ─────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt239# ── UNIT: cluster runner surface — every new operator-facing runner ─────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt242# ── UNIT: master.py gate sites + delegate-on-miss on routed drops ───────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt245# ── FUNCTIONAL: per-ring Raft — propose helpers, lifecycle, watchdog ────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt251# ── FUNCTIONAL: salt_cache returner-in-the-loop (loader + dispatch) ─────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt254# ── INTEGRATION: multi-ring lifecycle on isolated-FS cluster ────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt257# ── INTEGRATION: multi-ring lifecycle on shared-FS cluster ──────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt260# ── INTEGRATION: full jobs migration round-trip (shed + collect) ────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt263# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt265# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt113# ── FUNCTIONAL: on_ready callback ────────────────────────────────────────────COMMENT
MEDIUMtests/pytests/smoke-tests.txt119# ── FUNCTIONAL/INTEGRATION/SCENARIO: cluster-ready gate ──────────────────────COMMENT
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py107# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py247# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py249# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_master.py1807# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_master.py1809# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_proxy_minion.py135# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_proxy_minion.py137# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py187# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py189# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py350# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py352# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py547# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/pytests/unit/test_minion_resources.py549# ---------------------------------------------------------------------------COMMENT
1430 more matches not shown…
Cross-File Repetition474 hits · 2370 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py0fixture which returns the salt functional files directory path. creates the directory if it does not yet exist.STRING
HIGHtests/pytests/scenarios/compat/conftest.py0fixture which returns the salt functional files directory path. creates the directory if it does not yet exist.STRING
HIGHtests/pytests/scenarios/performance/conftest.py0fixture which returns the salt functional files directory path. creates the directory if it does not yet exist.STRING
HIGHtests/conftest.py0fixture which returns the salt pillar file tree directory path. creates the directory if it does not yet exist.STRING
HIGHtests/pytests/scenarios/compat/conftest.py0fixture which returns the salt pillar file tree directory path. creates the directory if it does not yet exist.STRING
HIGHtests/pytests/scenarios/performance/conftest.py0fixture which returns the salt pillar file tree directory path. creates the directory if it does not yet exist.STRING
HIGHtests/unit/modules/test_napalm_probes.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/unit/modules/test_napalm_yang_mod.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/pytests/unit/modules/napalm/test_bgp.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/pytests/unit/modules/napalm/test_ntp.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/pytests/unit/modules/napalm/test_snmp.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/pytests/unit/modules/napalm/test_netacl.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/pytests/unit/modules/napalm/test_users.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/pytests/unit/modules/napalm/test_route.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`STRING
HIGHtests/unit/modules/nxos/nxos_n3k.py0installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [###STRING
HIGHtests/unit/modules/nxos/nxos_platform.py0installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [###STRING
HIGHtests/unit/modules/nxos/nxos_n36k.py0installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [###STRING
HIGHtests/unit/modules/nxos/nxos_n93k.py0installer will perform impact only check. please wait. [####################] 100% -- success verifying image type. [###STRING
HIGHtests/unit/modules/nxos/nxos_n3k.py0installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash:STRING
HIGHtests/unit/modules/nxos/nxos_n93klxc.py0installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash:STRING
HIGHtests/unit/modules/nxos/nxos_n36k.py0installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash:STRING
HIGHtests/unit/modules/nxos/nxos_n93k.py0installer will perform compatibility check first. please wait. installer is forced disruptive verifying image bootflash:STRING
HIGHtests/integration/files/returners/noop_returner.py0do any work necessary to prepare a jid, including sending a custom idSTRING
HIGHsalt/returners/syslog_return.py0do any work necessary to prepare a jid, including sending a custom idSTRING
HIGHsalt/returners/postgres.py0do any work necessary to prepare a jid, including sending a custom idSTRING
HIGHsalt/returners/pgjsonb.py0do any work necessary to prepare a jid, including sending a custom idSTRING
HIGHtests/integration/modules/test_cp.py0{}/testfile: file: - managed - source: salt://testfile - makedirs: trueSTRING
HIGHtests/pytests/unit/state/test_multi_env_highstate.py0{}/testfile: file: - managed - source: salt://testfile - makedirs: trueSTRING
HIGHtests/pytests/integration/ssh/test_state.py0{}/testfile: file: - managed - source: salt://testfile - makedirs: trueSTRING
HIGHtests/pytests/unit/utils/test_x509.py0\ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlcSTRING
HIGHtests/pytests/integration/ssh/x509_v2/conftest.py0\ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlcSTRING
HIGHtests/pytests/integration/states/test_x509_v2.py0\ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlcSTRING
HIGHtests/pytests/integration/modules/test_x509_v2.py0\ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlcSTRING
HIGHtests/pytests/functional/states/test_x509_v2.py0\ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlcSTRING
HIGHtests/pytests/functional/modules/test_x509_v2.py0\ -----begin certificate----- miidodccaicgawibagiibfpgqp0vgpgwdqyjkozihvcnaqelbqawkzelmakga1ue bhmcvvmxdtalbgnvbammbfrlcSTRING
HIGHtests/pytests/unit/utils/test_x509.py0\ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ihSTRING
HIGHtests/pytests/integration/ssh/x509_v2/conftest.py0\ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ihSTRING
HIGHtests/pytests/integration/states/test_x509_v2.py0\ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ihSTRING
HIGHtests/pytests/integration/modules/test_x509_v2.py0\ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ihSTRING
HIGHtests/pytests/functional/states/test_x509_v2.py0\ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ihSTRING
HIGHtests/pytests/functional/modules/test_x509_v2.py0\ -----begin rsa private key----- miieowibaakcaqea4znjy+unws3q+wlwb1fsnp8pom0nzmckrpsizqcr1nbqgakk +nxqnh7/wan4js3xtb3ihSTRING
HIGHtests/pytests/unit/states/test_service.py0:codeauthor: gareth j. greenaway <ggreenaway@vmware.com>STRING
HIGHtests/pytests/unit/states/file/test_mod_beacon.py0:codeauthor: gareth j. greenaway <ggreenaway@vmware.com>STRING
HIGHtests/pytests/unit/modules/test_textfsm_mod.py0:codeauthor: gareth j. greenaway <ggreenaway@vmware.com>STRING
HIGHtests/pytests/unit/states/postgresql/test_privileges.py0:codeauthor: andrew colin kissa <andrew@topdog.za.net>STRING
HIGHtests/pytests/unit/states/postgresql/test_initdb.py0:codeauthor: andrew colin kissa <andrew@topdog.za.net>STRING
HIGHtests/pytests/unit/states/postgresql/test_language.py0:codeauthor: andrew colin kissa <andrew@topdog.za.net>STRING
HIGHtests/pytests/unit/grains/test_disks.py0:codeauthor: :email:`shane lee <slee@saltstack.com>`STRING
HIGHtests/pytests/unit/grains/test_pending_reboot.py0:codeauthor: :email:`shane lee <slee@saltstack.com>`STRING
HIGHtests/pytests/unit/grains/test_lvm.py0:codeauthor: :email:`shane lee <slee@saltstack.com>`STRING
HIGHtests/pytests/unit/modules/test_nftables.py0test if it return a data structure of the current, in-memory rulesSTRING
HIGHtests/pytests/unit/modules/test_iptables.py0test if it return a data structure of the current, in-memory rulesSTRING
HIGHtests/pytests/unit/modules/test_restartcheck.py0test if it return a data structure of the current, in-memory rulesSTRING
HIGHtests/pytests/unit/modules/win_lgpo/test_adv_audit.py0helper function to set an audit setting and assert that it was successfulSTRING
HIGH…ional/states/win_lgpo/test_adv_audit_settings_state.py0helper function to set an audit setting and assert that it was successfulSTRING
HIGH…unctional/states/win_lgpo/test_audit_settings_state.py0helper function to set an audit setting and assert that it was successfulSTRING
HIGH…ctional/modules/win_lgpo/test_audit_settings_module.py0helper function to set an audit setting and assert that it was successfulSTRING
HIGHtests/pytests/integration/proxy/conftest.py0proxy: proxytype: deltaproxy parallel_startup: {} ids:STRING
HIGHtests/pytests/integration/cli/test_salt_deltaproxy.py0proxy: proxytype: deltaproxy parallel_startup: {} ids:STRING
HIGHtests/pytests/functional/cli/test_salt_deltaproxy.py0proxy: proxytype: deltaproxy parallel_startup: {} ids:STRING
414 more matches not shown…
Deep Nesting2054 hits · 1820 pts
SeverityFileLineSnippetContext
LOWsetup.py197CODE
LOWsetup.py896CODE
LOWsetup.py1043CODE
LOWnoxfile.py133CODE
LOWnoxfile.py196CODE
LOWnoxfile.py333CODE
LOWnoxfile.py457CODE
LOWnoxfile.py1123CODE
LOWnoxfile.py1294CODE
LOWnoxfile.py1847CODE
LOWtools/release.py43CODE
LOWtools/release.py207CODE
LOWtools/gh.py37CODE
LOWtools/ci.py78CODE
LOWtools/ci.py206CODE
LOWtools/ci.py447CODE
LOWtools/ci.py581CODE
LOWtools/ci.py666CODE
LOWtools/ci.py767CODE
LOWtools/container.py43CODE
LOWtools/audit_doc_links.py85CODE
LOWtools/changelog.py97CODE
LOWtools/changelog.py148CODE
LOWtools/testsuite/container_test.py312CODE
LOWtools/testsuite/ci_failure.py186CODE
LOWtools/testsuite/ci_failure.py311CODE
LOWtools/testsuite/ci_failure.py420CODE
LOWtools/testsuite/download.py271CODE
LOWtools/utils/gh.py269CODE
LOWtools/utils/gh.py347CODE
LOWtools/utils/__init__.py343CODE
LOWtools/utils/__init__.py361CODE
LOWtools/utils/__init__.py411CODE
LOWtools/precommit/docs.py62CODE
LOWtools/precommit/docs.py255CODE
LOWtools/precommit/filemap.py41CODE
LOWtools/precommit/docstrings.py844CODE
LOWtools/precommit/docstrings.py1132CODE
LOWtools/precommit/loader.py30CODE
LOWtools/precommit/workflows.py105CODE
LOWtools/pkg/build.py36CODE
LOWtools/pkg/build.py92CODE
LOWtools/pkg/build.py944CODE
LOWtools/pkg/__init__.py111CODE
LOWtools/pkg/__init__.py235CODE
LOWtools/pkg/__init__.py343CODE
LOWtools/pkg/__init__.py55CODE
LOWtools/pkg/salt_build_backend.py65CODE
LOWtests/conftest.py126CODE
LOWtests/conftest.py598CODE
LOWtests/conftest.py1558CODE
LOWtests/conftest.py1895CODE
LOWtests/conftest.py1657CODE
LOWtests/eventlisten.py105CODE
LOWtests/salt-tcpdump.py296CODE
LOWtests/salt-tcpdump.py350CODE
LOWtests/salt-tcpdump.py271CODE
LOWtests/buildpackage.py64CODE
LOWtests/buildpackage.py232CODE
LOWtests/minionswarm.py258CODE
1994 more matches not shown…
Self-Referential Comments453 hits · 1318 pts
SeverityFileLineSnippetContext
MEDIUMtools/release.py24# Define the command groupCOMMENT
MEDIUMtools/gh.py21# Define the command groupCOMMENT
MEDIUMtools/ci.py34# Define the command groupCOMMENT
MEDIUMtools/docs.py21# Define the command groupCOMMENT
MEDIUMtools/changelog.py23# Define the command groupCOMMENT
MEDIUMtools/testsuite/container_test.py18# Define the command groupCOMMENT
MEDIUMtools/testsuite/ci_failure.py20# Define the command groupCOMMENT
MEDIUMtools/testsuite/download.py29# Define the command groupCOMMENT
MEDIUMtools/testsuite/__init__.py20# Define the command groupCOMMENT
MEDIUMtools/testsuite/pytest.py19# Define the command groupCOMMENT
MEDIUMtools/precommit/__init__.py9# Define the command groupCOMMENT
MEDIUMtools/precommit/changelog.py33# Define the command groupCOMMENT
MEDIUMtools/precommit/workflows.py31# Define the command groupCOMMENT
MEDIUMtools/pkg/build.py205# Define the command groupCOMMENT
MEDIUMtools/pkg/__init__.py28# Define the command groupCOMMENT
MEDIUMtests/saltsh.py62 # Create the Salt __opts__ variableCOMMENT
MEDIUMtests/conftest.py188# Define the pytest plugins we rely onCOMMENT
MEDIUMtests/eventlisten.sh53 # Create the event tags to listen for.COMMENT
MEDIUMtests/unit/utils/test_process.py186 # Create a pool with no workers and 1 queue sizeCOMMENT
MEDIUMtests/unit/modules/test_win_system.py637 # Create a mock processor class that does not have theCOMMENT
MEDIUMtests/integration/cloud/test_cloud.py49 # Create the VM using salt.cloud.CloudClient.create() instead of calling salt-cloudCOMMENT
MEDIUMtests/integration/cloud/helpers/cloud_test_base.py158 # Create the cloud instance name to be used throughout the testsCOMMENT
MEDIUMtests/integration/cloud/helpers/virtualbox.py11# Create the cloud instance name to be used throughout the testsCOMMENT
MEDIUMtests/integration/states/test_ssh_auth.py83 # Create the keyfile that we expect to get back on the state callCOMMENT
MEDIUMtests/integration/states/test_ssh_auth.py89 # Create a bogus key file on base environmentCOMMENT
MEDIUMtests/integration/states/test_git.py110 # Create a URL to cloneCOMMENT
MEDIUMtests/integration/states/test_cmd.py83 # Create the testfile and release the handleCOMMENT
MEDIUMtests/integration/states/test_cmd.py91 # Create the testfile and release the handleCOMMENT
MEDIUMtests/integration/modules/test_config.py42 # This function is generally only used with cross calls, the yamlCOMMENT
MEDIUMtests/integration/client/test_standard.py150 # Create a minion key, but do not start the "fake" minion. This mimicsCOMMENT
MEDIUMtests/support/mixins.py369 # Create the class instanceCOMMENT
MEDIUMtests/support/win_installer.py33 # Create a class so we can define how to handle the starttagCOMMENT
MEDIUMtests/support/unit.py134 # This class is not defined in the module being tested? Carry on...COMMENT
MEDIUMtests/support/unit.py137 # This class is not a subclass of TestCase, carry onCOMMENT
MEDIUMtests/support/pytest/transport_ssl.py207 # Create a persistent temp directory that won't be cleaned up mid-sessionCOMMENT
MEDIUMtests/pytests/unit/test_minion.py633 # Create a simple test that just verifies the queue processing method existsCOMMENT
MEDIUMtests/pytests/unit/test_minion.py651 # Create a simple test that just verifies the method exists and can be calledCOMMENT
MEDIUMtests/pytests/unit/test_minion.py2056 # Create a MinionManager instance with a mock minionCOMMENT
MEDIUMtests/pytests/unit/test_minion.py2131 # Create a Tornado IOLoopCOMMENT
MEDIUMtests/pytests/unit/fileclient/test_fileclient_cache.py104 # Create the CACHE_ROOTCOMMENT
MEDIUMtests/pytests/unit/utils/test_files.py119 # Create the file structures in both src and dest dirsCOMMENT
MEDIUMtests/pytests/unit/utils/test_nxos.py20 # Create a mock response objectCOMMENT
MEDIUMtests/pytests/unit/utils/test_nxos.py57 # Create a mock response objectCOMMENT
MEDIUMtests/pytests/unit/utils/test_mmap_cache_errors.py98 # Create a file with unexpected sizeCOMMENT
MEDIUMtests/pytests/unit/utils/test_mmap_cache_segments.py319 # Create a gap: remove seg 1, add a seg 2 (simulates corruption)COMMENT
MEDIUM…sts/pytests/unit/utils/jinja/test_salt_cache_loader.py111 # Create a mock file client and attach it to the loaderSTRING
MEDIUMtests/pytests/unit/loader/test_grains_cleanup.py87 # Create a loader to get some module referencesCOMMENT
MEDIUMtests/pytests/unit/loader/test_grains_cleanup.py185 # Create a loaderCOMMENT
MEDIUM…ts/pytests/unit/modules/win_lgpo/test_admx_policies.py136 # Create a bogus ADML file in PolicyDefinitions directoryCOMMENT
MEDIUMtests/pytests/unit/client/ssh/wrapper/test_cp.py222 # Create the CACHE_ROOTCOMMENT
MEDIUMtests/pytests/integration/cli/test_matcher.py392 # Create a minion key, but do not start the "fake" minion. This mimics aSTRING
MEDIUM…ts/pytests/integration/cli/test_salt_call_ownership.py16 # Create a wrapper script for salt-callCOMMENT
MEDIUMtests/pytests/integration/cli/test_salt_pip_user.py15 # Create a wrapper script for salt-pipCOMMENT
MEDIUMtests/pytests/integration/cli/test_salt_pip_user.py63 # Create a config file that sets 'user' to the current non-root userSTRING
MEDIUMtests/pytests/integration/minion/test_process_name.py36 # Create a fresh master for this testCOMMENT
MEDIUMtests/pytests/integration/minion/test_process_name.py42 # Create a fresh minion with multiprocessing=FalseCOMMENT
MEDIUMtests/pytests/integration/minion/test_process_name.py93 # Create a fresh master for this testCOMMENT
MEDIUMtests/pytests/integration/minion/test_process_name.py99 # Create a fresh minion with multiprocessing=TrueCOMMENT
MEDIUMtests/pytests/integration/minion/test_process_name.py149 # Create a fresh master for this testCOMMENT
MEDIUMtests/pytests/integration/minion/test_process_name.py155 # Create a fresh minionCOMMENT
393 more matches not shown…
Excessive Try-Catch Wrapping1132 hits · 1099 pts
SeverityFileLineSnippetContext
LOWtools/ci.py55 except Exception as exc:CODE
LOWtools/ci.py107 except Exception as exc:CODE
LOWtools/ci.py220 except Exception as exc:CODE
LOWtools/ci.py403 except Exception as exc:CODE
LOWtools/ci.py476 except Exception as exc:CODE
LOWtools/ci.py591 except Exception as exc:CODE
LOWtools/ci.py793 except Exception as exc:CODE
LOWtools/precommit/docs.py236 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtools/pkg/build.py163 except Exception:CODE
LOWtools/pkg/build.py1148 except Exception as e:CODE
LOWtools/pkg/__init__.py177 except Exception as exc:STRING
MEDIUMtests/conftest.py111def wrapper(pid, timeout=None):CODE
LOWtests/conftest.py556 except Exception as err: # pylint: disable=broad-exceptCODE
LOWtests/conftest.py1551 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/conftest.py1676 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/conftest.py1694 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/conftest.py1715 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_win_system.py10except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_vt.py134 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_vt.py156 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_process.py463 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_process.py469 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_process.py491 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_process.py497 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_process.py518 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/unit/utils/test_win_service.py7except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/integration/output/test_output.py117 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/integration/utils/test_win_runas.py142 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/integration/utils/test_win_runas.py249 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/integration/utils/test_win_runas.py253 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/integration/pillar/test_git_pillar.py96except Exception: # pylint: disable=broad-exceptCODE
LOWtests/integration/pillar/test_git_pillar.py101except Exception: # pylint: disable=broad-exceptCODE
LOWtests/integration/netapi/rest_tornado/test_app.py258 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/integration/cloud/helpers/virtualbox.py35 except Exception as e: # pylint: disable=broad-exceptCODE
MEDIUMtests/integration/cloud/helpers/virtualbox.py32def assertMachineExists(self, name, msg=None):CODE
LOWtests/integration/modules/test_mysql.py15except Exception: # pylint: disable=broad-exceptCODE
LOWtests/integration/modules/test_ssh.py29 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/mixins.py613 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/support/unit.py260 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/case.py871 except Exception: # pylint: disable=broad-exceptSTRING
LOWtests/support/helpers.py232 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/support/helpers.py251 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/support/helpers.py350 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/helpers.py354 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/helpers.py741 except Exception as exc: # pylint: disable=W0703CODE
LOWtests/support/helpers.py835 except Exception as exc: # pylint: disable=W0703CODE
LOWtests/support/helpers.py959 except Exception as exc: # pylint: disable=W0703CODE
LOWtests/support/helpers.py1259 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/support/pytest/transport.py160 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMtests/support/pytest/transport.py157def _run(self, loop):CODE
LOWtests/support/pytest/loader.py116 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/support/pytest/helpers.py256 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/pytest/helpers.py367 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/pytest/helpers.py386 except Exception: # pylint: disable=broad-exceptCODE
LOWtests/support/pytest/helpers.py399 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMtests/pytests/unit/test_master.py2001def _register(aes, minion_id, resource_id, grain_value):CODE
LOWtests/pytests/unit/test_master.py2013 except Exception as exc: # pylint: disable=broad-exceptCODE
MEDIUMtests/pytests/unit/test_minion_resources.py232def run_job(name, target):CODE
LOWtests/pytests/unit/test_minion_resources.py242 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtests/pytests/unit/test_log.py35 except Exception as err: # pylint: disable=broad-exceptCODE
1072 more matches not shown…
Cross-Language Confusion138 hits · 588 pts
SeverityFileLineSnippetContext
HIGHtools/testsuite/container_test.py170 "mkdir -p /root/.local/relenv && ln -sf /root/.cache/relenv/toolchains /root/.local/relenv/toolchain",CODE
HIGHtools/testsuite/container_test.py183 f"test -f /root/.local/relenv/toolchain/{arch}-linux-gnu/bin/{arch}-linux-gnu-gcc && echo 'OK' || echo 'CODE
HIGHtests/unit/utils/test_json.py26 '{"None": null, "True": false, "dict": {"subdict": {"спам": "яйца"}}, "float":'CODE
HIGHtests/unit/utils/test_json.py34 "None": null,STRING
HIGHtests/pytests/unit/test_pool_name_validation.py48 "!@#$%^&*()", # NOW ALLOWED - special chars (except / \ null)CODE
HIGHtests/pytests/unit/renderers/test_yamlex.py60 placeholder: {foo: !aggregate {bar: null}}CODE
HIGHtests/pytests/unit/fileclient/test_fileclient.py125 # Authenticate must return trueCOMMENT
HIGHtests/pytests/unit/utils/test_yamldumper.py110 exp_yaml = "{foo: null}\n"CODE
HIGHtests/pytests/unit/serializers/test_serializers.py220 placeholder: !aggregate {bar: null}STRING
HIGHtests/pytests/unit/serializers/test_serializers.py232 placeholder: {foo: !aggregate {bar: null}}STRING
HIGHtests/pytests/unit/serializers/test_serializers.py247 placeholder: {!aggregate foo: {bar: null}}STRING
HIGHtests/pytests/unit/serializers/test_serializers.py263 placeholder: {!aggregate foo: {bar: null}}STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py77 "auto_updates": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py78 "bundle_short_version": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py79 "bundle_version": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py80 "caveats": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py81 "conflicts_with": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py82 "container": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py85 "deprecation_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py86 "deprecation_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py88 "disable_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py89 "disable_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py141 "caveats": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py142 "conflicts_with": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py143 "container": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py152 "deprecation_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py153 "deprecation_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py155 "disable_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py156 "disable_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py230 "caveats": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py237 "deprecation_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py238 "deprecation_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py240 "disable_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py241 "disable_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py393 "deprecation_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py394 "deprecation_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py396 "disable_date": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py397 "disable_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py848 "full_token": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py281 "keg_only_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py292 "pour_bottle_only_if": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py300 "service": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py312 "revision": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py313 "tag": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py378 "caveats": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py478 "keg_only_reason": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py489 "pour_bottle_only_if": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py497 "service": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py509 "revision": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py510 "tag": null,STRING
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py1417 "tap": null,STRING
HIGHtests/pytests/unit/modules/test_minion.py112 == "systemctl is-active salt-minion || systemctl start salt-minion"CODE
HIGHtests/pytests/unit/modules/test_cp.py114 assert cp.push(path) == retCODE
HIGHtests/pytests/unit/modules/test_cp.py151 response = cp.push(filename)CODE
HIGHtests/pytests/unit/modules/test_debian_service.py156 "insserv foo && update-rc.d foo enable", python_shell=TrueCODE
HIGHtests/pytests/unit/modules/test_grains.py649 res = grainsmod.equals("a", "aval")CODE
HIGHtests/pytests/unit/modules/test_grains.py652 res = grainsmod.equals("b:z", "zval")CODE
HIGHtests/pytests/unit/modules/test_grains.py654 res = grainsmod.equals("b:z", "aval")CODE
HIGHtests/pytests/unit/modules/test_win_service.py257 "/c ping -n 3 127.0.0.1 && net stop salt-minion && "CODE
HIGHtests/pytests/unit/modules/test_win_dsc_resource.py66 == "@($true, 1, $null, 'x')"CODE
78 more matches not shown…
Docstring Block Structure110 hits · 550 pts
SeverityFileLineSnippetContext
HIGHsalt/ext/ipaddress.py52Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHsalt/ext/ipaddress.py82Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHsalt/ext/ipaddress.py112Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP STRING
HIGHsalt/ext/ipaddress.py147Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representatSTRING
HIGHsalt/ext/ipaddress.py331Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), STRING
HIGHsalt/ext/ipaddress.py472Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded biSTRING
HIGHsalt/ext/ipaddress.py502Return prefix length from a numeric string Args: prefixlen_str: The string to be converted STRING
HIGHsalt/ext/ipaddress.py527Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be converSTRING
HIGHsalt/ext/ipaddress.py844Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') STRING
HIGHsalt/ext/ipaddress.py919Compare two IP objects. This is only concerned about the comparison of the integer representation of thSTRING
HIGHsalt/ext/ipaddress.py977The subnets which join to make the current subnet. In the case that self contains only one IP (self._prSTRING
HIGHsalt/ext/ipaddress.py1030The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefiSTRING
HIGHsalt/ext/ipaddress.py1231Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. STRING
HIGHsalt/ext/ipaddress.py1257Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. RSTRING
HIGHsalt/ext/ipaddress.py1670Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: STRING
HIGHsalt/ext/ipaddress.py1774Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. STRING
HIGHsalt/ext/ipaddress.py1848Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. STRING
HIGHsalt/utils/win_lgpo_netsh.py189 Get the firewall property from the specified profile in the specified store as returned by ``netsh advfirewall`STRING
HIGHsalt/utils/win_lgpo_netsh.py293 Gets all the properties for the specified profile in the specified store Args: profile (str): STRING
HIGHsalt/utils/win_lgpo_netsh.py352 Set the firewall inbound/outbound settings for the specified profile and store Args: profile (strSTRING
HIGHsalt/utils/win_lgpo_netsh.py468 Configure logging settings for the Windows firewall. Args: profile (str): The firewall prSTRING
HIGHsalt/utils/win_lgpo_netsh.py595 Configure firewall settings. Args: profile (str): The firewall profile to configure. ValiSTRING
HIGHsalt/utils/win_lgpo_netsh.py689 Enable or disable the firewall profile. Args: profile (str): The firewall profile to confSTRING
HIGHsalt/utils/files.py977 Detect a file's encoding using the following: - Check for Byte Order Marks (BOM) - Check for UTF-8 Markers STRING
HIGHsalt/utils/win_chcp.py34 Gets or sets the codepage of the shell. Args: page_id (str, int): A number representing tSTRING
HIGHsalt/utils/win_chcp.py82 Get the currently set code page on windows Args: raise_error (bool): ``True`` will raise STRING
HIGHsalt/utils/win_chcp.py110 Set the code page on windows Args: page_id (str, int): A number representing the codepageSTRING
HIGHsalt/utils/cloud.py2580 Helper function that waits for an IP address for a specific maximum amount of time. :param update_callbackSTRING
HIGHsalt/utils/win_pdh.py133 Makes a fully resolved counter path. Counter names are formatted like this: ``\Processor(*)\% STRING
HIGHsalt/utils/win_lgpo_reg.py234 Helper function to actually write the data to a Registry.pol file Also updates/edits the gpt.ini file to incluSTRING
HIGHsalt/utils/win_lgpo_reg.py397 Convert the data obtained from a Registry.pol file to a dictionary. Args: policy_data (bytes): The datSTRING
HIGHsalt/utils/win_pwsh.py31 Execute the PowerShell command and return the data as a dictionary .. versionadded:: 3006.9 Args: STRING
HIGHsalt/utils/win_pwsh.py210 Run a PowerShell command and return the result as a parsed Python object. Unless the command already cSTRING
HIGHsalt/utils/win_pwsh.py263 Run a PowerShell command and raise on any error. Identical to :meth:`run` except that a ``CommandExecuSTRING
HIGHsalt/utils/requisite.py285 Topological sort with lexicographical ordering via custom key function. Uses Kahn's algorithm with a pSTRING
HIGHsalt/utils/win_lgpo_auditpol.py647 Get the current configuration for all audit settings in the given category. Reads effective policy via ``AuditSTRING
HIGHsalt/utils/win_lgpo_auditpol.py692 Get the current configuration for a single subcategory. Args: name (str): English subcategory name (maSTRING
HIGHsalt/utils/win_lgpo_auditpol.py727 Set the auditing bitmask for one subcategory. Enables ``SeSecurityPrivilege`` on the current process token forSTRING
HIGHsalt/utils/mac_utils.py271 Run a launchctl command and raise an error if it fails Args: additional args are passed to launchctl sSTRING
HIGHsalt/utils/win_dacl.py2066 Copy the security descriptor of the Source to the Target. You can specify a specific portion of the security deSTRING
HIGHsalt/utils/win_dacl.py2662 Set permissions for the given path .. versionadded:: 2019.2.0 Args: obj_name (str): STRING
HIGHsalt/utils/win_runas.py232 Run ``cmd`` as ``username`` using a logon token and ``CreateProcessWithTokenW``. The minion must be able tSTRING
HIGHsalt/utils/win_runas.py539 Run ``cmd`` as ``username`` using ``CreateProcessWithLogonW`` (with profile). Used when :func:`runas` cannot uSTRING
HIGHsalt/states/file.py1535 Helper function for creating directories when the ``makedirs`` option is set to ``True``. Handles Unix and WindSTRING
HIGHsalt/states/win_appx.py33 Removes Microsoft Store packages from the system. If the package is part of a bundle, the entire bundle will beSTRING
HIGHsalt/modules/win_dsc.py496 Remove the current DSC Configuration. Removes current, pending, and previous dsc configurations. .. versioSTRING
HIGHsalt/modules/win_snmp.py379 Manage the SNMP accepted community names and their permissions. .. note:: Settings managed by Group PoSTRING
HIGHsalt/modules/win_dsc_resource.py127 Return the current state of a DSC resource by calling ``Invoke-DscResource -Method Get``. Args: nSTRING
HIGHsalt/modules/win_dsc_resource.py189 Test whether a DSC resource is in the desired state by calling ``Invoke-DscResource -Method Test``. Args: STRING
HIGHsalt/modules/win_dsc_resource.py251 Apply a DSC resource to the desired state by calling ``Invoke-DscResource -Method Set``. Args: naSTRING
HIGHsalt/modules/win_file.py719 Chown a file, pass the file the desired user and group Under Windows, the group parameter will be ignored. STRING
HIGHsalt/modules/win_file.py789 Change the group of a file Under Windows, this will set the rarely used primary group of a file. This geneSTRING
HIGHsalt/modules/win_file.py1055 .. versionadded:: 3005 Get the version of a file. .. note:: Not all files have version informatioSTRING
HIGHsalt/modules/win_file.py1095 .. versionadded:: 3005 Get file details for a file. Similar to what's in the details tab on the file propeSTRING
HIGHsalt/modules/win_file.py1459 Create a symbolic link to a file This is only supported with Windows Vista or later and must be executed by STRING
HIGHsalt/modules/win_file.py1621 Ensure that the directory is available and permissions are set. Args: path (str): The fulSTRING
HIGHsalt/modules/win_file.py1731 Ensure that the parent directory containing this path is available. Args: path (str): ThSTRING
HIGHsalt/modules/win_file.py1865 Set owner and permissions for each directory created. Args: path (str): The full path to STRING
HIGHsalt/modules/win_file.py2071 Set permissions for the given path Args: path (str): The full path to the directory. STRING
HIGHsalt/modules/win_firewall.py65 Disable firewall profile Args: profile (:obj:`str`, optional): The name of the profile toSTRING
50 more matches not shown…
Fake / Example Data418 hits · 380 pts
SeverityFileLineSnippetContext
LOWtests/unit/utils/test_vmware.py982 MagicMock(return_value={"name": "fake_name"}),CODE
LOWtests/unit/utils/test_vmware.py985 self.assertEqual(ret, "fake_name")CODE
LOWtests/unit/utils/test_vmware.py1754 token="fake_token",CODE
LOWtests/unit/utils/test_vmware.py1764 token="fake_token",CODE
LOWtests/unit/utils/test_vmware.py869 self.mock_item_name = {"name": "fake_name"}CODE
LOWtests/unit/utils/test_vmware.py939 "Properties of managed object 'fake_name' weren't retrieved",CODE
LOWtests/unit/utils/test_vmware.py1472 MagicMock(return_value="fake_token"),CODE
LOWtests/unit/utils/test_vmware.py1631 mock_token = MagicMock(return_value="fake_token")CODE
LOWtests/unit/utils/test_vmware.py1655 token="fake_token",CODE
LOWtests/unit/utils/test_vmware.py1678 token="fake_token",CODE
LOWtests/unit/utils/test_vmware.py1714 token="fake_token",CODE
LOWtests/unit/states/test_ipset.py39 actual_ret = ipset.set_present(self.fake_name, self.fake_set_type)CODE
LOWtests/unit/states/test_ipset.py40 mock_check_set.assert_called_once_with(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py43 self.fake_name, self.fake_set_type, "ipv4"CODE
LOWtests/unit/states/test_ipset.py54 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py56 "comment": f"ipset set {self.fake_name} already exists for ipv4",CODE
LOWtests/unit/states/test_ipset.py67 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py69 "comment": f"ipset set {self.fake_name} would be added for ipv4",CODE
LOWtests/unit/states/test_ipset.py76 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py79 self.fake_nameCODE
LOWtests/unit/states/test_ipset.py81 "changes": {"locale": self.fake_name},CODE
LOWtests/unit/states/test_ipset.py87 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py89 "comment": f"Failed to create set {self.fake_name} for ipv4: ",CODE
LOWtests/unit/states/test_ipset.py129 actual_ret = ipset.set_absent(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py130 mock_check_set.assert_called_once_with(self.fake_name, "ipv4")CODE
LOWtests/unit/states/test_ipset.py132 mock_flush.assert_called_once_with(self.fake_name, "ipv4")CODE
LOWtests/unit/states/test_ipset.py136 mock_delete_set.assert_called_once_with(self.fake_name, "ipv4")CODE
LOWtests/unit/states/test_ipset.py143 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py145 "comment": f"ipset set {self.fake_name} for ipv4 is already absent",CODE
LOWtests/unit/states/test_ipset.py152 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py154 "comment": f"ipset set {self.fake_name} for ipv4 would be removed",CODE
LOWtests/unit/states/test_ipset.py161 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py163 "comment": f"Failed to delete set {self.fake_name} for ipv4: ",CODE
LOWtests/unit/states/test_ipset.py170 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py173 self.fake_nameCODE
LOWtests/unit/states/test_ipset.py203 self.fake_name, self.fake_entries, set_name=self.fake_nameCODE
LOWtests/unit/states/test_ipset.py207 [call(self.fake_name, e, "ipv4") for e in self.fake_entries], any_order=TrueCODE
LOWtests/unit/states/test_ipset.py211 call(self.fake_name, e, "ipv4", set_name=self.fake_name)CODE
LOWtests/unit/states/test_ipset.py224 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py229 "".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py237 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py242 "".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py250 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py254 "Error".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py262 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py267 "".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py275 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py282 self.assertDictEqual(ipset.present(self.fake_name), ret)CODE
LOWtests/unit/states/test_ipset.py290 fake_name = "fake_ipset"CODE
LOWtests/unit/states/test_ipset.py311 self.fake_name, self.fake_entries, set_name=self.fake_nameCODE
LOWtests/unit/states/test_ipset.py314 [call(self.fake_name, e, "ipv4") for e in self.fake_entries], any_order=TrueCODE
LOWtests/unit/states/test_ipset.py318 call(self.fake_name, e, "ipv4", set_name=self.fake_name)CODE
LOWtests/unit/states/test_ipset.py330 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py335 "".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py343 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py348 "".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py356 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py360 " 192.168.1.3.\nError\n".format(self.fake_name)CODE
LOWtests/unit/states/test_ipset.py368 "name": self.fake_name,CODE
LOWtests/unit/states/test_ipset.py373 "".format(self.fake_name)CODE
358 more matches not shown…
AI Structural Patterns412 hits · 367 pts
SeverityFileLineSnippetContext
LOWtools/testsuite/__init__.py65CODE
LOWtests/integration/states/test_x509.py105CODE
LOW…ration/files/file/base/_modules/runtests_decorators.py45CODE
LOW…ration/files/file/base/_modules/runtests_decorators.py56CODE
LOW…ration/files/file/base/_modules/runtests_decorators.py62CODE
LOWtests/support/case.py90CODE
LOWtests/support/case.py339CODE
LOWtests/pytests/conftest.py671CODE
LOWtests/pytests/unit/transport/test_zeromq.py807CODE
LOW…ytests/unit/utils/batch_state/batch_state_scenarios.py34CODE
LOWtests/pytests/unit/states/virt/helpers.py4CODE
LOWtests/pytests/unit/states/virt/helpers.py49CODE
LOWtests/pytests/unit/modules/test_slsutil.py69CODE
LOWtests/pytests/functional/states/rabbitmq/conftest.py111CODE
LOWsalt/exceptions.py23CODE
LOWsalt/state.py832CODE
LOWsalt/state.py2251CODE
LOWsalt/state.py2757CODE
LOWsalt/state.py3636CODE
LOWsalt/state.py4891CODE
LOWsalt/renderers/gpg.py517CODE
LOWsalt/cluster/consensus/raft/node.py349CODE
LOWsalt/transport/zeromq.py147CODE
LOWsalt/transport/zeromq.py1671CODE
LOWsalt/transport/ws.py275CODE
LOWsalt/transport/tcp.py1606CODE
LOWsalt/transport/base.py408CODE
LOWsalt/config/__init__.py2919CODE
LOWsalt/platform/win.py1315CODE
LOWsalt/output/table_out.py70CODE
LOWsalt/wheel/config.py21CODE
LOWsalt/utils/pycrypto.py54CODE
LOWsalt/utils/sshpki.py55CODE
LOWsalt/utils/sshpki.py234CODE
LOWsalt/utils/cloud.py1140CODE
LOWsalt/utils/cloud.py1225CODE
LOWsalt/utils/cloud.py1460CODE
LOWsalt/utils/cloud.py1936CODE
LOWsalt/utils/x509.py312CODE
LOWsalt/utils/x509.py558CODE
LOWsalt/utils/vt_helper.py29CODE
LOWsalt/utils/vmware.py178CODE
LOWsalt/utils/vmware.py406CODE
LOWsalt/utils/jinja.py1283CODE
LOWsalt/utils/vt.py104CODE
LOWsalt/utils/vt.py676CODE
LOWsalt/utils/thin.py743CODE
LOWsalt/utils/aws.py261CODE
LOWsalt/utils/aws.py399CODE
LOWsalt/utils/win_update.py442CODE
LOWsalt/utils/etcd_util.py135CODE
LOWsalt/utils/master.py189CODE
LOWsalt/utils/master.py304CODE
LOWsalt/utils/win_osinfo.py88CODE
LOWsalt/utils/http.py149CODE
LOWsalt/utils/jid.py70CODE
LOWsalt/utils/network.py102CODE
LOWsalt/utils/network.py1642CODE
LOWsalt/utils/network.py1650CODE
LOWsalt/utils/napalm.py517CODE
352 more matches not shown…
Unused Imports312 hits · 288 pts
SeverityFileLineSnippetContext
LOWsetup.py108CODE
LOWsetup.py109CODE
LOWsetup.py1108CODE
LOWtools/release.py6CODE
LOWtools/gh.py6CODE
LOWtools/ci.py6CODE
LOWtools/__init__.py1CODE
LOWtools/__init__.py6CODE
LOWtools/docs.py6CODE
LOWtools/audit_doc_links.py21CODE
LOWtools/changelog.py6CODE
LOWtools/testsuite/container_test.py6CODE
LOWtools/testsuite/ci_failure.py6CODE
LOWtools/testsuite/download.py6CODE
LOWtools/testsuite/__init__.py6CODE
LOWtools/testsuite/pytest.py6CODE
LOWtools/utils/gh.py2CODE
LOWtools/utils/__init__.py2CODE
LOWtools/utils/repo.py2CODE
LOWtools/precommit/docs.py6CODE
LOWtools/precommit/docstrings.py8CODE
LOWtools/precommit/changelog.py6CODE
LOWtools/precommit/workflows.py6CODE
LOWtools/pkg/build.py6CODE
LOWtools/pkg/__init__.py6CODE
LOWtests/saltsh.py28CODE
LOWtests/conftest.py165CODE
LOWtests/unit/utils/test_dateutils.py14CODE
LOWtests/unit/utils/test_schema.py25CODE
LOWtests/unit/utils/test_schema.py32CODE
LOWtests/unit/states/test_x509.py14CODE
LOWtests/unit/modules/test_win_groupadd.py16CODE
LOWtests/unit/modules/test_win_groupadd.py18CODE
LOWtests/unit/modules/test_vsphere.py24CODE
LOWtests/unit/modules/test_vsphere.py24CODE
LOWtests/unit/modules/test_vsphere.py31CODE
LOWtests/integration/pillar/test_git_pillar.py82CODE
LOWtests/integration/pillar/test_git_pillar.py82CODE
LOWtests/integration/pillar/test_git_pillar.py82CODE
LOWtests/integration/states/test_x509.py17CODE
LOWtests/integration/modules/test_mysql.py14CODE
LOWtests/integration/modules/test_timezone.py15CODE
LOWtests/support/unit.py33CODE
LOWtests/support/unit.py37CODE
LOWtests/support/unit.py37CODE
LOWtests/support/unit.py37CODE
LOWtests/support/unit.py38CODE
LOWtests/support/unit.py38CODE
LOWtests/support/sshd_runtime.py13CODE
LOWtests/support/mock.py21CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
LOWtests/support/mock.py27CODE
252 more matches not shown…
Over-Commented Block269 hits · 228 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml2461 # pip 23.x trips on Py 3.14 metadata parsing; 25.x is needed.COMMENT
LOWnoxfile.py361 "--progress-bar=off",COMMENT
LOWtools/precommit/docstrings.py1101COMMENT
LOWtools/pkg/build.py881 str(python_bin),COMMENT
LOWtests/conftest.py1981 continueCOMMENT
LOWtests/smoke-tests-before-commit.txt1# Commands to run locally before pushing Salt changes that touch integration testsCOMMENT
LOWtests/unit/ext/test_ipaddress.py1# Copyright 2007 Google Inc.COMMENT
LOWtests/unit/ext/test_ipaddress.py61SMALLEST = _SMALLEST()COMMENT
LOWtests/unit/utils/test_process.py381COMMENT
LOWtests/unit/netapi/rest_tornado/test_saltnado.py1001 ), patch.dict(COMMENT
LOWtests/unit/netapi/rest_tornado/test_saltnado.py1041 # be testing that when minions are added within job_not_running, that itCOMMENT
LOWtests/unit/modules/test_x509.py1#COMMENT
LOWtests/unit/modules/test_win_status.py161# call_count = 5COMMENT
LOWtests/unit/modules/test_nxos_upgrade.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n5k.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n7k.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n3k.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n93klxc.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_platform.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n36k.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n95k.py1"""COMMENT
LOWtests/unit/modules/nxos/nxos_n93k.py1"""COMMENT
LOWtests/integration/modules/test_mysql.py1061 )COMMENT
LOWtests/integration/modules/test_mysql.py1161 # query='SELECT 1',COMMENT
LOWtests/integration/modules/test_mysql.py1201 # saltenv={"LC_ALL": "en_US.utf8"}COMMENT
LOWtests/support/unit.py161COMMENT
LOWtests/support/pkg.py1001 if stop_services:COMMENT
LOWtests/support/pkg.py1341 fp.write(f"Package: salt-*\nPin: version {pin}\nPin-Priority: 1001\n")COMMENT
LOWtests/pytests/smoke-tests.txt1# Salt cluster + mmap_cache smoke test selection.COMMENT
LOWtests/pytests/unit/transport/test_tcp.py361 )COMMENT
LOWtests/pytests/unit/transport/test_tcp.py381#COMMENT
LOWtests/pytests/unit/transport/test_tcp.py401# # assert the timeout callback was createdCOMMENT
LOWtests/pytests/unit/transport/test_tcp.py421#COMMENT
LOWtests/pytests/unit/transport/test_tcp.py441#COMMENT
LOWtests/pytests/unit/output/test_nested.py41 # - twoCOMMENT
LOWtests/pytests/unit/utils/test_data.py121 # so this should return False.COMMENT
LOWtests/pytests/unit/cli/test_batch_visibility.py341 results = list(Batch.run(cli_batch))COMMENT
LOW…sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py141COMMENT
LOWtests/pytests/unit/modules/test_yumpkg.py1781 },COMMENT
LOWtests/pytests/unit/modules/test_cmdmod.py401 assert error.value.args[0].endswith(expected_error)COMMENT
LOWtests/pytests/unit/beacons/test_network_settings.py161 #COMMENT
LOWtests/pytests/unit/beacons/test_network_settings.py181 #COMMENT
LOWtests/pytests/integration/cluster/conftest.py21# attributed failures to slow runners. Reproducing them with stress-ng onCOMMENT
LOW…sts/pytests/integration/cluster/test_ring_lifecycle.py141 # RING_REGISTRY entry. We don't have a runner that reads theCOMMENT
LOWtests/pytests/integration/resources/conftest.py161# ---------------------------------------------------------------------------COMMENT
LOWtests/pytests/integration/cli/test_salt_key.py121 # We can't load JSON because we print to stdout!COMMENT
LOWtests/pytests/integration/minion/test_return_retries.py61COMMENT
LOWtests/pytests/integration/loader/test_ext_grains.py1import pytestCOMMENT
LOWtests/pytests/scenarios/cluster_kind/conftest.py401 {"name": "ret", "containerPort": 4506},COMMENT
LOW…s/pytests/scenarios/cluster_kind/setup-in-container.sh1#!/usr/bin/env bashCOMMENT
LOWtests/pytests/functional/cluster/consensus/smoke.txt1# Raft consensus smoke test selectionCOMMENT
LOWtests/pytests/functional/minion/test_fd_leak.py61 "pki_dir": str(tmp_path / "pki"),COMMENT
LOWtests/pytests/functional/states/test_pip_state.py21 VirtualEnv,COMMENT
LOWtests/pytests/functional/states/file/test_keyvalue.py21 #Port 22COMMENT
LOWtests/pytests/functional/states/file/test_replace.py341 # ensure, the file content didn't changeCOMMENT
LOWtests/pytests/functional/modules/test_cmdmod.py601 # in 3.11 and greater Python's subprocess module will not allow abcCOMMENT
LOWtests/pytests/functional/modules/test_cmdmod.py621# )COMMENT
LOW…ests/functional/modules/state/requisites/test_mixed.py261 # test Infinite recursion prereq+require #8785 v3COMMENT
LOW…ytests/functional/modules/state/requisites/test_use.py41 - cmd: ECOMMENT
LOW…ytests/functional/modules/state/requisites/test_use.py221 # cmd.run:COMMENT
209 more matches not shown…
Redundant / Tautological Comments158 hits · 198 pts
SeverityFileLineSnippetContext
LOWtools/testsuite/container_test.py53 # Check if docker daemon is runningCOMMENT
LOWtools/testsuite/container_test.py112 # Check if container existsCOMMENT
LOWtests/unit/modules/test_x509.py212 # Check if property is the one we've added to the certificate. TheSTRING
LOWtests/unit/modules/test_x509.py252 # Check if property is the one we've added to the certificate. TheSTRING
LOWtests/unit/modules/test_x509.py355 # Check if property values are the ones we've added to the certificate.STRING
LOWtests/integration/modules/test_git.py95 # Check if key is missingCOMMENT
LOWtests/integration/modules/test_git.py909 # Check if this new path is a worktreeCOMMENT
LOWtests/integration/modules/test_git.py911 # Check if the main repo is a worktreeCOMMENT
LOWtests/integration/modules/test_git.py913 # Check if a non-repo directory is a worktreeCOMMENT
LOWtests/support/unit.py50# Set SHOW_PROC to True to showCOMMENT
LOWtests/pytests/unit/test_pool_name_edge_cases.py181 # Check if resulting path would exceed Unix socket path limit (typically 108 bytes)COMMENT
LOWtests/pytests/unit/test_client.py57 # Check if either minion1 or minion2 was targeted in the final callCOMMENT
LOWtests/pytests/unit/states/test_pip.py53 use_wheel=False, # Set False to simplify testingCODE
LOWtests/pytests/unit/modules/test_mine.py277 # Check if the mine entries have been stored properly in the FakeCache.COMMENT
LOWtests/pytests/integration/executors/test_sudo.py83 # Check if it already exists (another test might have created it)STRING
LOWtests/pytests/integration/executors/test_sudo.py159 # Check if the output is 0.STRING
LOWtests/pytests/scenarios/performance/test_performance.py29 # Check if image exists firstCOMMENT
LOWtests/pytests/scenarios/performance/test_performance.py47 # Check if image exists firstCOMMENT
LOWtests/pytests/functional/test_pip_install.py121 # Check if they are still runningCOMMENT
LOWtests/pytests/functional/channel/test_auth_downgrade.py310 # Check if attack was blockedCOMMENT
LOWtests/pytests/pkg/upgrade/systemd/conftest.py39 # Check if the test has a custom salt_install_env markerCOMMENT
LOWtests/pytests/pkg/upgrade/systemd/conftest.py221 # Check if salt user exists before chowning (similar to minion_systemd fixture)COMMENT
LOWtests/pytests/pkg/upgrade/systemd/conftest.py427 # Check if the current salt-call version supports --priv optionCOMMENT
LOWtests/pytests/pkg/upgrade/systemd/conftest.py501 # Check if the current salt-call version supports --priv optionCOMMENT
LOW…/pytests/pkg/upgrade/systemd/test_install_with_user.py32 # Check if --upgrade flag is present in the test configCOMMENT
LOW…/pytests/pkg/upgrade/systemd/test_install_with_user.py166 # Check if user existsCOMMENT
LOW…/pytests/pkg/upgrade/systemd/test_install_with_user.py179 # Check if the current salt-call version supports --priv optionCOMMENT
LOWtests/pytests/pkg/upgrade/systemd/test_permissions.py155 # Check if the current salt-call version supports --priv optionCOMMENT
LOWagents/mcp/launch-salt-test.sh19# Set PYTHONPATH to the project root so we can import the agents packageCOMMENT
LOWsalt/crypt.py2116 # Check if we can skip AES encryptionCOMMENT
LOWsalt/crypt.py2154 # Check if data has TLS marker (was sent without AES)COMMENT
LOWsalt/fileclient.py1266 # Check if file exists on server, before creating files andCOMMENT
LOWsalt/master.py599 # Check if scheduler requires lower loop interval thanCOMMENT
LOWsalt/master.py3267 # Check if key is configured to be auto-rejected/signedCOMMENT
LOWsalt/master.py3430 # Check if the keys are the same and error out if this is theCOMMENT
LOWsalt/master.py4209 # Check if 'minions' is included in returner's save_load arg_spec.COMMENT
LOWsalt/minion.py717 # Check if scheduler requires lower loop interval thanCOMMENT
LOWsalt/minion.py1763 # Check if file is older than 5 minutes (300 seconds)COMMENT
LOWsalt/minion.py2281 # Check if we should bypass the process_count_max checkCOMMENT
LOWsalt/minion.py2404 # Check if we are running in threading mode (multiprocessing=False)COMMENT
LOWsalt/minion.py4765 # Check if this candidate is blocked by any active jobsCOMMENT
LOWsalt/template.py184 # Check if it starts with a shebang and not a pathCOMMENT
LOWsalt/state.py2738 # Check if this low chunk is pausedCOMMENT
LOWsalt/cluster/consensus/raft/node.py1420 # Check if we should snapshot now that commit_index advanced and entries were appliedCOMMENT
LOWsalt/transport/tcp.py1344 # Check if stream is still openCOMMENT
LOWsalt/transport/tls_util.py45 # Check if optimization is enabledCOMMENT
LOWsalt/transport/tls_util.py49 # Check if SSL is configuredCOMMENT
LOWsalt/transport/tls_util.py55 # Check if cert_reqs is CERT_REQUIREDCOMMENT
LOWsalt/transport/tls_util.py67 # Check if peer certificate is presentCOMMENT
LOWsalt/config/__init__.py883 # Set this to -1 for unlimited attempts. This allows for a master to haveCOMMENT
LOWsalt/config/__init__.py3825 # Check if required fields are supplied in the provider config. If theyCOMMENT
LOWsalt/config/__init__.py4124 # Set environment to saltenv in case someone's custom module isCOMMENT
LOWsalt/config/__init__.py4384 # Set environment to saltenv in case someone's custom runner isCOMMENT
LOWsalt/config/worker_pools.py249 # Check if worker_pools is explicitly configured AND not emptyCOMMENT
LOWsalt/utils/gzip_util.py88 # Open the file and re-attempt the readCOMMENT
LOWsalt/utils/powershell.py88 # Check if defaults exist, add them if they doCOMMENT
LOWsalt/utils/minions.py1481 # Check if minions are allowedCOMMENT
LOWsalt/utils/thin.py551 # Check if auto_detect is enabled and update dependenciesSTRING
LOWsalt/utils/gitfs.py2707 # Check if it's a valid repoCOMMENT
LOWsalt/utils/gitfs.py2855 # Check if file exists and get its metadataCOMMENT
98 more matches not shown…
AI Slop Vocabulary57 hits · 109 pts
SeverityFileLineSnippetContext
LOWsetup.py683 # If run_frame is None, just call the parent class logicSTRING
MEDIUMtests/committer_parser.py6# May leverage GitHub API in the futureCOMMENT
MEDIUMtests/integration/modules/test_mine.py173 # less flaky. If we still see it fail we need to look for a more robustCOMMENT
MEDIUMtests/integration/modules/test_git.py507 # TODO: More robust unset testing, try to trigger all theCOMMENT
LOWtests/pytests/unit/cluster/consensus/test_raft_node.py1256 # Should not raise — just return silentlyCOMMENT
LOWtests/pytests/unit/fileserver/gitfs/test_gitfs.py49 # can just use the Version instances imported along withCOMMENT
LOW…sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py21 # can just use the Version instances imported along withCOMMENT
MEDIUMtests/pytests/unit/returners/test_salt_cache.py183 # test harness). The "compute matched set when tgt is set"COMMENT
LOWtests/pytests/unit/modules/test_pip.py247 # As single string (just use the first element from pkgs and editables)COMMENT
LOWtests/pytests/unit/modules/test_pip.py318 # As single string (just use the first element from mirrors)COMMENT
LOWtests/pytests/unit/modules/test_pip.py389 # As single string (just use the first element from find_links)COMMENT
LOWtests/pytests/unit/modules/test_network.py221 # The path exists, just return itCOMMENT
MEDIUMtests/pytests/unit/pkg/test_rpm_minion_scriptlets.py94 # response. The cheapest robust check is to ensure both tokensCOMMENT
MEDIUM…s/integration/cluster/test_ring_lifecycle_shared_fs.py125 # of tailing logs — more robust against unrelated log linesCOMMENT
MEDIUM…scenarios/regression/test_fd_leak_task_cancellation.py82 # With comprehensive task cancellation and shutdown, leak should be minimalCOMMENT
MEDIUMtests/pytests/perf/test_cache_benchmarks.py78# already have ``__opts__`` from the live master harness (tiny mmap tables).COMMENT
LOWtests/pytests/functional/cache/helpers.py116 # TODO: this should actually not raise. Not sure if there's a test that we can do here... or just call the code COMMENT
MEDIUMsalt/crypt.py622 # facilitate migrating to pem named off the master id instead of master.pemCOMMENT
LOWsalt/crypt.py1044 # if an auth is in flight-- and not done-- just pass that back as the future to wait onCOMMENT
LOWsalt/crypt.py1748# TODO: remove, we should just return a sync wrapper of AsyncAuthCOMMENT
LOWsalt/minion.py3410 # Since we are already in the child process/thread, we just return.COMMENT
LOWsalt/renderers/pyobjects.py462 # if salt_data is not True then we just return the global scope we'veCOMMENT
LOWsalt/output/highstate.py304 # output() is recursive, if we aren't passed a dict just return itCOMMENT
LOWsalt/output/txt.py36 # For non-dictionary, non-string data, just use printCOMMENT
MEDIUMsalt/output/table_out.py323 # to facilitate re-useCOMMENT
MEDIUMsalt/utils/mmap_cache.py17# harness, and various salt-call entry points do not bundle. Importing thisCOMMENT
LOWsalt/utils/url.py196 # No match, just return the original stringCOMMENT
LOWsalt/utils/nxos.py219 # Don't just return body['ins_api']['outputs']['output'] directly.COMMENT
LOWsalt/utils/args.py154 # Therefore, skip YAML loading for these cases and just return the stringCOMMENT
LOWsalt/utils/gitfs.py1164 # Make sure that we have a positive integer timeout, otherwise just setCOMMENT
LOWsalt/utils/gitfs.py3505 # We can't just use the return value from repo.fetch()COMMENT
LOWsalt/utils/schedule.py1637 # The "splay" configuration has been already processed, just use itCOMMENT
LOWsalt/utils/xmlutil.py31 # for it, so just return a single dict representing it.COMMENT
LOWsalt/utils/optsdict.py1016 # For regular dict, just use keys()COMMENT
LOWsalt/utils/optsdict.py1096 # If setting to None, just use regular assignmentCOMMENT
MEDIUMsalt/utils/win_runas.py340 # Get a linked user token to elevate if neededCOMMENT
MEDIUMsalt/cloud/deploy/bootstrap-salt.sh6422 # leverage the windows directories since release Windows and LinuxCOMMENT
MEDIUMsalt/states/saltmod.py1002 # the 'highstate' outputter, we can leverage this fact when merging theCOMMENT
LOWsalt/states/pkgrepo.py470 # to use. Most package providers will simply return the data providedCOMMENT
LOWsalt/modules/git.py711 # in the output in case there are thousands), so just return True. If thereCOMMENT
LOWsalt/modules/rpm_lowpkg.py522 # available, then we can just use SIZE for older versions. See Issue #31366.COMMENT
LOWsalt/modules/win_event.py220 # rather than wait just returnCOMMENT
MEDIUMsalt/modules/pacmanpkg.py382 # Use a compatible structure with yum, so we can leverage the existing state.group_installedCOMMENT
LOWsalt/modules/file.py6485 # Local file paths will just return the same path back when passedSTRING
MEDIUMsalt/modules/win_lgpo.py2977 # These policies can NOT be set in conjunction with AdvancedSTRING
LOWsalt/modules/win_pkg.py410 # If no args passed, just return everythingCOMMENT
LOWsalt/modules/pip.py983 # just return the output without running pip.STRING
LOWsalt/modules/mac_service.py195 # check if KeepAlive is True and not just set.COMMENT
LOWsalt/modules/win_timezone.py282 # if it's one of the key's just use itCOMMENT
LOWsalt/modules/win_timezone.py325 # if it's one of the key's just use itCOMMENT
MEDIUMsalt/modules/bcache.py808 # I'll utilize 'inter_ro' as 'misc' as wellCOMMENT
LOWsalt/modules/grains.py296 # Return the grains we just set to confirm everything was OKCOMMENT
MEDIUMsalt/modules/chocolatey.py537 # moves more functions to this new paradigmCOMMENT
MEDIUMsalt/modules/chocolatey.py1375 # moves more functions to this new paradigmCOMMENT
LOWsalt/modules/mysql.py3036 # if the connection fails, we simply return FalseSTRING
LOWsalt/client/mixins.py278 # just return True.COMMENT
LOWsalt/client/__init__.py1671 # if we have all the minion returns, lets just returnCOMMENT
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALtests/pytests/unit/utils/test_thin.py791 thin.salt.utils.hashutils.get_hash.assert_called()CODE
CRITICALtests/pytests/unit/utils/test_thin.py808 thin.salt.utils.hashutils.get_hash.assert_called()CODE
CRITICALtests/pytests/unit/cli/test_ssh.py7 Test that `salt.client.ssh.SSH.fsclient.destroy()` is called.STRING
CRITICALsalt/modules/yumpkg.py736 salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n",CODE
CRITICALsalt/modules/rpm_lowpkg.py110 queryformat = salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "none")CODE
CRITICALsalt/modules/chroot.py244 salt.client.ssh.wrapper.state._cleanup_slsmod_low_data(chunks)CODE
CRITICALsalt/modules/chroot.py358 salt.client.ssh.wrapper.state._merge_extra_filerefs(CODE
CRITICALsalt/modules/chroot.py402 salt.client.ssh.wrapper.state._merge_extra_filerefs(CODE
CRITICALsalt/modules/zypperpkg.py932 salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n",CODE
CRITICALdoc/_themes/saltstack2/static/js/core.min.js4},a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){returCODE
Modern AI Meta-Vocabulary18 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md6999- [#54521](https://github.com/saltstack/salt/issues/54521) - `failhard` during orchestration now fails as expected - [@mCODE
MEDIUMtests/pytests/unit/states/saltmod/test_state.py850 # The error message text must appear in the orchestrate comment,COMMENT
MEDIUM…egration/runners/state/orchestrate/test_orchestrate.py422 # wheel modules are fully loaded before the orchestrate call.STRING
MEDIUM…s/integration/runners/state/orchestrate/test_events.py275 # Without soft kill, the orchestration will fail because stage_two is set to failSTRING
MEDIUM…s/integration/runners/state/orchestrate/test_events.py284 # With soft kill set, 'stage_two' will not run, thus, the orchestration will not failSTRING
MEDIUMsalt/cluster/state_sync.py114# eof before falling back to event-driven replication.COMMENT
MEDIUMsalt/output/highstate.py287 # in the "data" key, as the orchestrate runner does. See Issue #31330,COMMENT
MEDIUMsalt/output/highstate.py311 # Discard retcode in dictionary as present in orchestrate dataCOMMENT
MEDIUMsalt/utils/event.py194 # Don't let a problem here hold up the rest of the orchestrationCOMMENT
MEDIUMsalt/cli/run.py37 # changed for the orchestrate runner, but externalCOMMENT
MEDIUMsalt/channel/server.py3375 # back to immediate learner start; event-drivenCOMMENT
MEDIUMsalt/states/saltmod.py411 # see *why* their orchestrate run failed instead of only seeing theCOMMENT
MEDIUMsalt/states/saltmod.py491 # was not a state-result dict — without this, the orchestrateCOMMENT
MEDIUMsalt/states/saltmod.py940 # state.orchestrateCOMMENT
MEDIUMsalt/runners/batch.py129 # Ask the BatchManager to finalize via its event-driven path; itCOMMENT
MEDIUMsalt/runners/state.py149# Aliases for orchestrate runnerCOMMENT
MEDIUMsalt/modules/bcache.py421 # filter out 'hidden' kwargs added by our favourite orchestration systemCOMMENT
MEDIUMsalt/client/mixins.py313 # runner/wheel output during orchestration).COMMENT
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHsalt/modules/cron.py210 # If Salt is running from same user as requested in cron module we don't need any user switchCOMMENT
HIGHsalt/modules/cron.py250 # If Salt is running from same user as requested in cron module we don't need any user switchCOMMENT
HIGHsalt/modules/cron.py278 # If Salt is running from same user as requested in cron module we don't need any user switchCOMMENT
HIGHsalt/modules/cron.py335 # If Salt is running from same user as requested in cron module we don't need any user switchCOMMENT
Structural Annotation Overuse23 hits · 29 pts
SeverityFileLineSnippetContext
LOWtools/testsuite/container_test.py129 # Step 1: Decompress dependenciesCOMMENT
LOWtools/testsuite/container_test.py152 # Step 2: Create relenv toolchain symlink (Python 3.14+)COMMENT
LOWtools/testsuite/container_test.py194 # Step 3: Verify setupCOMMENT
LOWtests/buildpackage.py3# WARNING: This script will recursively remove the build and artifactCOMMENT
LOWtests/pytests/unit/_logging/test_impl.py103 # Step 1: buffer a record using the plain factory.COMMENT
LOWtests/pytests/unit/_logging/test_impl.py112 # Step 2: install the color factory and a color-format console handler.COMMENT
LOWtests/pytests/unit/_logging/test_impl.py120 # Step 3: sync the deferred handler's buffered records out.COMMENT
LOW…/pytests/integration/modules/state/test_state_queue.py58 # Step 1: Run a state job with queue=TrueSTRING
LOW…/pytests/integration/modules/state/test_state_queue.py71 # Step 2: Verify no files were left in state_queueSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py102 # Step 1: Occupy the only slot using subprocess to avoid fixture argument issuesSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py144 # Step 2: Queue Job 1 - should be queued due to process_count_max=1STRING
LOW…s/pytests/integration/modules/state/test_queue_race.py156 # Step 3: Verify Job 1 is in job_queue on diskSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py170 # Step 4: Queue Job 2 - should also be queued since slot is still occupiedSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py182 # Step 5: Verify Job 2 is also in job_queueSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py196 # Step 6: Verify queuing actually happened under loadSTRING
LOWagents/docs/git-and-ci.md70### Step 1: Download CI ArtifactsCOMMENT
LOWagents/docs/git-and-ci.md80### Step 2: Create ContainerCOMMENT
LOWagents/docs/git-and-ci.md102### Step 3: Setup ContainerCOMMENT
LOWagents/docs/git-and-ci.md112### Step 4: Run TestsCOMMENT
LOWagents/docs/git-and-ci.md130### Step 5: Debug in ContainerCOMMENT
LOWagents/docs/git-and-ci.md143### Step 6: CleanupCOMMENT
LOWpkg/windows/msi/README-how-to-build.md20### Step 1: build the Nullsoft (NSIS) exe installer or use the mockupCOMMENT
LOWpkg/windows/msi/README-how-to-build.md26### Step 2: build the msi installerCOMMENT
Modern Structural Boilerplate23 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/integration/utils/test_win_runas.py37logger = logging.getLogger(__name__)CODE
LOWtests/support/unit.py304__all__ = [CODE
LOWtests/support/pytest/helpers.py941__all__ = [STRING
LOWsalt/syspaths.py232__all__ = [CODE
LOWsalt/renderers/stateconf.py42__all__ = ["render"]CODE
LOWsalt/ext/importlib_metadata/__init__.py62__all__ = [CODE
LOWsalt/ext/importlib_metadata/_compat.py26__all__ = ['install', 'NullFinder', 'PyPy_repr']CODE
LOWsalt/utils/aggregation.py109__all__ = ["aggregate", "Aggregate", "Map", "Scalar", "Sequence"]CODE
LOWsalt/utils/yamlloader.py18__all__ = ["SaltYamlSafeLoader", "load", "safe_load"]CODE
LOWsalt/utils/jinja.py44__all__ = ["SaltCacheLoader", "SerializerExtension"]CODE
LOWsalt/utils/yamlloader_old.py22__all__ = ["SaltYamlSafeLoader", "load", "safe_load"]CODE
LOWsalt/utils/datastructures.py11__all__ = ["DefaultOrderedDict", "HashableOrderedDict"]CODE
LOWsalt/utils/yamldumper.py28__all__ = [CODE
LOWsalt/netapi/rest_cherrypy/event_processor.py6logger = logging.getLogger(__name__)CODE
LOWsalt/netapi/rest_cherrypy/app.py651logger = logging.getLogger(__name__)CODE
LOWsalt/serializers/yaml.py21__all__ = ["deserialize", "serialize", "available"]CODE
LOWsalt/serializers/configparser.py15__all__ = ["deserialize", "serialize", "available"]CODE
LOWsalt/serializers/yamlex.py119__all__ = ["deserialize", "serialize", "available"]CODE
LOWsalt/serializers/json.py19__all__ = ["deserialize", "serialize", "available"]CODE
LOWsalt/serializers/tomlmod.py25__all__ = ["deserialize", "serialize", "HAS_TOML"]CODE
LOWsalt/states/pip_state.py138logger = logging.getLogger(__name__)CODE
LOWsalt/modules/pip.py99logger = logging.getLogger(__name__) # pylint: disable=invalid-nameSTRING
LOWsalt/modules/nixpkg.py33logger = logging.getLogger(__name__)CODE
Slop Phrases14 hits · 19 pts
SeverityFileLineSnippetContext
LOWtests/unit/utils/test_gitfs.py86 # Clear the instance map so that we make sure to create a new instanceCOMMENT
LOWtests/pytests/unit/utils/test_gitfs_locks.py115 # Clear the instance map so that we make sure to create a new instanceCOMMENT
LOWtests/pytests/unit/modules/test_mysql.py984 -- Please don't forget to set up the tablenames in config.inc.phpSTRING
LOWtests/pytests/unit/modules/test_mysql.py1040 -- Please don't forget to set up the tablenames in config.inc.phpCODE
LOWtests/pytests/unit/modules/file/test_file_line.py99 # We need to make sure to remove the tree we just created to avoid clashes with other testsCOMMENT
LOWsalt/auth/ldap.py251 # so make sure to render it first before using itCOMMENT
LOWsalt/utils/process.py638 # make sure to kill the subprocesses if the parent is killedCOMMENT
MEDIUMsalt/states/x509.py26Here is a simple example scenario. In this example ``ca`` is the ca server,STRING
MEDIUMsalt/states/ssh_pki.py29Here is a simple example scenario. In this example, ``ca`` is the CA serverSTRING
MEDIUMsalt/states/x509_v2.py34Here is a simple example scenario. In this example ``ca`` is the ca server,STRING
MEDIUMsalt/grains/core.py2468 # It's worth noting that Ubuntu has patched their Python distributionCOMMENT
MEDIUMsalt/modules/win_task.py1911 # TODO: save it. Then you can add a new function. Maybe for editing anSTRING
LOWsalt/client/mixins.py444 # if we fired an event, make sure to delete the event object.COMMENT
LOWpkg/macos/build.sh95# Don't forget to pass the `-E` option when running with Sudo so thatCOMMENT
Verbosity Indicators14 hits · 15 pts
SeverityFileLineSnippetContext
LOWtools/testsuite/container_test.py129 # Step 1: Decompress dependenciesCOMMENT
LOWtools/testsuite/container_test.py152 # Step 2: Create relenv toolchain symlink (Python 3.14+)COMMENT
LOWtools/testsuite/container_test.py194 # Step 3: Verify setupCOMMENT
LOWtests/pytests/unit/_logging/test_impl.py103 # Step 1: buffer a record using the plain factory.COMMENT
LOWtests/pytests/unit/_logging/test_impl.py112 # Step 2: install the color factory and a color-format console handler.COMMENT
LOWtests/pytests/unit/_logging/test_impl.py120 # Step 3: sync the deferred handler's buffered records out.COMMENT
LOW…/pytests/integration/modules/state/test_state_queue.py58 # Step 1: Run a state job with queue=TrueSTRING
LOW…/pytests/integration/modules/state/test_state_queue.py71 # Step 2: Verify no files were left in state_queueSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py102 # Step 1: Occupy the only slot using subprocess to avoid fixture argument issuesSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py144 # Step 2: Queue Job 1 - should be queued due to process_count_max=1STRING
LOW…s/pytests/integration/modules/state/test_queue_race.py156 # Step 3: Verify Job 1 is in job_queue on diskSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py170 # Step 4: Queue Job 2 - should also be queued since slot is still occupiedSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py182 # Step 5: Verify Job 2 is also in job_queueSTRING
LOW…s/pytests/integration/modules/state/test_queue_race.py196 # Step 6: Verify queuing actually happened under loadSTRING
TODO Padding6 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/pytests/unit/modules/test_mac_user.py73 # TODO: Implement tests after clarifications come inCOMMENT
LOWsalt/output/progress.py25 # TODO: implement a way to get the proper target minions count and remove this workaround.COMMENT
LOWsalt/utils/thin.py374 # TODO: implement inheritance of the modules from _here_STRING
LOWsalt/states/git.py2534 # TODO: implement clean function for git module and add clean flagCOMMENT
LOWsalt/runners/manage.py248 # TODO: implement other states support for 0MQCOMMENT
LOWsalt/client/ssh/wrapper/publish.py81 # TODO: implement returners? Do they make sense for salt-ssh calls?COMMENT
Example Usage Blocks6 hits · 8 pts
SeverityFileLineSnippetContext
LOWcicd/gh-rerun-failed-jobs-from-snapshot.sh8# Usage:COMMENT
LOWpkg/macos/sign_binaries.sh16# Usage:COMMENT
LOWpkg/macos/build.sh28# Usage:COMMENT
LOWpkg/macos/package.sh16# Usage:COMMENT
LOWpkg/macos/prep_salt.sh14# Usage:COMMENT
LOWpkg/macos/notarize.sh29# Usage:COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsalt/pillar/sql_base.py210# I have added some for clarity.COMMENT
Overly Generic Function Names7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/pytests/unit/states/saltmod/test_function.py16def test_function():CODE
LOW…n/ssh/state/test_retcode_state_run_remote_exception.py32def do_stuff(name):CODE
LOWtests/pytests/functional/transport/tcp/test_tcp_ssl.py116 async def handle_request(payload, header=None):CODE
LOWtests/pytests/functional/transport/ws/test_ws_ssl.py114 async def handle_request(payload, header=None):CODE
LOWsalt/transport/ws.py465 async def handle_request(self, request):CODE
LOWsalt/utils/files.py92 def helper(*args, **kwargs):CODE
LOWsalt/modules/celery.py36def run_task(CODE