Repository Analysis

ansible/ansible

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

20.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ansible/ansible, a Python project with 69,666 GitHub stars. SynthScan v2.0 examined 384,335 lines of code across 4486 source files, recording 5820 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 20.4 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).

20.4
Adjusted Score
20.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
69.7K
Stars
Python
Language
384.3K
Lines of Code
4.5K
Files
5.8K
Pattern Hits
2026-07-14
Scan Date
0.08
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 7HIGH 335MEDIUM 414LOW 5064

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 5820 distinct pattern matches across 22 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 Identifiers1671 hits · 1663 pts
SeverityFileLineSnippetContext
LOWpackaging/release.py808def get_latest_setuptools_version() -> Version:CODE
LOWpackaging/release.py816def set_setuptools_upper_bound(requested_version: Version) -> None:CODE
LOWpackaging/release.py840def create_reproducible_sdist(original_path: pathlib.Path, output_path: pathlib.Path, mtime: int) -> None:CODE
LOWpackaging/release.py855def create_reproducible_tar_info(original: tarfile.TarInfo, mtime: int) -> tarfile.TarInfo:CODE
LOWpackaging/release.py915def get_release_artifact_details(repository: str, version: Version, validate: bool) -> list[ReleaseArtifact]:CODE
LOWpackaging/release.py929def describe_release_artifact(version: Version, item: dict[str, t.Any], validate: bool) -> ReleaseArtifact:CODE
LOWpackaging/release.py985def create_template_environment() -> jinja2.Environment:CODE
LOWpackaging/release.py995def create_github_release_notes(upstream: Remote, repository: str, version: Version, validate: bool) -> str:CODE
LOWpackaging/cli-doc/build.py177def populate_subparser_actions(parser: argparse.ArgumentParser, shared_option_names: tuple[str, ...], actions: dict[str,CODE
LOW…st/integration/targets/ansible-test-container/runme.py130def get_container_completion_entries() -> dict[str, dict[str, str]]:CODE
LOW…st/integration/targets/ansible-test-container/runme.py379def prepare_prime_podman_storage() -> list[str]:CODE
LOW…st/integration/targets/ansible-test-container/runme.py865 def configure_unprivileged_user(cls) -> None:CODE
LOW…ts/inventory_cache/plugins/inventory/exercise_cache.py103 def test_update_cache_if_changed(self):STRING
LOW…ts/module_utils/library/test_heuristic_log_sanitize.py11def heuristic_log_sanitize_spy(*args, **kwargs):CODE
LOW…egration/targets/dnf/filter_plugins/dnf_module_list.py29def get_first_single_version_module(stdout):CODE
LOW…filter_plugins/override_formerly_core_masked_filter.py4def override_formerly_core_masked_filter(*args, **kwargs):CODE
LOW…ons/test_plugins/override_formerly_core_masked_test.py4def override_formerly_core_masked_test(value, *args, **kwargs):CODE
LOWtest/sanity/code-smell/update-bundled.py57def get_files_with_bundled_metadata(paths):CODE
LOWtest/sanity/code-smell/update-bundled.py105def get_latest_applicable_version(pypi_data, constraints=None):CODE
LOWtest/units/conftest.py58# def prevent_collection_loader_leak(request: pytest.FixtureRequest):COMMENT
LOWtest/units/controller_only_conftest.py21def _zap_vault_secrets_context() -> t.Generator[None]:CODE
LOWtest/units/controller_only_conftest.py34def _empty_vault_secrets_context(_zap_vault_secrets_context) -> t.Generator[None]:CODE
LOWtest/units/controller_only_conftest.py52def _ignore_untrusted_template(mocker: MockerFixture) -> t.Generator[None]:CODE
LOWtest/units/_internal/test_event_formatting.py12def test_traceback_formatting() -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py12 def test_unsupported_platform(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py35 def test_library_with_no_crypt_methods(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py50 def test_library_with_no_crypt_r_or_crypt_gensalt_rn(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py100 def test_crypt_result_failure(self, mocker: MockerFixture, failure_token: bytes) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py108 def test_crypt_gensalt_called_with_no_impl(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py126 def test_crypt_gensalt_fail_errno(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py134 def test_crypt_gensalt_result_none(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_encryption/test_crypt.py142 def test_crypt_gensalt_result_failure(self, mocker: MockerFixture) -> None:CODE
LOWtest/units/_internal/_errors/test_alarm_timeout.py30def test_alarm_timeout_success(timeout: int | None) -> None:CODE
LOWtest/units/_internal/_errors/test_alarm_timeout.py41def test_alarm_timeout_timeout() -> None:CODE
LOWtest/units/_internal/_errors/test_alarm_timeout.py61def test_alarm_timeout_bad_values(timeout: t.Any, expected_error_type: type[Exception], expected_error_pattern: str) -> CODE
LOWtest/units/_internal/_errors/test_alarm_timeout.py72def test_alarm_timeout_bad_state() -> None:CODE
LOWtest/units/_internal/_errors/test_alarm_timeout.py118def test_alarm_timeout_escape_broad_exception():CODE
LOWtest/units/_internal/_errors/test_error_utils.py57def test_exception_result_contribution(exceptions: t.Sequence[BaseException], expected: dict[str, t.Any]) -> None:CODE
LOWtest/units/_internal/_errors/test_task_timeout.py8def test_task_timeout_result_contribution() -> None:CODE
LOWtest/units/_internal/_ansiballz/test_builder.py7def test_debugger_source_mapping() -> None:CODE
LOWtest/units/_internal/templating/test_common_.py17def get_dunder_methods_to_intercept() -> list[str]:CODE
LOWtest/units/_internal/templating/test_common_.py67def test_jinja_undefined_shape():CODE
LOWtest/units/_internal/templating/test_common_.py96def test_getattr_attribute_error(marker: Marker) -> None:CODE
LOWtest/units/_internal/templating/test_utils.py22def test_marker_getattr_dunder(marker: Marker) -> None:CODE
LOWtest/units/_internal/templating/conftest.py22def get_concrete_marker_types() -> list[type[Marker]]:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py514def test_list_adapter_equality(value: str, expected: list) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py521def test_list_adapter_source_propagation(value: t.Any) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py528def test_lazy_containers_to_yaml(value: t.Any) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py533def test_lazy_containers_to_json(value: t.Any) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py760 def call_filter_with_native_args_kwargs() -> t.Any:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py763 def call_test_with_native_args_kwargs() -> t.Any:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py766 def args_and_kwargs_are_non_templating_lazy(value: t.Any, arg, *, kwarg) -> bool:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py94def test_container_comparison(container_type: type) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py155def test_dict_get_with_default(template_context) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py260def test_dict_items_and_values() -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py281def test_lazy_list_adapter_operators(template, variables, expected) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py376def test_lazy_container_operators(expression: str, expected_value: t.Any, expected_type: type) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py587def test_lazy_mutation_persistence(expression: str) -> None:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py618def test_lazy_mutation_cross_plugin_dirty_container(expr: str, new_value: t.Any, some_var: t.Any, expected_value: t.Any)CODE
LOWtest/units/_internal/templating/test_lazy_containers.py661def test_undefined_in_jinja_constant_container():CODE
1611 more matches not shown…
Unused Imports1675 hits · 1654 pts
SeverityFileLineSnippetContext
LOWpackaging/release.py5CODE
LOWpackaging/cli-doc/build.py5CODE
LOW.azure-pipelines/scripts/combine-coverage.py10CODE
LOW.azure-pipelines/scripts/publish-codecov.py8CODE
LOW.azure-pipelines/scripts/time-command.py4CODE
LOW…lookup-option-name/lookup_plugins/non_terms_posargs.py1CODE
LOW…lback-dispatch/callback_plugins/oops_always_enabled.py1CODE
LOW…/callback-dispatch/callback_plugins/v1_only_methods.py1CODE
LOW…ck-dispatch/callback_plugins/legacy_warning_display.py1CODE
LOW…llback-dispatch/callback_plugins/missing_base_class.py1CODE
LOW…integration/targets/callback-dispatch/library/noisy.py1CODE
LOW…s/module-serialization-profiles/library/echo_modern.py1CODE
LOW…s/module-serialization-profiles/library/echo_legacy.py1CODE
LOW…ule-serialization-profiles/library/echo_unspecified.py1CODE
LOWtest/integration/targets/pause/test-pause.py3CODE
LOW…tion/targets/module_no_log/library/module_that_logs.py2CODE
LOW…argets/module_no_log/library/module_that_has_secret.py2CODE
LOW…ult_pickle_error/action_plugins/result_pickle_error.py5CODE
LOW…ns/ns/col/plugins/doc_fragments/return_doc_fragment.py3CODE
LOW…llections/ns/col/plugins/lookup/import_order_lookup.py3CODE
LOW…llections/ns/col/plugins/modules/option_name_casing.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_6.py4CODE
LOW…ble_collections/ns/col/plugins/modules/import_order.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_2.py4CODE
LOW…/ns/col/plugins/modules/valid_argument_spec_context.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_3.py4CODE
LOW…_collections/ns/col/plugins/modules/_not_deprecated.py4CODE
LOW…/ansible_collections/ns/col/plugins/modules/sidecar.py3CODE
LOW…le_collections/ns/col/plugins/modules/wrong_aliases.py4CODE
LOW…_collections/ns/col/plugins/modules/semantic_markup.py4CODE
LOW…ins/modules/invalid_argument_spec_incorrect_context.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_7.py4CODE
LOW…col/plugins/modules/invalid_argument_spec_extra_key.py4CODE
LOW…lections/ns/col/plugins/modules/invalid_yaml_syntax.py4CODE
LOW…collections/ns/col/plugins/modules/return_fragments.py4CODE
LOW…s/ns/col/plugins/modules/return_fragments_not_exist.py4CODE
LOW…ections/ns/col/plugins/modules/invalid_choice_value.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_4.py4CODE
LOW…ions/ns/col/plugins/modules/doc_fragments_not_exist.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_5.py4CODE
LOW…ible_collections/ns/col/plugins/modules/no_callable.py4CODE
LOW…tions/ns/col/plugins/modules/check_mode_attribute_1.py4CODE
LOW…rgets/module_utils_common.respawn/library/respawnme.py6CODE
LOW…ble_collections/my_ns/my_col/plugins/test/test_test.py1CODE
LOW…/my_col/plugins/lookup/lookup_no_future_boilerplate.py3CODE
LOW…collections/my_ns/my_col/plugins/lookup/lookup_name.py1CODE
LOW…collections/my_ns/my_col/plugins/filter/test_filter.py1CODE
LOWtest/integration/targets/no_log/library/module.py6CODE
LOW…on/targets/no_log/action_plugins/action_sets_no_log.py1CODE
LOW…odule_precedence/roles_with_extension/foo/library/a.py2CODE
LOW…le_precedence/roles_with_extension/foo/library/ping.py22CODE
LOW…s/module_precedence/multiple_roles/foo/library/ping.py22CODE
LOW…s/module_precedence/multiple_roles/bar/library/ping.py22CODE
LOW…tion/targets/module_precedence/lib_with_extension/a.py2CODE
LOW…n/targets/module_precedence/lib_with_extension/ping.py22CODE
LOWtest/integration/targets/infra/library/test.py4CODE
LOW…ble_collections/ns/col/plugins/module_utils/my_util.py1CODE
LOW…on/ansible_collections/ns/col/plugins/modules/hello.py4CODE
LOW…tegration/targets/task-args/action_plugins/echo_raw.py1CODE
LOW…t/integration/targets/task-args/action_plugins/echo.py1CODE
1615 more matches not shown…
Self-Referential Comments325 hits · 952 pts
SeverityFileLineSnippetContext
MEDIUMtest/integration/targets/win_script/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/blockinfile/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…/targets/old_style_modules_posix/library/helloworld.sh2# This file is part of AnsibleCOMMENT
MEDIUM…le_precedence/roles_with_extension/foo/library/ping.py7# This file is part of AnsibleCOMMENT
MEDIUM…s/module_precedence/multiple_roles/foo/library/ping.py7# This file is part of AnsibleCOMMENT
MEDIUM…s/module_precedence/multiple_roles/bar/library/ping.py7# This file is part of AnsibleCOMMENT
MEDIUM…n/targets/module_precedence/lib_with_extension/ping.py7# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/ping/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/async_fail/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…ntegration/targets/async_fail/action_plugins/normal.py3# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/changed_when/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/file/tasks/selinux_tests.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/file/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…n/targets/hash/roles/test_hash_behaviour/vars/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…/targets/hash/roles/test_hash_behaviour/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…n/targets/hash/roles/test_hash_behaviour/meta/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…rgets/hash/roles/test_hash_behaviour/defaults/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/win_raw/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/group_by/create_groups.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/group_by/test_group_by.yml4# This file is part of AnsibleCOMMENT
MEDIUM…integration/targets/group_by/test_group_by_skipped.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/assemble/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/assemble/meta/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/systemd/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…argets/check_mode/roles/test_check_mode/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…argets/check_mode/roles/test_always_run/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…targets/check_mode/roles/test_always_run/meta/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/async/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…ts/var_blending/roles/test_var_blending/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/template/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/template/tasks/main.yml422# Create a template using a child template, to ensure that variablesCOMMENT
MEDIUM…on/targets/includes/roles/test_includes/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…ion/targets/shell-plugins/action_plugins/test_shell.py1# This file is part of AnsibleCOMMENT
MEDIUM…tegration/targets/user/tasks/test_create_user_home.yml43# Create a new user account with a path that has parent directories that do not existCOMMENT
MEDIUMtest/integration/targets/loop-until/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/add_host/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/script/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/ignore_errors/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/special_vars/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/pip/tasks/pip.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/fetch/runme.sh30# Create a non-root user account and configure SSH access for that accountCOMMENT
MEDIUMtest/integration/targets/failed_when/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/stat/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…ude_import/playbook/sub_playbook/library/helloworld.py2# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/find/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…targets/parsing/roles/test_good_parsing/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/iptables/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…ntegration/targets/iptables/tasks/chain_management.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/service/meta/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/windows-minimal/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…gets/collections/custom_vars_plugins/v1_vars_plugin.py3# This file is part of AnsibleCOMMENT
MEDIUM…gets/collections/custom_vars_plugins/v2_vars_plugin.py3# This file is part of AnsibleCOMMENT
MEDIUM…ollections/testns/testcoll/plugins/vars/custom_vars.py3# This file is part of AnsibleCOMMENT
MEDIUM…ons/testns/content_adj/plugins/vars/custom_adj_vars.py3# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/uri/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/apt_key/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUMtest/integration/targets/raw/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…ndlers/roles/test_handlers_include_role/tasks/main.yml1# This file is part of AnsibleCOMMENT
MEDIUM…on/targets/handlers/roles/test_handlers/tasks/main.yml4# This file is part of AnsibleCOMMENT
MEDIUM…rgets/handlers/roles/test_handlers_meta/tasks/main.yml4# This file is part of AnsibleCOMMENT
265 more matches not shown…
Cross-File Repetition163 hits · 815 pts
SeverityFileLineSnippetContext
HIGH…le_precedence/roles_with_extension/foo/library/ping.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…s/module_precedence/multiple_roles/foo/library/ping.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…s/module_precedence/multiple_roles/bar/library/ping.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…n/targets/module_precedence/lib_with_extension/ping.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…le_precedence/roles_with_extension/foo/library/ping.py0# test we can logon to 'webservers' and execute python with json lib. ansible webservers -m pingSTRING
HIGH…s/module_precedence/multiple_roles/foo/library/ping.py0# test we can logon to 'webservers' and execute python with json lib. ansible webservers -m pingSTRING
HIGH…s/module_precedence/multiple_roles/bar/library/ping.py0# test we can logon to 'webservers' and execute python with json lib. ansible webservers -m pingSTRING
HIGH…n/targets/module_precedence/lib_with_extension/ping.py0# test we can logon to 'webservers' and execute python with json lib. ansible webservers -m pingSTRING
HIGH…on/ansible_collections/ns/col/plugins/modules/hello.py0module: hello short_description: hello test module description: hello test module. options: name: description: name to sSTRING
HIGH…er/ansible_collections/ns/col/plugins/modules/hello.py0module: hello short_description: hello test module description: hello test module. options: name: description: name to sSTRING
HIGH…ts/ansible_collections/ns/col/plugins/modules/hello.py0module: hello short_description: hello test module description: hello test module. options: name: description: name to sSTRING
HIGHtest/integration/targets/config/lookup_plugins/bogus.py0- name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}}STRING
HIGH…on/targets/config/lookup_plugins/casting_individual.py0- name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}}STRING
HIGHtest/integration/targets/config/lookup_plugins/types.py0- name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}}STRING
HIGH…t/integration/targets/config/lookup_plugins/casting.py0- name: like some other plugins, this is mostly useless debug: msg={{ q('casting', [1,2,3])}}STRING
HIGHtest/integration/targets/config/lookup_plugins/bogus.py0_list: description: basically the same as you fed in type: list elements: rawSTRING
HIGH…on/targets/config/lookup_plugins/casting_individual.py0_list: description: basically the same as you fed in type: list elements: rawSTRING
HIGHtest/integration/targets/config/lookup_plugins/types.py0_list: description: basically the same as you fed in type: list elements: rawSTRING
HIGH…t/integration/targets/config/lookup_plugins/casting.py0_list: description: basically the same as you fed in type: list elements: rawSTRING
HIGH…egration/targets/lookup_config/lookup_plugins/bogus.py0_list: description: basically the same as you fed in type: list elements: rawSTRING
HIGHlib/ansible/plugins/lookup/list.py0_list: description: basically the same as you fed in type: list elements: rawSTRING
HIGH…ation/targets/ansible-doc/library/test_docs_returns.py0z_last: description: a last result. broken: type: str returned: success version_added: 1.3.0 m_middle: description: - thSTRING
HIGH…gets/ansible-doc/library/test_docs_return_fragments.py0z_last: description: a last result. broken: type: str returned: success version_added: 1.3.0 m_middle: description: - thSTRING
HIGH…ections/testns/testcol/plugins/modules/randommodule.py0z_last: description: a last result. broken: type: str returned: success version_added: 1.3.0 m_middle: description: - thSTRING
HIGH…ections/testns/testcol/plugins/inventory/statichost.py0inventory: statichost short_description: add a single host description: add a single host extends_documentation_fragmentSTRING
HIGH…ections/testns/testcol/plugins/inventory/statichost.py0inventory: statichost short_description: add a single host description: add a single host extends_documentation_fragmentSTRING
HIGH…ons/testns/content_adj/plugins/inventory/statichost.py0inventory: statichost short_description: add a single host description: add a single host extends_documentation_fragmentSTRING
HIGH…gration/targets/module_defaults/library/legacy_ping.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…le_collections/testns/testcoll/plugins/modules/ping.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…targets/ansible-galaxy-collection/files/test_module.py0--- module: ping version_added: historical short_description: try to connect to host, verify a usable python and return STRING
HIGH…gration/targets/module_defaults/library/legacy_ping.py0# test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - namSTRING
HIGH…le_collections/testns/testcoll/plugins/modules/ping.py0# test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - namSTRING
HIGH…targets/ansible-galaxy-collection/files/test_module.py0# test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - namSTRING
HIGHlib/ansible/modules/ping.py0# test we can logon to 'webservers' and execute python with json lib. # ansible webservers -m ansible.builtin.ping - namSTRING
HIGH…gration/targets/module_defaults/library/legacy_ping.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGH…le_collections/testns/testcoll/plugins/modules/ping.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGH…ntegration/targets/windows-minimal/library/win_ping.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGH…upport/windows-integration/plugins/modules/win_ping.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGH…ollections/ansible/windows/plugins/modules/win_ping.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGH…targets/ansible-galaxy-collection/files/test_module.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGHlib/ansible/modules/ping.py0ping: description: value provided with the o(data) parameter. returned: success type: str sample: pongSTRING
HIGH…llections/testns/testcoll/plugins/modules/vyosfacts.py0--- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults versSTRING
HIGH…ollections/testns/testcoll/plugins/modules/eosfacts.py0--- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults versSTRING
HIGH…_collections/testns/testcoll/plugins/modules/module.py0--- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults versSTRING
HIGH…llections/testns/testcoll/plugins/modules/ios_facts.py0--- module: ios_facts short_description: module to test module_defaults description: module to test module_defaults versSTRING
HIGH…ntegration/targets/windows-minimal/library/win_ping.py0--- module: win_ping version_added: "1.7" short_description: a windows version of the classic ping module description: -STRING
HIGH…upport/windows-integration/plugins/modules/win_ping.py0--- module: win_ping version_added: "1.7" short_description: a windows version of the classic ping module description: -STRING
HIGH…ollections/ansible/windows/plugins/modules/win_ping.py0--- module: win_ping version_added: "1.7" short_description: a windows version of the classic ping module description: -STRING
HIGH…ntegration/targets/windows-minimal/library/win_ping.py0# test connectivity to a windows host # ansible winserver -m win_ping - name: example from an ansible playbook win_ping:STRING
HIGH…upport/windows-integration/plugins/modules/win_ping.py0# test connectivity to a windows host # ansible winserver -m win_ping - name: example from an ansible playbook win_ping:STRING
HIGH…ollections/ansible/windows/plugins/modules/win_ping.py0# test connectivity to a windows host # ansible winserver -m win_ping - name: example from an ansible playbook win_ping:STRING
HIGH…support/windows-integration/plugins/action/win_copy.py0this is a closure (function utilizing variables from it's parent function's scope) so that we only need one copy of all STRING
HIGH…collections/ansible/windows/plugins/action/win_copy.py0this is a closure (function utilizing variables from it's parent function's scope) so that we only need one copy of all STRING
HIGHlib/ansible/plugins/action/copy.py0this is a closure (function utilizing variables from it's parent function's scope) so that we only need one copy of all STRING
HIGH…pport/windows-integration/plugins/modules/win_shell.py0msg: description: changed returned: always type: bool sample: true start: description: the command execution start time.STRING
HIGH…llections/ansible/windows/plugins/modules/win_shell.py0msg: description: changed returned: always type: bool sample: true start: description: the command execution start time.STRING
HIGHlib/ansible/modules/shell.py0msg: description: changed returned: always type: bool sample: true start: description: the command execution start time.STRING
HIGH…ib/ansible_test/_internal/classification/powershell.py0return a namespace and name from the given module_utils path.STRING
HIGH…st/lib/ansible_test/_internal/classification/csharp.py0return a namespace and name from the given module_utils path.STRING
HIGH…st/lib/ansible_test/_internal/classification/python.py0return a namespace and name from the given module_utils path.STRING
103 more matches not shown…
Cross-Language Confusion169 hits · 781 pts
SeverityFileLineSnippetContext
HIGH…st/integration/targets/ansible-test-container/runme.py1107 lines = run_command('sh', '-c', '. /etc/os-release && echo $ID && echo $VERSION_ID', capture=True).stdout.splitlCODE
HIGHtest/units/_internal/templating/test_templar.py1082 assert TemplateEngine(variables=dict(something=TRUST.tag("{{ nope }}"))).template(TRUST.tag("{{ (something is eqCODE
HIGHtest/units/_internal/_yaml/test_dumper.py66 ({1, 2, 3}, "!!set {1: null, 2: null, 3: null}\n"),CODE
HIGHtest/units/module_utils/basic/test_selinux.py35 # selinux unavailable, should return falseCOMMENT
HIGHtest/units/module_utils/basic/test_selinux.py58 # selinux unavailable, should return falseCOMMENT
HIGHtest/units/module_utils/basic/test_selinux.py61 # selinux disabled, should return falseCOMMENT
HIGHtest/units/module_utils/facts/other/test_ohai.py6396 "SOCK_MAXBUF": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6397 "_POSIX_ASYNC_IO": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6400 "_POSIX_PRIO_IO": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6401 "_POSIX_SYNC_IO": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6463 "_POSIX_PII": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6464 "_POSIX_PII_INTERNET": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6465 "_POSIX_PII_INTERNET_DGRAM": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6466 "_POSIX_PII_INTERNET_STREAM": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6467 "_POSIX_PII_OSI": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6468 "_POSIX_PII_OSI_CLTS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6469 "_POSIX_PII_OSI_COTS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6470 "_POSIX_PII_OSI_M": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6471 "_POSIX_PII_SOCKET": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6472 "_POSIX_PII_XTI": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6473 "_POSIX_POLL": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6478 "_POSIX_SELECT": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6490 "_POSIX_THREAD_ROBUST_PRIO_INHERIT": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6491 "_POSIX_THREAD_ROBUST_PRIO_PROTECT": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6495 "TIMER_MAX": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6498 "_T_IOV_MAX": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6530 "POSIX2_FORT_DEV": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6531 "POSIX2_FORT_RUN": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6537 "POSIX2_UPE": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6542 "LFS_CFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6543 "LFS_LDFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6544 "LFS_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6545 "LFS_LINTFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6547 "LFS64_LDFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6548 "LFS64_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6552 "_XBS5_ILP32_OFF32": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6553 "XBS5_ILP32_OFF32_CFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6554 "XBS5_ILP32_OFF32_LDFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6555 "XBS5_ILP32_OFF32_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6556 "XBS5_ILP32_OFF32_LINTFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6557 "_XBS5_ILP32_OFFBIG": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6558 "XBS5_ILP32_OFFBIG_CFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6559 "XBS5_ILP32_OFFBIG_LDFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6560 "XBS5_ILP32_OFFBIG_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6561 "XBS5_ILP32_OFFBIG_LINTFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6565 "XBS5_LP64_OFF64_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6566 "XBS5_LP64_OFF64_LINTFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6567 "_XBS5_LPBIG_OFFBIG": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6568 "XBS5_LPBIG_OFFBIG_CFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6569 "XBS5_LPBIG_OFFBIG_LDFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6570 "XBS5_LPBIG_OFFBIG_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6571 "XBS5_LPBIG_OFFBIG_LINTFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6572 "_POSIX_V6_ILP32_OFF32": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6573 "POSIX_V6_ILP32_OFF32_CFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6574 "POSIX_V6_ILP32_OFF32_LDFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6575 "POSIX_V6_ILP32_OFF32_LIBS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6576 "POSIX_V6_ILP32_OFF32_LINTFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6579 "_POSIX_V6_ILP32_OFFBIG": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6580 "POSIX_V6_ILP32_OFFBIG_CFLAGS": null,CODE
HIGHtest/units/module_utils/facts/other/test_ohai.py6581 "POSIX_V6_ILP32_OFFBIG_LDFLAGS": null,CODE
109 more matches not shown…
Deep Nesting607 hits · 567 pts
SeverityFileLineSnippetContext
LOWpackaging/release.py743CODE
LOWpackaging/release.py840CODE
LOWpackaging/release.py198CODE
LOWpackaging/cli-doc/build.py177CODE
LOW…rel_plugin_loading/subdir/inventory_plugins/notyaml.py114CODE
LOWtest/integration/targets/ansible-test/venv-pythons.py14CODE
LOW…st/integration/targets/ansible-test-container/runme.py44CODE
LOW…st/integration/targets/ansible-test-container/runme.py140CODE
LOW…st/integration/targets/ansible-test-container/runme.py233CODE
LOW…st/integration/targets/ansible-test-container/runme.py472CODE
LOW…egration/targets/gathering_facts/library/file_utils.py11CODE
LOW…ntegration/targets/playbook_output_validator/filter.py13CODE
LOW…targets/var_precedence/ansible-var-precedence-check.py414CODE
LOWtest/integration/targets/uri/files/testserver.py12CODE
LOWtest/sanity/code-smell/no-unwanted-characters.py9CODE
LOWtest/sanity/code-smell/test-constraints.py9CODE
LOWtest/sanity/code-smell/boilerplate.py7CODE
LOWtest/sanity/code-smell/update-bundled.py105CODE
LOWtest/sanity/code-smell/no-s3.py12CODE
LOWtest/units/_internal/templating/test_common_.py152CODE
LOWtest/units/_internal/templating/conftest.py28CODE
LOWtest/units/_internal/templating/test_lazy_containers.py376CODE
LOWtest/units/_internal/templating/test_lazy_containers.py403CODE
LOWtest/units/playbook/role/test_include_role.py157CODE
LOWtest/units/playbook/role/test_include_role.py203CODE
LOW…nits/utils/collection_loader/test_collection_loader.py237CODE
LOWtest/units/cli/test_galaxy.py655CODE
LOWtest/units/inventory/test_data.py73CODE
LOWtest/units/parsing/yaml/test_loader.py285CODE
LOW…support/windows-integration/plugins/action/win_copy.py25CODE
LOW…support/windows-integration/plugins/action/win_copy.py77CODE
LOW…support/windows-integration/plugins/action/win_copy.py328CODE
LOW…collections/ansible/windows/plugins/action/win_copy.py25CODE
LOW…collections/ansible/windows/plugins/action/win_copy.py77CODE
LOW…collections/ansible/windows/plugins/action/win_copy.py328CODE
LOWtest/lib/ansible_test/_internal/host_profiles.py755CODE
LOWtest/lib/ansible_test/_internal/host_profiles.py922CODE
LOWtest/lib/ansible_test/_internal/host_profiles.py1163CODE
LOWtest/lib/ansible_test/_internal/host_profiles.py1251CODE
LOWtest/lib/ansible_test/_internal/completion.py329CODE
LOWtest/lib/ansible_test/_internal/util.py318CODE
LOWtest/lib/ansible_test/_internal/util.py1092CODE
LOWtest/lib/ansible_test/_internal/containers.py449CODE
LOWtest/lib/ansible_test/_internal/containers.py592CODE
LOWtest/lib/ansible_test/_internal/coverage_util.py164CODE
LOWtest/lib/ansible_test/_internal/http.py41CODE
LOWtest/lib/ansible_test/_internal/docker_util.py596CODE
LOWtest/lib/ansible_test/_internal/docker_util.py657CODE
LOWtest/lib/ansible_test/_internal/diff.py196CODE
LOWtest/lib/ansible_test/_internal/target.py90CODE
LOWtest/lib/ansible_test/_internal/target.py307CODE
LOWtest/lib/ansible_test/_internal/target.py490CODE
LOWtest/lib/ansible_test/_internal/target.py515CODE
LOWtest/lib/ansible_test/_internal/ssh.py106CODE
LOWtest/lib/ansible_test/_internal/python_requirements.py258CODE
LOWtest/lib/ansible_test/_internal/delegation.py139CODE
LOWtest/lib/ansible_test/_internal/delegation.py334CODE
LOWtest/lib/ansible_test/_internal/provisioning.py101CODE
LOWtest/lib/ansible_test/_internal/data.py256CODE
LOWtest/lib/ansible_test/_internal/core_ci.py414CODE
547 more matches not shown…
Excessive Try-Catch Wrapping462 hits · 470 pts
SeverityFileLineSnippetContext
LOWtest/integration/targets/pause/test-pause.py21except Exception:CODE
LOW…rel_plugin_loading/subdir/inventory_plugins/notyaml.py96 except Exception as e:CODE
LOW…st/integration/targets/ansible-test-container/runme.py518 except Exception:CODE
LOW…ventory/inventory_plugins/constructed_with_hostvars.py50 except Exception as ex:STRING
LOW…egration/targets/module_tracebacks/library/ansibull.py39 except Exception as ex:CODE
LOW…ts/inventory_cache/plugins/inventory/exercise_cache.py76 except Exception as e:STRING
LOW…targets/var_precedence/ansible-var-precedence-check.py531 except Exception as e:STRING
LOWtest/sanity/code-smell/boilerplate.py43 except Exception: # pylint: disable=broad-exceptCODE
LOWtest/sanity/code-smell/ansible-requirements.py10 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUMtest/sanity/code-smell/ansible-requirements.py6def read_file(path):CODE
LOWtest/units/_internal/templating/conftest.py43 except Exception as ex:CODE
LOWtest/units/_internal/templating/conftest.py47 except Exception as ex2:CODE
LOWtest/units/_internal/templating/test_lazy_containers.py426 except Exception as ex:CODE
LOWtest/units/_internal/templating/test_templar.py878 except Exception:CODE
LOWtest/units/mock/error_helper.py14 except Exception as ex:CODE
LOWtest/units/utils/test_serialization_profiles.py176 except Exception as ex:STRING
LOWtest/units/utils/test_serialization_profiles.py182 except Exception as ex:STRING
LOW…nits/utils/collection_loader/test_collection_loader.py299 except Exception as phe:CODE
LOWtest/units/utils/display/test_warning.py25 except Exception as ex:CODE
LOWtest/units/module_utils/datatag/test_datatag.py306 except Exception as ex:CODE
LOW…/module_utils/common/warnings/test_error_as_warning.py17 except Exception as ex:CODE
LOW…/module_utils/common/warnings/test_error_as_warning.py30 except Exception as ex:CODE
MEDIUM…/module_utils/common/warnings/test_error_as_warning.py14def test_error_as_warning() -> None:CODE
LOWtest/units/parsing/utils/test_addresses.py81 except Exception:CODE
LOWtest/units/parsing/utils/test_addresses.py94 except Exception:CODE
LOWtest/units/parsing/yaml/test_loader.py193 except Exception as e:CODE
LOW…support/windows-integration/plugins/action/win_copy.py226 except Exception as err:CODE
LOW…support/windows-integration/plugins/action/win_copy.py295 except Exception as e:CODE
LOW…support/windows-integration/plugins/action/win_copy.py373 except Exception as err:CODE
LOW…collections/ansible/windows/plugins/action/win_copy.py226 except Exception as err:CODE
LOW…collections/ansible/windows/plugins/action/win_copy.py295 except Exception as e:CODE
LOW…collections/ansible/windows/plugins/action/win_copy.py373 except Exception as err:CODE
LOW…ctions/ansible/windows/plugins/plugin_utils/_reboot.py150 except Exception as e:CODE
LOW…ctions/ansible/windows/plugins/plugin_utils/_reboot.py271 except Exception as e:STRING
LOW…ctions/ansible/windows/plugins/plugin_utils/_reboot.py363 except Exception:CODE
LOW…ctions/ansible/windows/plugins/plugin_utils/_reboot.py398 except Exception as e:CODE
LOW…ctions/ansible/windows/plugins/plugin_utils/_reboot.py566 except Exception:CODE
MEDIUM…ctions/ansible/windows/plugins/plugin_utils/_reboot.py545def _wrap_conn_err(func, *args, **kwargs):CODE
LOWtest/lib/ansible_test/_internal/content_config.py96 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWtest/lib/ansible_test/_internal/content_config.py102 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWtest/lib/ansible_test/_internal/util.py611 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWtest/lib/ansible_test/_internal/containers.py647 except Exception:CODE
LOWtest/lib/ansible_test/_internal/coverage_util.py135 except Exception as ex:CODE
LOWtest/lib/ansible_test/_internal/debugging.py98 except Exception as ex:CODE
LOWtest/lib/ansible_test/_internal/http.py79 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWtest/lib/ansible_test/_internal/diff.py131 except Exception as ex:CODE
LOWtest/lib/ansible_test/_internal/target.py44 except Exception as ex: # pylint: disable=locally-disabled, broad-exceptCODE
LOWtest/lib/ansible_test/_internal/ssh.py96 except Exception: # pylint: disable=broad-exceptCODE
LOWtest/lib/ansible_test/_internal/provisioning.py223 except Exception as ex: # pylint: disable=broad-exceptCODE
LOW…/lib/ansible_test/_internal/cli/argparsing/__init__.py197 except Exception: # pylint: disable=broad-exceptCODE
LOW…/lib/ansible_test/_internal/cli/argparsing/__init__.py229 except Exception: # pylint: disable=broad-exceptCODE
LOW…nsible_test/_internal/commands/integration/__init__.py610 except Exception as ex:CODE
LOW…nsible_test/_internal/commands/integration/cloud/cs.py137 except Exception: # pylint: disable=broad-exceptCODE
LOW…t/lib/ansible_test/_util/target/setup/probe_cgroups.py22 except Exception as ex: # pylint: disable=broad-exceptCODE
LOW…st/lib/ansible_test/_util/target/setup/requirements.py87 except Exception as ex:CODE
LOW…ib/ansible_test/_util/target/sanity/import/importer.py110 except Exception as ex:CODE
LOW…sible_test/_util/controller/tools/collection_detail.py53 except Exception as ex: # pylint: disable=broad-exceptCODE
LOW…sible_test/_util/controller/tools/collection_detail.py74 except Exception as ex: # pylint: disable=broad-exceptCODE
LOW…sible_test/_util/controller/tools/collection_detail.py86 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUM…oller/sanity/validate-modules/validate_modules/main.py151def _ensure_default_entry(self, path):CODE
402 more matches not shown…
Over-Commented Block426 hits · 423 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# Note: this requirements.txt file is used to specify what dependencies areCOMMENT
LOWtest/integration/targets/win_script/tasks/main.yml1# test code for the script module when using winrm connectionCOMMENT
LOW…t/integration/targets/hosts_field/test_hosts_field.yml1---COMMENT
LOWtest/integration/targets/connection_ssh/runme.sh1#!/usr/bin/env bashCOMMENT
LOWtest/integration/targets/blockinfile/tasks/main.yml1# Test code for the blockinfile module.COMMENT
LOW…/targets/old_style_modules_posix/library/helloworld.sh1#!/bin/shCOMMENT
LOWtest/integration/targets/module_precedence/runme.sh21COMMENT
LOWtest/integration/targets/module_precedence/runme.sh41# returns 'a.ini', then this test is pointless anyway because there's no chanceCOMMENT
LOW…le_precedence/roles_with_extension/foo/library/ping.py1#!/usr/bin/pythonCOMMENT
LOW…s/module_precedence/multiple_roles/foo/library/ping.py1#!/usr/bin/pythonCOMMENT
LOW…s/module_precedence/multiple_roles/bar/library/ping.py1#!/usr/bin/pythonCOMMENT
LOW…n/targets/module_precedence/lib_with_extension/ping.py1#!/usr/bin/pythonCOMMENT
LOWtest/integration/targets/ping/tasks/main.yml1# test code for the ping moduleCOMMENT
LOWtest/integration/targets/collection/setup.sh1#!/usr/bin/env bashCOMMENT
LOWtest/integration/targets/conditionals/play.yml421COMMENT
LOW…ation/targets/conditionals/output_validation_tests.yml81# Convert these to tests that assert a broken conditional error.COMMENT
LOWtest/integration/targets/async_fail/tasks/main.yml1# test code for the async keyword failing in the middle of outputCOMMENT
LOW…ntegration/targets/async_fail/action_plugins/normal.py1# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>COMMENT
LOWtest/integration/targets/changed_when/tasks/main.yml1# test code for the changed_when parameterCOMMENT
LOWtest/integration/targets/command_shell/tasks/main.yml321 - shell_result0.cmd == remote_tmp_dir_test + '/test.sh'COMMENT
LOWtest/integration/targets/loop_control/label.yml21# that:COMMENT
LOW…t/integration/targets/win_async_wrapper/tasks/main.yml41COMMENT
LOW…t/integration/targets/win_async_wrapper/tasks/main.yml81#- name: ensure that watchdog and module procs have exitedCOMMENT
LOW…t/integration/targets/win_async_wrapper/tasks/main.yml221 - >-COMMENT
LOW…t/integration/targets/win_async_wrapper/tasks/main.yml241#COMMENT
LOW…t/integration/targets/win_async_wrapper/tasks/main.yml261# - proclist.stdout.strip() == ""COMMENT
LOW…ration/targets/ansible-inventory/tasks/toml_output.yml1- block:COMMENT
LOWtest/integration/targets/file/tasks/selinux_tests.yml1# Test code for the file module - selinux subtasks.COMMENT
LOWtest/integration/targets/file/tasks/main.yml1# Test code for the file module.COMMENT
LOW…n/targets/hash/roles/test_hash_behaviour/vars/main.yml1# test code for the hash variable behaviorCOMMENT
LOW…/targets/hash/roles/test_hash_behaviour/tasks/main.yml1# test code for the hash variable behaviourCOMMENT
LOW…n/targets/hash/roles/test_hash_behaviour/meta/main.yml1# test code for the hash variable behaviorCOMMENT
LOW…rgets/hash/roles/test_hash_behaviour/defaults/main.yml1# test code for the hash variable behaviorCOMMENT
LOWtest/integration/targets/win_raw/tasks/main.yml1# test code for the raw module when using winrm connectionCOMMENT
LOWtest/integration/targets/win_raw/tasks/main.yml141#- name: check raw with job resultCOMMENT
LOWtest/integration/targets/group_by/create_groups.yml1# test code for the group_by moduleCOMMENT
LOWtest/integration/targets/group_by/test_group_by.yml1# test code for the group_by moduleCOMMENT
LOW…integration/targets/group_by/test_group_by_skipped.yml1# test code for the group_by moduleCOMMENT
LOWtest/integration/targets/callback_default/runme.sh1#!/usr/bin/env bashCOMMENT
LOWtest/integration/targets/assemble/tasks/main.yml1# test code for the assemble moduleCOMMENT
LOWtest/integration/targets/assemble/meta/main.yml1# test code for the assemble moduleCOMMENT
LOWtest/integration/targets/systemd/tasks/main.yml1# Test code for the systemd module.COMMENT
LOW…ration/targets/builtin_vars_prompt/test-vars_prompt.py41COMMENT
LOW…argets/check_mode/roles/test_check_mode/tasks/main.yml1# test code for the template moduleCOMMENT
LOW…argets/check_mode/roles/test_always_run/tasks/main.yml1# test code for the check_mode: no optionCOMMENT
LOW…targets/check_mode/roles/test_always_run/meta/main.yml1# test code for the check_mode: no optionCOMMENT
LOWtest/integration/targets/async/tasks/main.yml1# test code for the async keywordCOMMENT
LOW…ts/var_blending/roles/test_var_blending/tasks/main.yml1# test codeCOMMENT
LOWtest/integration/targets/template/tasks/main.yml1# test code for the template moduleCOMMENT
LOW…on/targets/includes/roles/test_includes/tasks/main.yml1# test code for the ping moduleCOMMENT
LOWtest/integration/targets/ansible-vault/faux-editor.py1#!/usr/bin/env pythonCOMMENT
LOWtest/integration/targets/ansible-vault/runme.sh421COMMENT
LOW…t/integration/targets/ansible-vault/password-script.py1#!/usr/bin/env pythonCOMMENT
LOW…ble-vault/roles/test_vault_embedded_ids/tasks/main.yml21 that:COMMENT
LOWtest/integration/targets/loop-until/tasks/main.yml1# Test code for integration of until and loop optionsCOMMENT
LOWtest/integration/targets/assert/tasks/main.yml241# DTFIX-FUTURE: restore tests for `quiet` arg with a custom callback or output validation testCOMMENT
LOWtest/integration/targets/add_host/tasks/main.yml1# test code for the add_host actionCOMMENT
LOWtest/integration/targets/script/tasks/main.yml1# Test code for the script module and action_plugin.COMMENT
LOW…n/targets/ignore_errors/test_invalid_ignore_errors.yml21COMMENT
LOWtest/integration/targets/ignore_errors/tasks/main.yml1# test codeCOMMENT
366 more matches not shown…
Modern Structural Boilerplate80 hits · 84 pts
SeverityFileLineSnippetContext
LOWpackaging/release.py790def set_ansible_version(current_version: Version, requested_version: Version) -> None:CODE
LOWpackaging/release.py816def set_setuptools_upper_bound(requested_version: Version) -> None:CODE
LOWpackaging/release.py1110def update_version(final: bool = False, pre: str | None = None, version: str | None = None) -> None:CODE
LOWpackaging/release.py1123def update_setuptools(setuptools: bool) -> None:CODE
LOW…st/integration/targets/fork_safe_stdio/vendored_pty.py21__all__ = ["openpty", "fork", "spawn"]CODE
LOW…test-no-tty/ansible_collections/ns/col/vendored_pty.py21__all__ = ["openpty", "fork", "spawn"]CODE
LOWtest/units/controller_only_conftest.py17__all__ = ['_empty_vault_secrets_context', '_ignore_untrusted_template', '_vault_secrets_context', '_zap_vault_secrets_cCODE
LOWtest/units/mock/module.py29 def set_traceback_config(self, value: list[_traceback.TracebackEvent] | None = None) -> None:CODE
LOWtest/units/modules/conftest.py21 def set_module_args(args: dict[str, t.Any] | None = None) -> None:CODE
LOWtest/lib/ansible_test/_internal/diff.py57 def set_start(self, line_start: int, line_count: int) -> None:CODE
LOW…t/lib/ansible_test/_internal/cli/argparsing/parsers.py181 def set_namespace(self, namespace: t.Any) -> None:CODE
LOW…nsible_test/_internal/commands/integration/__init__.py965 def update_environment(self, env: dict[str, str]) -> None:CODE
LOW…ible_test/_internal/commands/integration/cloud/nios.py58 def _setup_dynamic(self) -> None:CODE
LOW…ible_test/_internal/commands/integration/cloud/nios.py79 def _setup_static(self) -> None:CODE
LOW…ble_test/_internal/commands/integration/cloud/azure.py68 def _setup_dynamic(self) -> None:CODE
LOW…test/_internal/commands/integration/cloud/openshift.py52 def _setup_static(self) -> None:CODE
LOW…test/_internal/commands/integration/cloud/openshift.py61 def _setup_dynamic(self) -> None:CODE
LOW…_test/_internal/commands/integration/cloud/__init__.py257 def _set_cloud_config(self, key: str, value: t.Union[str, int, bool]) -> None:CODE
LOW…est/_internal/commands/integration/cloud/opennebula.py30 def _setup_dynamic(self) -> None:CODE
LOW…sible_test/_internal/commands/integration/cloud/aws.py68 def _setup_dynamic(self) -> None:CODE
LOW…nsible_test/_internal/commands/integration/cloud/cs.py58 def _setup_static(self) -> None:CODE
LOW…nsible_test/_internal/commands/integration/cloud/cs.py83 def _setup_dynamic(self) -> None:CODE
LOW…ible_test/_internal/commands/integration/cloud/acme.py45 def _setup_dynamic(self) -> None:CODE
LOW…ible_test/_internal/commands/integration/cloud/acme.py65 def _setup_static(self) -> None:CODE
LOW…le_test/_internal/commands/integration/cloud/hcloud.py55 def _setup_dynamic(self) -> None:CODE
LOWhacking/update-sanity-requirements.py66 def update_pre_build(self) -> None:CODE
LOWlib/ansible/_internal/_task.py389 def update_task_vars(self, variables: dict[str, t.Any]) -> None:CODE
LOWlib/ansible/_internal/_task.py1230 def set_fact(self, key: str, value: object) -> None:CODE
LOWlib/ansible/_internal/_task.py1265 def set_skipped(self, reason: str | None = None, include_skipped_reason: bool = False) -> None:CODE
LOWlib/ansible/_internal/_task.py1288 def set_break_when_result(self, value: bool | AnsibleError) -> None:CODE
LOWlib/ansible/_internal/_task.py1324 def set_changed_when_result(self, value: bool | AnsibleError) -> None:CODE
LOWlib/ansible/_internal/_task.py1353 def set_failed_when_result(self, value: bool | AnsibleError) -> None:CODE
LOWlib/ansible/_internal/_encryption/_crypt.py13__all__ = ['CryptFacade']CODE
LOWlib/ansible/_internal/_encryption/_crypt.py63 def _setup(self) -> None:CODE
LOWlib/ansible/vars/hostvars.py32__all__ = ['HostVars', 'HostVarsVars']CODE
LOWlib/ansible/playbook/task.py49__all__ = ['Task']CODE
LOWlib/ansible/playbook/role_include.py28__all__ = ['IncludeRole']CODE
LOWlib/ansible/playbook/__init__.py34__all__ = ['Playbook']CODE
LOWlib/ansible/playbook/play.py45__all__ = ['Play']CODE
LOWlib/ansible/playbook/play_context.py32__all__ = ['PlayContext']CODE
LOWlib/ansible/playbook/base.py726 def update_result_no_log(self, templar: TemplateEngine, utr: _task.UnifiedTaskResult) -> None:CODE
LOWlib/ansible/playbook/task_include.py27__all__ = ['TaskInclude']CODE
LOWlib/ansible/playbook/role/requirement.py25__all__ = ['RoleRequirement']CODE
LOWlib/ansible/playbook/role/metadata.py29__all__ = ['RoleMetadata']CODE
LOWlib/ansible/playbook/role/__init__.py54__all__ = ['Role', 'hash_params']CODE
LOWlib/ansible/playbook/role/definition.py36__all__ = ['RoleDefinition']CODE
LOWlib/ansible/playbook/role/include.py25__all__ = ['RoleInclude']CODE
LOWlib/ansible/plugins/connection/__init__.py30__all__ = ['ConnectionBase', 'ensure_connect']CODE
LOWlib/ansible/plugins/connection/__init__.py109 def set_become_plugin(self, plugin: BecomeBase) -> None:CODE
LOWlib/ansible/plugins/connection/__init__.py241 def update_vars(self, variables: dict[str, t.Any]) -> None:CODE
LOWlib/ansible/plugins/connection/__init__.py431 def _update_connection_state(self) -> None:CODE
LOWlib/ansible/plugins/lookup/__init__.py34__all__ = ['LookupBase']CODE
LOWlib/ansible/plugins/inventory/__init__.py341 def update_cache_if_changed(self) -> None:CODE
LOWlib/ansible/plugins/inventory/__init__.py344 def set_cache_plugin(self) -> None:CODE
LOWlib/ansible/plugins/callback/__init__.py53__all__ = ["CallbackBase"]CODE
LOWlib/ansible/plugins/strategy/__init__.py60__all__ = ['StrategyBase']CODE
LOWlib/ansible/plugins/strategy/__init__.py1043 def update_active_connections(self, results: _c.Iterable[HostTaskResult]) -> None:CODE
LOWlib/ansible/utils/encrypt.py45__all__ = ['do_encrypt']CODE
LOWlib/ansible/utils/listify.py25__all__ = ['listify_lookup_plugin_terms']CODE
LOWlib/ansible/utils/display.py376 def set_queue(self, queue: FinalQueue) -> None:CODE
20 more matches not shown…
AI Slop Vocabulary51 hits · 83 pts
SeverityFileLineSnippetContext
LOW…rgets/module_utils_common.respawn/library/respawnme.py20 # just return info about what interpreter we're currently running underCOMMENT
LOWtest/integration/targets/cli/setup.yml38 # on some platforms, as does sudo/sudoers. On Fedora, we can just addCOMMENT
LOWtest/integration/targets/assert/tasks/main.yml37# from here on, just use `assert` to validate behaviorCOMMENT
LOW…egration/targets/prepare_http_tests/tasks/kerberos.yml50# apk isn't available on ansible-core so just call commandCOMMENT
MEDIUM…tion/targets/ansible-galaxy-collection/tasks/build.yml142# Additional comprehensive tests for FILES.json sorting robustnessCOMMENT
LOW…on/targets/subversion/roles/subversion/tasks/setup.yml100# On Red Hat based OS', we can't use apachectl to start up own instance, just use the raw httpdCOMMENT
LOWtest/integration/targets/debug/args_templating.yml84# of dynamic variable selection for `var` (eg ternary), but you could also just use `msg`.COMMENT
LOWtest/units/plugins/action/test_action.py390 # Step 1: On windows, we just return remote_pathsCOMMENT
MEDIUMtest/units/utils/test_serialization_profiles.py69 Deprecated: Deprecated(msg='x'), # DTFIX5: we need more exhaustive testing of the values supported by this tag to eCODE
MEDIUMtest/units/module_utils/basic/test_atomic_move.py138 """Failure to stat an existing file in order to copy permissions propagates the error (unless EPERM)"""STRING
LOWtest/units/module_utils/datatag/test_datatag.py338 # just return the entire row as "value"COMMENT
MEDIUMtest/units/module_utils/datatag/test_datatag.py699 # This test creates a generator to source items from the value to facilitate optimized creation of collections wCOMMENT
LOWtest/units/executor/test_play_iterator.py414 # assert with an empty task list, or if we're in a failed state, we simply return the state as-isSTRING
LOWtest/units/parsing/vault/test_vault_editor.py223 # FIXME: update to just set self._secrets or just a new vault secret idCOMMENT
MEDIUMtest/lib/ansible_test/_util/target/setup/bootstrap.sh234 # Allow root to use sudo to facilitate become testing as is done in other test environments.COMMENT
LOW…_util/controller/sanity/code-smell/runtime-metadata.py141 # just return None to indicate "we don't know".COMMENT
LOWhacking/backport/backport_of_line_adder.py111 # Otherwise, no '#### SUMMARY' line, so just add it at the bottomCOMMENT
LOWlib/ansible/_internal/_wrapt.py561 # method to call. In this case we simply return self.COMMENT
LOWlib/ansible/_internal/_wrapt.py615 # and if the wrapper is not to be executed, then simply returnCOMMENT
LOWlib/ansible/_internal/_wrapt.py683 # the wrapper is not to be executed, then simply return the boundCOMMENT
LOWlib/ansible/_internal/_templating/_jinja_bits.py528 # was embedded in a plugin, or a plugin is otherwise responsible for losing the origin and/or trust. We can't justCOMMENT
MEDIUMlib/ansible/_internal/_templating/_jinja_bits.py628 template_obj._python_source_temp_path = ctx.python_source_temp_path # facilitate deletion of the temp fCODE
MEDIUMlib/ansible/_internal/_templating/_jinja_bits.py711 template_obj._python_source_temp_path = ctx.python_source_temp_path # facilitate deletion of the temp fCODE
LOWlib/ansible/_internal/_json/__init__.py197 # supported scalar type that requires no special handling, just return as-isCOMMENT
LOWlib/ansible/_internal/_json/_legacy_encoder.py26 return o.value # if not emitting unsafe markers, bypass custom unsafe serialization and just return the rawCODE
LOWlib/ansible/_internal/_powershell/_clixml.py80 # Any errors and we just add the original CLIXML header andCOMMENT
MEDIUMlib/ansible/_internal/_yaml/_constructor.py65 # This is done before checking for duplicates to leverage existing error checking on the input node.COMMENT
LOWlib/ansible/playbook/collectionsearch.py44 if not ds: # don't return an empty collection list, just return NoneCODE
LOWlib/ansible/playbook/role/__init__.py270 # reset collections list; roles do not inherit collections from parents, just use the defaultsCOMMENT
MEDIUMlib/ansible/plugins/loader.py666 # but if the unqualified name is used in conjunction with the collections keyword, onlyCOMMENT
MEDIUMlib/ansible/plugins/loader.py790 # FIXME: need this right now so we can still load shipped PS module_utils- come up with a more robust solutionCOMMENT
MEDIUMlib/ansible/plugins/loader.py863 """Search library and various *_plugins paths in order to find the file.STRING
LOWlib/ansible/plugins/connection/winrm.py214 # This was added in pywinrm 0.5.0, we just use our no-op exception forSTRING
LOWlib/ansible/plugins/inventory/host_list.py22 # just use localhostCOMMENT
LOWlib/ansible/plugins/inventory/ini.py200 # group, in that case we simply pass so that the logic below to process pendingSTRING
LOWlib/ansible/plugins/inventory/ini.py380 # Likely a string that literal_eval does not like. We will then just set it.STRING
LOWlib/ansible/plugins/callback/__init__.py159 # FUTURE: this code is jacked for 2.x- it should just use the type names and always assume 2.0+ for normal casesCOMMENT
MEDIUMlib/ansible/cli/__init__.py174 # Initialize plugin loader after parse, so that the init code can utilize parsed argumentsCOMMENT
LOWlib/ansible/cli/vault.py364 # if no --names are provided, just use the args without a name.COMMENT
MEDIUMlib/ansible/cli/arguments/option_helpers.py423 """Add options for commands that utilize inventory"""STRING
LOWlib/ansible/galaxy/collection/__init__.py1356 # Dealing with a normal file, just add it by name.COMMENT
MEDIUMlib/ansible/inventory/host.py31from . import helpers # this is left as a module import to facilitate easier unit test patchingCODE
MEDIUMlib/ansible/inventory/group.py18from . import helpers # this is left as a module import to facilitate easier unit test patchingCODE
MEDIUMlib/ansible/inventory/data.py32from . import helpers # this is left as a module import to facilitate easier unit test patchingCODE
LOWlib/ansible/module_utils/_internal/_datatag/__init__.py175 # if no tags to apply, just return what we gotCOMMENT
LOWlib/ansible/executor/play_iterator.py598 # if we've failed at all, or if the task list is empty, just return the current stateCOMMENT
LOWlib/ansible/executor/task_executor.py445 # if this task is a TaskInclude, we just return now with a success code so theCOMMENT
LOWlib/ansible/executor/task_executor.py456 # if this task is a IncludeRole, we just return now with a success code so the main thread can expand the task lCOMMENT
LOWlib/ansible/executor/task_executor.py469 # just use normal host varsCOMMENT
LOWlib/ansible/parsing/utils/addresses.py124 # Note that we can't just use ipaddress.ip_address() because we also have toSTRING
LOWlib/ansible/modules/deb822_repository.py361 # Not a file, nor a URL, just pass it throughSTRING
Decorative Section Separators33 hits · 77 pts
SeverityFileLineSnippetContext
MEDIUMtest/integration/targets/conditionals/play.yml256 #-----------------------------------------------------------------------COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml25 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml53 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml71 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml92 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml113 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml137 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml165 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml187 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml204 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml226 # ============================================================================COMMENT
MEDIUMtest/integration/targets/dnf/tasks/repo.yml243 # ============================================================================COMMENT
MEDIUMlib/ansible/playbook/task.py68 # =================================================================================COMMENT
MEDIUMlib/ansible/playbook/role_include.py45 # =================================================================================COMMENT
MEDIUMlib/ansible/playbook/play.py60 # =================================================================================COMMENT
MEDIUMlib/ansible/playbook/play.py91 # =================================================================================COMMENT
MEDIUMlib/ansible/modules/systemd_service.py339# ===========================================STRING
MEDIUMlib/ansible/modules/service.py228 # ===========================================COMMENT
MEDIUMlib/ansible/modules/service.py243 # ===========================================COMMENT
MEDIUMlib/ansible/modules/service.py1517# ===========================================COMMENT
MEDIUMlib/ansible/modules/user.py1434# ===========================================COMMENT
MEDIUMlib/ansible/modules/git.py1219# ===========================================COMMENT
MEDIUMlib/ansible/modules/wait_for.py342# ===========================================STRING
MEDIUMlib/ansible/modules/systemd.py339# ===========================================STRING
MEDIUMlib/ansible/modules/group.py278# ===========================================STRING
MEDIUMlib/ansible/modules/group.py303# ===========================================STRING
MEDIUMlib/ansible/modules/group.py336# ===========================================STRING
MEDIUMlib/ansible/modules/group.py387# ===========================================STRING
MEDIUMlib/ansible/modules/group.py450# ===========================================STRING
MEDIUMlib/ansible/modules/group.py575# ===========================================STRING
MEDIUMlib/ansible/modules/group.py629# ===========================================STRING
MEDIUMlib/ansible/modules/get_url.py383# ==============================================================STRING
MEDIUMlib/ansible/modules/get_url.py503# ==============================================================COMMENT
Hallucination Indicators7 hits · 65 pts
SeverityFileLineSnippetContext
CRITICAL…llections/testns/testcoll/plugins/module_utils/base.py11 return "thingtocall in base called " + ansible_collections.testns.testcoll.plugins.module_utils.secondary.thingtocalCODE
CRITICAL…s/testcoll/plugins/modules/uses_leaf_mu_flat_import.py11 mu_result = ansible_collections.testns.testcoll.plugins.module_utils.leaf.thingtocall()CODE
CRITICALtest/units/utils/test_helpers.py10from ansible.utils.helpers import pct_to_int, object_to_dict, deduplicate_listCODE
CRITICALtest/units/module_utils/basic/test_run_command.py216 assert rc_am._subprocess.Popen.return_value.stdin.getvalue() == b'hello world\n'CODE
CRITICALlib/ansible/inventory/manager.py41from ansible.utils.helpers import deduplicate_listCODE
CRITICALlib/ansible/module_utils/common/arg_spec.py48 <ansible.module_utils.common.arg_spec.ArgumentSpecValidator.validate()>`STRING
CRITICALlib/ansible/executor/playbook_executor.py30from ansible.utils.helpers import pct_to_intCODE
AI Structural Patterns58 hits · 55 pts
SeverityFileLineSnippetContext
LOW…llections/testns/testcoll/plugins/action/echoaction.py18CODE
LOW…stns/testcoll/plugins/action/uses_redirected_import.py19CODE
LOW…oll/plugins/action/action_subdir/subdir_ping_action.py18CODE
LOWtest/units/plugins/action/test_action.py291CODE
LOWtest/units/module_utils/facts/test_date_time.py51CODE
LOWtest/units/parsing/yaml/test_loader.py221CODE
LOW…llections/ansible/windows/plugins/action/win_reboot.py100CODE
LOWtest/lib/ansible_test/_internal/util.py414CODE
LOWtest/lib/ansible_test/_internal/containers.py105CODE
LOWtest/lib/ansible_test/_internal/util_common.py514CODE
LOWtest/lib/ansible_test/_internal/util_common.py115CODE
LOWtest/lib/ansible_test/_internal/cli/parsers/__init__.py243CODE
LOW…t/lib/ansible_test/_internal/cli/argparsing/parsers.py621CODE
LOW…ib/ansible_test/_util/target/sanity/compile/compile.py44CODE
LOWlib/ansible/_internal/_errors/_error_utils.py206CODE
LOWlib/ansible/_internal/_templating/_jinja_bits.py748CODE
LOWlib/ansible/_internal/_templating/_jinja_plugins.py165CODE
LOWlib/ansible/_internal/_json/__init__.py73CODE
LOWlib/ansible/vars/manager.py157CODE
LOWlib/ansible/playbook/attribute.py32CODE
LOWlib/ansible/config/manager.py778CODE
LOWlib/ansible/plugins/netconf/__init__.py161CODE
LOWlib/ansible/plugins/action/shell.py32CODE
LOWlib/ansible/plugins/action/__init__.py890CODE
LOWlib/ansible/plugins/action/__init__.py898CODE
LOWlib/ansible/plugins/action/__init__.py906CODE
LOWlib/ansible/plugins/action/__init__.py914CODE
LOWlib/ansible/plugins/action/__init__.py1092CODE
LOWlib/ansible/plugins/action/reboot.py113CODE
LOWlib/ansible/plugins/callback/__init__.py582CODE
LOWlib/ansible/plugins/callback/__init__.py715CODE
LOWlib/ansible/plugins/filter/core.py673CODE
LOWlib/ansible/utils/vars.py89CODE
LOWlib/ansible/utils/display.py913CODE
LOWlib/ansible/cli/__init__.py199CODE
LOWlib/ansible/cli/arguments/option_helpers.py178CODE
LOWlib/ansible/galaxy/api.py257CODE
LOWlib/ansible/galaxy/api.py462CODE
LOWlib/ansible/galaxy/api.py603CODE
LOWlib/ansible/galaxy/api.py615CODE
LOWlib/ansible/galaxy/api.py621CODE
LOWlib/ansible/galaxy/api.py627CODE
LOWlib/ansible/galaxy/api.py634CODE
LOWlib/ansible/module_utils/api.py92CODE
LOWlib/ansible/module_utils/basic.py367CODE
LOWlib/ansible/module_utils/basic.py1876CODE
LOWlib/ansible/module_utils/urls.py983CODE
LOWlib/ansible/module_utils/urls.py1371CODE
LOWlib/ansible/module_utils/urls.py1590CODE
LOWlib/ansible/module_utils/urls.py706CODE
LOWlib/ansible/module_utils/urls.py760CODE
LOWlib/ansible/module_utils/_internal/_datatag/__init__.py335CODE
LOWlib/ansible/module_utils/_internal/_datatag/__init__.py351CODE
LOWlib/ansible/module_utils/common/parameters.py463CODE
LOWlib/ansible/parsing/plugin_docs.py161CODE
LOWlib/ansible/modules/apt.py721CODE
LOWlib/ansible/modules/apt.py1102CODE
LOWlib/ansible/modules/get_url.py394CODE
Redundant / Tautological Comments40 hits · 53 pts
SeverityFileLineSnippetContext
LOWtest/integration/targets/connection_ssh/runme.sh7 # Check if our sshpass supports -PCOMMENT
LOWtest/integration/targets/callback_default/runme.sh215# Check if UNREACHABLE is available in stderrCOMMENT
LOWtest/integration/targets/filter_core/runme.sh20# Check if libxcrypt was installed by looking for the handler outputCOMMENT
LOW…support/windows-integration/plugins/action/win_copy.py173 # Check if the source ends with a "/" so that we know which directoryCOMMENT
LOW…collections/ansible/windows/plugins/action/win_copy.py173 # Check if the source ends with a "/" so that we know which directoryCOMMENT
LOW…t/lib/ansible_test/_internal/commands/sanity/pylint.py285 # Set PYLINTHOME to prevent pylint from checking for an obsolete directory, which can result in a test failure dCOMMENT
LOWlib/ansible/_internal/_ansiballz/_wrapper.py217 # Set pythonpath to the debug dirCOMMENT
LOWlib/ansible/playbook/base.py321 # Check if the group has already been resolved and cachedCOMMENT
LOWlib/ansible/plugins/connection/psrp.py680 # Check if there's a command on the current pipeline that still needs to be closed.STRING
LOWlib/ansible/plugins/connection/ssh.py897 # Check if ControlPersist is enabled and add a ControlPath if one hasn'tCOMMENT
LOWlib/ansible/plugins/action/__init__.py779 # Check if we are an admin/root user. If we are and got here, it meansCOMMENT
LOWlib/ansible/plugins/action/copy.py167 # Check if the source ends with a "/" so that we know which directoryCOMMENT
LOWlib/ansible/cli/arguments/option_helpers.py240 # Check if the .git is a file. If it is a file, it means that we are in a submodule structure.COMMENT
LOWlib/ansible/inventory/manager.py395 # Check if pattern already computedCOMMENT
LOWlib/ansible/inventory/manager.py685 # Check if host in inventory, add if notCOMMENT
LOWlib/ansible/module_utils/basic.py1024 # Check if there are illegal characters in the user listCOMMENT
LOWlib/ansible/module_utils/basic.py1032 # Check if there are illegal characters in the permissionsCOMMENT
LOWlib/ansible/module_utils/facts/system/python.py24 # Check if we have SSLContext supportCOMMENT
LOWlib/ansible/module_utils/facts/system/pkg_mgr.py84 # Check if '/usr/bin/apt' is APT-RPM or an ordinary (dpkg-based) APT.COMMENT
LOWlib/ansible/module_utils/facts/system/pkg_mgr.py131 # Check if /usr/bin/apt-get is ordinary (dpkg-based) APT or APT-RPMCOMMENT
LOWlib/ansible/module_utils/facts/virtual/sunos.py25 # Check if it's a zoneCOMMENT
LOWlib/ansible/module_utils/facts/virtual/sunos.py36 # Check if it's a branded zone (i.e. Solaris 8/9 zone)COMMENT
LOWlib/ansible/executor/task_executor.py951 # Check if the module has specified an action handlerCOMMENT
LOWlib/ansible/parsing/dataloader.py106 # Check if the file has been cached and use the cached data if availableCOMMENT
LOWlib/ansible/modules/service.py421 # Add line to the list.COMMENT
LOWlib/ansible/modules/service.py766 # Check if we're already in the correct stateCOMMENT
LOWlib/ansible/modules/service.py780 # Check if we're already in the correct stateCOMMENT
LOWlib/ansible/modules/service.py1474 # Check if service name is a subsystem of a group subsystemCOMMENT
LOWlib/ansible/modules/git.py835 # Check if the .git is a file. If it is a file, it means that the repository is in external directory respective to COMMENT
LOWlib/ansible/modules/uri.py729 # Write the file out if requestedCOMMENT
LOWlib/ansible/modules/rpm_key.py185 # Check if it's a new format packet (bit 6 set)COMMENT
LOWlib/ansible/modules/rpm_key.py299 # Check if it's a V4 key (first byte of body should be 0x04)COMMENT
LOWlib/ansible/modules/rpm_key.py332 # Check if it's a V6 key (first byte of body should be 0x06)COMMENT
LOWlib/ansible/modules/apt.py915 # Check if package is installableCOMMENT
LOWlib/ansible/modules/apt.py1256 # Check if the cache is validCOMMENT
LOWlib/ansible/modules/apt.py522 # Check if the available version matches the requested versionSTRING
LOWlib/ansible/modules/apt.py600 # Check if the installed version already matches the requested versionSTRING
LOWlib/ansible/modules/apt.py608 # Check if a better version is availableSTRING
LOWlib/ansible/modules/iptables.py885 # Check if wait option is supportedSTRING
LOWlib/ansible/modules/iptables.py943 # Check if target is up to dateSTRING
Structural Annotation Overuse9 hits · 17 pts
SeverityFileLineSnippetContext
LOWtest/units/plugins/action/test_action.py390 # Step 1: On windows, we just return remote_pathsCOMMENT
LOWtest/units/plugins/action/test_action.py398 # Step 2: We're /not/ becoming an unprivileged userCOMMENT
LOWtest/units/plugins/action/test_action.py534 # Step 4: world-readable tmpdirCOMMENT
LOWtest/units/plugins/action/test_action.py425 # Step 3: we are becoming unprivilegedCOMMENT
LOWtest/lib/ansible_test/_internal/docker_util.py603 # NOTE: This method of detecting the container engine and container ID relies on implementation details of each COMMENT
LOWlib/ansible/plugins/action/__init__.py696 # Step 1: Are we on windows?COMMENT
LOWlib/ansible/plugins/action/__init__.py703 # Step 2: If we're not becoming an unprivileged user, we are roughlyCOMMENT
LOWlib/ansible/plugins/action/__init__.py858 # Step 4: World-readable temp directoryCOMMENT
LOWlib/ansible/module_utils/_internal/_datatag/__init__.py420 # NOTE: This method is called twice when the datatag type is a dataclass.COMMENT
Verbosity Indicators9 hits · 16 pts
SeverityFileLineSnippetContext
LOWtest/units/plugins/action/test_action.py390 # Step 1: On windows, we just return remote_pathsCOMMENT
LOWtest/units/plugins/action/test_action.py398 # Step 2: We're /not/ becoming an unprivileged userCOMMENT
LOWtest/units/plugins/action/test_action.py534 # Step 4: world-readable tmpdirCOMMENT
LOWtest/units/plugins/action/test_action.py425 # Step 3: we are becoming unprivilegedCOMMENT
LOWlib/ansible/plugins/action/__init__.py696 # Step 1: Are we on windows?COMMENT
LOWlib/ansible/plugins/action/__init__.py703 # Step 2: If we're not becoming an unprivileged user, we are roughlyCOMMENT
LOWlib/ansible/plugins/action/__init__.py858 # Step 4: World-readable temp directoryCOMMENT
LOWlib/ansible/utils/vars.py241 The purpose of this function is to be used to validate any variables created inSTRING
LOWlib/ansible/modules/rpm_key.py416 # If the key is a url, we need to check if it's present to be idempotent,COMMENT
Slop Phrases7 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM…facts/system/distribution/test_distribution_version.py18# to generate the testcase data, you can use the script gen_distribution_version_testcase.py in hacking/testsCOMMENT
MEDIUM…port/windows-integration/plugins/modules/win_reboot.py109# Additionally, you can add a delay before running the next taskCOMMENT
LOWlib/ansible/playbook/play_context.py273 # in the event that we were using local before make sure to reset theCOMMENT
MEDIUMlib/ansible/plugins/lookup/nested.py30# As with the case of 'with_items' above, you can use previously defined variables.:COMMENT
LOWlib/ansible/module_utils/basic.py176# this matters, make sure to check for strings before checking for sequencetypeCOMMENT
LOWlib/ansible/parsing/dataloader.py298 # not told if role, but detect if it is a role and if so make sure you get correct base pathCOMMENT
MEDIUMlib/ansible/modules/meta.py25 or, if available for your specific inventory datasource (for example P(amazon.aws.aws_ec2#inventory)), you canCODE
Overly Generic Function Names12 hits · 12 pts
SeverityFileLineSnippetContext
LOW…mpat-six/ansible_collections/ns/col/do-not-check-me.py6def do_stuff():CODE
LOW…ansible_collections/ns/col/plugins/modules/check-me.py6def do_stuff():CODE
LOW…xception/ansible_collections/ns/col/do-not-check-me.py6def do_stuff():CODE
LOW…ansible_collections/ns/col/plugins/modules/check-me.py6def do_stuff():CODE
LOW…targets/ansible-test-sanity-pylint/deprecated_thing.py11def do_stuff() -> None:CODE
LOW…nsible_collections/ns/col/plugins/lookup/deprecated.py55 def my_method(self) -> None:CODE
LOW…nsible_collections/ns/col/plugins/lookup/deprecated.py65def do_stuff() -> None:CODE
LOW…ctions/ns/col/plugins/module_utils/deprecated_utils.py17def do_stuff() -> None:CODE
LOW…-urlopen/ansible_collections/ns/col/do-not-check-me.py6def do_stuff():CODE
LOW…ansible_collections/ns/col/plugins/modules/check-me.py6def do_stuff():CODE
LOWtest/units/module_utils/_internal/test_deprecator.py28def do_stuff():CODE
LOWlib/ansible/utils/jsonrpc.py23 def handle_request(self, request):CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHlib/ansible/module_utils/distro/_distro.py680 The initialization method of this class gathers information from the available data sources, and storesSTRING
HIGHlib/ansible/modules/pip.py9 --- module: pip short_description: Manages Python library dependencies description: - "Manage Python library depenSTRING
TODO Padding6 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackaging/release.py746 # TODO: consider using development versions instead of post versions after a release is publishedCOMMENT
LOWtest/units/plugins/action/test_action.py527 # TODO: Add test to assert warning is shown ifCOMMENT
LOWtest/units/parsing/test_mod_args.py16 # TODO: add tests that construct ModuleArgsParser with a task referenceCOMMENT
LOWlib/ansible/plugins/loader.py1440 # TODO: implement cycle detection (unified across collection redir as well)COMMENT
LOW…/ansible/utils/collection_loader/_collection_finder.py1239 # TODO: implement ignore/silent catch for unreadable?COMMENT
LOWlib/ansible/parsing/vault/__init__.py1008 # TODO: add docstrings for arg types since this code is picky about thatCOMMENT
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOW…ation/targets/ansible-galaxy-collection/tasks/list.yml122 # Note the version displayed is the 'placeholder' string rather than "*" since it is not falseyCOMMENT
LOW…ation/targets/ansible-galaxy-collection/tasks/list.yml139 # Note the version displayed is the 'placeholder' string rather than "*" since it is not falseyCOMMENT
LOW…ation/targets/ansible-galaxy-collection/tasks/list.yml162 - "item.value['dev.collection2'].version == 'placeholder'"CODE
LOW…ation/targets/ansible-galaxy-collection/tasks/list.yml179 - "item.value['dev.collection2'].version == 'placeholder'"CODE
LOW…ation/targets/ansible-galaxy-collection/tasks/list.yml191 with_dict: "{{ { 'dev.collection1': '*', 'dev.collection2': 'placeholder', 'dev.collection3': '*' } }}"CODE
LOW…ation/targets/ansible-galaxy-collection/tasks/list.yml203 with_dict: "{{ { 'dev.collection1': '*', 'dev.collection2': 'placeholder', 'dev.collection3': '*' } }}"CODE
LOWtest/lib/ansible_test/_internal/completion.py344 item.pop('placeholder', None)CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…nits/module_utils/basic/test_heuristic_log_sanitize.py63 # In this implementation we replace the password with 8 "*" which isCOMMENT