Repository Analysis

saltstack/salt

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

21.9 Moderate AI signal View on GitHub
21.9
Adjusted Score
21.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
15,465
Stars
Python
Language
1,031,510
Lines of Code
3194
Files
14968
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 10HIGH 1071MEDIUM 1949LOW 11938

Pattern Findings

14968 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers8086 hits · 7118 pts
SeverityFileLineSnippet
LOWsetup.py1017 def _property_install_requires(self):
LOWsetup.py1040 def _property_freezer_options(self):
LOWsetup.py1043 def get_esky_freezer_includes(self):
LOWnoxfile.py167def _get_session_python_version_info(session):
LOWnoxfile.py196def _get_pip_requirements_file(session, crypto=None, requirements_type="ci"):
LOWnoxfile.py254def _upgrade_pip_setuptools_and_wheel(session, upgrade=True):
LOWnoxfile.py333def _install_coverage_requirement(session):
LOWnoxfile.py905def pytest_zeromq_pycryptodome(session, coverage):
LOWnoxfile.py1482def create_html_coverage_report(session):
LOWnoxfile.py1486def _create_xml_coverage_reports(session):
LOWnoxfile.py1496def create_xml_coverage_reports(session):
LOWnoxfile.py1505def create_xml_coverage_reports_onedir(session):
LOWnoxfile.py1510def create_json_coverage_reports(session):
LOWnoxfile.py1519def create_json_coverage_reports_onedir(session):
LOWtools/ci.py205def get_release_changelog_target(ctx: Context, event_name: str):
LOWtools/ci.py254def _get_pr_test_labels_from_api(
LOWtools/ci.py284def _get_pr_test_labels_from_event_payload(
LOWtools/changelog.py60def _get_pkg_changelog_contents(ctx: Context, version: Version):
LOWtools/utils/__init__.py411def get_platform_and_arch_from_slug(slug: str) -> tuple[str, str]:
LOWtools/utils/repo.py36def get_repo_json_file_contents(
LOWtools/utils/repo.py75def create_top_level_repo_path(
LOWtools/precommit/docs.py153def build_python_module_paths(files):
LOWtools/precommit/docstrings.py1081def _check_valid_versions_on_docstrings(docstring):
LOWtools/precommit/docstrings.py1101def _check_cli_example_present(docstring):
LOWtools/precommit/docstrings.py1110def _check_cli_example_proper_formatting(docstring):
LOWtools/pkg/build.py1206def _check_pkg_build_files_exist(ctx: Context, **kwargs):
LOWtools/pkg/salt_build_backend.py56def prepare_metadata_for_build_editable(metadata_directory, config_settings=None):
LOWtests/conftest.py31def _pin_multiprocessing_fork_for_tests() -> None:
LOWtests/conftest.py65def _patch_psutil_pidfd_open_einval() -> None:
LOWtests/conftest.py105def _remove_redundant_salt_utils_vault_py() -> None:
LOWtests/conftest.py448def set_max_open_files_limits(min_soft=3072, min_hard=4096):
LOWtests/conftest.py533def pytest_collection_modifyitems(config, items):
LOWtests/conftest.py577def pytest_markeval_namespace(config):
LOWtests/conftest.py841def groups_collection_modifyitems(config, items):
LOWtests/conftest.py890def salt_factories_default_root_dir(salt_factories_default_root_dir):
LOWtests/conftest.py1021def base_env_state_tree_root_dir(state_tree_root_dir):
LOWtests/conftest.py1034def prod_env_state_tree_root_dir(state_tree_root_dir):
LOWtests/conftest.py1046def base_env_pillar_tree_root_dir(pillar_tree_root_dir):
LOWtests/conftest.py1059def ext_pillar_file_tree_root_dir(pillar_tree_root_dir):
LOWtests/conftest.py1070def prod_env_pillar_tree_root_dir(pillar_tree_root_dir):
LOWtests/conftest.py1082def salt_syndic_master_factory(
LOWtests/conftest.py1466def bridge_pytest_and_runtests(
LOWtests/conftest.py1633def from_filenames_collection_modifyitems(config, items):
LOWtests/eventlisten.py86def check_access_and_print_warning(sock_dir):
LOWtests/unit/test_loader.py1113 def test_module_package_collision(self):
LOWtests/unit/test_loader.py1333 def test_loader_clean_modules(self):
LOWtests/unit/test_loader.py1689 def test_osrelease_info_has_correct_type(self):
LOWtests/unit/test_loader.py1697 def test_deserialization_error_caught(self):
LOWtests/unit/test_loader.py1760 def test_lazyloader_refresh_file_mapping_called_with_lock_at___init__(self):
LOWtests/unit/test_loader.py1774 def test_lazyloader_zip_modules(self):
LOWtests/unit/test_loader.py1786 def test_lazyloader_pyx_modules(self):
LOWtests/unit/test_module_names.py103 def test_module_name_source_match(self):
LOWtests/unit/test_config.py1583 def test_is_provider_configured_no_alias(self):
LOWtests/unit/test_config.py1591 def test_is_provider_configured_no_driver(self):
LOWtests/unit/test_config.py1599 def test_is_provider_configured_key_is_none(self):
LOWtests/unit/test_config.py81 def test_conf_master_sample_is_commented(self):
LOWtests/unit/test_config.py94 def test_conf_minion_sample_is_commented(self):
LOWtests/unit/test_config.py107 def test_conf_cloud_sample_is_commented(self):
LOWtests/unit/test_config.py120 def test_conf_cloud_profiles_sample_is_commented(self):
LOWtests/unit/test_config.py135 def test_conf_cloud_providers_sample_is_commented(self):
8026 more matches not shown…
Decorative Section Separators1404 hits · 5088 pts
SeverityFileLineSnippet
MEDIUMtools/precommit/docstrings.py1114# ---------------------------------------------------------------------------
MEDIUMtools/precommit/docstrings.py1128# ---------------------------------------------------------------------------
MEDIUMtests/pytests/smoke-tests.txt15# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt17# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt19# ── UNIT: core data structures ───────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt29# ── UNIT: SaltStorage (per-entry log keys, state, snapshot round-trip) ───────
MEDIUMtests/pytests/smoke-tests.txt37# used by cluster/peer/join-reply state-sync) ──────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt41# install helpers, and StateSyncSession state machine) ──────────────────
MEDIUMtests/pytests/smoke-tests.txt48# ── FUNCTIONAL: HashRing under realistic clustering ──────────────────────────
MEDIUMtests/pytests/smoke-tests.txt51# ── UNIT: salt.scripts CLI entry-point pin (Python 3.14 forkserver fix) ──────
MEDIUMtests/pytests/smoke-tests.txt55# ── UNIT: node state machine ─────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt82# ── FUNCTIONAL: transport + dispatcher ───────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt88# ── FUNCTIONAL: election + replication ───────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt94# ── FUNCTIONAL: RaftService lifecycle ────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt102# ── SCENARIO: full join-and-promote path ─────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt133# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt135# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt138# SaltPeer non-blocking publish, TCP pool router) ──────────────────────────
MEDIUMtests/pytests/smoke-tests.txt148# join-reply, multi-minion routing across all peers ──────────────────────
MEDIUMtests/pytests/smoke-tests.txt158# ── SCENARIO: notify_peer_joined on receiver, dynamic 4th-master join ────────
MEDIUMtests/pytests/smoke-tests.txt162# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt164# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt194# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt196# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt198# ── UNIT: per-ring SaltStorage path keying (slice 1) ────────────────────────
MEDIUMtests/pytests/smoke-tests.txt211# ── UNIT: cluster-log SMs — registry + routing + entry dispatch ─────────────
MEDIUMtests/pytests/smoke-tests.txt221# ── UNIT: multi-ring runner fan-out wire shape (cluster_aes envelope) ───────
MEDIUMtests/pytests/smoke-tests.txt224# ── UNIT: state-sync bank: channel + selective key_filter ───────────────────
MEDIUMtests/pytests/smoke-tests.txt236# ── UNIT: salt_cache returner — every public function + bank layout ─────────
MEDIUMtests/pytests/smoke-tests.txt239# ── UNIT: cluster runner surface — every new operator-facing runner ─────────
MEDIUMtests/pytests/smoke-tests.txt242# ── UNIT: master.py gate sites + delegate-on-miss on routed drops ───────────
MEDIUMtests/pytests/smoke-tests.txt245# ── FUNCTIONAL: per-ring Raft — propose helpers, lifecycle, watchdog ────────
MEDIUMtests/pytests/smoke-tests.txt251# ── FUNCTIONAL: salt_cache returner-in-the-loop (loader + dispatch) ─────────
MEDIUMtests/pytests/smoke-tests.txt254# ── INTEGRATION: multi-ring lifecycle on isolated-FS cluster ────────────────
MEDIUMtests/pytests/smoke-tests.txt257# ── INTEGRATION: multi-ring lifecycle on shared-FS cluster ──────────────────
MEDIUMtests/pytests/smoke-tests.txt260# ── INTEGRATION: full jobs migration round-trip (shed + collect) ────────────
MEDIUMtests/pytests/smoke-tests.txt263# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt265# ─────────────────────────────────────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt113# ── FUNCTIONAL: on_ready callback ────────────────────────────────────────────
MEDIUMtests/pytests/smoke-tests.txt119# ── FUNCTIONAL/INTEGRATION/SCENARIO: cluster-ready gate ──────────────────────
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py61# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py63# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py107# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py109# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py247# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_event_monitor_ring_gating.py249# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_master.py1630# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_master.py1632# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py39# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py41# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py158# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py160# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py187# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py189# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py350# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py352# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py547# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py549# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py582# ---------------------------------------------------------------------------
MEDIUMtests/pytests/unit/test_minion_resources.py584# ---------------------------------------------------------------------------
1344 more matches not shown…
Cross-File Repetition827 hits · 4135 pts
SeverityFileLineSnippet
HIGHnoxfile.py0pytest session with zeromq transport and default crypto
HIGHnoxfile.py0pytest session with zeromq transport and default crypto
HIGHnoxfile.py0pytest session with zeromq transport and default crypto
HIGHnoxfile.py0pytest session with zeromq transport and default crypto
HIGHnoxfile.py0pytest session with zeromq transport and pycryptodome
HIGHnoxfile.py0pytest session with zeromq transport and pycryptodome
HIGHnoxfile.py0pytest session with zeromq transport and pycryptodome
HIGHnoxfile.py0pytest session with zeromq transport and pycryptodome
HIGHtests/conftest.py0fixture which returns the salt integration files directory path. creates the directory if it does not yet exist.
HIGHtests/pytests/scenarios/compat/conftest.py0fixture which returns the salt integration files directory path. creates the directory if it does not yet exist.
HIGHtests/pytests/scenarios/performance/conftest.py0fixture which returns the salt integration files directory path. creates the directory if it does not yet exist.
HIGHtests/conftest.py0fixture which returns the salt state tree root directory path. creates the directory if it does not yet exist.
HIGHtests/pytests/scenarios/compat/conftest.py0fixture which returns the salt state tree root directory path. creates the directory if it does not yet exist.
HIGHtests/pytests/scenarios/performance/conftest.py0fixture which returns the salt state tree root directory path. creates the directory if it does not yet exist.
HIGHtests/unit/test_config.py0this ensures that any strings which are loaded are unicode strings
HIGHtests/unit/test_config.py0this ensures that any strings which are loaded are unicode strings
HIGHtests/unit/test_config.py0this ensures that any strings which are loaded are unicode strings
HIGHtests/unit/utils/test_hashutils.py0ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror
HIGHtests/unit/utils/test_hashutils.py0ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror
HIGHtests/unit/utils/test_hashutils.py0ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror
HIGHtests/unit/utils/test_hashutils.py0ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror
HIGHtests/unit/utils/test_hashutils.py0ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror
HIGHtests/unit/utils/test_hashutils.py0ensure that this function converts the value passed to bytes before attempting to encode, avoiding a unicodeencodeerror
HIGHtests/unit/utils/test_systemd.py0test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror.
HIGHtests/unit/utils/test_systemd.py0test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror.
HIGHtests/unit/utils/test_systemd.py0test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror.
HIGHtests/unit/utils/test_systemd.py0test with invalid context data. the context value must be a dict, so this should raise a saltinvocationerror.
HIGHtests/unit/utils/test_systemd.py0scopes are available in systemd>=205. make sure that this function returns the expected boolean. we do three separate un
HIGHtests/unit/utils/test_systemd.py0scopes are available in systemd>=205. make sure that this function returns the expected boolean. we do three separate un
HIGHtests/unit/utils/test_systemd.py0scopes are available in systemd>=205. make sure that this function returns the expected boolean. we do three separate un
HIGHtests/unit/modules/test_x509.py0test private function _parse_subject(subject) it handles a missing fields :return:
HIGHtests/unit/modules/test_x509.py0test private function _parse_subject(subject) it handles a missing fields :return:
HIGHtests/unit/modules/test_x509.py0test private function _parse_subject(subject) it handles a missing fields :return:
HIGHtests/unit/modules/test_x509.py0test private function _parse_subject(subject) it handles a missing fields :return:
HIGHtests/unit/modules/test_supervisord.py0tests if it returns bool results for process status check
HIGHtests/unit/modules/test_supervisord.py0tests if it returns bool results for process status check
HIGHtests/unit/modules/test_supervisord.py0tests if it returns bool results for process status check
HIGHtests/unit/modules/test_supervisord.py0tests if it returns bool results for process status check
HIGHtests/unit/modules/test_zypperpkg.py0<?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k
HIGHtests/unit/modules/test_zypperpkg.py0<?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k
HIGHtests/unit/modules/test_zypperpkg.py0<?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k
HIGHtests/unit/modules/test_zypperpkg.py0<?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k
HIGHtests/unit/modules/test_zypperpkg.py0<?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k
HIGHtests/unit/modules/test_zypperpkg.py0<?xml version='1.0'?><stream> <search-result version="0.0"><solvable-list> <solvable status="installed" name="libzypp" k
HIGHtests/unit/modules/test_network.py0test for return the inet address for a given interface
HIGHtests/unit/modules/test_network.py0test for return the inet address for a given interface
HIGHtests/pytests/unit/modules/test_network.py0test for return the inet address for a given interface
HIGHtests/pytests/unit/modules/test_network.py0test for return the inet address for a given interface
HIGHtests/unit/modules/test_napalm_probes.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/unit/modules/test_napalm_yang_mod.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/pytests/unit/modules/napalm/test_bgp.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/pytests/unit/modules/napalm/test_ntp.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/pytests/unit/modules/napalm/test_snmp.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/pytests/unit/modules/napalm/test_netacl.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/pytests/unit/modules/napalm/test_users.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/pytests/unit/modules/napalm/test_route.py0:codeauthor: :email:`anthony shaw <anthonyshaw@apache.org>`
HIGHtests/unit/modules/test_vsphere.py0tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list.
HIGHtests/unit/modules/test_vsphere.py0tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list.
HIGHtests/unit/modules/test_vsphere.py0tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list.
HIGHtests/unit/modules/test_vsphere.py0tests commandexecutionerror is raised when esxi_hosts is provided, but is not a list.
767 more matches not shown…
Deep Nesting2025 hits · 1809 pts
SeverityFileLineSnippet
LOWsetup.py197
LOWsetup.py896
LOWsetup.py1043
LOWnoxfile.py133
LOWnoxfile.py196
LOWnoxfile.py333
LOWnoxfile.py414
LOWnoxfile.py1080
LOWnoxfile.py1251
LOWnoxfile.py1804
LOWtools/release.py43
LOWtools/release.py207
LOWtools/gh.py37
LOWtools/ci.py77
LOWtools/ci.py205
LOWtools/ci.py446
LOWtools/ci.py580
LOWtools/ci.py665
LOWtools/ci.py766
LOWtools/container.py43
LOWtools/changelog.py97
LOWtools/changelog.py148
LOWtools/testsuite/container_test.py312
LOWtools/testsuite/ci_failure.py186
LOWtools/testsuite/ci_failure.py311
LOWtools/testsuite/ci_failure.py420
LOWtools/testsuite/download.py271
LOWtools/utils/gh.py269
LOWtools/utils/gh.py347
LOWtools/utils/__init__.py343
LOWtools/utils/__init__.py361
LOWtools/utils/__init__.py411
LOWtools/precommit/docs.py62
LOWtools/precommit/docs.py255
LOWtools/precommit/filemap.py41
LOWtools/precommit/docstrings.py852
LOWtools/precommit/docstrings.py1140
LOWtools/precommit/loader.py30
LOWtools/precommit/workflows.py105
LOWtools/pkg/build.py36
LOWtools/pkg/build.py92
LOWtools/pkg/build.py929
LOWtools/pkg/__init__.py111
LOWtools/pkg/__init__.py235
LOWtools/pkg/__init__.py343
LOWtools/pkg/__init__.py55
LOWtools/pkg/salt_build_backend.py65
LOWtests/conftest.py105
LOWtests/conftest.py533
LOWtests/conftest.py1633
LOWtests/eventlisten.py105
LOWtests/salt-tcpdump.py296
LOWtests/salt-tcpdump.py350
LOWtests/salt-tcpdump.py271
LOWtests/buildpackage.py64
LOWtests/buildpackage.py232
LOWtests/minionswarm.py258
LOWtests/committer_parser.py45
LOWtests/unit/test_loader.py1374
LOWtests/unit/test_mock.py35
1965 more matches not shown…
Self-Referential Comments450 hits · 1311 pts
SeverityFileLineSnippet
MEDIUMtools/release.py24# Define the command group
MEDIUMtools/gh.py21# Define the command group
MEDIUMtools/ci.py33# Define the command group
MEDIUMtools/docs.py21# Define the command group
MEDIUMtools/changelog.py23# Define the command group
MEDIUMtools/testsuite/container_test.py18# Define the command group
MEDIUMtools/testsuite/ci_failure.py20# Define the command group
MEDIUMtools/testsuite/download.py29# Define the command group
MEDIUMtools/testsuite/__init__.py20# Define the command group
MEDIUMtools/testsuite/pytest.py19# Define the command group
MEDIUMtools/precommit/__init__.py9# Define the command group
MEDIUMtools/precommit/changelog.py33# Define the command group
MEDIUMtools/precommit/workflows.py31# Define the command group
MEDIUMtools/pkg/build.py197# Define the command group
MEDIUMtools/pkg/__init__.py28# Define the command group
MEDIUMtests/saltsh.py62 # Create the Salt __opts__ variable
MEDIUMtests/conftest.py167# Define the pytest plugins we rely on
MEDIUMtests/eventlisten.sh53 # Create the event tags to listen for.
MEDIUMtests/unit/utils/test_process.py186 # Create a pool with no workers and 1 queue size
MEDIUMtests/unit/modules/test_win_system.py637 # Create a mock processor class that does not have the
MEDIUMtests/integration/cloud/test_cloud.py49 # Create the VM using salt.cloud.CloudClient.create() instead of calling salt-cloud
MEDIUMtests/integration/cloud/helpers/cloud_test_base.py158 # Create the cloud instance name to be used throughout the tests
MEDIUMtests/integration/cloud/helpers/virtualbox.py11# Create the cloud instance name to be used throughout the tests
MEDIUMtests/integration/states/test_ssh_auth.py83 # Create the keyfile that we expect to get back on the state call
MEDIUMtests/integration/states/test_ssh_auth.py89 # Create a bogus key file on base environment
MEDIUMtests/integration/states/test_git.py110 # Create a URL to clone
MEDIUMtests/integration/states/test_cmd.py83 # Create the testfile and release the handle
MEDIUMtests/integration/states/test_cmd.py91 # Create the testfile and release the handle
MEDIUMtests/integration/modules/test_config.py42 # This function is generally only used with cross calls, the yaml
MEDIUMtests/integration/client/test_standard.py150 # Create a minion key, but do not start the "fake" minion. This mimics
MEDIUMtests/support/mixins.py369 # Create the class instance
MEDIUMtests/support/win_installer.py33 # Create a class so we can define how to handle the starttag
MEDIUMtests/support/unit.py134 # This class is not defined in the module being tested? Carry on...
MEDIUMtests/support/unit.py137 # This class is not a subclass of TestCase, carry on
MEDIUMtests/support/pytest/transport_ssl.py207 # Create a persistent temp directory that won't be cleaned up mid-session
MEDIUMtests/pytests/unit/test_minion.py547 # Create a simple test that just verifies the queue processing method exists
MEDIUMtests/pytests/unit/test_minion.py565 # Create a simple test that just verifies the method exists and can be called
MEDIUMtests/pytests/unit/test_minion.py1705 # Create a MinionManager instance with a mock minion
MEDIUMtests/pytests/unit/test_minion.py1780 # Create a Tornado IOLoop
MEDIUMtests/pytests/unit/fileclient/test_fileclient_cache.py104 # Create the CACHE_ROOT
MEDIUMtests/pytests/unit/utils/test_files.py118 # Create the file structures in both src and dest dirs
MEDIUMtests/pytests/unit/utils/test_nxos.py20 # Create a mock response object
MEDIUMtests/pytests/unit/utils/test_nxos.py57 # Create a mock response object
MEDIUMtests/pytests/unit/utils/test_mmap_cache_errors.py98 # Create a file with unexpected size
MEDIUMtests/pytests/unit/utils/test_mmap_cache_segments.py319 # Create a gap: remove seg 1, add a seg 2 (simulates corruption)
MEDIUM…sts/pytests/unit/utils/jinja/test_salt_cache_loader.py111 # Create a mock file client and attach it to the loader
MEDIUMtests/pytests/unit/loader/test_grains_cleanup.py87 # Create a loader to get some module references
MEDIUMtests/pytests/unit/loader/test_grains_cleanup.py185 # Create a loader
MEDIUM…ts/pytests/unit/modules/win_lgpo/test_admx_policies.py136 # Create a bogus ADML file in PolicyDefinitions directory
MEDIUMtests/pytests/unit/client/ssh/wrapper/test_cp.py222 # Create the CACHE_ROOT
MEDIUMtests/pytests/integration/cli/test_matcher.py388 # Create a minion key, but do not start the "fake" minion. This mimics a
MEDIUM…ts/pytests/integration/cli/test_salt_call_ownership.py16 # Create a wrapper script for salt-call
MEDIUMtests/pytests/integration/cli/test_salt_pip_user.py15 # Create a wrapper script for salt-pip
MEDIUMtests/pytests/integration/cli/test_salt_pip_user.py63 # Create a config file that sets 'user' to the current non-root user
MEDIUMtests/pytests/integration/minion/test_process_name.py36 # Create a fresh master for this test
MEDIUMtests/pytests/integration/minion/test_process_name.py42 # Create a fresh minion with multiprocessing=False
MEDIUMtests/pytests/integration/minion/test_process_name.py93 # Create a fresh master for this test
MEDIUMtests/pytests/integration/minion/test_process_name.py99 # Create a fresh minion with multiprocessing=True
MEDIUMtests/pytests/integration/minion/test_process_name.py149 # Create a fresh master for this test
MEDIUMtests/pytests/integration/minion/test_process_name.py155 # Create a fresh minion
390 more matches not shown…
Excessive Try-Catch Wrapping1084 hits · 1057 pts
SeverityFileLineSnippet
LOWtools/ci.py54 except Exception as exc:
LOWtools/ci.py106 except Exception as exc:
LOWtools/ci.py219 except Exception as exc:
LOWtools/ci.py402 except Exception as exc:
LOWtools/ci.py475 except Exception as exc:
LOWtools/ci.py590 except Exception as exc:
LOWtools/ci.py792 except Exception as exc:
LOWtools/precommit/docs.py236 except Exception as exc: # pylint: disable=broad-except
LOWtools/pkg/build.py163 except Exception:
LOWtools/pkg/build.py1115 except Exception as e:
LOWtools/pkg/__init__.py177 except Exception as exc:
MEDIUMtests/conftest.py90def wrapper(pid, timeout=None):
LOWtests/conftest.py491 except Exception as err: # pylint: disable=broad-except
LOWtests/unit/utils/test_win_system.py10except Exception as exc: # pylint: disable=broad-except
LOWtests/unit/utils/test_vt.py134 except Exception as exc: # pylint: disable=broad-except
LOWtests/unit/utils/test_vt.py156 except Exception as exc: # pylint: disable=broad-except
LOWtests/unit/utils/test_process.py463 except Exception: # pylint: disable=broad-except
LOWtests/unit/utils/test_process.py469 except Exception: # pylint: disable=broad-except
LOWtests/unit/utils/test_process.py491 except Exception: # pylint: disable=broad-except
LOWtests/unit/utils/test_process.py497 except Exception: # pylint: disable=broad-except
LOWtests/unit/utils/test_process.py518 except Exception: # pylint: disable=broad-except
LOWtests/unit/utils/test_win_service.py7except Exception as exc: # pylint: disable=broad-except
LOWtests/integration/output/test_output.py117 except Exception: # pylint: disable=broad-except
LOWtests/integration/utils/test_win_runas.py142 except Exception as exc: # pylint: disable=broad-except
LOWtests/integration/utils/test_win_runas.py249 except Exception as exc: # pylint: disable=broad-except
LOWtests/integration/utils/test_win_runas.py253 except Exception as exc: # pylint: disable=broad-except
LOWtests/integration/pillar/test_git_pillar.py96except Exception: # pylint: disable=broad-except
LOWtests/integration/pillar/test_git_pillar.py101except Exception: # pylint: disable=broad-except
LOWtests/integration/netapi/rest_tornado/test_app.py258 except Exception as exc: # pylint: disable=broad-except
LOWtests/integration/cloud/helpers/virtualbox.py35 except Exception as e: # pylint: disable=broad-except
MEDIUMtests/integration/cloud/helpers/virtualbox.py32def assertMachineExists(self, name, msg=None):
LOWtests/integration/modules/test_mysql.py15except Exception: # pylint: disable=broad-except
LOWtests/integration/modules/test_ssh.py29 except Exception: # pylint: disable=broad-except
LOWtests/support/mixins.py613 except Exception as exc: # pylint: disable=broad-except
LOWtests/support/unit.py260 except Exception: # pylint: disable=broad-except
LOWtests/support/case.py871 except Exception: # pylint: disable=broad-except
LOWtests/support/helpers.py232 except Exception as exc: # pylint: disable=broad-except
LOWtests/support/helpers.py251 except Exception as exc: # pylint: disable=broad-except
LOWtests/support/helpers.py350 except Exception: # pylint: disable=broad-except
LOWtests/support/helpers.py354 except Exception: # pylint: disable=broad-except
LOWtests/support/helpers.py741 except Exception as exc: # pylint: disable=W0703
LOWtests/support/helpers.py835 except Exception as exc: # pylint: disable=W0703
LOWtests/support/helpers.py959 except Exception as exc: # pylint: disable=W0703
LOWtests/support/helpers.py1259 except Exception as exc: # pylint: disable=broad-except
LOWtests/support/pytest/transport.py160 except Exception: # pylint: disable=broad-except
MEDIUMtests/support/pytest/transport.py157def _run(self, loop):
LOWtests/support/pytest/loader.py116 except Exception as exc: # pylint: disable=broad-except
LOWtests/support/pytest/helpers.py256 except Exception: # pylint: disable=broad-except
LOWtests/support/pytest/helpers.py367 except Exception: # pylint: disable=broad-except
LOWtests/support/pytest/helpers.py386 except Exception: # pylint: disable=broad-except
LOWtests/support/pytest/helpers.py399 except Exception: # pylint: disable=broad-except
MEDIUMtests/pytests/unit/test_master.py1824def _register(aes, minion_id, resource_id, grain_value):
LOWtests/pytests/unit/test_master.py1836 except Exception as exc: # pylint: disable=broad-except
MEDIUMtests/pytests/unit/test_minion_resources.py232def run_job(name, target):
LOWtests/pytests/unit/test_minion_resources.py242 except Exception as exc: # pylint: disable=broad-except
LOWtests/pytests/unit/test_log.py35 except Exception as err: # pylint: disable=broad-except
LOWtests/pytests/unit/test_log.py52 except Exception as err: # pylint: disable=broad-except
LOWtests/pytests/unit/cluster/test_ring.py430 except Exception as exc: # pylint: disable=broad-except
LOWtests/pytests/unit/cluster/test_ring.py453 except Exception as exc: # pylint: disable=broad-except
LOWtests/pytests/unit/transport/test_zeromq.py1678 except Exception as exc: # pylint: disable=broad-except
1024 more matches not shown…
Cross-Language Confusion133 hits · 558 pts
SeverityFileLineSnippet
HIGHtools/testsuite/container_test.py170 "mkdir -p /root/.local/relenv && ln -sf /root/.cache/relenv/toolchains /root/.local/relenv/toolchain",
HIGHtools/testsuite/container_test.py183 f"test -f /root/.local/relenv/toolchain/{arch}-linux-gnu/bin/{arch}-linux-gnu-gcc && echo 'OK' || echo '
HIGHtests/unit/utils/test_json.py26 '{"None": null, "True": false, "dict": {"subdict": {"спам": "яйца"}}, "float":'
HIGHtests/unit/utils/test_json.py34 "None": null,
HIGHtests/pytests/unit/test_pool_name_validation.py48 "!@#$%^&*()", # NOW ALLOWED - special chars (except / \ null)
HIGHtests/pytests/unit/renderers/test_yamlex.py60 placeholder: {foo: !aggregate {bar: null}}
HIGHtests/pytests/unit/fileclient/test_fileclient.py125 # Authenticate must return true
HIGHtests/pytests/unit/utils/test_yamldumper.py110 exp_yaml = "{foo: null}\n"
HIGHtests/pytests/unit/serializers/test_serializers.py220 placeholder: !aggregate {bar: null}
HIGHtests/pytests/unit/serializers/test_serializers.py232 placeholder: {foo: !aggregate {bar: null}}
HIGHtests/pytests/unit/serializers/test_serializers.py247 placeholder: {!aggregate foo: {bar: null}}
HIGHtests/pytests/unit/serializers/test_serializers.py263 placeholder: {!aggregate foo: {bar: null}}
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py77 "auto_updates": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py78 "bundle_short_version": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py79 "bundle_version": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py80 "caveats": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py81 "conflicts_with": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py82 "container": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py85 "deprecation_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py86 "deprecation_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py88 "disable_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py89 "disable_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py141 "caveats": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py142 "conflicts_with": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py143 "container": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py152 "deprecation_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py153 "deprecation_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py155 "disable_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py156 "disable_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py230 "caveats": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py237 "deprecation_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py238 "deprecation_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py240 "disable_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py241 "disable_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py393 "deprecation_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py394 "deprecation_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py396 "disable_date": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py397 "disable_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py848 "full_token": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py281 "keg_only_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py292 "pour_bottle_only_if": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py300 "service": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py312 "revision": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py313 "tag": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py378 "caveats": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py478 "keg_only_reason": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py489 "pour_bottle_only_if": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py497 "service": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py509 "revision": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py510 "tag": null,
HIGHtests/pytests/unit/modules/test_mac_brew_pkg.py1417 "tap": null,
HIGHtests/pytests/unit/modules/test_minion.py112 == "systemctl is-active salt-minion || systemctl start salt-minion"
HIGHtests/pytests/unit/modules/test_cp.py114 assert cp.push(path) == ret
HIGHtests/pytests/unit/modules/test_cp.py151 response = cp.push(filename)
HIGHtests/pytests/unit/modules/test_debian_service.py156 "insserv foo && update-rc.d foo enable", python_shell=True
HIGHtests/pytests/unit/modules/test_grains.py649 res = grainsmod.equals("a", "aval")
HIGHtests/pytests/unit/modules/test_grains.py652 res = grainsmod.equals("b:z", "zval")
HIGHtests/pytests/unit/modules/test_grains.py654 res = grainsmod.equals("b:z", "aval")
HIGHtests/pytests/unit/modules/test_win_service.py257 "/c ping -n 3 127.0.0.1 && net stop salt-minion && "
HIGHtests/pytests/unit/modules/test_cmdmod.py1229 'data { if ($null) { "To get help for this cmdlet, type Get-Help New-Dictionary." } }',
73 more matches not shown…
Docstring Block Structure107 hits · 535 pts
SeverityFileLineSnippet
HIGHsalt/ext/ipaddress.py52Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHsalt/ext/ipaddress.py82Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHsalt/ext/ipaddress.py112Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP
HIGHsalt/ext/ipaddress.py147Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat
HIGHsalt/ext/ipaddress.py331Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'),
HIGHsalt/ext/ipaddress.py472Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi
HIGHsalt/ext/ipaddress.py502Return prefix length from a numeric string Args: prefixlen_str: The string to be converted
HIGHsalt/ext/ipaddress.py527Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver
HIGHsalt/ext/ipaddress.py844Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28')
HIGHsalt/ext/ipaddress.py919Compare two IP objects. This is only concerned about the comparison of the integer representation of th
HIGHsalt/ext/ipaddress.py977The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr
HIGHsalt/ext/ipaddress.py1030The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi
HIGHsalt/ext/ipaddress.py1231Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str.
HIGHsalt/ext/ipaddress.py1257Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R
HIGHsalt/ext/ipaddress.py1670Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns:
HIGHsalt/ext/ipaddress.py1774Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse.
HIGHsalt/ext/ipaddress.py1848Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address.
HIGHsalt/utils/win_lgpo_netsh.py189 Get the firewall property from the specified profile in the specified store as returned by ``netsh advfirewall`
HIGHsalt/utils/win_lgpo_netsh.py293 Gets all the properties for the specified profile in the specified store Args: profile (str):
HIGHsalt/utils/win_lgpo_netsh.py352 Set the firewall inbound/outbound settings for the specified profile and store Args: profile (str
HIGHsalt/utils/win_lgpo_netsh.py468 Configure logging settings for the Windows firewall. Args: profile (str): The firewall pr
HIGHsalt/utils/win_lgpo_netsh.py595 Configure firewall settings. Args: profile (str): The firewall profile to configure. Vali
HIGHsalt/utils/win_lgpo_netsh.py689 Enable or disable the firewall profile. Args: profile (str): The firewall profile to conf
HIGHsalt/utils/files.py944 Detect a file's encoding using the following: - Check for Byte Order Marks (BOM) - Check for UTF-8 Markers
HIGHsalt/utils/win_chcp.py34 Gets or sets the codepage of the shell. Args: page_id (str, int): A number representing t
HIGHsalt/utils/win_chcp.py82 Get the currently set code page on windows Args: raise_error (bool): ``True`` will raise
HIGHsalt/utils/win_chcp.py110 Set the code page on windows Args: page_id (str, int): A number representing the codepage
HIGHsalt/utils/cloud.py2580 Helper function that waits for an IP address for a specific maximum amount of time. :param update_callback
HIGHsalt/utils/win_pdh.py133 Makes a fully resolved counter path. Counter names are formatted like this: ``\Processor(*)\%
HIGHsalt/utils/win_lgpo_reg.py124 Helper function to actually write the data to a Registry.pol file Also updates/edits the gpt.ini file to inclu
HIGHsalt/utils/win_lgpo_reg.py278 Convert the data obtained from a Registry.pol file to a dictionary. Args: policy_data (bytes): The dat
HIGHsalt/utils/win_pwsh.py31 Execute the PowerShell command and return the data as a dictionary .. versionadded:: 3006.9 Args:
HIGHsalt/utils/win_pwsh.py210 Run a PowerShell command and return the result as a parsed Python object. Unless the command already c
HIGHsalt/utils/win_pwsh.py263 Run a PowerShell command and raise on any error. Identical to :meth:`run` except that a ``CommandExecu
HIGHsalt/utils/requisite.py285 Topological sort with lexicographical ordering via custom key function. Uses Kahn's algorithm with a p
HIGHsalt/utils/win_lgpo_auditpol.py647 Get the current configuration for all audit settings in the given category. Reads effective policy via ``Audit
HIGHsalt/utils/win_lgpo_auditpol.py692 Get the current configuration for a single subcategory. Args: name (str): English subcategory name (ma
HIGHsalt/utils/win_lgpo_auditpol.py727 Set the auditing bitmask for one subcategory. Enables ``SeSecurityPrivilege`` on the current process token for
HIGHsalt/utils/mac_utils.py271 Run a launchctl command and raise an error if it fails Args: additional args are passed to launchctl s
HIGHsalt/utils/win_dacl.py2066 Copy the security descriptor of the Source to the Target. You can specify a specific portion of the security de
HIGHsalt/utils/win_dacl.py2662 Set permissions for the given path .. versionadded:: 2019.2.0 Args: obj_name (str):
HIGHsalt/utils/win_runas.py232 Run ``cmd`` as ``username`` using a logon token and ``CreateProcessWithTokenW``. The minion must be able t
HIGHsalt/utils/win_runas.py539 Run ``cmd`` as ``username`` using ``CreateProcessWithLogonW`` (with profile). Used when :func:`runas` cannot u
HIGHsalt/states/file.py1535 Helper function for creating directories when the ``makedirs`` option is set to ``True``. Handles Unix and Wind
HIGHsalt/states/win_appx.py33 Removes Microsoft Store packages from the system. If the package is part of a bundle, the entire bundle will be
HIGHsalt/modules/win_dsc.py496 Remove the current DSC Configuration. Removes current, pending, and previous dsc configurations. .. versio
HIGHsalt/modules/win_snmp.py379 Manage the SNMP accepted community names and their permissions. .. note:: Settings managed by Group Po
HIGHsalt/modules/win_file.py719 Chown a file, pass the file the desired user and group Under Windows, the group parameter will be ignored.
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 gene
HIGHsalt/modules/win_file.py1055 .. versionadded:: 3005 Get the version of a file. .. note:: Not all files have version informatio
HIGHsalt/modules/win_file.py1095 .. versionadded:: 3005 Get file details for a file. Similar to what's in the details tab on the file prope
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
HIGHsalt/modules/win_file.py1621 Ensure that the directory is available and permissions are set. Args: path (str): The ful
HIGHsalt/modules/win_file.py1731 Ensure that the parent directory containing this path is available. Args: path (str): Th
HIGHsalt/modules/win_file.py1865 Set owner and permissions for each directory created. Args: path (str): The full path to
HIGHsalt/modules/win_file.py2071 Set permissions for the given path Args: path (str): The full path to the directory.
HIGHsalt/modules/win_firewall.py65 Disable firewall profile Args: profile (:obj:`str`, optional): The name of the profile to
HIGHsalt/modules/win_firewall.py101 .. versionadded:: 2015.5.0 Enable firewall profile Args: profile (:obj:`str`, optional):
HIGHsalt/modules/win_firewall.py138 .. versionadded:: 2015.5.0 Display all matching rules as specified by name Args: name (:obj:`str
HIGHsalt/modules/win_firewall.py170 .. versionadded:: 2015.5.0 Add a new inbound or outbound rule to the firewall policy Args: name
47 more matches not shown…
Unused Imports306 hits · 282 pts
SeverityFileLineSnippet
LOWsetup.py108
LOWsetup.py109
LOWsetup.py1108
LOWtools/release.py6
LOWtools/gh.py6
LOWtools/ci.py6
LOWtools/__init__.py1
LOWtools/__init__.py6
LOWtools/docs.py6
LOWtools/changelog.py6
LOWtools/testsuite/container_test.py6
LOWtools/testsuite/ci_failure.py6
LOWtools/testsuite/download.py6
LOWtools/testsuite/__init__.py6
LOWtools/testsuite/pytest.py6
LOWtools/utils/gh.py2
LOWtools/utils/__init__.py2
LOWtools/utils/repo.py2
LOWtools/precommit/docs.py6
LOWtools/precommit/docstrings.py8
LOWtools/precommit/changelog.py6
LOWtools/precommit/workflows.py6
LOWtools/pkg/build.py6
LOWtools/pkg/__init__.py6
LOWtests/saltsh.py28
LOWtests/conftest.py144
LOWtests/unit/utils/test_dateutils.py14
LOWtests/unit/utils/test_schema.py25
LOWtests/unit/utils/test_schema.py32
LOWtests/unit/states/test_x509.py14
LOWtests/unit/modules/test_win_groupadd.py16
LOWtests/unit/modules/test_win_groupadd.py18
LOWtests/unit/modules/test_vsphere.py24
LOWtests/unit/modules/test_vsphere.py24
LOWtests/unit/modules/test_vsphere.py31
LOWtests/integration/pillar/test_git_pillar.py82
LOWtests/integration/pillar/test_git_pillar.py82
LOWtests/integration/pillar/test_git_pillar.py82
LOWtests/integration/states/test_x509.py17
LOWtests/integration/modules/test_mysql.py14
LOWtests/integration/modules/test_timezone.py15
LOWtests/support/unit.py33
LOWtests/support/unit.py37
LOWtests/support/unit.py37
LOWtests/support/unit.py37
LOWtests/support/unit.py38
LOWtests/support/unit.py38
LOWtests/support/sshd_runtime.py13
LOWtests/support/mock.py21
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
LOWtests/support/mock.py27
246 more matches not shown…
Over-Commented Block251 hits · 213 pts
SeverityFileLineSnippet
LOWtools/pkg/build.py661 "-C",
LOWtests/conftest.py1721 # Let's try a direct match between the passed file and possible test modules
LOWtests/smoke-tests-before-commit.txt1# Commands to run locally before pushing Salt changes that touch integration tests
LOWtests/unit/ext/test_ipaddress.py1# Copyright 2007 Google Inc.
LOWtests/unit/ext/test_ipaddress.py61SMALLEST = _SMALLEST()
LOWtests/unit/utils/test_process.py381
LOWtests/unit/netapi/rest_tornado/test_saltnado.py1001 ), patch.dict(
LOWtests/unit/netapi/rest_tornado/test_saltnado.py1041 # be testing that when minions are added within job_not_running, that it
LOWtests/unit/modules/test_x509.py1#
LOWtests/unit/modules/test_win_status.py161# call_count = 5
LOWtests/unit/modules/test_nxos_upgrade.py1"""
LOWtests/unit/modules/nxos/nxos_n5k.py1"""
LOWtests/unit/modules/nxos/nxos_n7k.py1"""
LOWtests/unit/modules/nxos/nxos_n3k.py1"""
LOWtests/unit/modules/nxos/nxos_n93klxc.py1"""
LOWtests/unit/modules/nxos/nxos_platform.py1"""
LOWtests/unit/modules/nxos/nxos_n36k.py1"""
LOWtests/unit/modules/nxos/nxos_n95k.py1"""
LOWtests/unit/modules/nxos/nxos_n93k.py1"""
LOWtests/integration/modules/test_mysql.py1061 )
LOWtests/integration/modules/test_mysql.py1161 # query='SELECT 1',
LOWtests/integration/modules/test_mysql.py1201 # saltenv={"LC_ALL": "en_US.utf8"}
LOWtests/support/unit.py161
LOWtests/support/pkg.py1001 if stop_services:
LOWtests/support/pkg.py1281 f"{root_url}/saltproject-deb/ stable main"
LOWtests/support/pkg.py1321 # # TODO: But maybe that's done elsewhere, hopefully in self.salt_pkgs
LOWtests/pytests/smoke-tests.txt1# Salt cluster + mmap_cache smoke test selection.
LOWtests/pytests/unit/transport/test_tcp.py361 )
LOWtests/pytests/unit/transport/test_tcp.py381#
LOWtests/pytests/unit/transport/test_tcp.py401# # assert the timeout callback was created
LOWtests/pytests/unit/transport/test_tcp.py421#
LOWtests/pytests/unit/transport/test_tcp.py441#
LOWtests/pytests/unit/output/test_nested.py41 # - two
LOWtests/pytests/unit/utils/test_data.py121 # so this should return False.
LOW…sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py141
LOWtests/pytests/unit/modules/test_yumpkg.py1721 assert yumpkg.install("spongebob") == {}
LOWtests/pytests/unit/beacons/test_network_settings.py161 #
LOWtests/pytests/unit/beacons/test_network_settings.py181 #
LOWtests/pytests/integration/cluster/conftest.py21# attributed failures to slow runners. Reproducing them with stress-ng on
LOW…sts/pytests/integration/cluster/test_ring_lifecycle.py141 # RING_REGISTRY entry. We don't have a runner that reads the
LOWtests/pytests/integration/resources/conftest.py161# ---------------------------------------------------------------------------
LOWtests/pytests/integration/cli/test_salt.py201 # proc = subprocess.Popen(
LOWtests/pytests/integration/cli/test_salt_key.py121 # We can't load JSON because we print to stdout!
LOWtests/pytests/integration/loader/test_ext_grains.py1import pytest
LOWtests/pytests/scenarios/cluster_kind/conftest.py401 {"name": "ret", "containerPort": 4506},
LOW…s/pytests/scenarios/cluster_kind/setup-in-container.sh1#!/usr/bin/env bash
LOWtests/pytests/scenarios/performance/test_performance.py541
LOWtests/pytests/functional/cluster/consensus/smoke.txt1# Raft consensus smoke test selection
LOWtests/pytests/functional/states/file/test_keyvalue.py21 #Port 22
LOWtests/pytests/functional/states/file/test_replace.py321 )
LOWtests/pytests/functional/modules/test_cmdmod.py601 # in 3.11 and greater Python's subprocess module will not allow abc
LOWtests/pytests/functional/modules/test_cmdmod.py621# )
LOW…ests/functional/modules/state/requisites/test_mixed.py261 # test Infinite recursion prereq+require #8785 v3
LOW…ytests/functional/modules/state/requisites/test_use.py41 - cmd: E
LOW…ytests/functional/modules/state/requisites/test_use.py221 # cmd.run:
LOW…sts/functional/modules/state/requisites/test_prereq.py261 Ensure that the order is right.
LOW…sts/functional/modules/state/requisites/test_prereq.py421 # B --+ | 2
LOW…ts/functional/modules/state/requisites/test_require.py61
LOWrequirements/constraints.txt1# IMPORTANT: The versions here must be compatible with the environment where
LOWrequirements/windows.txt1# Windows source distribution requirements
191 more matches not shown…
Redundant / Tautological Comments158 hits · 198 pts
SeverityFileLineSnippet
LOWtools/testsuite/container_test.py53 # Check if docker daemon is running
LOWtools/testsuite/container_test.py112 # Check if container exists
LOWtests/unit/modules/test_x509.py212 # Check if property is the one we've added to the certificate. The
LOWtests/unit/modules/test_x509.py252 # Check if property is the one we've added to the certificate. The
LOWtests/unit/modules/test_x509.py355 # Check if property values are the ones we've added to the certificate.
LOWtests/integration/modules/test_git.py95 # Check if key is missing
LOWtests/integration/modules/test_git.py909 # Check if this new path is a worktree
LOWtests/integration/modules/test_git.py911 # Check if the main repo is a worktree
LOWtests/integration/modules/test_git.py913 # Check if a non-repo directory is a worktree
LOWtests/support/unit.py50# Set SHOW_PROC to True to show
LOWtests/pytests/unit/test_pool_name_edge_cases.py181 # Check if resulting path would exceed Unix socket path limit (typically 108 bytes)
LOWtests/pytests/unit/test_client.py57 # Check if either minion1 or minion2 was targeted in the final call
LOWtests/pytests/unit/states/test_pip.py53 use_wheel=False, # Set False to simplify testing
LOWtests/pytests/unit/modules/test_mine.py277 # Check if the mine entries have been stored properly in the FakeCache.
LOWtests/pytests/integration/executors/test_sudo.py83 # Check if it already exists (another test might have created it)
LOWtests/pytests/integration/executors/test_sudo.py159 # Check if the output is 0.
LOWtests/pytests/scenarios/performance/test_performance.py30 # Check if image exists first
LOWtests/pytests/scenarios/performance/test_performance.py48 # Check if image exists first
LOWtests/pytests/functional/test_pip_install.py121 # Check if they are still running
LOWtests/pytests/functional/channel/test_auth_downgrade.py310 # Check if attack was blocked
LOWtests/pytests/pkg/upgrade/systemd/conftest.py39 # Check if the test has a custom salt_install_env marker
LOWtests/pytests/pkg/upgrade/systemd/conftest.py221 # Check if salt user exists before chowning (similar to minion_systemd fixture)
LOWtests/pytests/pkg/upgrade/systemd/conftest.py427 # Check if the current salt-call version supports --priv option
LOWtests/pytests/pkg/upgrade/systemd/conftest.py501 # Check if the current salt-call version supports --priv option
LOW…/pytests/pkg/upgrade/systemd/test_install_with_user.py32 # Check if --upgrade flag is present in the test config
LOW…/pytests/pkg/upgrade/systemd/test_install_with_user.py166 # Check if user exists
LOW…/pytests/pkg/upgrade/systemd/test_install_with_user.py179 # Check if the current salt-call version supports --priv option
LOWtests/pytests/pkg/upgrade/systemd/test_permissions.py155 # Check if the current salt-call version supports --priv option
LOWagents/mcp/launch-salt-test.sh19# Set PYTHONPATH to the project root so we can import the agents package
LOWsalt/crypt.py2057 # Check if we can skip AES encryption
LOWsalt/crypt.py2095 # Check if data has TLS marker (was sent without AES)
LOWsalt/fileclient.py1194 # Check if file exists on server, before creating files and
LOWsalt/master.py543 # Check if scheduler requires lower loop interval than
LOWsalt/master.py3166 # Check if key is configured to be auto-rejected/signed
LOWsalt/master.py3329 # Check if the keys are the same and error out if this is the
LOWsalt/master.py4102 # Check if 'minions' is included in returner's save_load arg_spec.
LOWsalt/minion.py665 # Check if scheduler requires lower loop interval than
LOWsalt/minion.py1610 # Check if file is older than 5 minutes (300 seconds)
LOWsalt/minion.py2145 # Check if we should bypass the process_count_max check
LOWsalt/minion.py2268 # Check if we are running in threading mode (multiprocessing=False)
LOWsalt/minion.py4609 # Check if this candidate is blocked by any active jobs
LOWsalt/template.py184 # Check if it starts with a shebang and not a path
LOWsalt/state.py2731 # Check if this low chunk is paused
LOWsalt/cluster/consensus/raft/node.py1420 # Check if we should snapshot now that commit_index advanced and entries were applied
LOWsalt/transport/tcp.py1343 # Check if stream is still open
LOWsalt/transport/tls_util.py45 # Check if optimization is enabled
LOWsalt/transport/tls_util.py49 # Check if SSL is configured
LOWsalt/transport/tls_util.py55 # Check if cert_reqs is CERT_REQUIRED
LOWsalt/transport/tls_util.py67 # Check if peer certificate is present
LOWsalt/config/__init__.py876 # Set this to -1 for unlimited attempts. This allows for a master to have
LOWsalt/config/__init__.py3818 # Check if required fields are supplied in the provider config. If they
LOWsalt/config/__init__.py4117 # Set environment to saltenv in case someone's custom module is
LOWsalt/config/__init__.py4377 # Set environment to saltenv in case someone's custom runner is
LOWsalt/config/worker_pools.py249 # Check if worker_pools is explicitly configured AND not empty
LOWsalt/utils/gzip_util.py88 # Open the file and re-attempt the read
LOWsalt/utils/powershell.py88 # Check if defaults exist, add them if they do
LOWsalt/utils/minions.py1465 # Check if minions are allowed
LOWsalt/utils/thin.py551 # Check if auto_detect is enabled and update dependencies
LOWsalt/utils/gitfs.py2707 # Check if it's a valid repo
LOWsalt/utils/gitfs.py2855 # Check if file exists and get its metadata
98 more matches not shown…
AI Slop Vocabulary57 hits · 108 pts
SeverityFileLineSnippet
LOWsetup.py683 # If run_frame is None, just call the parent class logic
MEDIUMtests/committer_parser.py6# May leverage GitHub API in the future
LOWtests/unit/modules/test_network.py130 # The path exists, just return it
MEDIUMtests/integration/modules/test_mine.py173 # less flaky. If we still see it fail we need to look for a more robust
MEDIUMtests/integration/modules/test_git.py507 # TODO: More robust unset testing, try to trigger all the
LOWtests/pytests/unit/cluster/consensus/test_raft_node.py1256 # Should not raise — just return silently
LOWtests/pytests/unit/fileserver/gitfs/test_gitfs.py49 # can just use the Version instances imported along with
LOW…sts/pytests/unit/fileserver/gitfs/test_gitfs_config.py21 # can just use the Version instances imported along with
MEDIUMtests/pytests/unit/returners/test_salt_cache.py183 # test harness). The "compute matched set when tgt is set"
LOWtests/pytests/unit/modules/test_pip.py247 # As single string (just use the first element from pkgs and editables)
LOWtests/pytests/unit/modules/test_pip.py318 # As single string (just use the first element from mirrors)
LOWtests/pytests/unit/modules/test_pip.py389 # As single string (just use the first element from find_links)
LOWtests/pytests/unit/modules/test_network.py218 # The path exists, just return it
MEDIUM…s/integration/cluster/test_ring_lifecycle_shared_fs.py125 # of tailing logs — more robust against unrelated log lines
MEDIUM…scenarios/regression/test_fd_leak_task_cancellation.py82 # With comprehensive task cancellation and shutdown, leak should be minimal
MEDIUMtests/pytests/perf/test_cache_benchmarks.py78# already have ``__opts__`` from the live master harness (tiny mmap tables).
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
MEDIUMsalt/crypt.py616 # facilitate migrating to pem named off the master id instead of master.pem
LOWsalt/crypt.py1013 # if an auth is in flight-- and not done-- just pass that back as the future to wait on
LOWsalt/crypt.py1701# TODO: remove, we should just return a sync wrapper of AsyncAuth
LOWsalt/minion.py3274 # Since we are already in the child process/thread, we just return.
LOWsalt/renderers/pyobjects.py462 # if salt_data is not True then we just return the global scope we've
LOWsalt/output/highstate.py304 # output() is recursive, if we aren't passed a dict just return it
LOWsalt/output/txt.py36 # For non-dictionary, non-string data, just use print
MEDIUMsalt/output/table_out.py323 # to facilitate re-use
MEDIUMsalt/utils/mmap_cache.py17# harness, and various salt-call entry points do not bundle. Importing this
LOWsalt/utils/url.py185 # No match, just return the original string
LOWsalt/utils/nxos.py219 # Don't just return body['ins_api']['outputs']['output'] directly.
LOWsalt/utils/args.py154 # Therefore, skip YAML loading for these cases and just return the string
LOWsalt/utils/gitfs.py1164 # Make sure that we have a positive integer timeout, otherwise just set
LOWsalt/utils/gitfs.py3505 # We can't just use the return value from repo.fetch()
LOWsalt/utils/schedule.py1637 # The "splay" configuration has been already processed, just use it
LOWsalt/utils/xmlutil.py31 # for it, so just return a single dict representing it.
LOWsalt/utils/optsdict.py1016 # For regular dict, just use keys()
LOWsalt/utils/optsdict.py1096 # If setting to None, just use regular assignment
MEDIUMsalt/utils/win_runas.py340 # Get a linked user token to elevate if needed
MEDIUMsalt/cloud/deploy/bootstrap-salt.sh6422 # leverage the windows directories since release Windows and Linux
MEDIUMsalt/states/saltmod.py926 # the 'highstate' outputter, we can leverage this fact when merging the
LOWsalt/states/pkgrepo.py468 # to use. Most package providers will simply return the data provided
LOWsalt/modules/git.py711 # in the output in case there are thousands), so just return True. If there
LOWsalt/modules/rpm_lowpkg.py522 # available, then we can just use SIZE for older versions. See Issue #31366.
LOWsalt/modules/win_event.py220 # rather than wait just return
MEDIUMsalt/modules/pacmanpkg.py382 # Use a compatible structure with yum, so we can leverage the existing state.group_installed
LOWsalt/modules/file.py6336 # Local file paths will just return the same path back when passed
MEDIUMsalt/modules/win_lgpo.py2977 # These policies can NOT be set in conjunction with Advanced
LOWsalt/modules/win_pkg.py397 # If no args passed, just return everything
LOWsalt/modules/pip.py983 # just return the output without running pip.
LOWsalt/modules/mac_service.py195 # check if KeepAlive is True and not just set.
LOWsalt/modules/win_timezone.py289 # if it's one of the key's just use it
LOWsalt/modules/win_timezone.py332 # if it's one of the key's just use it
MEDIUMsalt/modules/bcache.py808 # I'll utilize 'inter_ro' as 'misc' as well
LOWsalt/modules/grains.py296 # Return the grains we just set to confirm everything was OK
MEDIUMsalt/modules/chocolatey.py537 # moves more functions to this new paradigm
MEDIUMsalt/modules/chocolatey.py1375 # moves more functions to this new paradigm
LOWsalt/modules/mysql.py2980 # if the connection fails, we simply return False
LOWsalt/client/mixins.py278 # just return True.
LOWsalt/client/__init__.py1665 # if we have all the minion returns, lets just return
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippet
CRITICALtests/pytests/unit/utils/test_thin.py791 thin.salt.utils.hashutils.get_hash.assert_called()
CRITICALtests/pytests/unit/utils/test_thin.py808 thin.salt.utils.hashutils.get_hash.assert_called()
CRITICALtests/pytests/unit/cli/test_ssh.py7 Test that `salt.client.ssh.SSH.fsclient.destroy()` is called.
CRITICALsalt/modules/yumpkg.py728 salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n",
CRITICALsalt/modules/rpm_lowpkg.py110 queryformat = salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "none")
CRITICALsalt/modules/chroot.py244 salt.client.ssh.wrapper.state._cleanup_slsmod_low_data(chunks)
CRITICALsalt/modules/chroot.py358 salt.client.ssh.wrapper.state._merge_extra_filerefs(
CRITICALsalt/modules/chroot.py402 salt.client.ssh.wrapper.state._merge_extra_filerefs(
CRITICALsalt/modules/zypperpkg.py932 salt.utils.pkg.rpm.QUERYFORMAT.replace("%{REPOID}", "(none)") + "\n",
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){retur
Fake / Example Data28 hits · 34 pts
SeverityFileLineSnippet
LOWtests/integration/states/test_git.py277 fp_.write("Lorem ipsum dolor blah blah blah....\n")
LOWtests/support/unit.py56Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis.
LOWtests/support/unit.py56Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis.
LOWtests/pytests/unit/utils/test_x509.py555 cx509.RFC822Name("user@example.com"),
LOWtests/pytests/unit/utils/test_stringutils.py296 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis.
LOWtests/pytests/unit/utils/test_stringutils.py296 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget urna a arcu lacinia sagittis.
LOW…s/pytests/unit/modules/file/test_file_block_replace.py75 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus
LOW…s/pytests/unit/modules/file/test_file_block_replace.py75 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus
LOW…s/pytests/unit/modules/file/test_file_block_replace.py95 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
LOW…s/pytests/unit/modules/file/test_file_block_replace.py95 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
LOWtests/pytests/unit/modules/file/test_file_grep.py56 Lorem ipsum dolor sit amet, consectetur
LOWtests/pytests/unit/modules/file/test_file_grep.py56 Lorem ipsum dolor sit amet, consectetur
LOWtests/pytests/unit/modules/file/test_file_grep.py79 result = filemod.grep(multiline_file, "Lorem ipsum")
LOWtests/pytests/unit/modules/file/test_file_grep.py83 assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py83 assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py96 result = filemod.grep(multiline_file, "Lorem ipsum", "-i")
LOWtests/pytests/unit/modules/file/test_file_grep.py100 assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py100 assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py121 result = filemod.grep(_file, "Lorem ipsum")
LOWtests/pytests/unit/modules/file/test_file_grep.py125 assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py125 assert result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py131 result = filemod.grep(_file, "Lorem ipsum")
LOWtests/pytests/unit/modules/file/test_file_grep.py135 assert not result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/unit/modules/file/test_file_grep.py135 assert not result["stdout"] == "Lorem ipsum dolor sit amet, consectetur"
LOWtests/pytests/functional/modules/file/test_replace.py23 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus
LOWtests/pytests/functional/modules/file/test_replace.py23 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus
LOWtests/pytests/functional/modules/file/test_replace.py32 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
LOWtests/pytests/functional/modules/file/test_replace.py32 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippet
HIGHsalt/modules/cron.py210 # If Salt is running from same user as requested in cron module we don't need any user switch
HIGHsalt/modules/cron.py250 # If Salt is running from same user as requested in cron module we don't need any user switch
HIGHsalt/modules/cron.py278 # If Salt is running from same user as requested in cron module we don't need any user switch
HIGHsalt/modules/cron.py335 # If Salt is running from same user as requested in cron module we don't need any user switch
Slop Phrases14 hits · 19 pts
SeverityFileLineSnippet
LOWtests/unit/utils/test_gitfs.py86 # Clear the instance map so that we make sure to create a new instance
LOWtests/pytests/unit/utils/test_gitfs_locks.py115 # Clear the instance map so that we make sure to create a new instance
LOWtests/pytests/unit/modules/test_mysql.py843 -- Please don't forget to set up the tablenames in config.inc.php
LOWtests/pytests/unit/modules/test_mysql.py899 -- Please don't forget to set up the tablenames in config.inc.php
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 tests
LOWsalt/auth/ldap.py251 # so make sure to render it first before using it
LOWsalt/utils/process.py626 # make sure to kill the subprocesses if the parent is killed
MEDIUMsalt/states/x509.py26Here is a simple example scenario. In this example ``ca`` is the ca server,
MEDIUMsalt/states/ssh_pki.py29Here is a simple example scenario. In this example, ``ca`` is the CA server
MEDIUMsalt/states/x509_v2.py34Here is a simple example scenario. In this example ``ca`` is the ca server,
MEDIUMsalt/grains/core.py2443 # It's worth noting that Ubuntu has patched their Python distribution
MEDIUMsalt/modules/win_task.py1911 # TODO: save it. Then you can add a new function. Maybe for editing an
LOWsalt/client/mixins.py444 # if we fired an event, make sure to delete the event object.
LOWpkg/macos/build.sh95# Don't forget to pass the `-E` option when running with Sudo so that
Verbosity Indicators11 hits · 8 pts
SeverityFileLineSnippet
LOWtools/testsuite/container_test.py129 # Step 1: Decompress dependencies
LOWtools/testsuite/container_test.py152 # Step 2: Create relenv toolchain symlink (Python 3.14+)
LOWtools/testsuite/container_test.py194 # Step 3: Verify setup
LOW…/pytests/integration/modules/state/test_state_queue.py55 # Step 1: Run a state job with queue=True
LOW…/pytests/integration/modules/state/test_state_queue.py68 # Step 2: Verify no files were left in state_queue
LOW…s/pytests/integration/modules/state/test_queue_race.py101 # Step 1: Occupy the only slot using subprocess to avoid fixture argument issues
LOW…s/pytests/integration/modules/state/test_queue_race.py143 # Step 2: Queue Job 1 - should be queued due to process_count_max=1
LOW…s/pytests/integration/modules/state/test_queue_race.py155 # Step 3: Verify Job 1 is in job_queue on disk
LOW…s/pytests/integration/modules/state/test_queue_race.py169 # Step 4: Queue Job 2 - should also be queued since slot is still occupied
LOW…s/pytests/integration/modules/state/test_queue_race.py181 # Step 5: Verify Job 2 is also in job_queue
LOW…s/pytests/integration/modules/state/test_queue_race.py195 # Step 6: Verify queuing actually happened under load
Example Usage Blocks6 hits · 8 pts
SeverityFileLineSnippet
LOWcicd/gh-rerun-failed-jobs-from-snapshot.sh8# Usage:
LOWpkg/macos/sign_binaries.sh16# Usage:
LOWpkg/macos/build.sh28# Usage:
LOWpkg/macos/package.sh16# Usage:
LOWpkg/macos/prep_salt.sh14# Usage:
LOWpkg/macos/notarize.sh29# Usage:
Overly Generic Function Names7 hits · 7 pts
SeverityFileLineSnippet
LOWtests/pytests/unit/states/saltmod/test_function.py16def test_function():
LOW…n/ssh/state/test_retcode_state_run_remote_exception.py32def do_stuff(name):
LOWtests/pytests/functional/transport/tcp/test_tcp_ssl.py116 async def handle_request(payload, header=None):
LOWtests/pytests/functional/transport/ws/test_ws_ssl.py114 async def handle_request(payload, header=None):
LOWsalt/transport/ws.py465 async def handle_request(self, request):
LOWsalt/utils/files.py92 def helper(*args, **kwargs):
LOWsalt/modules/celery.py36def run_task(