The Pants Build System
This report summarizes scanner evidence for pantsbuild/pants, a Python project with 3,841 GitHub stars. SynthScan examined 535,389 lines of code across 2452 source files, recording 5280 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 12.4 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3304 finding(s).
Are imports declared and package/API names verified? 1107 finding(s).
Are wrappers, guards, and repeated structures necessary? 3769 finding(s).
Which changes need focused human review? 5280 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 5280 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | conftest.py | 9 | def pytest_runtest_makereport(item: pytest.Item, call: pytest.CallInfo[None]): | CODE |
| LOW | …lugins/src/python/python_constant/target_types_test.py | 59 | def test_parse_python_constants(): | STRING |
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 132 | async def generate_python_constant_targets( | CODE |
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 209 | async def get_python_constant_targets(targets: AllTargets) -> AllPythonConstantTargets: | CODE |
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 259 | async def infer_python_dependencies_on_python_constants( | CODE |
| LOW | …s/pants-plugins/src/python/workunit_logger/register.py | 66 | async def construct_workunits_logger_callback( | CODE |
| LOW | …ojects/src/python/vcs_test/changed_integration_test.py | 137 | def test_lines_one_line_added_in_target(repo: str) -> None: | STRING |
| LOW | …ojects/src/python/vcs_test/changed_integration_test.py | 180 | def test_lines_one_target_deleted(repo: str) -> None: | STRING |
| LOW | …ojects/src/python/vcs_test/changed_integration_test.py | 214 | def test_lines_one_line_on_the_edge_deleted(repo: str) -> None: | STRING |
| LOW | …ithub/workflows/tests/auto_cherry_picker_smoke_test.py | 74 | def test_auto_cherry_pick__workflow_dispatch(): | CODE |
| LOW | …ithub/workflows/tests/auto_cherry_picker_smoke_test.py | 108 | def test_auto_cherry_pick__prerequisites_failed(): | CODE |
| LOW | pants-plugins/pants_explorer/server/integration_test.py | 37 | def test_explorer_graphql_query(query: dict, expected_result: dict) -> None: | STRING |
| LOW | pants-plugins/pants_explorer/server/graphql/rules.py | 24 | async def get_graphql_uvicorn_setup( | CODE |
| LOW | …lugins/pants_explorer/server/graphql/query/conftest.py | 42 | def fake_consumed_scopes_mapper(scope: str) -> tuple[str, ...]: | CODE |
| LOW | …nal_plugins/test_lockfile_fixtures/collect_fixtures.py | 71 | def pytest_collection_modifyitems(self, items): | CODE |
| LOW | …nal_plugins/test_lockfile_fixtures/lockfile_fixture.py | 86 | def requirements_as_jvm_artifact_targets( | CODE |
| LOW | …ugins/internal_plugins/test_lockfile_fixtures/rules.py | 217 | async def internal_render_test_lockfile_fixtures( | CODE |
| LOW | build-support/bin/generate_builtin_lockfiles.py | 218 | def generate_python_tool_lockfiles( | CODE |
| LOW | build-support/bin/generate_builtin_lockfiles.py | 277 | def generate_jvm_tool_lockfiles( | STRING |
| LOW | build-support/bin/generate_builtin_lockfiles.py | 314 | def lockfile_buildroot_filename(lockfile_name): | STRING |
| LOW | build-support/bin/external_tool_upgrade_test.py | 21 | def test_filter_fetched_versions_with_constraint() -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 35 | def test_filter_versions_by_constraint_none() -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 44 | def test_filter_versions_by_constraint_basic() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 55 | def test_filter_versions_by_constraint_with_v_prefix() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 65 | def test_filter_versions_by_constraint_no_matches() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 73 | def test_filter_versions_by_constraint_multiple_matches() -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 85 | def _select_default_version_with_constraint( | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 107 | def test_version_constraint_upgrades_when_newer_version_available() -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 121 | def test_version_constraint_no_upgrade_when_no_newer_matching_version() -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 135 | def test_version_constraint_no_upgrade_when_already_at_newest_matching() -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade_test.py | 148 | def test_version_constraint_with_v_prefix_upgrades_correctly() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 161 | def test_encode_pads_platform_to_fixed_width() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 169 | def test_encode_no_padding_needed_for_max_width_platform() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 177 | def test_encode_decode_round_trip() -> None: | CODE |
| LOW⚡ | build-support/bin/external_tool_upgrade_test.py | 183 | def test_sorted_by_version_and_platform() -> None: | CODE |
| LOW | build-support/bin/generate_json_schema_test.py | 53 | def test_simplify_option_description(description: str, output: str) -> None: | CODE |
| LOW | build-support/bin/external_tool_upgrade.py | 89 | def sorted_by_version_and_platform( | CODE |
| LOW | build-support/bin/external_tool_upgrade.py | 193 | def filter_versions_by_constraint( | STRING |
| LOW | build-support/bin/terraform_tool_versions_test.py | 26 | def test_get_info_for_version(): | CODE |
| LOW | build-support/bin/generate_json_schema.py | 50 | def simplify_option_description(description: str) -> str: | CODE |
| LOW | build-support/bin/generate_faas_complete_platforms.py | 39 | def extract_complete_platform(repo: str, architecture: FaaSArchitecture, tag: str) -> object: | CODE |
| LOW | build-support/bin/generate-pbs-urls.py | 74 | def list_filtered_release_assets(release_tag: str) -> list[GithubReleaseAsset]: | CODE |
| LOW | build-support/bin/terraform_tool_versions.py | 185 | def fetch_platforms_for_version( | CODE |
| LOW | build-support/bin/external_tool/python_test.py | 110 | def test_replace_class_variables(tmpdir: str): | STRING |
| LOW | build-support/bin/external_tool/python_test.py | 130 | def test_replace_class_variables_adds_trailing_comma(tmpdir: str): | STRING |
| LOW | build-support/bin/external_tool/python.py | 85 | def find_modules_with_subclasses( | CODE |
| LOW | build-support/bin/external_tool/helm_test.py | 6 | def test_helm_releases_only_latest(monkeypatch) -> None: | CODE |
| LOW | build-support/bin/external_tool/helm_test.py | 25 | def test_helm_releases_all_versions(monkeypatch) -> None: | CODE |
| LOW | build-support/bin/external_tool/helm_test.py | 44 | def test_helm_releases_uses_github_api(monkeypatch) -> None: | CODE |
| LOW | …pport/migration-support/migrate_to_toml_config_test.py | 20 | def test_fully_automatable_config() -> None: | CODE |
| LOW | …pport/migration-support/migrate_to_toml_config_test.py | 62 | def test_different_key_value_symbols() -> None: | CODE |
| LOW | …pport/migration-support/migrate_to_toml_config_test.py | 211 | def test_multiline_options_ignored() -> None: | STRING |
| LOW⚡ | …rt/migration-support/convert_source_to_sources_test.py | 25 | def test_no_op_when_already_valid(line: str) -> None: | CODE |
| LOW⚡ | …rt/migration-support/convert_source_to_sources_test.py | 33 | def test_safe_with_unrelated_lines(line: str) -> None: | CODE |
| LOW⚡ | …rt/migration-support/convert_source_to_sources_test.py | 37 | def test_respects_original_formatting() -> None: | CODE |
| LOW | …rt/migration-support/convert_source_to_sources_test.py | 60 | def test_can_handle_sharing_a_line() -> None: | CODE |
| LOW | …rt/migration-support/convert_source_to_sources_test.py | 73 | def test_can_handle_variables() -> None: | CODE |
| LOW | src/python/pants/conftest.py | 43 | def _check_frozen_dataclass_attributes() -> None: | CODE |
| LOW | src/python/pants/conftest_test.py | 9 | def test_frozen_dataclass_checking() -> None: | CODE |
| LOW | src/python/pants/init/logging.py | 92 | def stdio_destination_use_color(use_color: bool) -> None: | CODE |
| 2789 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/python/pants/core/target_types.py | 74 | # ----------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/target_types.py | 76 | # ----------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/target_types.py | 160 | # ----------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/target_types.py | 162 | # ----------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/target_types.py | 328 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 330 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 399 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 401 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 547 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 549 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 634 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 636 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 678 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 680 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 725 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 727 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 756 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 758 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 884 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 886 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 946 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/target_types.py | 948 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 81 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 83 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 217 | # ------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 220 | # ------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 298 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 300 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 593 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 595 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 1308 | # ------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/util_rules/system_binaries.py | 1310 | # ------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/goals/generate_lockfiles.py | 642 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/goals/generate_lockfiles.py | 644 | # ----------------------------------------------------------------------------------------------- | STRING |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 49 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 51 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 214 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 216 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 297 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 299 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 349 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/python/pants/core/goals/update_build_files_test.py | 351 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files_test.py | 401 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files_test.py | 403 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/test.py | 1227 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/python/pants/core/goals/test.py | 1229 | # ------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 59 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 61 | # ------------------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 330 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 332 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 366 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 368 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 402 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 404 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 437 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 439 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 470 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 472 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 498 | # ------------------------------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | src/python/pants/core/goals/update_build_files.py | 500 | # ------------------------------------------------------------------------------------------ | STRING |
| 451 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …pants-plugins/src/python/test_pants_plugin/register.py | 43 | CODE | |
| LOW | …ojects/src/python/vcs_test/changed_integration_test.py | 3 | CODE | |
| LOW | pants-plugins/pants_explorer/server/register.py | 4 | CODE | |
| LOW | pants-plugins/pants_explorer/server/browser.py | 4 | CODE | |
| LOW | pants-plugins/pants_explorer/server/uvicorn.py | 4 | CODE | |
| LOW | pants-plugins/pants_explorer/server/integration_test.py | 4 | CODE | |
| LOW | …nts-plugins/pants_explorer/server/graphql/subsystem.py | 4 | CODE | |
| LOW | pants-plugins/pants_explorer/server/graphql/rules.py | 4 | CODE | |
| LOW | pants-plugins/pants_explorer/server/graphql/setup.py | 4 | CODE | |
| LOW | pants-plugins/pants_explorer/server/graphql/context.py | 4 | CODE | |
| LOW | …lugins/pants_explorer/server/graphql/query/conftest.py | 4 | CODE | |
| LOW | …plugins/pants_explorer/server/graphql/query/targets.py | 4 | CODE | |
| LOW | …gins/pants_explorer/server/graphql/query/rules_test.py | 4 | CODE | |
| LOW | …ns/pants_explorer/server/graphql/query/targets_test.py | 4 | CODE | |
| LOW | …s-plugins/pants_explorer/server/graphql/query/rules.py | 4 | CODE | |
| LOW | …ts-plugins/pants_explorer/server/graphql/query/root.py | 4 | CODE | |
| LOW | pants-plugins/internal_plugins/releases/register.py | 4 | CODE | |
| LOW | …ns/internal_plugins/test_lockfile_fixtures/register.py | 3 | CODE | |
| LOW | …nal_plugins/test_lockfile_fixtures/lockfile_fixture.py | 3 | CODE | |
| LOW | …ugins/internal_plugins/test_lockfile_fixtures/rules.py | 3 | CODE | |
| LOW | build-support/bin/cache_comparison.py | 4 | CODE | |
| LOW | build-support/bin/generate_builtin_lockfiles.py | 6 | CODE | |
| LOW | build-support/bin/external_tool_upgrade.py | 10 | CODE | |
| LOW | build-support/bin/classify_changed_files.py | 4 | CODE | |
| LOW | build-support/bin/generate_completions.py | 4 | CODE | |
| LOW | build-support/bin/check_orphaned_plugins.py | 5 | CODE | |
| LOW | build-support/bin/generate_faas_complete_platforms.py | 18 | CODE | |
| LOW | build-support/flake8/dedent_use_checker.py | 5 | CODE | |
| LOW | src/python/pants/init/logging.py | 4 | CODE | |
| LOW | src/python/pants/init/engine_initializer.py | 4 | CODE | |
| LOW | src/python/pants/init/plugin_resolver_rules.py | 4 | CODE | |
| LOW | src/python/pants/init/import_util.py | 4 | CODE | |
| LOW | src/python/pants/init/plugin_resolver_test.py | 4 | CODE | |
| LOW | src/python/pants/init/plugin_resolver.py | 4 | CODE | |
| LOW | src/python/pants/init/options_initializer.py | 4 | CODE | |
| LOW | src/python/pants/core/target_types_test.py | 4 | CODE | |
| LOW | src/python/pants/core/target_types.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/wrap_source.py | 5 | CODE | |
| LOW | src/python/pants/core/util_rules/partitions.py | 6 | CODE | |
| LOW | src/python/pants/core/util_rules/external_tool.py | 4 | CODE | |
| LOW | src/python/pants/core/util_rules/lockfile_metadata.py | 4 | CODE | |
| LOW | src/python/pants/core/util_rules/asdf.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/source_files_test.py | 4 | CODE | |
| LOW | …on/pants/core/util_rules/adhoc_process_support_test.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/search_paths.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/asdf_test.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/system_binaries.py | 4 | CODE | |
| LOW | src/python/pants/core/util_rules/config_files_test.py | 4 | CODE | |
| LOW | …/python/pants/core/util_rules/adhoc_process_support.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/config_files.py | 4 | CODE | |
| LOW | …n/pants/core/util_rules/unowned_dependency_behavior.py | 3 | CODE | |
| LOW | …c/python/pants/core/util_rules/system_binaries_test.py | 4 | CODE | |
| LOW | src/python/pants/core/util_rules/search_paths_test.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/archive.py | 4 | CODE | |
| LOW | …pants/core/util_rules/wrap_source_intergration_test.py | 3 | CODE | |
| LOW | src/python/pants/core/util_rules/testutil.py | 3 | CODE | |
| LOW | …on/pants/core/util_rules/stripped_source_files_test.py | 4 | CODE | |
| LOW | src/python/pants/core/util_rules/adhoc_binaries.py | 4 | CODE | |
| LOW | src/python/pants/core/goals/package.py | 4 | CODE | |
| LOW | src/python/pants/core/goals/generate_lockfiles.py | 4 | CODE | |
| 972 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/python/pants/core/target_types.py | 0 | addresses to any targets that can be built with `{bin_name()} package`, e.g. `["project:app"]`. pants will build the ass | STRING |
| HIGH | src/python/pants/backend/debian/target_types.py | 0 | addresses to any targets that can be built with `{bin_name()} package`, e.g. `["project:app"]`. pants will build the ass | STRING |
| HIGH | src/python/pants/backend/makeself/target_types.py | 0 | addresses to any targets that can be built with `{bin_name()} package`, e.g. `["project:app"]`. pants will build the ass | STRING |
| HIGH | src/python/pants/core/goals/check.py | 0 | is marked uncacheable to ensure that it always renders. | STRING |
| HIGH | src/python/pants/core/goals/test.py | 0 | is marked uncacheable to ensure that it always renders. | STRING |
| HIGH | src/python/pants/core/goals/fix.py | 0 | is marked uncacheable to ensure that it always renders. | STRING |
| HIGH | src/python/pants/core/goals/lint.py | 0 | is marked uncacheable to ensure that it always renders. | STRING |
| HIGH | …n/pants/backend/terraform/dependency_inference_test.py | 0 | regression test for https://github.com/pantsbuild/pants/issues/14876. | STRING |
| HIGH | …ts/backend/docker/subsystems/dockerfile_parser_test.py | 0 | regression test for https://github.com/pantsbuild/pants/issues/14876. | STRING |
| HIGH | …on/pants/backend/cc/lint/clangformat/subsystem_test.py | 0 | regression test for https://github.com/pantsbuild/pants/issues/14876. | STRING |
| HIGH | src/python/pants/backend/tools/yamllint/subsystem.py | 0 | whether to ignore, error or show a warning when files are found that are not covered by the config file provided in `[{o | STRING |
| HIGH | …/python/pants/backend/scala/lint/scalafix/subsystem.py | 0 | whether to ignore, error or show a warning when files are found that are not covered by the config file provided in `[{o | STRING |
| HIGH | …/python/pants/backend/scala/lint/scalafmt/subsystem.py | 0 | whether to ignore, error or show a warning when files are found that are not covered by the config file provided in `[{o | STRING |
| HIGH | src/python/pants/backend/go/target_type_rules_test.py | 0 | \ package hello import "fmt" func hello() { fmt.println("hello world!") } | STRING |
| HIGH | …/pants/backend/go/goals/run_binary_integration_test.py | 0 | \ package hello import "fmt" func hello() { fmt.println("hello world!") } | STRING |
| HIGH | …ts/backend/go/goals/package_binary_integration_test.py | 0 | \ package hello import "fmt" func hello() { fmt.println("hello world!") } | STRING |
| HIGH | src/python/pants/backend/go/goals/debug_goals_test.py | 0 | \ package hello import "fmt" func hello() { fmt.println("hello world!") } | STRING |
| HIGH | …c/python/pants/backend/go/dependency_inference_test.py | 0 | package foo func add(x, y int) int { return x + y } func add(x, y int) int { return add(x, y) } | STRING |
| HIGH | src/python/pants/backend/go/util_rules/coverage_test.py | 0 | package foo func add(x, y int) int { return x + y } func add(x, y int) int { return add(x, y) } | STRING |
| HIGH | src/python/pants/backend/go/goals/test_test.py | 0 | package 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.py | 0 | package foo import "testing" !!! func testadd(t *testing.t) { if add(2, 3) != 5 { t.fail() } } | STRING |
| HIGH | src/python/pants/backend/go/util_rules/coverage_test.py | 0 | package foo import "testing" !!! func testadd(t *testing.t) { if add(2, 3) != 5 { t.fail() } } | STRING |
| HIGH | src/python/pants/backend/go/goals/test_test.py | 0 | package 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.py | 0 | \ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pyth | STRING |
| HIGH | …kend/python/typecheck/pytype/rules_integration_test.py | 0 | \ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pyth | STRING |
| HIGH | …ackend/python/typecheck/mypy/rules_integration_test.py | 0 | \ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pyth | STRING |
| HIGH | …end/python/typecheck/pyright/rules_integration_test.py | 0 | \ python_source( name='dep', source='dep.py', resolve='{resolve}', interpreter_constraints=['=={interpreter}.*'], ) pyth | STRING |
| HIGH | src/python/pants/backend/python/util_rules/faas.py | 0 | returns the python version implied by the runtime, as (major, minor). | STRING |
| HIGH | …/python/pants/backend/awslambda/python/target_types.py | 0 | returns the python version implied by the runtime, as (major, minor). | STRING |
| HIGH | …s/backend/google_cloud_function/python/target_types.py | 0 | returns the python version implied by the runtime, as (major, minor). | STRING |
| HIGH | …on/pants/backend/python/util_rules/local_dists_test.py | 0 | \ 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.py | 0 | \ 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.py | 0 | \ 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.py | 0 | \ files(name='files', sources=['f.txt']) relocated_files( name='relocated', files_targets=[':files'], src='assets', dest | STRING |
| HIGH | src/python/pants/backend/awslambda/python/rules_test.py | 0 | \ files(name='files', sources=['f.txt']) relocated_files( name='relocated', files_targets=[':files'], src='assets', dest | STRING |
| HIGH | …nts/backend/google_cloud_function/python/rules_test.py | 0 | \ files(name='files', sources=['f.txt']) relocated_files( name='relocated', files_targets=[':files'], src='assets', dest | STRING |
| HIGH | src/python/pants/backend/python/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | src/python/pants/backend/shell/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | src/python/pants/backend/java/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | src/python/pants/backend/kotlin/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | src/python/pants/backend/scala/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | src/python/pants/backend/swift/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | src/python/pants/backend/cc/goals/tailor.py | 0 | returns a dict of target type -> files that belong to targets of that type. | STRING |
| HIGH | …kend/python/typecheck/pytype/rules_integration_test.py | 0 | \ def add(x: int, y: int) -> int: return x + y result = add(3, 3) | STRING |
| HIGH | …ackend/python/typecheck/mypy/rules_integration_test.py | 0 | \ def add(x: int, y: int) -> int: return x + y result = add(3, 3) | STRING |
| HIGH | …end/python/typecheck/pyright/rules_integration_test.py | 0 | \ def add(x: int, y: int) -> int: return x + y result = add(3, 3) | STRING |
| HIGH | …kend/python/typecheck/pytype/rules_integration_test.py | 0 | \ 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.py | 0 | \ 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.py | 0 | \ def add(x: int, y: int) -> int: return x + y result = add(2.0, 3.0) | STRING |
| HIGH | src/python/pants/backend/shell/target_types.py | 0 | the runnable dependencies for this command. dependencies specified here are those required to exist on the `path` to mak | STRING |
| HIGH | src/python/pants/backend/adhoc/code_quality_tool.py | 0 | the runnable dependencies for this command. dependencies specified here are those required to exist on the `path` to mak | STRING |
| HIGH | src/python/pants/backend/adhoc/target_types.py | 0 | the runnable dependencies for this command. dependencies specified here are those required to exist on the `path` to mak | STRING |
| HIGH | …python/pants/backend/javascript/goals/lockfile_test.py | 0 | \ # this is an autogenerated file. do not edit this file directly. # yarn lockfile v1 | STRING |
| HIGH | src/python/pants/backend/javascript/run/rules_test.py | 0 | \ # this is an autogenerated file. do not edit this file directly. # yarn lockfile v1 | STRING |
| HIGH | …/python/pants/backend/javascript/package/rules_test.py | 0 | \ # this is an autogenerated file. do not edit this file directly. # yarn lockfile v1 | STRING |
| HIGH | src/python/pants/backend/helm/testutil.py | 0 | \ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versi | STRING |
| HIGH | …hon/pants/backend/helm/check/kubeconform/chart_test.py | 0 | \ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versi | STRING |
| HIGH | …ants/backend/helm/check/kubeconform/deployment_test.py | 0 | \ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versi | STRING |
| HIGH | …s/backend/helm/dependency_inference/deployment_test.py | 0 | \ apiversion: v1 kind: pod metadata: name: {{ template "fullname" . }} labels: chart: "{{ .chart.name }}-{{ .chart.versi | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/python/pants/core/goals/package.py | 97 | 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.py | 252 | System.out.println(dt.toString()); | STRING |
| HIGH | …pants/jvm/dependency_inference/artifact_mapper_test.py | 306 | System.out.println(dt.toString()); | STRING |
| HIGH | …pants/jvm/dependency_inference/artifact_mapper_test.py | 320 | System.out.println(dt.toString()); | STRING |
| HIGH | …pants/jvm/dependency_inference/artifact_mapper_test.py | 382 | System.out.println(dt.toString()); | STRING |
| HIGH | …pants/jvm/dependency_inference/artifact_mapper_test.py | 395 | System.out.println(dt.toString()); | STRING |
| HIGH | …pants/jvm/dependency_inference/artifact_mapper_test.py | 448 | System.out.println(dt.toString()); | STRING |
| HIGH | src/python/pants/backend/nfpm/fields/all.py | 183 | If undefined, this will use the path to the BUILD file, followed by the target name. | CODE |
| HIGH | src/python/pants/backend/go/util_rules/cgo.py | 540 | allow_unresolved_symbols_ldflag = "-Wl,-undefined,dynamic_lookup" | CODE |
| HIGH | src/python/pants/backend/python/target_types.py | 1860 | If undefined, this defaults to the empty path, i.e. the output goes at the top | CODE |
| HIGH | …ts/backend/python/packaging/pyoxidizer/target_types.py | 27 | If undefined, this will use the path to the BUILD file, followed by the target name. | CODE |
| HIGH | src/python/pants/backend/python/util_rules/pex_test.py | 387 | "requires_python": null, | STRING |
| HIGH | src/python/pants/backend/python/util_rules/pex_test.py | 421 | "manylinux": null, | STRING |
| HIGH | src/python/pants/backend/python/util_rules/pex_test.py | 430 | "uploaded_prior_to": null, | STRING |
| HIGH | src/python/pants/backend/python/util_rules/uv.py | 319 | {flock} 200 || exit 1 | CODE |
| HIGH | src/python/pants/backend/python/util_rules/uv.py | 321 | {pants_lock} 200 || exit 1 | CODE |
| HIGH | …nts/backend/python/util_rules/pex_requirements_test.py | 332 | "requires_python": null, | STRING |
| HIGH | …ts/backend/python/util_rules/lockfile_metadata_test.py | 110 | # "manylinux": null, | COMMENT |
| HIGH | …ts/backend/python/util_rules/lockfile_metadata_test.py | 210 | # "manylinux": null, | COMMENT |
| HIGH | …ts/backend/python/util_rules/lockfile_metadata_test.py | 257 | # "manylinux": null, | COMMENT |
| HIGH | …/pants/backend/python/util_rules/lockfile_diff_test.py | 102 | "requires_python": null, | STRING |
| HIGH | …/pants/backend/python/util_rules/lockfile_diff_test.py | 171 | "requires_python": null, | STRING |
| HIGH | src/python/pants/backend/python/goals/repl.py | 67 | `select(.resolve == "example" or .resolve == null)`. These queries will result in | CODE |
| HIGH | src/python/pants/backend/python/goals/lockfile_test.py | 142 | // "uploaded_prior_to": null, | COMMENT |
| HIGH | …c/python/pants/backend/python/providers/pyenv/rules.py | 143 | mkdir -p "$DEST" 2>/dev/null || true | CODE |
| HIGH | …ants/backend/python/macros/poetry_requirements_test.py | 328 | 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.py | 331 | ">3.6 || 3.5,3.4", | CODE |
| HIGH | …ants/backend/python/macros/poetry_requirements_test.py | 391 | foo = [{version = ">=1.9", python = "^2.7"},{version = "^2.0", python = "3.4 || 3.5"}] | CODE |
| HIGH | …ython/pants/backend/python/typecheck/mypy/subsystem.py | 139 | `none`: Disables caching entirely (--cache-dir=/dev/null). Much | CODE |
| HIGH | …n/pants/backend/shell/util_rules/shell_command_test.py | 152 | "mkdir res && cat *.txt > message.txt && cat message.txt | tee res/log.txt" | CODE |
| HIGH | …n/pants/backend/shell/util_rules/shell_command_test.py | 874 | command="echo workspace > foo.txt && echo sandbox > {chroot}/out.log", | CODE |
| HIGH | …n/pants/backend/shell/util_rules/shell_command_test.py | 1048 | command="mkdir some-directory && touch some-directory/foo.txt", | CODE |
| HIGH | src/python/pants/backend/shell/goals/test_test.py | 241 | command="mkdir some-directory && touch some-directory/foo.txt", | STRING |
| HIGH | src/python/pants/backend/shell/goals/package_test.py | 79 | command="echo 'file1' > output1.txt && echo 'file2' > output2.txt", | STRING |
| HIGH | src/python/pants/backend/shell/goals/package_test.py | 113 | command="mkdir -p dist && echo 'content' > dist/file.txt", | STRING |
| HIGH | src/python/pants/backend/shell/goals/package_test.py | 192 | command="mkdir some-directory && touch some-directory/foo.txt", | STRING |
| HIGH | src/python/pants/backend/project_info/peek_test.py | 94 | "description": null, | STRING |
| HIGH | src/python/pants/backend/project_info/peek_test.py | 95 | "overrides": null, | STRING |
| HIGH | src/python/pants/backend/project_info/peek_test.py | 315 | "description": null, | STRING |
| HIGH | src/python/pants/backend/project_info/peek_test.py | 316 | "overrides": null, | STRING |
| HIGH | …/backend/java/dependency_inference/java_parser_test.py | 75 | System.out.println("It's " + date.toString()); | STRING |
| HIGH | …ts/backend/codegen/avro/java/rules_integration_test.py | 175 | union { MD5, null} @aliases(["hash"]) nullableHash; | STRING |
| HIGH | src/python/pants/backend/adhoc/adhoc_tool_test.py | 421 | args=["-c", "echo $PATH > foo.txt && renamed_cat foo.txt > path.txt"], | CODE |
| HIGH | src/python/pants/backend/adhoc/adhoc_tool_test.py | 430 | args=["-c", "echo $PATH > foo.txt && renamed_cat foo.txt > path.txt"], | CODE |
| HIGH | src/python/pants/backend/adhoc/adhoc_tool_test.py | 566 | args=["-c", "mkdir some-directory && touch some-directory/foo.txt"], | CODE |
| HIGH | src/python/pants/backend/javascript/run/rules_test.py | 148 | "scripts": {"build": "mkdir dist && echo $FOO >> dist/index.cjs"}, | CODE |
| HIGH | …/python/pants/backend/javascript/package/rules_test.py | 127 | "scripts": {"build": "mkdir dist && echo 'blarb' >> dist/index.cjs"}, | CODE |
| HIGH | …/python/pants/backend/javascript/package/rules_test.py | 229 | "scripts": {"build": "mkdir dist && echo 'blarb' >> dist/index.cjs"}, | CODE |
| HIGH | …/python/pants/backend/javascript/package/rules_test.py | 275 | "build": "mkdir dist && echo $FOO >> dist/index.cjs && echo $FROM_SUBSYSTEM >> dist/index.cjs && | CODE |
| HIGH | src/python/pants/backend/helm/target_types.py | 152 | If undefined, this will use the path to the BUILD file, | CODE |
| HIGH | src/python/pants/engine/process_test.py | 151 | argv=("/bin/bash", "-c", "echo $RANDOM && exit 1"), | CODE |
| HIGH | src/python/pants/engine/process_test.py | 178 | argv=("/bin/bash", "-c", "echo $RANDOM && exit 1"), | CODE |
| HIGH | src/python/pants/engine/process_test.py | 406 | argv=["/bin/bash", "-c", "pwd && cat test.txt"], | CODE |
| HIGH⚡ | src/python/pants/engine/composite_process_test.py | 58 | Subprocess(command="cmd1 && cmd2 | tee out.txt").get_command() | CODE |
| HIGH⚡ | src/python/pants/engine/composite_process_test.py | 59 | == "cmd1 && cmd2 | tee out.txt" | CODE |
| HIGH | src/python/pants/engine/internals/rule_visitor.py | 160 | self.push({descr.rule_name: descr for descr in get_module_scope_rules(self.root)}) | CODE |
| HIGH | src/python/pants/engine/internals/rule_visitor.py | 161 | self.push(self.root) | CODE |
| HIGH | src/python/pants/engine/internals/rule_visitor.py | 182 | self.push(nonlocals) | CODE |
| HIGH | src/python/pants/engine/internals/rule_visitor.py | 396 | self.types.push( | STRING |
| HIGH | …ants/engine/internals/remote_cache_integration_test.py | 156 | ["/bin/bash", "-c", "/bin/sleep 1 && echo content > file.txt"], | CODE |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | …s/pants-plugins/src/python/workunit_logger/register.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | pants-plugins/pants_explorer/server/uvicorn.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | build-support/bin/generate_builtin_lockfiles.py | 70 | logger = logging.getLogger(__name__) | CODE |
| LOW | build-support/bin/external_tool_upgrade.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | build-support/bin/external_tool/python.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/init/engine_initializer.py | 63 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/init/extension_loader_test.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/init/plugin_resolver.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/init/specs_calculator.py | 26 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/init/extension_loader.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/init/options_initializer.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/util_rules/wrap_source.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/util_rules/external_tool.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/util_rules/asdf.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/util_rules/system_binaries.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/python/pants/core/util_rules/adhoc_process_support.py | 86 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/util_rules/config_files.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/util_rules/archive.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/package.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/generate_lockfiles.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/run.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/fmt.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/deploy.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/check.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/test.py | 91 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | src/python/pants/core/goals/update_build_files.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/fix.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/multi_tool_goal_helper.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/generate_snapshots.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/tailor.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/lint_goal.py | 36 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/publish.py | 64 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/goals/lint.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | src/python/pants/core/environments/rules.py | 72 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/core/subsystems/python_bootstrap.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/util/pip_requirement.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/util/osutil.py | 14 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/bin/remote_pants_runner.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/bin/daemon_pants_runner.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/bin/pants_runner.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/bin/local_pants_runner.py | 47 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/source/source_root.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/run.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/jdk_rules.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/run_deploy_jar.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/classpath.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/compile.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/resources.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/test/junit.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/resolve/coursier_fetch.py | 85 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/shading/rules.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | …python/pants/jvm/dependency_inference/symbol_mapper.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/package/deploy_jar.py | 46 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/jvm/package/war.py | 62 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/backend/terraform/lint/tffmt/tffmt.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/backend/terraform/lint/tfsec/tfsec.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/python/pants/backend/terraform/goals/deploy.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | …backend/experimental/python/lint/autoflake/register.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | …backend/experimental/python/lint/pyupgrade/register.py | 9 | logger = logging.getLogger(__name__) | CODE |
| 166 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 61 | # I: isort (import sorting) | COMMENT |
| LOW | build-support/bin/generate_faas_complete_platforms.py | 1 | # Copyright 2023 Pants project contributors (see CONTRIBUTORS.md). | COMMENT |
| LOW | build-support/bin/rust/bootstrap_code.sh | 1 | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). | COMMENT |
| LOW | build-support/preambles/config.yaml | 1 | "**/*.py:!**/__init__.py:**/BUILD:**/BUILD.*": |+ | COMMENT |
| LOW | build-support/cloudflare/redirect2githubpages.js | 1 | // Copyright 2023 Pants project contributors (see CONTRIBUTORS.md). | COMMENT |
| LOW | src/python/pants/__init__.py | 1 | # Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). | COMMENT |
| LOW | src/python/pants/core/goals/fix.py | 121 | # whether the rule's output matches the input (i.e. whether the tool made changes or not). | COMMENT |
| LOW | src/python/pants/core/goals/tailor.py | 101 | COMMENT | |
| LOW | src/python/pants/util/memo_test.py | 341 | Foo._x = "x1" | COMMENT |
| LOW | src/python/pants/util/collections.py | 121 | # To stably partition the arguments into ranges of approximately `size_target`, we sort them, | COMMENT |
| LOW | src/python/pants/jvm/jdk_rules.py | 461 | COMMENT | |
| LOW | src/python/pants/jvm/test/junit.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …c/python/pants/jvm/shading/jarjar.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …ants/backend/build_files/fmt/black/integration_test.py | 41 | # | COMMENT |
| LOW | src/python/pants/backend/docker/lint/hadolint/rules.py | 81 | *(info.digest for info in dockerfile_infos), | COMMENT |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2741 | #9 exporting config sha256:c83bed954709ba0c546d66d8f29afaac87c597f01b03fec158f3b21977c3e143 done | COMMENT |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2761 | #12 exporting attestation manifest sha256:32fcf615e85bc9c2f606f863e8db3ca16dd77613a1e175e5972f39267e106d | COMMENT |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2781 | #13 exporting layers done | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/sdk.py | 141 | # unfingerprinted toolchain (the default `GOTOOLCHAIN=auto` behaviour since Go 1.21). | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/coverage_html.py | 21 | from pants.engine.rules import collect_rules, rule | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/build_pkg.py | 581 | # TODO: Consider what to do with this information from Go tool: | COMMENT |
| LOW | …/python/pants/backend/go/util_rules/third_party_pkg.py | 281 | # | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/cgo.py | 261 | # Tell gcc not to include the work directory in object files. | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/cgo.py | 521 | # cmd/link explicitly looks for the name "dynimportfail". | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/cgo.py | 781 | maybe_disable_imports_flags.append("-import_syscall=false") | COMMENT |
| LOW | …s/backend/go/go_sources/parse_vendor_modules/semver.go | 1 | // Copyright 2018 The Go Authors. All rights reserved. | COMMENT |
| LOW | …s/backend/go/go_sources/parse_vendor_modules/semver.go | 201 | return -1 | COMMENT |
| LOW | …/pants/backend/go/go_sources/generate_testmain/main.go | 21 | "text/template" | COMMENT |
| LOW | …/backend/go/go_sources/analyze_package/string_utils.go | 21 | // If sep does not appear in s, cut returns s, "", false. | COMMENT |
| LOW | …on/pants/backend/go/go_sources/analyze_package/read.go | 1 | // Portions Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). | COMMENT |
| LOW | …on/pants/backend/go/go_sources/analyze_package/read.go | 601 | // | COMMENT |
| LOW | …on/pants/backend/go/go_sources/analyze_package/read.go | 761 | // lines beginning with '// +build' are taken as build directives. | COMMENT |
| LOW | …backend/go/go_sources/analyze_package/build_context.go | 41 | // matchTag reports whether the name is one of: | COMMENT |
| LOW | …on/pants/backend/go/go_sources/analyze_package/main.go | 61 | COMMENT | |
| LOW | …ts/backend/python/lint/black/rules_integration_test.py | 61 | ["--backend-packages=pants.backend.python.lint.black", *(extra_args or ())], | COMMENT |
| LOW | src/python/pants/backend/python/util_rules/pex.py | 1101 | # the relative path from the CWD to the venv script. Either way, we know the venv script | COMMENT |
| LOW | src/python/pants/backend/python/util_rules/pex.py | 1221 | ) -> VenvPexRequest: | COMMENT |
| LOW | src/python/pants/backend/python/util_rules/pex.py | 1241 | # overhead over raw venv use. | COMMENT |
| LOW | src/python/pants/backend/python/util_rules/uv.py | 281 | "sync", | COMMENT |
| LOW | src/python/pants/backend/python/util_rules/faas.py | 401 | complete_platforms: CompletePlatforms | COMMENT |
| LOW | …ts/backend/python/util_rules/lockfile_metadata_test.py | 101 | # --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE --- | COMMENT |
| LOW | …ts/backend/python/util_rules/lockfile_metadata_test.py | 201 | # --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE --- | COMMENT |
| LOW | …ts/backend/python/util_rules/lockfile_metadata_test.py | 241 | """ | COMMENT |
| LOW | …/pants/backend/python/util_rules/lockfile_diff_test.py | 61 | // | COMMENT |
| LOW | src/python/pants/backend/python/goals/run_helper.py | 181 | extra_env["PEX_INTERPRETER"] = "1" | COMMENT |
| LOW | src/python/pants/backend/python/goals/lockfile_test.py | 101 | // | COMMENT |
| LOW | …n/pants/backend/python/framework/django/detect_apps.py | 61 | # and a "label" - a short name, usually the last segment of the import path ("myapp"). | COMMENT |
| LOW | …ackend/python/framework/django/scripts/app_detector.py | 41 | # We detect an AppConfig subclass via the following heuristics: | COMMENT |
| LOW | …kend/python/providers/python_build_standalone/rules.py | 581 | # into a temporary directory ensures that we don't end up with partial state if this | COMMENT |
| LOW | src/python/pants/backend/python/typecheck/mypy/rules.py | 281 | else: | COMMENT |
| LOW | src/python/pants/backend/python/typecheck/mypy/rules.py | 301 | # same filesystem), then after mypy runs, we hardlink from the sandbox | COMMENT |
| LOW | …le_java_format/google_java_format.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …napi/subsystems/openapi_generator.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …nd/codegen/thrift/scrooge/scrooge.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …kend/codegen/avro/java/avro-tools.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …kend/scala/lint/scalafix/scalafix.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …kend/scala/lint/scalafmt/scalafmt.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | src/python/pants/backend/scala/bsp/rules.py | 161 | # | COMMENT |
| LOW | …ackend/scala/subsystems/scalatest.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| LOW | …d/scala/subsystems/scalac_plugins.default.lockfile.txt | 1 | # This lockfile was autogenerated by Pants. To regenerate, run: | COMMENT |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 227 | CODE | |
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 259 | CODE | |
| LOW | …nts-plugins/src/python/python_constant/target_types.py | 113 | CODE | |
| LOW | pants-plugins/pants_explorer/server/integration_test.py | 37 | CODE | |
| LOW | build-support/bin/generate_builtin_lockfiles.py | 218 | CODE | |
| LOW | build-support/bin/generate_json_schema.py | 77 | CODE | |
| LOW | build-support/bin/external_tool/python.py | 28 | CODE | |
| LOW | build-support/bin/external_tool/python.py | 49 | CODE | |
| LOW | build-support/bin/external_tool/python.py | 85 | CODE | |
| LOW | …ld-support/migration-support/migrate_to_toml_config.py | 74 | CODE | |
| LOW | src/python/pants/conftest.py | 10 | CODE | |
| LOW | src/python/pants/init/extension_loader.py | 52 | CODE | |
| LOW | src/python/pants/core/util_rules/lockfile_metadata.py | 89 | CODE | |
| LOW | src/python/pants/core/util_rules/asdf.py | 90 | CODE | |
| LOW | src/python/pants/core/util_rules/system_binaries.py | 62 | CODE | |
| LOW | src/python/pants/core/util_rules/system_binaries.py | 63 | CODE | |
| LOW | src/python/pants/core/util_rules/config_files.py | 116 | CODE | |
| LOW | src/python/pants/core/goals/fix.py | 328 | CODE | |
| LOW | src/python/pants/core/goals/fix.py | 365 | CODE | |
| LOW | src/python/pants/core/goals/multi_tool_goal_helper.py | 121 | CODE | |
| LOW | src/python/pants/core/goals/publish.py | 355 | CODE | |
| LOW | src/python/pants/core/goals/publish.py | 396 | CODE | |
| LOW | src/python/pants/core/environments/rules.py | 622 | CODE | |
| LOW | src/python/pants/ng/subsystem.py | 245 | CODE | |
| LOW | src/python/pants/ng/subsystem_mypy_plugin.py | 27 | CODE | |
| LOW | src/python/pants/util/contextutil_test.py | 108 | CODE | |
| LOW | src/python/pants/util/contextutil.py | 189 | CODE | |
| LOW | src/python/pants/util/pip_requirement.py | 19 | CODE | |
| LOW | src/python/pants/util/eval.py | 11 | CODE | |
| LOW | src/python/pants/bin/remote_pants_runner.py | 128 | CODE | |
| LOW | src/python/pants/bin/daemon_pants_runner.py | 44 | CODE | |
| LOW | src/python/pants/jvm/compile.py | 106 | CODE | |
| LOW | …thon/pants/jvm/dependency_inference/artifact_mapper.py | 421 | CODE | |
| LOW | src/python/pants/backend/terraform/hcl2_parser.py | 15 | CODE | |
| LOW | src/python/pants/backend/docker/utils.py | 36 | CODE | |
| LOW | src/python/pants/backend/docker/registries.py | 90 | CODE | |
| LOW | src/python/pants/backend/docker/goals/package_image.py | 400 | CODE | |
| LOW | src/python/pants/backend/nfpm/util_rules/sandbox.py | 156 | CODE | |
| LOW | src/python/pants/backend/nfpm/util_rules/sandbox.py | 98 | CODE | |
| LOW | src/python/pants/backend/go/conftest.py | 42 | CODE | |
| LOW | src/python/pants/backend/go/target_type_rules.py | 222 | CODE | |
| LOW | src/python/pants/backend/go/target_type_rules.py | 423 | CODE | |
| LOW | src/python/pants/backend/go/target_type_rules.py | 504 | CODE | |
| LOW | …python/pants/backend/go/util_rules/pkg_pattern_test.py | 115 | CODE | |
| LOW | …c/python/pants/backend/go/util_rules/build_pkg_test.py | 576 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/coverage_html.py | 82 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/build_pkg.py | 506 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/build_pkg.py | 642 | CODE | |
| LOW | …/python/pants/backend/go/util_rules/third_party_pkg.py | 399 | CODE | |
| LOW | …/python/pants/backend/go/util_rules/third_party_pkg.py | 716 | CODE | |
| LOW | …python/pants/backend/go/util_rules/coverage_profile.py | 107 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/cgo.py | 179 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/cgo_security.py | 244 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/cgo_pkgconfig.py | 43 | CODE | |
| LOW | …python/pants/backend/go/util_rules/build_pkg_target.py | 174 | CODE | |
| LOW | src/python/pants/backend/go/goals/debug_goals.py | 87 | CODE | |
| LOW | src/python/pants/backend/go/goals/generate.py | 113 | CODE | |
| LOW | src/python/pants/backend/go/goals/generate.py | 133 | CODE | |
| LOW | src/python/pants/backend/go/goals/test.py | 261 | CODE | |
| LOW | src/python/pants/backend/python/target_types.py | 1608 | CODE | |
| 83 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | build-support/bin/generate_builtin_lockfiles.py | 351 | except FileNotFoundError: | CODE |
| HIGH | …ld-support/migration-support/migrate_to_toml_config.py | 63 | except ValueError: | CODE |
| HIGH | …ld-support/migration-support/migrate_to_toml_config.py | 68 | except ValueError: | CODE |
| HIGH | …ld-support/migration-support/migrate_to_toml_config.py | 120 | except KeyboardInterrupt: | CODE |
| HIGH | …support/migration-support/convert_source_to_sources.py | 119 | except KeyboardInterrupt: | CODE |
| HIGH | src/python/pants/util/pip_requirement.py | 43 | except InvalidRequirement: | CODE |
| HIGH | src/python/pants/util/ordered_set.py | 120 | except TypeError: | CODE |
| HIGH | src/python/pants/util/ordered_set.py | 130 | except TypeError: | CODE |
| HIGH | src/python/pants/jvm/resolve/jvm_tool.py | 142 | except Exception: | CODE |
| HIGH | src/python/pants/backend/terraform/hcl2_parser.py | 53 | except ValueError: | CODE |
| HIGH | …on/pants/backend/python/util_rules/pex_requirements.py | 258 | except IntrinsicError: | CODE |
| HIGH | …ython/pants/backend/python/util_rules/lockfile_diff.py | 146 | except EngineError: | CODE |
| HIGH | src/python/pants/backend/python/goals/lockfile.py | 406 | except IntrinsicError: | CODE |
| HIGH | …kend/python/providers/python_build_standalone/rules.py | 245 | except ValueError: | CODE |
| HIGH | …on/pants/backend/python/subsystems/python_tool_base.py | 261 | except toml.TomlDecodeError: | CODE |
| HIGH | …bility/opentelemetry/opentelemetry_integration_test.py | 61 | except requests.exceptions.ConnectionError: | CODE |
| HIGH | src/python/pants/backend/url_handlers/s3/register.py | 190 | except exceptions.NoCredentialsError: | CODE |
| HIGH | src/python/pants/option/custom_types.py | 139 | except ValueError: | CODE |
| HIGH | src/python/pants/engine/internals/rule_visitor.py | 126 | except AttributeError: | CODE |
| HIGH | src/python/pants/testutil/pants_integration_test.py | 97 | except BrokenPipeError: | CODE |
| HIGH | src/python/pants/testutil/pants_integration_test.py | 84 | except BrokenPipeError: | CODE |
| HIGH | src/python/pants/base/exception_sink.py | 211 | except OSError: | CODE |
| HIGH | src/python/pants/pantsd/lock_test.py | 41 | except OSError: | CODE |
| HIGH | src/python/pants/pantsd/process_manager.py | 444 | except self.Timeout: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/create-dev-release-pr.yaml | 67 | # Create an alphabetical list of all contributors, using the .mailmap where available (stripping bots) | COMMENT |
| MEDIUM | .github/workflows/create-alpha-release-pr.yaml | 84 | # Create an alphabetical list of all contributors, using the .mailmap where available (stripping bots) | COMMENT |
| MEDIUM | .github/workflows/create-rc-release-pr.yaml | 76 | # Create an alphabetical list of all contributors, using the .mailmap where available (stripping bots) | COMMENT |
| MEDIUM | build-support/bin/rust/bootstrap_code.sh | 96 | # Create the native engine resource. | COMMENT |
| MEDIUM | build-support/bin/rust/bootstrap_code.sh | 108 | # Create the accompanying metadata file. | COMMENT |
| MEDIUM | src/python/pants/init/logging.py | 36 | """This class is installed as a Python logging module handler (using the logging.addHandler | STRING |
| MEDIUM | src/python/pants/init/engine_initializer.py | 300 | # Create a Scheduler containing graph and filesystem rules, with no installed goals. | COMMENT |
| MEDIUM | src/python/pants/init/plugin_resolver_test.py | 149 | # Create a module | STRING |
| MEDIUM | src/python/pants/core/goals/deploy.py | 72 | # Create the underlying process that executes the deployment | STRING |
| MEDIUM | src/python/pants/core/environments/rules.py | 793 | # Create the OptionField class dynamically | COMMENT |
| MEDIUM | src/python/pants/core/subsystems/python_bootstrap.py | 230 | # This method is copied from the pex package, located at pex.variables.Variables._get_kv(). | STRING |
| MEDIUM | src/python/pants/core/subsystems/python_bootstrap.py | 240 | # This method is copied from the pex package, located at pex.variables.Variables.from_rc(). | STRING |
| MEDIUM | src/python/pants/bin/daemon_pants_runner.py | 110 | # Create a transient OptionsBootstrapper with no args, to read the value of pants_ng from | COMMENT |
| MEDIUM | src/python/pants/bin/pants_runner.py | 77 | # Create a transient OptionsBootstrapper with no args, to read the value of pants_ng from | COMMENT |
| MEDIUM | src/python/pants/backend/terraform/testutil.py | 148 | # This file is maintained automatically by "terraform init". | COMMENT |
| MEDIUM | …ants/backend/docker/util_rules/docker_build_context.py | 407 | # Create the FROM image build args. | STRING |
| MEDIUM | …/python/pants/backend/go/util_rules/third_party_pkg.py | 569 | # Create a synthetic go.mod (and go.sum when entries are available) that | COMMENT |
| MEDIUM | …on/pants/backend/python/packaging/pyoxidizer/config.py | 39 | # Create an object that represents our installed application file layout. | COMMENT |
| MEDIUM | src/python/pants/backend/python/util_rules/pex_test.py | 1111 | # Create a target with the complete platforms file | COMMENT |
| MEDIUM | src/python/pants/backend/python/util_rules/pex_test.py | 1136 | # Create a target with the complete platforms file | COMMENT |
| MEDIUM | src/python/pants/backend/shell/goals/test_test.py | 342 | # Create a new session. | COMMENT |
| MEDIUM | src/python/pants/backend/project_info/peek.py | 273 | # Create a collection of target aliases per target roots: e.g. [frozenset(), frozenset({'pyoxidizer_binary', 'pex_bi | COMMENT |
| MEDIUM | src/python/pants/backend/project_info/peek.py | 278 | # Create a mapping from the goal name to a collection of target aliases: e.g. {'run': frozenset({'pyoxidizer_binary' | COMMENT |
| MEDIUM | src/python/pants/backend/helm/util_rules/tool.py | 411 | # Create a digest that will get mutated during the setup process | COMMENT |
| MEDIUM | src/python/pants/engine/goal_integration_test.py | 49 | # Create a BUILD file in a nested temporary directory, and add additional targets to it. | COMMENT |
| MEDIUM⚡ | src/python/pants/engine/internals/build_files_test.py | 1193 | # Define a target. | STRING |
| MEDIUM⚡ | src/python/pants/engine/internals/build_files_test.py | 1199 | # Define a target.. | STRING |
| MEDIUM | src/python/pants/engine/internals/build_files_test.py | 1135 | # Define a target.. | STRING |
| MEDIUM | src/python/pants/engine/internals/scheduler.py | 162 | # Create the native Scheduler and Session. | COMMENT |
| MEDIUM | src/python/pants/base/exception_sink.py | 263 | """This method is here so that it can be patched to simulate write errors. | STRING |
| MEDIUM | src/python/pants/base/exception_sink.py | 396 | # Create a potentially-abbreviated traceback for the terminal or other interactive stream. | COMMENT |
| MEDIUM | src/python/pants/base/exiter_integration_test.py | 9 | # This file is expected to fail to "compile" when run via `./pants run` due to a SyntaxError. | COMMENT |
| MEDIUM | src/python/pants/goal/completion.py | 68 | """This function is called under two main circumstances. | STRING |
| MEDIUM | src/python/pants/pantsd/pantsd_integration_test.py | 231 | # Create a variety of config files that change an option that does _not_ affect the | COMMENT |
| MEDIUM | src/python/pants/pantsd/pantsd_integration_test.py | 384 | # Create a new file in test_dir | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | build-support/cherry_pick/helper.test.js | 125 | helper.octokit.rest.issues.listMilestones.mockImplementation((obj) => { | CODE |
| CRITICAL | build-support/cherry_pick/helper.test.js | 183 | helper.octokit.rest.pulls.list.mockImplementation((obj) => { | CODE |
| CRITICAL | build-support/cherry_pick/helper.test.js | 253 | helper.octokit.rest.pulls.list.mockImplementation((obj) => { | CODE |
| CRITICAL | src/python/pants/backend/python/goals/publish.py | 110 | request.package_fs.provides.value.kwargs.get("name", "<unknown python artifact>") | CODE |
| CRITICAL⚡ | …ants/backend/helm/lint/trivy/trivy_integration_test.py | 64 | *pants.backend.tools.trivy.rules.rules(), | STRING |
| CRITICAL⚡ | …ants/backend/helm/lint/trivy/trivy_integration_test.py | 67 | *pants.backend.helm.dependency_inference.deployment.rules(), | STRING |
| CRITICAL⚡ | …ants/backend/helm/lint/trivy/trivy_integration_test.py | 69 | *pants.backend.helm.util_rules.chart.rules(), | STRING |
| CRITICAL⚡ | …ants/backend/helm/lint/trivy/trivy_integration_test.py | 70 | *pants.backend.helm.util_rules.tool.rules(), | STRING |
| CRITICAL | src/rust/engine/src/nodes/task.rs | 290 | let func = self.task.func.0.value.bind(py); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/python/pants/core/goals/publish.py | 161 | """Processes to run in order to publish the named artifacts. | STRING |
| LOW | src/python/pants/core/environments/rules.py | 592 | # If the image name appears to be just an image ID, just return it as-is. | STRING |
| MEDIUM | src/python/pants/ng/source_partition.py | 52 | 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.py | 104 | # We simply pass the files on, as-is | COMMENT |
| LOW | …python/pants/backend/docker/util_rules/dependencies.py | 135 | # be none or it could be dynamic. Instead of forcing clients to tell us, we just use all the | STRING |
| MEDIUM | src/python/pants/backend/go/target_type_rules.py | 587 | # For now, just use a default set of options to facilitate analyzing third-party dependencies and | COMMENT |
| LOW | src/python/pants/backend/go/target_type_rules.py | 587 | # For now, just use a default set of options to facilitate analyzing third-party dependencies and | COMMENT |
| MEDIUM | src/python/pants/backend/go/util_rules/cgo.py | 224 | # Definitely want -fPIC but on Windows gcc complains | COMMENT |
| LOW | src/python/pants/backend/python/target_types_rules.py | 191 | # If it's already a module (cases #1 and #2), simply use that. Otherwise, convert the file name | STRING |
| MEDIUM⚡ | …on/pants/backend/python/util_rules/pex_requirements.py | 145 | # setting `--indent` when generating lockfiles. More robust would be parsing the JSON | COMMENT |
| MEDIUM | …python/pants/backend/python/util_rules/entry_points.py | 98 | # use .val instead of .explicit_modules and .pex_binary_addresses to facilitate filtering | COMMENT |
| MEDIUM | src/python/pants/backend/python/util_rules/pex.py | 1236 | # O(100ms) of overhead per subsequent tool invocation. Fundamentally, Pex still needs to | COMMENT |
| MEDIUM | src/python/pants/backend/python/util_rules/pex.py | 1250 | # `pex` venv script in the PEX_ROOT directly. This is not robust on its own though, since the | COMMENT |
| LOW | src/python/pants/backend/python/util_rules/faas.py | 178 | # If it's already a module, simply use that. Otherwise, convert the file name into a module | COMMENT |
| LOW | …n/pants/backend/python/framework/django/detect_apps.py | 79 | # simply create an apps.py to fix the issue. | COMMENT |
| MEDIUM | src/python/pants/backend/python/typecheck/mypy/rules.py | 285 | # We want to leverage the MyPy cache for fast incremental runs of MyPy. | COMMENT |
| MEDIUM | src/python/pants/backend/python/typecheck/mypy/rules.py | 286 | # Pants exposes "append_only_caches" we can leverage, but with the caveat | COMMENT |
| MEDIUM | …hon/pants/backend/python/dependency_inference/rules.py | 631 | # This is a separate function to facilitate tests registering import inference. | COMMENT |
| MEDIUM | …dependency_inference/parse_python_dependencies_test.py | 352 | # Definitely invalid strings | STRING |
| MEDIUM | …dependency_inference/parse_python_dependencies_test.py | 581 | # Definitely invalid assets. | STRING |
| MEDIUM | src/python/pants/backend/typescript/tsconfig.py | 3 | """tsconfig.json is primarily used by the typescript compiler in order to resolve types during | STRING |
| MEDIUM | src/python/pants/backend/typescript/goals/check_test.py | 421 | """Test TypeScript incremental compilation cache using comprehensive 4-run pattern. | STRING |
| LOW | …ython/pants/backend/java/dependency_inference/rules.py | 119 | # so just add it unaltered | COMMENT |
| LOW | src/python/pants/option/subsystem.py | 145 | # We should just return the default at this point. | COMMENT |
| MEDIUM | src/python/pants/option/bootstrap_options.py | 1168 | # These facilitate configuring the native engine. | STRING |
| LOW | src/python/pants/engine/internals/platform_rules.py | 55 | # If a local environment is used, we simply use SessionValues. Otherwise, we need to run `env` | COMMENT |
| MEDIUM | src/python/pants/help/help_info_extracter.py | 782 | # arguments don't appear in input_types. So this is no longer a robust | COMMENT |
| MEDIUM | src/python/pants/goal/completion.py | 5 | # more knowledge of the options and goals, we can make this more robust and accurate (after tests are written). | COMMENT |
| LOW | src/python/pants/goal/completion.py | 181 | # options.for_scope will throw if the goal is unknown, so we'll just return an empty list | COMMENT |
| MEDIUM | src/python/pants/pantsd/pantsd_integration_test.py | 320 | # We additionally set the `HERMETIC_ENV` env var to allow the integration test harness | COMMENT |
| MEDIUM | src/rust/dep_inference/src/javascript/import_pattern.rs | 16 | /// Essentially it is a static match, with an optional | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nal_plugins/test_lockfile_fixtures/collect_fixtures.py | 48 | except Exception as err: | CODE |
| LOW | src/python/pants/core/util_rules/lockfile_metadata.py | 336 | except Exception: | STRING |
| LOW | src/python/pants/util/eval.py | 45 | except Exception as e: | CODE |
| LOW | src/python/pants/util/dirutil.py | 300 | except Exception: | CODE |
| LOW | src/python/pants/bin/daemon_pants_runner.py | 159 | except Exception as e: | CODE |
| LOW | src/python/pants/bin/local_pants_runner.py | 285 | except Exception as e: | CODE |
| LOW | src/python/pants/jvm/resolve/jvm_tool.py | 142 | except Exception: | STRING |
| LOW | src/python/pants/jvm/resolve/jvm_tool.py | 150 | except Exception: | STRING |
| LOW | …n/pants/backend/go/util_rules/coverage_profile_test.py | 306 | except Exception: | CODE |
| MEDIUM | …n/pants/backend/go/util_rules/coverage_profile_test.py | 300 | def test_parse_go_coverage_profiles(case) -> None: | CODE |
| LOW | …ython/pants/backend/python/util_rules/lockfile_diff.py | 87 | except Exception as e: | CODE |
| LOW | …ython/pants/backend/python/util_rules/lockfile_diff.py | 114 | except Exception as e: | CODE |
| LOW | src/python/pants/backend/python/goals/tailor.py | 215 | except Exception as e: | CODE |
| LOW | src/python/pants/backend/python/goals/tailor.py | 277 | except Exception: | CODE |
| MEDIUM | src/python/pants/backend/python/goals/tailor.py | 271 | def pyproject_toml_has_pep621(fc) -> bool: | CODE |
| LOW | …rvability/opentelemetry/exception_logging_processor.py | 31 | except Exception as ex: | CODE |
| MEDIUM | …rvability/opentelemetry/exception_logging_processor.py | 28 | def _wrapper(self) -> Generator[None]: | CODE |
| MEDIUM⚡ | …ython/pants/backend/helm/subsystems/k8s_parser_main.py | 24 | print(f"Error: Failed to import CRD module: {e}", file=sys.stderr) | CODE |
| LOW⚡ | …ython/pants/backend/helm/subsystems/k8s_parser_main.py | 26 | except Exception as e: | CODE |
| MEDIUM⚡ | …ython/pants/backend/helm/subsystems/k8s_parser_main.py | 27 | print(f"Error: Failed to register CRD: {e}", file=sys.stderr) | CODE |
| MEDIUM | …ython/pants/backend/helm/subsystems/k8s_parser_main.py | 50 | print("Error: CRD class not found in __crd_source[...].", file=sys.stderr) | CODE |
| LOW | src/python/pants/bsp/protocol.py | 148 | except Exception: | CODE |
| LOW | src/python/pants/bsp/protocol.py | 178 | except Exception as ex: | CODE |
| LOW | src/python/pants/engine/internals/scheduler_test.py | 326 | except Exception as e: | CODE |
| LOW | src/python/pants/engine/internals/scheduler_test.py | 336 | except Exception as e: | CODE |
| LOW | src/python/pants/engine/internals/build_files.py | 177 | except Exception as e: | CODE |
| LOW | src/python/pants/engine/internals/parametrize.py | 157 | except Exception as e: | STRING |
| LOW | src/python/pants/engine/internals/mapper.py | 82 | except Exception as e: | CODE |
| LOW | src/python/pants/engine/internals/graph.py | 1707 | except Exception as e: | CODE |
| LOW | src/python/pants/engine/internals/graph.py | 1919 | except Exception as e: | CODE |
| LOW | src/python/pants/engine/internals/engine_test.py | 862 | except Exception as e: | CODE |
| LOW | …/engine/internals/buildbarn_integration_tests/stack.py | 141 | except Exception: | CODE |
| LOW | …/engine/internals/buildbarn_integration_tests/stack.py | 214 | except Exception: | CODE |
| LOW | src/python/pants/base/exception_sink.py | 167 | except Exception as e: | CODE |
| LOW | src/python/pants/base/exception_sink.py | 183 | except Exception as e: | CODE |
| LOW | src/python/pants/base/exception_sink.py | 244 | except Exception as e: | CODE |
| LOW | src/python/pants/base/exception_sink.py | 255 | except Exception as e: | CODE |
| LOW | src/python/pants/base/exception_sink.py | 365 | except Exception as e: | CODE |
| MEDIUM | src/python/pants/base/exception_sink.py | 207 | def unlink_if_empty(): | CODE |
| LOW | src/python/pants/help/help_info_extracter.py | 924 | except Exception as e: | CODE |
| LOW | src/python/pants/goal/completion.py | 180 | except Exception: | CODE |
| LOW | src/python/pants/pantsd/pants_daemon_core.py | 83 | except Exception as e: | CODE |
| LOW | src/python/pants/pantsd/pants_daemon_core.py | 113 | except Exception as e: | CODE |
| MEDIUM | src/python/pants/pantsd/pants_daemon_core.py | 80 | def _handle_exceptions(self) -> Iterator[None]: | CODE |
| LOW | src/python/pants/pantsd/process_manager.py | 475 | except Exception: | CODE |
| LOW | src/python/pants/pantsd/process_manager.py | 483 | except Exception: | CODE |
| LOW | src/python/pants/pantsd/service/store_gc_service.py | 84 | except Exception as e: | CODE |
| LOW | src/python/pants/pantsd/service/scheduler_service.py | 153 | except Exception as e: | CODE |
| LOW | src/python/pants_release/git.py | 77 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/python/pants/init/plugin_resolver_test.py | 177 | CODE | |
| LOW | src/python/pants/core/goals/test_test.py | 251 | CODE | |
| LOW | src/python/pants/core/goals/generate_snapshots.py | 60 | CODE | |
| LOW | src/python/pants/core/environments/rules_test.py | 370 | CODE | |
| LOW | src/python/pants/jvm/jdk_rules.py | 362 | CODE | |
| LOW | src/python/pants/jvm/resolve/coordinate.py | 61 | CODE | |
| LOW | src/python/pants/jvm/jar_tool/jar_tool.py | 84 | CODE | |
| LOW | …thon/pants/backend/build_files/fmt/buildifier/rules.py | 49 | CODE | |
| LOW | src/python/pants/backend/tools/trivy/rules.py | 92 | CODE | |
| LOW | …backend/docker/goals/package_image_integration_test.py | 48 | CODE | |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 246 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/build_pkg.py | 77 | CODE | |
| LOW | src/python/pants/backend/go/util_rules/cgo.py | 423 | CODE | |
| LOW | src/python/pants/backend/python/lint/ruff/common.py | 85 | CODE | |
| LOW | …thon/pants/backend/python/util_rules/pex_test_utils.py | 109 | CODE | |
| LOW | …thon/pants/backend/python/util_rules/pex_test_utils.py | 147 | CODE | |
| LOW | …on/pants/backend/python/util_rules/pex_from_targets.py | 101 | CODE | |
| LOW | src/python/pants/backend/python/util_rules/pex_cli.py | 91 | CODE | |
| LOW | src/python/pants/backend/python/util_rules/pex.py | 223 | CODE | |
| LOW | src/python/pants/backend/python/util_rules/pex.py | 1330 | CODE | |
| LOW | src/python/pants/backend/python/util_rules/pex.py | 1418 | CODE | |
| LOW | …s/backend/python/goals/coverage_py_integration_test.py | 139 | CODE | |
| LOW | …dependency_inference/parse_python_dependencies_test.py | 44 | CODE | |
| LOW | …/pants/backend/openapi/util_rules/generator_process.py | 42 | CODE | |
| LOW | src/python/pants/backend/scala/lint/scalafix/rules.py | 261 | CODE | |
| LOW | src/python/pants/backend/scala/lint/scalafix/rules.py | 269 | CODE | |
| LOW | src/python/pants/backend/adhoc/code_quality_tool.py | 236 | CODE | |
| LOW | src/python/pants/backend/javascript/package_json.py | 168 | CODE | |
| LOW | …c/python/pants/backend/javascript/subsystems/nodejs.py | 291 | CODE | |
| LOW | src/python/pants/backend/helm/util_rules/tool.py | 353 | CODE | |
| LOW | src/python/pants/backend/sql/lint/sqlfluff/rules.py | 99 | CODE | |
| LOW | src/python/pants/option/option_types.py | 84 | CODE | |
| LOW | src/python/pants/option/option_types.py | 229 | CODE | |
| LOW | src/python/pants/option/option_types.py | 446 | CODE | |
| LOW | src/python/pants/option/option_types.py | 469 | CODE | |
| LOW | src/python/pants/option/option_types.py | 493 | CODE | |
| LOW | src/python/pants/option/option_types.py | 515 | CODE | |
| LOW | src/python/pants/option/option_types.py | 586 | CODE | |
| LOW | src/python/pants/option/option_types.py | 609 | CODE | |
| LOW | src/python/pants/option/option_types.py | 633 | CODE | |
| LOW | src/python/pants/option/option_types.py | 654 | CODE | |
| LOW | src/python/pants/option/option_types.py | 742 | CODE | |
| LOW | src/python/pants/bsp/spec/resources.py | 41 | CODE | |
| LOW | src/python/pants/engine/composite_process.py | 38 | CODE | |
| LOW | src/python/pants/engine/composite_process.py | 121 | CODE | |
| LOW | src/python/pants/engine/process.py | 126 | CODE | |
| LOW | src/python/pants/engine/process.py | 431 | CODE | |
| LOW | src/python/pants/engine/internals/selectors.py | 171 | CODE | |
| LOW | src/python/pants/testutil/pants_integration_test.py | 260 | CODE | |
| LOW | src/python/pants/testutil/rule_runner.py | 246 | CODE | |
| LOW | src/python/pants/help/help_info_extracter.py | 1161 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build-support/common.sh | 60 | # Check if the Python version is installed via Pyenv but not activated. | COMMENT |
| LOW | …ld-support/migration-support/migrate_to_toml_config.py | 91 | # Check if it's a one-line list value | COMMENT |
| LOW | …ld-support/migration-support/migrate_to_toml_config.py | 105 | # Check if it's a one-line dict value | COMMENT |
| LOW | src/python/pants/util/dirutil_test.py | 425 | # Check if parent dirs will be created for the link | COMMENT |
| LOW | src/python/pants/source/source_root.py | 241 | # Check if the requested path itself is a source root. | COMMENT |
| LOW | src/python/pants/backend/docker/goals/package_image.py | 726 | # Check if this build would push and handle according to push_on_package behavior | COMMENT |
| LOW | src/python/pants/backend/go/conftest.py | 85 | # Check if the test has the require_go_version_max marker. | COMMENT |
| LOW | src/python/pants/backend/go/util_rules/build_pkg.py | 778 | # Check if any assembly files contain gcc assembly, and not Go assembly. Raise an exception if any are | COMMENT |
| LOW | …thon/pants/backend/python/util_rules/python_sources.py | 67 | # Set this to True only if you know this cannot logically happen (e.g., if it did | COMMENT |
| LOW | …observability/opentelemetry/opentelemetry_processor.py | 182 | # Check if the length is correct for the given ID type. | COMMENT |
| LOW | src/python/pants/option/options.py | 342 | # Check if we're the new name of a deprecated scope, and clone values from that scope. | COMMENT |
| LOW | src/python/pants/engine/internals/graph.py | 1601 | # Check if it's a transitive exclude, rather than a direct exclude. | COMMENT |
| LOW | src/python/pants/base/exception_sink.py | 404 | # Print the output via standard logging. | COMMENT |
| LOW | src/python/pants/help/help_info_extracter.py | 213 | # Check if the field only allows for certain choices. | COMMENT |
| LOW | src/python/pants/goal/pants-completion.bash | 6 | # Check if we're completing a relative (.), absolute (/), or homedir (~) path. If so, fallback to readline (default) | COMMENT |
| LOW | src/python/pants/goal/pants-completion.zsh | 7 | # Check if we're completing a relative (.), absolute (/), or homedir (~) path. If so, fallback to readline (default) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2007 | # Step 1: Validate Process construction using assert_build_process | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2029 | # Step 2: Test build_docker_image with WARN behavior | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2127 | # Step 1: Validate Process construction using assert_build_process | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2428 | # Step 1: Get the build process | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2460 | # Step 2: Create the build process with the get_docker_image_build_process rule | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2477 | # Step 3: Test that build_docker_image handles the failure properly | STRING |
| LOW | src/python/pants/backend/python/target_types_rules.py | 207 | # we need to check if they used a file glob (`*` or `**`) that resolved to >1 file. | STRING |
| LOW | src/python/pants/backend/python/util_rules/faas.py | 194 | # 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.py | 610 | # Step 1: check and skip | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 617 | # Step 2: copy from the digest into the named cache | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 621 | # Step 3: attempt to move, squashing the error | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 624 | # Step 4: confirm and clean-up | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 630 | # Step 5: remove the temporary directory | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2007 | # Step 1: Validate Process construction using assert_build_process | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2029 | # Step 2: Test build_docker_image with WARN behavior | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2127 | # Step 1: Validate Process construction using assert_build_process | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2428 | # Step 1: Get the build process | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2460 | # Step 2: Create the build process with the get_docker_image_build_process rule | STRING |
| LOW | …ython/pants/backend/docker/goals/package_image_test.py | 2477 | # Step 3: Test that build_docker_image handles the failure properly | STRING |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 610 | # Step 1: check and skip | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 617 | # Step 2: copy from the digest into the named cache | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 621 | # Step 3: attempt to move, squashing the error | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 624 | # Step 4: confirm and clean-up | COMMENT |
| LOW⚡ | …kend/python/providers/python_build_standalone/rules.py | 630 | # Step 5: remove the temporary directory | COMMENT |
| LOW | src/rust/fs/src/testutil.rs | 8 | // NOTE: This method is not in the `src/rust/testutil` crate because that will cause a cyclic | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | src/python/pants/backend/python/target_types.py | 222 | # See `target_types_rules.py` for a dependency injection rule. | COMMENT |
| MEDIUM⚡ | src/python/pants/backend/python/target_types.py | 1793 | # See `target_types_rules.py` for a dependency injection rule. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/python/pants/util/memo.py | 67 | Memoizes the results of a function call. By default, exactly one result is memoized for each unique combination of | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build-support/cloudflare/redirect2githubpages.js | 99 | async function handleRequest(event) { | CODE |
| LOW | src/python/pants/init/plugin_resolver_test.py | 152 | def test_function(): | STRING |
| LOW | src/python/pants/testutil/rule_runner.py | 74 | def test_function(): | STRING |
| LOW | src/python/pants/testutil/rule_runner.py | 82 | def test_function(): | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/python/pants/backend/nfpm/util_rules/sandbox.py | 245 | # make sure to include anything where codegen doesn't apply | COMMENT |
| LOW | src/python/pants/backend/python/goals/pytest_runner.py | 364 | # Don't forget to keep "Customize Pytest command line options per target" section in | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …hon/pants/jvm/jar_tool/jar_tool_source/JarBuilder.java | 362 | // TODO: implement read(byte[], int, int) for faster multibyte reads | COMMENT |