Repository Analysis

pantsbuild/pants

The Pants Build System

12.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pantsbuild/pants, a Python project with 3,798 GitHub stars. SynthScan v2.0 examined 527,639 lines of code across 2438 source files, recording 5125 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 12.1 places this repository in the Low 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).

12.1
Adjusted Score
12.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.8K
Stars
Python
Language
527.6K
Lines of Code
2.4K
Files
5.1K
Pattern Hits
2026-07-14
Scan Date
0.05
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 9HIGH 123MEDIUM 573LOW 4420

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 5125 distinct pattern matches across 21 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 Identifiers2748 hits · 2506 pts
SeverityFileLineSnippetContext
LOWconftest.py9def pytest_runtest_makereport(item: pytest.Item, call: pytest.CallInfo[None]):CODE
LOW…lugins/src/python/python_constant/target_types_test.py59def test_parse_python_constants():STRING
LOW…nts-plugins/src/python/python_constant/target_types.py132async def generate_python_constant_targets(CODE
LOW…nts-plugins/src/python/python_constant/target_types.py209async def get_python_constant_targets(targets: AllTargets) -> AllPythonConstantTargets:CODE
LOW…nts-plugins/src/python/python_constant/target_types.py259async def infer_python_dependencies_on_python_constants(CODE
LOW…s/pants-plugins/src/python/workunit_logger/register.py66async def construct_workunits_logger_callback(CODE
LOW…ojects/src/python/vcs_test/changed_integration_test.py137def test_lines_one_line_added_in_target(repo: str) -> None:STRING
LOW…ojects/src/python/vcs_test/changed_integration_test.py180def test_lines_one_target_deleted(repo: str) -> None:STRING
LOW…ojects/src/python/vcs_test/changed_integration_test.py214def test_lines_one_line_on_the_edge_deleted(repo: str) -> None:STRING
LOW…ithub/workflows/tests/auto_cherry_picker_smoke_test.py74def test_auto_cherry_pick__workflow_dispatch():CODE
LOW…ithub/workflows/tests/auto_cherry_picker_smoke_test.py108def test_auto_cherry_pick__prerequisites_failed():CODE
LOWpants-plugins/pants_explorer/server/integration_test.py37def test_explorer_graphql_query(query: dict, expected_result: dict) -> None:STRING
LOWpants-plugins/pants_explorer/server/graphql/rules.py24async def get_graphql_uvicorn_setup(CODE
LOW…lugins/pants_explorer/server/graphql/query/conftest.py42 def fake_consumed_scopes_mapper(scope: str) -> tuple[str, ...]:CODE
LOW…nal_plugins/test_lockfile_fixtures/collect_fixtures.py71 def pytest_collection_modifyitems(self, items):CODE
LOW…nal_plugins/test_lockfile_fixtures/lockfile_fixture.py86 def requirements_as_jvm_artifact_targets(CODE
LOW…ugins/internal_plugins/test_lockfile_fixtures/rules.py217async def internal_render_test_lockfile_fixtures(CODE
LOWbuild-support/bin/generate_builtin_lockfiles.py218def generate_python_tool_lockfiles(CODE
LOWbuild-support/bin/generate_builtin_lockfiles.py277def generate_jvm_tool_lockfiles(STRING
LOWbuild-support/bin/generate_builtin_lockfiles.py314 def lockfile_buildroot_filename(lockfile_name):STRING
LOWbuild-support/bin/external_tool_upgrade_test.py21def test_filter_fetched_versions_with_constraint() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py35def test_filter_versions_by_constraint_none() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py44def test_filter_versions_by_constraint_basic() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py55def test_filter_versions_by_constraint_with_v_prefix() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py65def test_filter_versions_by_constraint_no_matches() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py73def test_filter_versions_by_constraint_multiple_matches() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py85def _select_default_version_with_constraint(CODE
LOWbuild-support/bin/external_tool_upgrade_test.py107def test_version_constraint_upgrades_when_newer_version_available() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py121def test_version_constraint_no_upgrade_when_no_newer_matching_version() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py135def test_version_constraint_no_upgrade_when_already_at_newest_matching() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py148def test_version_constraint_with_v_prefix_upgrades_correctly() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py161def test_encode_pads_platform_to_fixed_width() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py169def test_encode_no_padding_needed_for_max_width_platform() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py177def test_encode_decode_round_trip() -> None:CODE
LOWbuild-support/bin/external_tool_upgrade_test.py183def test_sorted_by_version_and_platform() -> None:CODE
LOWbuild-support/bin/generate_json_schema_test.py53def test_simplify_option_description(description: str, output: str) -> None:CODE
LOWbuild-support/bin/external_tool_upgrade.py89def sorted_by_version_and_platform(CODE
LOWbuild-support/bin/external_tool_upgrade.py193def filter_versions_by_constraint(STRING
LOWbuild-support/bin/terraform_tool_versions_test.py26def test_get_info_for_version():CODE
LOWbuild-support/bin/generate_json_schema.py50def simplify_option_description(description: str) -> str:CODE
LOWbuild-support/bin/generate_faas_complete_platforms.py39def extract_complete_platform(repo: str, architecture: FaaSArchitecture, tag: str) -> object:CODE
LOWbuild-support/bin/generate-pbs-urls.py74def list_filtered_release_assets(release_tag: str) -> list[GithubReleaseAsset]:CODE
LOWbuild-support/bin/terraform_tool_versions.py185def fetch_platforms_for_version(CODE
LOWbuild-support/bin/external_tool/python_test.py110def test_replace_class_variables(tmpdir: str):STRING
LOWbuild-support/bin/external_tool/python_test.py130def test_replace_class_variables_adds_trailing_comma(tmpdir: str):STRING
LOWbuild-support/bin/external_tool/python.py85def find_modules_with_subclasses(CODE
LOWbuild-support/bin/external_tool/helm_test.py6def test_helm_releases_only_latest(monkeypatch) -> None:CODE
LOWbuild-support/bin/external_tool/helm_test.py25def test_helm_releases_all_versions(monkeypatch) -> None:CODE
LOWbuild-support/bin/external_tool/helm_test.py44def test_helm_releases_uses_github_api(monkeypatch) -> None:CODE
LOW…pport/migration-support/migrate_to_toml_config_test.py20def test_fully_automatable_config() -> None:CODE
LOW…pport/migration-support/migrate_to_toml_config_test.py62def test_different_key_value_symbols() -> None:CODE
LOW…pport/migration-support/migrate_to_toml_config_test.py211def test_multiline_options_ignored() -> None:STRING
LOW…rt/migration-support/convert_source_to_sources_test.py25def test_no_op_when_already_valid(line: str) -> None:CODE
LOW…rt/migration-support/convert_source_to_sources_test.py33def test_safe_with_unrelated_lines(line: str) -> None:CODE
LOW…rt/migration-support/convert_source_to_sources_test.py37def test_respects_original_formatting() -> None:CODE
LOW…rt/migration-support/convert_source_to_sources_test.py60def test_can_handle_sharing_a_line() -> None:CODE
LOW…rt/migration-support/convert_source_to_sources_test.py73def test_can_handle_variables() -> None:CODE
LOWsrc/python/pants/conftest.py43def _check_frozen_dataclass_attributes() -> None:CODE
LOWsrc/python/pants/conftest_test.py9def test_frozen_dataclass_checking() -> None:CODE
LOWsrc/python/pants/init/logging.py92def stdio_destination_use_color(use_color: bool) -> None:CODE
2688 more matches not shown…
Decorative Section Separators507 hits · 1398 pts
SeverityFileLineSnippetContext
MEDIUMsrc/python/pants/core/target_types.py74# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/target_types.py76# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/target_types.py160# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/target_types.py162# -----------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/target_types.py328# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py330# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py399# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py401# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py547# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py549# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py634# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py636# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py678# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py680# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py725# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py727# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py756# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py758# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py884# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py886# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py946# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/target_types.py948# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py81# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py83# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py217# -------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py220# -------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py298# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py300# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py589# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py591# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py1304# -------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/util_rules/system_binaries.py1306# -------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/generate_lockfiles.py642# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/generate_lockfiles.py644# -----------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py49# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py51# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py214# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py216# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py297# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py299# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py349# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py351# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py401# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files_test.py403# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/test.py1227# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/test.py1229# -------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files.py59# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files.py61# ------------------------------------------------------------------------------------------COMMENT
MEDIUMsrc/python/pants/core/goals/update_build_files.py330# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py332# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py366# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py368# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py402# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py404# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py437# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py439# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py470# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py472# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py498# ------------------------------------------------------------------------------------------STRING
MEDIUMsrc/python/pants/core/goals/update_build_files.py500# ------------------------------------------------------------------------------------------STRING
447 more matches not shown…
Unused Imports1013 hits · 1004 pts
SeverityFileLineSnippetContext
LOW…pants-plugins/src/python/test_pants_plugin/register.py43CODE
LOW…ojects/src/python/vcs_test/changed_integration_test.py3CODE
LOWpants-plugins/pants_explorer/server/register.py4CODE
LOWpants-plugins/pants_explorer/server/browser.py4CODE
LOWpants-plugins/pants_explorer/server/uvicorn.py4CODE
LOWpants-plugins/pants_explorer/server/integration_test.py4CODE
LOW…nts-plugins/pants_explorer/server/graphql/subsystem.py4CODE
LOWpants-plugins/pants_explorer/server/graphql/rules.py4CODE
LOWpants-plugins/pants_explorer/server/graphql/setup.py4CODE
LOWpants-plugins/pants_explorer/server/graphql/context.py4CODE
LOW…lugins/pants_explorer/server/graphql/query/conftest.py4CODE
LOW…plugins/pants_explorer/server/graphql/query/targets.py4CODE
LOW…gins/pants_explorer/server/graphql/query/rules_test.py4CODE
LOW…ns/pants_explorer/server/graphql/query/targets_test.py4CODE
LOW…s-plugins/pants_explorer/server/graphql/query/rules.py4CODE
LOW…ts-plugins/pants_explorer/server/graphql/query/root.py4CODE
LOWpants-plugins/internal_plugins/releases/register.py4CODE
LOW…ns/internal_plugins/test_lockfile_fixtures/register.py3CODE
LOW…nal_plugins/test_lockfile_fixtures/lockfile_fixture.py3CODE
LOW…ugins/internal_plugins/test_lockfile_fixtures/rules.py3CODE
LOWbuild-support/bin/cache_comparison.py4CODE
LOWbuild-support/bin/generate_builtin_lockfiles.py6CODE
LOWbuild-support/bin/external_tool_upgrade.py10CODE
LOWbuild-support/bin/classify_changed_files.py4CODE
LOWbuild-support/bin/generate_completions.py4CODE
LOWbuild-support/bin/check_orphaned_plugins.py5CODE
LOWbuild-support/bin/generate_faas_complete_platforms.py18CODE
LOWbuild-support/flake8/dedent_use_checker.py5CODE
LOWsrc/python/pants/init/logging.py4CODE
LOWsrc/python/pants/init/engine_initializer.py4CODE
LOWsrc/python/pants/init/plugin_resolver_rules.py4CODE
LOWsrc/python/pants/init/import_util.py4CODE
LOWsrc/python/pants/init/plugin_resolver_test.py4CODE
LOWsrc/python/pants/init/plugin_resolver.py4CODE
LOWsrc/python/pants/init/options_initializer.py4CODE
LOWsrc/python/pants/core/target_types_test.py4CODE
LOWsrc/python/pants/core/target_types.py3CODE
LOWsrc/python/pants/core/util_rules/wrap_source.py5CODE
LOWsrc/python/pants/core/util_rules/partitions.py6CODE
LOWsrc/python/pants/core/util_rules/external_tool.py4CODE
LOWsrc/python/pants/core/util_rules/lockfile_metadata.py4CODE
LOWsrc/python/pants/core/util_rules/asdf.py3CODE
LOWsrc/python/pants/core/util_rules/source_files_test.py4CODE
LOW…on/pants/core/util_rules/adhoc_process_support_test.py3CODE
LOWsrc/python/pants/core/util_rules/search_paths.py3CODE
LOWsrc/python/pants/core/util_rules/asdf_test.py3CODE
LOWsrc/python/pants/core/util_rules/system_binaries.py4CODE
LOWsrc/python/pants/core/util_rules/config_files_test.py4CODE
LOW…/python/pants/core/util_rules/adhoc_process_support.py3CODE
LOWsrc/python/pants/core/util_rules/config_files.py4CODE
LOW…n/pants/core/util_rules/unowned_dependency_behavior.py3CODE
LOW…c/python/pants/core/util_rules/system_binaries_test.py4CODE
LOWsrc/python/pants/core/util_rules/search_paths_test.py3CODE
LOWsrc/python/pants/core/util_rules/archive.py4CODE
LOW…pants/core/util_rules/wrap_source_intergration_test.py3CODE
LOWsrc/python/pants/core/util_rules/testutil.py3CODE
LOW…on/pants/core/util_rules/stripped_source_files_test.py4CODE
LOWsrc/python/pants/core/util_rules/adhoc_binaries.py4CODE
LOWsrc/python/pants/core/goals/package.py4CODE
LOWsrc/python/pants/core/goals/generate_lockfiles.py4CODE
953 more matches not shown…
Cross-File Repetition58 hits · 290 pts
SeverityFileLineSnippetContext
HIGHsrc/python/pants/core/target_types.py0addresses to any targets that can be built with `{bin_name()} package`, e.g. `["project:app"]`. pants will build the assSTRING
HIGHsrc/python/pants/backend/debian/target_types.py0addresses to any targets that can be built with `{bin_name()} package`, e.g. `["project:app"]`. pants will build the assSTRING
HIGHsrc/python/pants/backend/makeself/target_types.py0addresses to any targets that can be built with `{bin_name()} package`, e.g. `["project:app"]`. pants will build the assSTRING
HIGHsrc/python/pants/core/goals/check.py0is marked uncacheable to ensure that it always renders.STRING
HIGHsrc/python/pants/core/goals/test.py0is marked uncacheable to ensure that it always renders.STRING
HIGHsrc/python/pants/core/goals/fix.py0is marked uncacheable to ensure that it always renders.STRING
HIGHsrc/python/pants/core/goals/lint.py0is marked uncacheable to ensure that it always renders.STRING
HIGH…n/pants/backend/terraform/dependency_inference_test.py0regression test for https://github.com/pantsbuild/pants/issues/14876.STRING
HIGH…ts/backend/docker/subsystems/dockerfile_parser_test.py0regression test for https://github.com/pantsbuild/pants/issues/14876.STRING
HIGH…on/pants/backend/cc/lint/clangformat/subsystem_test.py0regression test for https://github.com/pantsbuild/pants/issues/14876.STRING
HIGHsrc/python/pants/backend/tools/yamllint/subsystem.py0whether to ignore, error or show a warning when files are found that are not covered by the config file provided in `[{oSTRING
HIGH…/python/pants/backend/scala/lint/scalafix/subsystem.py0whether to ignore, error or show a warning when files are found that are not covered by the config file provided in `[{oSTRING
HIGH…/python/pants/backend/scala/lint/scalafmt/subsystem.py0whether to ignore, error or show a warning when files are found that are not covered by the config file provided in `[{oSTRING
HIGHsrc/python/pants/backend/go/target_type_rules_test.py0\ package hello import "fmt" func hello() { fmt.println("hello world!") }STRING
HIGH…/pants/backend/go/goals/run_binary_integration_test.py0\ package hello import "fmt" func hello() { fmt.println("hello world!") }STRING
HIGH…ts/backend/go/goals/package_binary_integration_test.py0\ package hello import "fmt" func hello() { fmt.println("hello world!") }STRING
HIGH…c/python/pants/backend/go/dependency_inference_test.py0package foo func add(x, y int) int { return x + y } func add(x, y int) int { return add(x, y) }STRING
HIGHsrc/python/pants/backend/go/util_rules/coverage_test.py0package foo func add(x, y int) int { return x + y } func add(x, y int) int { return add(x, y) }STRING
HIGHsrc/python/pants/backend/go/goals/test_test.py0package foo func add(x, y int) int { return x + y } func add(x, y int) int { return add(x, y) }STRING
HIGH…c/python/pants/backend/go/dependency_inference_test.py0package foo import "testing" !!! func testadd(t *testing.t) { if add(2, 3) != 5 { t.fail() } }STRING
HIGHsrc/python/pants/backend/go/util_rules/coverage_test.py0package foo import "testing" !!! func testadd(t *testing.t) { if add(2, 3) != 5 { t.fail() } }STRING
HIGHsrc/python/pants/backend/go/goals/test_test.py0package foo import "testing" !!! func testadd(t *testing.t) { if add(2, 3) != 5 { t.fail() } }STRING
HIGH…s/backend/python/lint/pylint/rules_integration_test.py0\ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pythSTRING
HIGH…kend/python/typecheck/pytype/rules_integration_test.py0\ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pythSTRING
HIGH…ackend/python/typecheck/mypy/rules_integration_test.py0\ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pythSTRING
HIGH…end/python/typecheck/pyright/rules_integration_test.py0\ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pythSTRING
HIGHsrc/python/pants/backend/python/util_rules/faas.py0returns the python version implied by the runtime, as (major, minor).STRING
HIGH…/python/pants/backend/awslambda/python/target_types.py0returns the python version implied by the runtime, as (major, minor).STRING
HIGH…s/backend/google_cloud_function/python/target_types.py0returns the python version implied by the runtime, as (major, minor).STRING
HIGH…on/pants/backend/python/util_rules/local_dists_test.py0\ from setuptools import setup setup(name="foo", version="9.8.7", packages=["foo"], package_dir={"foo": "."},)STRING
HIGH…end/python/goals/run_python_source_integration_test.py0\ from setuptools import setup setup(name="foo", version="9.8.7", packages=["foo"], package_dir={"foo": "."},)STRING
HIGH…backend/python/goals/pytest_runner_integration_test.py0\ from setuptools import setup setup(name="foo", version="9.8.7", packages=["foo"], package_dir={"foo": "."},)STRING
HIGH…nd/python/goals/package_pex_binary_integration_test.py0\ files(name='files', sources=['f.txt']) relocated_files( name='relocated', files_targets=[':files'], src='assets', destSTRING
HIGHsrc/python/pants/backend/awslambda/python/rules_test.py0\ files(name='files', sources=['f.txt']) relocated_files( name='relocated', files_targets=[':files'], src='assets', destSTRING
HIGH…nts/backend/google_cloud_function/python/rules_test.py0\ files(name='files', sources=['f.txt']) relocated_files( name='relocated', files_targets=[':files'], src='assets', destSTRING
HIGHsrc/python/pants/backend/python/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGHsrc/python/pants/backend/shell/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGHsrc/python/pants/backend/java/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGHsrc/python/pants/backend/kotlin/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGHsrc/python/pants/backend/scala/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGHsrc/python/pants/backend/swift/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGHsrc/python/pants/backend/cc/goals/tailor.py0returns a dict of target type -> files that belong to targets of that type.STRING
HIGH…kend/python/typecheck/pytype/rules_integration_test.py0\ def add(x: int, y: int) -> int: return x + y result = add(3, 3)STRING
HIGH…ackend/python/typecheck/mypy/rules_integration_test.py0\ def add(x: int, y: int) -> int: return x + y result = add(3, 3)STRING
HIGH…end/python/typecheck/pyright/rules_integration_test.py0\ def add(x: int, y: int) -> int: return x + y result = add(3, 3)STRING
HIGH…kend/python/typecheck/pytype/rules_integration_test.py0\ def add(x: int, y: int) -> int: return x + y result = add(2.0, 3.0)STRING
HIGH…ackend/python/typecheck/mypy/rules_integration_test.py0\ def add(x: int, y: int) -> int: return x + y result = add(2.0, 3.0)STRING
HIGH…end/python/typecheck/pyright/rules_integration_test.py0\ def add(x: int, y: int) -> int: return x + y result = add(2.0, 3.0)STRING
HIGHsrc/python/pants/backend/shell/target_types.py0the runnable dependencies for this command. dependencies specified here are those required to exist on the `path` to makSTRING
HIGHsrc/python/pants/backend/adhoc/code_quality_tool.py0the runnable dependencies for this command. dependencies specified here are those required to exist on the `path` to makSTRING
HIGHsrc/python/pants/backend/adhoc/target_types.py0the runnable dependencies for this command. dependencies specified here are those required to exist on the `path` to makSTRING
HIGH…python/pants/backend/javascript/goals/lockfile_test.py0\ # this is an autogenerated file. do not edit this file directly. # yarn lockfile v1STRING
HIGHsrc/python/pants/backend/javascript/run/rules_test.py0\ # this is an autogenerated file. do not edit this file directly. # yarn lockfile v1STRING
HIGH…/python/pants/backend/javascript/package/rules_test.py0\ # this is an autogenerated file. do not edit this file directly. # yarn lockfile v1STRING
HIGHsrc/python/pants/backend/helm/testutil.py0\ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versiSTRING
HIGH…hon/pants/backend/helm/check/kubeconform/chart_test.py0\ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versiSTRING
HIGH…ants/backend/helm/check/kubeconform/deployment_test.py0\ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versiSTRING
HIGH…s/backend/helm/dependency_inference/deployment_test.py0\ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versiSTRING
Cross-Language Confusion64 hits · 272 pts
SeverityFileLineSnippetContext
HIGHsrc/python/pants/core/goals/package.py97 If undefined, this will use the path to the BUILD file, followed by the target name.CODE
HIGH…pants/jvm/dependency_inference/artifact_mapper_test.py252 System.out.println(dt.toString());STRING
HIGH…pants/jvm/dependency_inference/artifact_mapper_test.py306 System.out.println(dt.toString());STRING
HIGH…pants/jvm/dependency_inference/artifact_mapper_test.py320 System.out.println(dt.toString());STRING
HIGH…pants/jvm/dependency_inference/artifact_mapper_test.py382 System.out.println(dt.toString());STRING
HIGH…pants/jvm/dependency_inference/artifact_mapper_test.py395 System.out.println(dt.toString());STRING
HIGH…pants/jvm/dependency_inference/artifact_mapper_test.py448 System.out.println(dt.toString());STRING
HIGHsrc/python/pants/backend/nfpm/fields/all.py183 If undefined, this will use the path to the BUILD file, followed by the target name.CODE
HIGHsrc/python/pants/backend/go/util_rules/cgo.py540 allow_unresolved_symbols_ldflag = "-Wl,-undefined,dynamic_lookup"CODE
HIGHsrc/python/pants/backend/python/target_types.py1837 If undefined, this defaults to the empty path, i.e. the output goes at the topCODE
HIGH…ts/backend/python/packaging/pyoxidizer/target_types.py27 If undefined, this will use the path to the BUILD file, followed by the target name.CODE
HIGHsrc/python/pants/backend/python/util_rules/pex_test.py387 "requires_python": null,STRING
HIGHsrc/python/pants/backend/python/util_rules/pex_test.py421 "manylinux": null,STRING
HIGHsrc/python/pants/backend/python/util_rules/pex_test.py430 "uploaded_prior_to": null,STRING
HIGH…nts/backend/python/util_rules/pex_requirements_test.py331 "requires_python": null,STRING
HIGH…ts/backend/python/util_rules/lockfile_metadata_test.py110# "manylinux": null,COMMENT
HIGH…ts/backend/python/util_rules/lockfile_metadata_test.py210# "manylinux": null,COMMENT
HIGH…ts/backend/python/util_rules/lockfile_metadata_test.py257# "manylinux": null,COMMENT
HIGH…/pants/backend/python/util_rules/lockfile_diff_test.py102 "requires_python": null,STRING
HIGH…/pants/backend/python/util_rules/lockfile_diff_test.py171 "requires_python": null,STRING
HIGHsrc/python/pants/backend/python/goals/repl.py67 `select(.resolve == "example" or .resolve == null)`. These queries will result inCODE
HIGHsrc/python/pants/backend/python/goals/lockfile_test.py136 // "uploaded_prior_to": null,COMMENT
HIGH…c/python/pants/backend/python/providers/pyenv/rules.py143 mkdir -p "$DEST" 2>/dev/null || trueCODE
HIGH…ants/backend/python/macros/poetry_requirements_test.py328 assert_py_constraints("3.6 || 3.7", "((python_version == '3.6') or (python_version == '3.7'))")CODE
HIGH…ants/backend/python/macros/poetry_requirements_test.py331 ">3.6 || 3.5,3.4",CODE
HIGH…ants/backend/python/macros/poetry_requirements_test.py391 foo = [{version = ">=1.9", python = "^2.7"},{version = "^2.0", python = "3.4 || 3.5"}]CODE
HIGH…ython/pants/backend/python/typecheck/mypy/subsystem.py139 `none`: Disables caching entirely (--cache-dir=/dev/null). MuchCODE
HIGH…n/pants/backend/shell/util_rules/shell_command_test.py152 "mkdir res && cat *.txt > message.txt && cat message.txt | tee res/log.txt"CODE
HIGH…n/pants/backend/shell/util_rules/shell_command_test.py874 command="echo workspace > foo.txt && echo sandbox > {chroot}/out.log",CODE
HIGH…n/pants/backend/shell/util_rules/shell_command_test.py1048 command="mkdir some-directory && touch some-directory/foo.txt",CODE
HIGHsrc/python/pants/backend/shell/goals/test_test.py241 command="mkdir some-directory && touch some-directory/foo.txt",STRING
HIGHsrc/python/pants/backend/shell/goals/package_test.py79 command="echo 'file1' > output1.txt && echo 'file2' > output2.txt",STRING
HIGHsrc/python/pants/backend/shell/goals/package_test.py113 command="mkdir -p dist && echo 'content' > dist/file.txt",STRING
HIGHsrc/python/pants/backend/shell/goals/package_test.py192 command="mkdir some-directory && touch some-directory/foo.txt",STRING
HIGHsrc/python/pants/backend/project_info/peek_test.py94 "description": null,STRING
HIGHsrc/python/pants/backend/project_info/peek_test.py95 "overrides": null,STRING
HIGHsrc/python/pants/backend/project_info/peek_test.py315 "description": null,STRING
HIGHsrc/python/pants/backend/project_info/peek_test.py316 "overrides": null,STRING
HIGH…/backend/java/dependency_inference/java_parser_test.py75 System.out.println("It's " + date.toString());STRING
HIGH…ts/backend/codegen/avro/java/rules_integration_test.py175 union { MD5, null} @aliases(["hash"]) nullableHash;STRING
HIGHsrc/python/pants/backend/adhoc/adhoc_tool_test.py421 args=["-c", "echo $PATH > foo.txt && renamed_cat foo.txt > path.txt"],CODE
HIGHsrc/python/pants/backend/adhoc/adhoc_tool_test.py430 args=["-c", "echo $PATH > foo.txt && renamed_cat foo.txt > path.txt"],CODE
HIGHsrc/python/pants/backend/adhoc/adhoc_tool_test.py566 args=["-c", "mkdir some-directory && touch some-directory/foo.txt"],CODE
HIGHsrc/python/pants/backend/javascript/run/rules_test.py148 "scripts": {"build": "mkdir dist && echo $FOO >> dist/index.cjs"},CODE
HIGH…/python/pants/backend/javascript/package/rules_test.py127 "scripts": {"build": "mkdir dist && echo 'blarb' >> dist/index.cjs"},CODE
HIGH…/python/pants/backend/javascript/package/rules_test.py229 "scripts": {"build": "mkdir dist && echo 'blarb' >> dist/index.cjs"},CODE
HIGH…/python/pants/backend/javascript/package/rules_test.py275 "build": "mkdir dist && echo $FOO >> dist/index.cjs && echo $FROM_SUBSYSTEM >> dist/index.cjs &&CODE
HIGHsrc/python/pants/backend/helm/target_types.py152 If undefined, this will use the path to the BUILD file,CODE
HIGHsrc/python/pants/engine/process_test.py151 argv=("/bin/bash", "-c", "echo $RANDOM && exit 1"),CODE
HIGHsrc/python/pants/engine/process_test.py178 argv=("/bin/bash", "-c", "echo $RANDOM && exit 1"),CODE
HIGHsrc/python/pants/engine/process_test.py368 argv=["/bin/bash", "-c", "pwd && cat test.txt"],CODE
HIGHsrc/python/pants/engine/composite_process_test.py58 Subprocess(command="cmd1 && cmd2 | tee out.txt").get_command()CODE
HIGHsrc/python/pants/engine/composite_process_test.py59 == "cmd1 && cmd2 | tee out.txt"CODE
HIGHsrc/python/pants/engine/internals/rule_visitor.py160 self.push({descr.rule_name: descr for descr in get_module_scope_rules(self.root)})CODE
HIGHsrc/python/pants/engine/internals/rule_visitor.py161 self.push(self.root)CODE
HIGHsrc/python/pants/engine/internals/rule_visitor.py182 self.push(nonlocals)CODE
HIGHsrc/python/pants/engine/internals/rule_visitor.py396 self.types.push(STRING
HIGH…ants/engine/internals/remote_cache_integration_test.py156 ["/bin/bash", "-c", "/bin/sleep 1 && echo content > file.txt"],CODE
HIGH…ants/engine/internals/remote_cache_integration_test.py209 ["/bin/bash", "-c", "/bin/sleep 1 && echo content > file.txt"],CODE
HIGHsrc/python/pants_release/generate_github_workflows.py717 f"rm -rf {host_root_mount}/usr/share/dotnet || true",STRING
4 more matches not shown…
Modern Structural Boilerplate223 hits · 228 pts
SeverityFileLineSnippetContext
LOW…nts-plugins/src/python/python_constant/target_types.py42logger = logging.getLogger(__name__)CODE
LOW…s/pants-plugins/src/python/workunit_logger/register.py20logger = logging.getLogger(__name__)CODE
LOWpants-plugins/pants_explorer/server/uvicorn.py21logger = logging.getLogger(__name__)CODE
LOWbuild-support/bin/generate_builtin_lockfiles.py70logger = logging.getLogger(__name__)CODE
LOWbuild-support/bin/external_tool_upgrade.py41logger = logging.getLogger(__name__)CODE
LOWbuild-support/bin/external_tool/python.py12logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/init/engine_initializer.py63logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/init/extension_loader_test.py33logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/init/plugin_resolver.py28logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/init/specs_calculator.py26logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/init/extension_loader.py19logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/init/options_initializer.py32logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/util_rules/wrap_source.py31logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/util_rules/external_tool.py42logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/util_rules/asdf.py20logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/util_rules/system_binaries.py38logger = logging.getLogger(__name__)CODE
LOW…/python/pants/core/util_rules/adhoc_process_support.py86logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/util_rules/config_files.py22logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/util_rules/archive.py38logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/package.py45logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/generate_lockfiles.py33logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/run.py41logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/fmt.py27logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/deploy.py44logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/check.py38logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/test.py91logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/update_build_files.py57logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/fix.py42logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/multi_tool_goal_helper.py16logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/generate_snapshots.py20logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/tailor.py47logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/lint_goal.py36logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/publish.py64logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/goals/lint.py45logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/environments/rules.py72logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/core/subsystems/python_bootstrap.py31logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/util/pip_requirement.py12logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/util/osutil.py14logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/bin/remote_pants_runner.py24logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/bin/daemon_pants_runner.py19logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/bin/pants_runner.py28logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/bin/local_pants_runner.py46logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/source/source_root.py29logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/run.py38logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/jdk_rules.py37logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/run_deploy_jar.py18logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/classpath.py29logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/compile.py42logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/resources.py37logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/test/junit.py52logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/resolve/coursier_fetch.py85logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/shading/rules.py33logger = logging.getLogger(__name__)CODE
LOW…python/pants/jvm/dependency_inference/symbol_mapper.py27logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/package/deploy_jar.py46logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/jvm/package/war.py62logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/backend/terraform/lint/tffmt/tffmt.py23logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/backend/terraform/lint/tfsec/tfsec.py23logger = logging.getLogger(__name__)CODE
LOWsrc/python/pants/backend/terraform/goals/deploy.py33logger = logging.getLogger(__name__)CODE
LOW…backend/experimental/python/lint/autoflake/register.py8logger = logging.getLogger(__name__)CODE
LOW…backend/experimental/python/lint/pyupgrade/register.py9logger = logging.getLogger(__name__)CODE
163 more matches not shown…
Over-Commented Block144 hits · 142 pts
SeverityFileLineSnippetContext
LOWpyproject.toml61# I: isort (import sorting)COMMENT
LOWbuild-support/bin/generate_faas_complete_platforms.py1# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).COMMENT
LOWbuild-support/bin/rust/bootstrap_code.sh1# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).COMMENT
LOWbuild-support/preambles/config.yaml1"**/*.py:!**/__init__.py:**/BUILD:**/BUILD.*": |+COMMENT
LOWbuild-support/cloudflare/redirect2githubpages.js1// Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).COMMENT
LOWbuild-support/packer/runson/runson.pkr.hcl1# Packer config to create the AMI we use with https://runs-on.com/COMMENT
LOWbuild-support/packer/runson/runson.pkr.hcl21# 1. Run `packer init build-support/packer/runson/runson.pkr.hcl` to initialize state.COMMENT
LOWbuild-support/packer/runson/runson.pkr.hcl41# AWS_ACCESS_KEY_ID=ACCESSKEYID AWS_SECRET_ACCESS_KEY=SECRETACCESSKEY AWS_SESSION_TOKEN=SESSIONTOKEN \COMMENT
LOWbuild-support/packer/runson/runson.pkr.hcl61# CI is failing on an expired previous AMI, you will need to merge into main without green CI.COMMENT
LOWsrc/python/pants/__init__.py1# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).COMMENT
LOWsrc/python/pants/core/goals/fix.py121 # whether the rule's output matches the input (i.e. whether the tool made changes or not).COMMENT
LOWsrc/python/pants/core/goals/tailor.py101COMMENT
LOWsrc/python/pants/util/memo_test.py341 Foo._x = "x1"COMMENT
LOWsrc/python/pants/util/collections.py121 # To stably partition the arguments into ranges of approximately `size_target`, we sort them,COMMENT
LOWsrc/python/pants/jvm/test/junit.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…c/python/pants/jvm/shading/jarjar.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…ants/backend/build_files/fmt/black/integration_test.py41 #COMMENT
LOWsrc/python/pants/backend/docker/lint/hadolint/rules.py81 *(info.digest for info in dockerfile_infos),COMMENT
LOW…ython/pants/backend/docker/goals/package_image_test.py2721 #6 writing image sha256:7805a7da5f45a70bb9e47e8de09b1f5acd8f479dda06fb144c5590b9d2b86dd7 0.0s doneCOMMENT
LOW…ython/pants/backend/docker/goals/package_image_test.py2741 #9 unpacking to myhost.com/my_app:latest doneCOMMENT
LOW…ython/pants/backend/docker/goals/package_image_test.py2761 #12 exporting manifest list sha256:3c72de0e05bb75247e68e124e6500700f6e0597425db2ee9f08fd59ef28cea0f doneCOMMENT
LOW…ython/pants/backend/docker/goals/package_image_test.py2781 #13 exporting manifest sha256:bf37d968d569812df393c7b6a48eab143066fa56a001905d9a70ec7acf3d34f4 doneCOMMENT
LOWsrc/python/pants/backend/go/util_rules/coverage_html.py21from pants.engine.rules import collect_rules, ruleCOMMENT
LOWsrc/python/pants/backend/go/util_rules/build_pkg.py621COMMENT
LOWsrc/python/pants/backend/go/util_rules/cgo.py261 # Tell gcc not to include the work directory in object files.COMMENT
LOWsrc/python/pants/backend/go/util_rules/cgo.py521 # cmd/link explicitly looks for the name "dynimportfail".COMMENT
LOWsrc/python/pants/backend/go/util_rules/cgo.py781 maybe_disable_imports_flags.append("-import_syscall=false")COMMENT
LOW…s/backend/go/go_sources/parse_vendor_modules/semver.go1// Copyright 2018 The Go Authors. All rights reserved.COMMENT
LOW…s/backend/go/go_sources/parse_vendor_modules/semver.go201 return -1COMMENT
LOW…/pants/backend/go/go_sources/generate_testmain/main.go21 "text/template"COMMENT
LOW…/backend/go/go_sources/analyze_package/string_utils.go21// If sep does not appear in s, cut returns s, "", false.COMMENT
LOW…on/pants/backend/go/go_sources/analyze_package/read.go1// Portions Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).COMMENT
LOW…on/pants/backend/go/go_sources/analyze_package/read.go601//COMMENT
LOW…on/pants/backend/go/go_sources/analyze_package/read.go761// lines beginning with '// +build' are taken as build directives.COMMENT
LOW…backend/go/go_sources/analyze_package/build_context.go41// matchTag reports whether the name is one of:COMMENT
LOW…on/pants/backend/go/go_sources/analyze_package/main.go181 return fmt.Errorf("%s: invalid #cgo line: %s", filename, orig)COMMENT
LOW…ts/backend/python/lint/black/rules_integration_test.py61 ["--backend-packages=pants.backend.python.lint.black", *(extra_args or ())],COMMENT
LOWsrc/python/pants/backend/python/util_rules/pex.py1221 # execute its `sys.path` isolation bootstrap code in this case.COMMENT
LOWsrc/python/pants/backend/python/util_rules/faas.py381COMMENT
LOW…ts/backend/python/util_rules/lockfile_metadata_test.py101# --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---COMMENT
LOW…ts/backend/python/util_rules/lockfile_metadata_test.py201# --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---COMMENT
LOW…ts/backend/python/util_rules/lockfile_metadata_test.py241 """COMMENT
LOW…/pants/backend/python/util_rules/lockfile_diff_test.py61 //COMMENT
LOWsrc/python/pants/backend/python/goals/run_helper.py181 extra_env["PEX_INTERPRETER"] = "1"COMMENT
LOW…n/pants/backend/python/framework/django/detect_apps.py61 # and a "label" - a short name, usually the last segment of the import path ("myapp").COMMENT
LOW…ackend/python/framework/django/scripts/app_detector.py41 # We detect an AppConfig subclass via the following heuristics:COMMENT
LOW…kend/python/providers/python_build_standalone/rules.py581 # into a temporary directory ensures that we don't end up with partial state if thisCOMMENT
LOWsrc/python/pants/backend/python/typecheck/mypy/rules.py281 else:COMMENT
LOWsrc/python/pants/backend/python/typecheck/mypy/rules.py301 # same filesystem), then after mypy runs, we hardlink from the sandboxCOMMENT
LOW…le_java_format/google_java_format.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…napi/subsystems/openapi_generator.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…nd/codegen/thrift/scrooge/scrooge.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…kend/codegen/avro/java/avro-tools.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOWsrc/python/pants/backend/awslambda/python/rules.py101 architecture=FaaSArchitecture(field_set.architecture.value),COMMENT
LOW…kend/scala/lint/scalafix/scalafix.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…kend/scala/lint/scalafmt/scalafmt.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOWsrc/python/pants/backend/scala/bsp/rules.py161 #COMMENT
LOW…ackend/scala/subsystems/scalatest.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOW…d/scala/subsystems/scalac_plugins.default.lockfile.txt1# This lockfile was autogenerated by Pants. To regenerate, run:COMMENT
LOWsrc/python/pants/option/subsystem.py121 # Will raise an `AttributeError` if the attribute is not defined.COMMENT
84 more matches not shown…
Deep Nesting140 hits · 137 pts
SeverityFileLineSnippetContext
LOW…nts-plugins/src/python/python_constant/target_types.py227CODE
LOW…nts-plugins/src/python/python_constant/target_types.py259CODE
LOW…nts-plugins/src/python/python_constant/target_types.py113CODE
LOWpants-plugins/pants_explorer/server/integration_test.py37CODE
LOWbuild-support/bin/generate_builtin_lockfiles.py218CODE
LOWbuild-support/bin/generate_json_schema.py77CODE
LOWbuild-support/bin/external_tool/python.py28CODE
LOWbuild-support/bin/external_tool/python.py49CODE
LOWbuild-support/bin/external_tool/python.py85CODE
LOW…ld-support/migration-support/migrate_to_toml_config.py74CODE
LOWsrc/python/pants/conftest.py10CODE
LOWsrc/python/pants/init/extension_loader.py52CODE
LOWsrc/python/pants/core/util_rules/lockfile_metadata.py89CODE
LOWsrc/python/pants/core/util_rules/asdf.py90CODE
LOWsrc/python/pants/core/util_rules/system_binaries.py62CODE
LOWsrc/python/pants/core/util_rules/system_binaries.py63CODE
LOWsrc/python/pants/core/util_rules/config_files.py116CODE
LOWsrc/python/pants/core/goals/fix.py328CODE
LOWsrc/python/pants/core/goals/fix.py365CODE
LOWsrc/python/pants/core/goals/multi_tool_goal_helper.py121CODE
LOWsrc/python/pants/core/goals/publish.py355CODE
LOWsrc/python/pants/core/goals/publish.py396CODE
LOWsrc/python/pants/core/environments/rules.py622CODE
LOWsrc/python/pants/ng/subsystem.py245CODE
LOWsrc/python/pants/ng/subsystem_mypy_plugin.py27CODE
LOWsrc/python/pants/util/contextutil_test.py108CODE
LOWsrc/python/pants/util/contextutil.py189CODE
LOWsrc/python/pants/util/pip_requirement.py19CODE
LOWsrc/python/pants/util/eval.py11CODE
LOWsrc/python/pants/bin/remote_pants_runner.py128CODE
LOWsrc/python/pants/bin/daemon_pants_runner.py44CODE
LOWsrc/python/pants/jvm/compile.py98CODE
LOW…thon/pants/jvm/dependency_inference/artifact_mapper.py421CODE
LOWsrc/python/pants/backend/terraform/hcl2_parser.py15CODE
LOWsrc/python/pants/backend/docker/utils.py38CODE
LOWsrc/python/pants/backend/docker/registries.py90CODE
LOWsrc/python/pants/backend/docker/goals/package_image.py400CODE
LOWsrc/python/pants/backend/nfpm/util_rules/sandbox.py156CODE
LOWsrc/python/pants/backend/nfpm/util_rules/sandbox.py98CODE
LOWsrc/python/pants/backend/go/conftest.py42CODE
LOWsrc/python/pants/backend/go/target_type_rules.py157CODE
LOWsrc/python/pants/backend/go/target_type_rules.py228CODE
LOWsrc/python/pants/backend/go/target_type_rules.py309CODE
LOW…python/pants/backend/go/util_rules/pkg_pattern_test.py115CODE
LOWsrc/python/pants/backend/go/util_rules/coverage_html.py82CODE
LOWsrc/python/pants/backend/go/util_rules/build_pkg.py490CODE
LOWsrc/python/pants/backend/go/util_rules/build_pkg.py626CODE
LOW…/python/pants/backend/go/util_rules/third_party_pkg.py335CODE
LOW…python/pants/backend/go/util_rules/coverage_profile.py107CODE
LOWsrc/python/pants/backend/go/util_rules/cgo.py179CODE
LOWsrc/python/pants/backend/go/util_rules/cgo_security.py244CODE
LOWsrc/python/pants/backend/go/util_rules/cgo_pkgconfig.py43CODE
LOW…python/pants/backend/go/util_rules/build_pkg_target.py357CODE
LOWsrc/python/pants/backend/go/goals/generate.py113CODE
LOWsrc/python/pants/backend/go/goals/generate.py133CODE
LOWsrc/python/pants/backend/go/goals/test.py259CODE
LOWsrc/python/pants/backend/python/target_types.py1585CODE
LOW…/python/pants/backend/python/util_rules/local_dists.py152CODE
LOW…s/backend/python/util_rules/interpreter_constraints.py347CODE
LOWsrc/python/pants/backend/python/util_rules/dists.py299CODE
80 more matches not shown…
Self-Referential Comments35 hits · 84 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/create-dev-release-pr.yaml67 # Create an alphabetical list of all contributors, using the .mailmap where available (stripping bots)COMMENT
MEDIUM.github/workflows/create-alpha-release-pr.yaml84 # Create an alphabetical list of all contributors, using the .mailmap where available (stripping bots)COMMENT
MEDIUM.github/workflows/create-rc-release-pr.yaml76 # Create an alphabetical list of all contributors, using the .mailmap where available (stripping bots)COMMENT
MEDIUMbuild-support/bin/rust/bootstrap_code.sh87 # Create the native engine resource.COMMENT
MEDIUMbuild-support/bin/rust/bootstrap_code.sh95 # Create the accompanying metadata file.COMMENT
MEDIUMsrc/python/pants/init/logging.py36 """This class is installed as a Python logging module handler (using the logging.addHandlerSTRING
MEDIUMsrc/python/pants/init/engine_initializer.py300 # Create a Scheduler containing graph and filesystem rules, with no installed goals.COMMENT
MEDIUMsrc/python/pants/init/plugin_resolver_test.py149 # Create a moduleSTRING
MEDIUMsrc/python/pants/core/goals/deploy.py72 # Create the underlying process that executes the deploymentSTRING
MEDIUMsrc/python/pants/core/environments/rules.py793 # Create the OptionField class dynamicallyCOMMENT
MEDIUMsrc/python/pants/core/subsystems/python_bootstrap.py230# This method is copied from the pex package, located at pex.variables.Variables._get_kv().STRING
MEDIUMsrc/python/pants/core/subsystems/python_bootstrap.py240# This method is copied from the pex package, located at pex.variables.Variables.from_rc().STRING
MEDIUMsrc/python/pants/bin/daemon_pants_runner.py110 # Create a transient OptionsBootstrapper with no args, to read the value of pants_ng fromCOMMENT
MEDIUMsrc/python/pants/bin/pants_runner.py77 # Create a transient OptionsBootstrapper with no args, to read the value of pants_ng fromCOMMENT
MEDIUMsrc/python/pants/backend/terraform/testutil.py148# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…ants/backend/docker/util_rules/docker_build_context.py407 # Create the FROM image build args.STRING
MEDIUM…/python/pants/backend/go/util_rules/third_party_pkg.py503 # Create a synthetic go.mod (and go.sum when entries are available) thatCOMMENT
MEDIUM…on/pants/backend/python/packaging/pyoxidizer/config.py39 # Create an object that represents our installed application file layout.COMMENT
MEDIUMsrc/python/pants/backend/python/util_rules/pex_test.py1051 # Create a target with the complete platforms fileCOMMENT
MEDIUMsrc/python/pants/backend/python/util_rules/pex_test.py1076 # Create a target with the complete platforms fileCOMMENT
MEDIUMsrc/python/pants/backend/shell/goals/test_test.py342 # Create a new session.COMMENT
MEDIUMsrc/python/pants/backend/project_info/peek.py273 # Create a collection of target aliases per target roots: e.g. [frozenset(), frozenset({'pyoxidizer_binary', 'pex_biCOMMENT
MEDIUMsrc/python/pants/backend/project_info/peek.py278 # Create a mapping from the goal name to a collection of target aliases: e.g. {'run': frozenset({'pyoxidizer_binary'COMMENT
MEDIUMsrc/python/pants/backend/helm/util_rules/tool.py411 # Create a digest that will get mutated during the setup processCOMMENT
MEDIUMsrc/python/pants/engine/goal_integration_test.py49 # Create a BUILD file in a nested temporary directory, and add additional targets to it.COMMENT
MEDIUMsrc/python/pants/engine/internals/build_files_test.py1193 # Define a target.STRING
MEDIUMsrc/python/pants/engine/internals/build_files_test.py1199 # Define a target..STRING
MEDIUMsrc/python/pants/engine/internals/build_files_test.py1135 # Define a target..STRING
MEDIUMsrc/python/pants/engine/internals/scheduler.py161 # Create the native Scheduler and Session.COMMENT
MEDIUMsrc/python/pants/base/exception_sink.py263 """This method is here so that it can be patched to simulate write errors.STRING
MEDIUMsrc/python/pants/base/exception_sink.py396 # Create a potentially-abbreviated traceback for the terminal or other interactive stream.COMMENT
MEDIUMsrc/python/pants/base/exiter_integration_test.py9 # This file is expected to fail to "compile" when run via `./pants run` due to a SyntaxError.COMMENT
MEDIUMsrc/python/pants/goal/completion.py68 """This function is called under two main circumstances.STRING
MEDIUMsrc/python/pants/pantsd/pantsd_integration_test.py229 # Create a variety of config files that change an option that does _not_ affect theCOMMENT
MEDIUMsrc/python/pants/pantsd/pantsd_integration_test.py382 # Create a new file in test_dirCOMMENT
Hallucination Indicators9 hits · 80 pts
SeverityFileLineSnippetContext
CRITICALbuild-support/cherry_pick/helper.test.js125 helper.octokit.rest.issues.listMilestones.mockImplementation((obj) => {CODE
CRITICALbuild-support/cherry_pick/helper.test.js183 helper.octokit.rest.pulls.list.mockImplementation((obj) => {CODE
CRITICALbuild-support/cherry_pick/helper.test.js253 helper.octokit.rest.pulls.list.mockImplementation((obj) => {CODE
CRITICALsrc/python/pants/backend/python/goals/publish.py108 request.package_fs.provides.value.kwargs.get("name", "<unknown python artifact>")CODE
CRITICAL…ants/backend/helm/lint/trivy/trivy_integration_test.py64 *pants.backend.tools.trivy.rules.rules(),STRING
CRITICAL…ants/backend/helm/lint/trivy/trivy_integration_test.py67 *pants.backend.helm.dependency_inference.deployment.rules(),STRING
CRITICAL…ants/backend/helm/lint/trivy/trivy_integration_test.py69 *pants.backend.helm.util_rules.chart.rules(),STRING
CRITICAL…ants/backend/helm/lint/trivy/trivy_integration_test.py70 *pants.backend.helm.util_rules.tool.rules(),STRING
CRITICALsrc/rust/engine/src/nodes/task.rs290 let func = self.task.func.0.value.bind(py);CODE
AI Slop Vocabulary32 hits · 65 pts
SeverityFileLineSnippetContext
MEDIUMsrc/python/pants/core/goals/publish.py161 """Processes to run in order to publish the named artifacts.STRING
LOWsrc/python/pants/core/environments/rules.py592 # If the image name appears to be just an image ID, just return it as-is.STRING
MEDIUMsrc/python/pants/ng/source_partition.py52 if not source_paths.paths: # We don't expect empty SourcePaths, but might as well be robust.CODE
LOW…ants/backend/docker/util_rules/docker_build_context.py104 # We simply pass the files on, as-isCOMMENT
LOW…python/pants/backend/docker/util_rules/dependencies.py93 # be none or it could be dynamic. Instead of forcing clients to tell us, we just use all theSTRING
MEDIUMsrc/python/pants/backend/go/target_type_rules.py390 # For now, just use a default set of options to facilitate analyzing third-party dependencies andCOMMENT
LOWsrc/python/pants/backend/go/target_type_rules.py390 # For now, just use a default set of options to facilitate analyzing third-party dependencies andCOMMENT
MEDIUMsrc/python/pants/backend/go/util_rules/cgo.py224 # Definitely want -fPIC but on Windows gcc complainsCOMMENT
LOWsrc/python/pants/backend/python/target_types_rules.py183 # If it's already a module (cases #1 and #2), simply use that. Otherwise, convert the file nameSTRING
MEDIUM…on/pants/backend/python/util_rules/pex_requirements.py145 # setting `--indent` when generating lockfiles. More robust would be parsing the JSONCOMMENT
MEDIUM…python/pants/backend/python/util_rules/entry_points.py98 # use .val instead of .explicit_modules and .pex_binary_addresses to facilitate filteringCOMMENT
MEDIUMsrc/python/pants/backend/python/util_rules/pex.py1220 # O(100ms) of overhead per subsequent tool invocation. Fundamentally, Pex still needs toCOMMENT
MEDIUMsrc/python/pants/backend/python/util_rules/pex.py1234 # `pex` venv script in the PEX_ROOT directly. This is not robust on its own though, since theCOMMENT
LOWsrc/python/pants/backend/python/util_rules/faas.py175 # If it's already a module, simply use that. Otherwise, convert the file name into a moduleCOMMENT
LOW…n/pants/backend/python/framework/django/detect_apps.py79 # simply create an apps.py to fix the issue.COMMENT
MEDIUMsrc/python/pants/backend/python/typecheck/mypy/rules.py285 # We want to leverage the MyPy cache for fast incremental runs of MyPy.COMMENT
MEDIUMsrc/python/pants/backend/python/typecheck/mypy/rules.py286 # Pants exposes "append_only_caches" we can leverage, but with the caveatCOMMENT
MEDIUM…hon/pants/backend/python/dependency_inference/rules.py631# This is a separate function to facilitate tests registering import inference.COMMENT
MEDIUM…dependency_inference/parse_python_dependencies_test.py352 # Definitely invalid stringsSTRING
MEDIUM…dependency_inference/parse_python_dependencies_test.py581 # Definitely invalid assets.STRING
MEDIUMsrc/python/pants/backend/typescript/tsconfig.py3"""tsconfig.json is primarily used by the typescript compiler in order to resolve types duringSTRING
MEDIUMsrc/python/pants/backend/typescript/goals/check_test.py421 """Test TypeScript incremental compilation cache using comprehensive 4-run pattern.STRING
LOW…ython/pants/backend/java/dependency_inference/rules.py119 # so just add it unalteredCOMMENT
LOWsrc/python/pants/option/subsystem.py142 # We should just return the default at this point.COMMENT
MEDIUMsrc/python/pants/option/bootstrap_options.py1155 # These facilitate configuring the native engine.STRING
MEDIUMsrc/python/pants/engine/target.py199 # NB: `union_membership` is only optional to facilitate tests. In production, we shouldCOMMENT
LOWsrc/python/pants/engine/internals/platform_rules.py55 # If a local environment is used, we simply use SessionValues. Otherwise, we need to run `env`COMMENT
MEDIUMsrc/python/pants/help/help_info_extracter.py782 # arguments don't appear in input_types. So this is no longer a robustCOMMENT
MEDIUMsrc/python/pants/goal/completion.py5# more knowledge of the options and goals, we can make this more robust and accurate (after tests are written).COMMENT
LOWsrc/python/pants/goal/completion.py181 # options.for_scope will throw if the goal is unknown, so we'll just return an empty listCOMMENT
MEDIUMsrc/python/pants/pantsd/pantsd_integration_test.py318 # We additionally set the `HERMETIC_ENV` env var to allow the integration test harnessCOMMENT
MEDIUMsrc/rust/dep_inference/src/javascript/import_pattern.rs16/// Essentially it is a static match, with an optionalCOMMENT
Excessive Try-Catch Wrapping50 hits · 57 pts
SeverityFileLineSnippetContext
LOW…nal_plugins/test_lockfile_fixtures/collect_fixtures.py48 except Exception as err:CODE
LOWsrc/python/pants/core/util_rules/lockfile_metadata.py336 except Exception:STRING
LOWsrc/python/pants/util/eval.py45 except Exception as e:CODE
LOWsrc/python/pants/util/dirutil.py300 except Exception:CODE
LOWsrc/python/pants/bin/daemon_pants_runner.py159 except Exception as e:CODE
LOWsrc/python/pants/bin/local_pants_runner.py282 except Exception as e:CODE
LOWsrc/python/pants/jvm/resolve/jvm_tool.py142 except Exception:STRING
LOWsrc/python/pants/jvm/resolve/jvm_tool.py150 except Exception:STRING
LOW…n/pants/backend/go/util_rules/coverage_profile_test.py306 except Exception:CODE
MEDIUM…n/pants/backend/go/util_rules/coverage_profile_test.py300def test_parse_go_coverage_profiles(case) -> None:CODE
LOW…ython/pants/backend/python/util_rules/lockfile_diff.py87 except Exception as e:CODE
LOW…ython/pants/backend/python/util_rules/lockfile_diff.py114 except Exception as e:CODE
LOWsrc/python/pants/backend/python/goals/tailor.py215 except Exception as e:CODE
LOWsrc/python/pants/backend/python/goals/tailor.py277 except Exception:CODE
MEDIUMsrc/python/pants/backend/python/goals/tailor.py271def pyproject_toml_has_pep621(fc) -> bool:CODE
LOW…rvability/opentelemetry/exception_logging_processor.py31 except Exception as ex:CODE
MEDIUM…rvability/opentelemetry/exception_logging_processor.py28def _wrapper(self) -> Generator[None]:CODE
MEDIUM…ython/pants/backend/helm/subsystems/k8s_parser_main.py24 print(f"Error: Failed to import CRD module: {e}", file=sys.stderr)CODE
LOW…ython/pants/backend/helm/subsystems/k8s_parser_main.py26 except Exception as e:CODE
MEDIUM…ython/pants/backend/helm/subsystems/k8s_parser_main.py27 print(f"Error: Failed to register CRD: {e}", file=sys.stderr)CODE
MEDIUM…ython/pants/backend/helm/subsystems/k8s_parser_main.py50 print("Error: CRD class not found in __crd_source[...].", file=sys.stderr)CODE
LOWsrc/python/pants/bsp/protocol.py148 except Exception:CODE
LOWsrc/python/pants/bsp/protocol.py178 except Exception as ex:CODE
LOWsrc/python/pants/engine/target.py266 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/scheduler_test.py326 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/scheduler_test.py336 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/build_files.py169 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/parametrize.py157 except Exception as e:STRING
LOWsrc/python/pants/engine/internals/mapper.py79 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/graph.py1691 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/graph.py1903 except Exception as e:CODE
LOWsrc/python/pants/engine/internals/engine_test.py862 except Exception as e:CODE
LOW…/engine/internals/buildbarn_integration_tests/stack.py141 except Exception:CODE
LOW…/engine/internals/buildbarn_integration_tests/stack.py214 except Exception:CODE
LOWsrc/python/pants/base/exception_sink.py167 except Exception as e:CODE
LOWsrc/python/pants/base/exception_sink.py183 except Exception as e:CODE
LOWsrc/python/pants/base/exception_sink.py244 except Exception as e:CODE
LOWsrc/python/pants/base/exception_sink.py255 except Exception as e:CODE
LOWsrc/python/pants/base/exception_sink.py365 except Exception as e:CODE
MEDIUMsrc/python/pants/base/exception_sink.py207def unlink_if_empty():CODE
LOWsrc/python/pants/help/help_info_extracter.py924 except Exception as e:CODE
LOWsrc/python/pants/goal/completion.py180 except Exception:CODE
LOWsrc/python/pants/pantsd/pants_daemon_core.py83 except Exception as e:CODE
LOWsrc/python/pants/pantsd/pants_daemon_core.py113 except Exception as e:CODE
MEDIUMsrc/python/pants/pantsd/pants_daemon_core.py80def _handle_exceptions(self) -> Iterator[None]:CODE
LOWsrc/python/pants/pantsd/process_manager.py475 except Exception:CODE
LOWsrc/python/pants/pantsd/process_manager.py483 except Exception:CODE
LOWsrc/python/pants/pantsd/service/store_gc_service.py84 except Exception as e:CODE
LOWsrc/python/pants/pantsd/service/scheduler_service.py153 except Exception as e:CODE
LOWsrc/python/pants_release/git.py77 except Exception as e:CODE
AI Structural Patterns51 hits · 48 pts
SeverityFileLineSnippetContext
LOWsrc/python/pants/init/plugin_resolver_test.py177CODE
LOWsrc/python/pants/core/goals/test_test.py251CODE
LOWsrc/python/pants/core/goals/generate_snapshots.py60CODE
LOWsrc/python/pants/core/environments/rules_test.py370CODE
LOWsrc/python/pants/jvm/jdk_rules.py342CODE
LOWsrc/python/pants/jvm/resolve/coordinate.py61CODE
LOWsrc/python/pants/jvm/jar_tool/jar_tool.py84CODE
LOW…thon/pants/backend/build_files/fmt/buildifier/rules.py49CODE
LOWsrc/python/pants/backend/tools/trivy/rules.py92CODE
LOW…backend/docker/goals/package_image_integration_test.py48CODE
LOW…ython/pants/backend/docker/goals/package_image_test.py246CODE
LOWsrc/python/pants/backend/go/util_rules/build_pkg.py77CODE
LOWsrc/python/pants/backend/go/util_rules/cgo.py423CODE
LOWsrc/python/pants/backend/python/lint/ruff/common.py85CODE
LOW…thon/pants/backend/python/util_rules/pex_test_utils.py109CODE
LOW…thon/pants/backend/python/util_rules/pex_test_utils.py147CODE
LOW…on/pants/backend/python/util_rules/pex_from_targets.py100CODE
LOWsrc/python/pants/backend/python/util_rules/pex_cli.py91CODE
LOWsrc/python/pants/backend/python/util_rules/pex.py223CODE
LOWsrc/python/pants/backend/python/util_rules/pex.py1314CODE
LOWsrc/python/pants/backend/python/util_rules/pex.py1402CODE
LOW…s/backend/python/goals/coverage_py_integration_test.py139CODE
LOW…dependency_inference/parse_python_dependencies_test.py44CODE
LOW…/pants/backend/openapi/util_rules/generator_process.py42CODE
LOWsrc/python/pants/backend/scala/lint/scalafix/rules.py261CODE
LOWsrc/python/pants/backend/scala/lint/scalafix/rules.py269CODE
LOWsrc/python/pants/backend/adhoc/code_quality_tool.py236CODE
LOWsrc/python/pants/backend/javascript/package_json.py168CODE
LOW…c/python/pants/backend/javascript/subsystems/nodejs.py291CODE
LOWsrc/python/pants/backend/helm/util_rules/tool.py353CODE
LOWsrc/python/pants/backend/sql/lint/sqlfluff/rules.py99CODE
LOWsrc/python/pants/option/option_types.py84CODE
LOWsrc/python/pants/option/option_types.py229CODE
LOWsrc/python/pants/option/option_types.py446CODE
LOWsrc/python/pants/option/option_types.py469CODE
LOWsrc/python/pants/option/option_types.py493CODE
LOWsrc/python/pants/option/option_types.py515CODE
LOWsrc/python/pants/option/option_types.py586CODE
LOWsrc/python/pants/option/option_types.py609CODE
LOWsrc/python/pants/option/option_types.py633CODE
LOWsrc/python/pants/option/option_types.py654CODE
LOWsrc/python/pants/option/option_types.py742CODE
LOWsrc/python/pants/bsp/spec/resources.py41CODE
LOWsrc/python/pants/engine/composite_process.py38CODE
LOWsrc/python/pants/engine/composite_process.py121CODE
LOWsrc/python/pants/engine/process.py126CODE
LOWsrc/python/pants/engine/process.py431CODE
LOWsrc/python/pants/engine/internals/selectors.py171CODE
LOWsrc/python/pants/testutil/pants_integration_test.py257CODE
LOWsrc/python/pants/testutil/rule_runner.py246CODE
LOWsrc/python/pants/help/help_info_extracter.py1161CODE
Redundant / Tautological Comments16 hits · 23 pts
SeverityFileLineSnippetContext
LOWbuild-support/common.sh60 # Check if the Python version is installed via Pyenv but not activated.COMMENT
LOW…ld-support/migration-support/migrate_to_toml_config.py91 # Check if it's a one-line list valueCOMMENT
LOW…ld-support/migration-support/migrate_to_toml_config.py105 # Check if it's a one-line dict valueCOMMENT
LOWsrc/python/pants/util/dirutil_test.py425 # Check if parent dirs will be created for the linkCOMMENT
LOWsrc/python/pants/source/source_root.py241 # Check if the requested path itself is a source root.COMMENT
LOWsrc/python/pants/backend/docker/goals/package_image.py726 # Check if this build would push and handle according to push_on_package behaviorCOMMENT
LOWsrc/python/pants/backend/go/conftest.py85 # Check if the test has the require_go_version_max marker.COMMENT
LOWsrc/python/pants/backend/go/util_rules/build_pkg.py762 # Check if any assembly files contain gcc assembly, and not Go assembly. Raise an exception if any areCOMMENT
LOW…thon/pants/backend/python/util_rules/python_sources.py67 # Set this to True only if you know this cannot logically happen (e.g., if it didCOMMENT
LOW…observability/opentelemetry/opentelemetry_processor.py182 # Check if the length is correct for the given ID type.COMMENT
LOWsrc/python/pants/option/options.py342 # Check if we're the new name of a deprecated scope, and clone values from that scope.COMMENT
LOWsrc/python/pants/engine/internals/graph.py1585 # Check if it's a transitive exclude, rather than a direct exclude.COMMENT
LOWsrc/python/pants/base/exception_sink.py404 # Print the output via standard logging.COMMENT
LOWsrc/python/pants/help/help_info_extracter.py213 # Check if the field only allows for certain choices.COMMENT
LOWsrc/python/pants/goal/pants-completion.bash6 # Check if we're completing a relative (.), absolute (/), or homedir (~) path. If so, fallback to readline (default)COMMENT
LOWsrc/python/pants/goal/pants-completion.zsh7 # Check if we're completing a relative (.), absolute (/), or homedir (~) path. If so, fallback to readline (default)COMMENT
Verbosity Indicators13 hits · 15 pts
SeverityFileLineSnippetContext
LOW…ython/pants/backend/docker/goals/package_image_test.py2007 # Step 1: Validate Process construction using assert_build_processSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2029 # Step 2: Test build_docker_image with WARN behaviorSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2127 # Step 1: Validate Process construction using assert_build_processSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2428 # Step 1: Get the build processSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2460 # Step 2: Create the build process with the get_docker_image_build_process ruleSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2477 # Step 3: Test that build_docker_image handles the failure properlySTRING
LOWsrc/python/pants/backend/python/target_types_rules.py199 # we need to check if they used a file glob (`*` or `**`) that resolved to >1 file.STRING
LOWsrc/python/pants/backend/python/util_rules/faas.py191 # we need to check if they used a file glob (`*` or `**`) that resolved to >1 file.COMMENT
LOW…kend/python/providers/python_build_standalone/rules.py610 # Step 1: check and skipCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py617 # Step 2: copy from the digest into the named cacheCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py621 # Step 3: attempt to move, squashing the errorCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py624 # Step 4: confirm and clean-upCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py630 # Step 5: remove the temporary directoryCOMMENT
Structural Annotation Overuse12 hits · 14 pts
SeverityFileLineSnippetContext
LOW…ython/pants/backend/docker/goals/package_image_test.py2007 # Step 1: Validate Process construction using assert_build_processSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2029 # Step 2: Test build_docker_image with WARN behaviorSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2127 # Step 1: Validate Process construction using assert_build_processSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2428 # Step 1: Get the build processSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2460 # Step 2: Create the build process with the get_docker_image_build_process ruleSTRING
LOW…ython/pants/backend/docker/goals/package_image_test.py2477 # Step 3: Test that build_docker_image handles the failure properlySTRING
LOW…kend/python/providers/python_build_standalone/rules.py610 # Step 1: check and skipCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py617 # Step 2: copy from the digest into the named cacheCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py621 # Step 3: attempt to move, squashing the errorCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py624 # Step 4: confirm and clean-upCOMMENT
LOW…kend/python/providers/python_build_standalone/rules.py630 # Step 5: remove the temporary directoryCOMMENT
LOWsrc/rust/fs/src/testutil.rs8// NOTE: This method is not in the `src/rust/testutil` crate because that will cause a cyclicCOMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/python/pants/backend/python/target_types.py222# See `target_types_rules.py` for a dependency injection rule.COMMENT
MEDIUMsrc/python/pants/backend/python/target_types.py1770# See `target_types_rules.py` for a dependency injection rule.STRING
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/python/pants/util/memo.py67Memoizes the results of a function call. By default, exactly one result is memoized for each unique combination of STRING
Overly Generic Function Names4 hits · 2 pts
SeverityFileLineSnippetContext
LOWbuild-support/cloudflare/redirect2githubpages.js99async function handleRequest(event) {CODE
LOWsrc/python/pants/init/plugin_resolver_test.py152 def test_function():STRING
LOWsrc/python/pants/testutil/rule_runner.py74 def test_function():STRING
LOWsrc/python/pants/testutil/rule_runner.py82 def test_function():STRING
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/python/pants/backend/nfpm/util_rules/sandbox.py245 # make sure to include anything where codegen doesn't applyCOMMENT
LOWsrc/python/pants/backend/python/goals/pytest_runner.py364 # Don't forget to keep "Customize Pytest command line options per target" section inSTRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…hon/pants/jvm/jar_tool/jar_tool_source/JarBuilder.java362 // TODO: implement read(byte[], int, int) for faster multibyte readsCOMMENT