a fast, scalable, multi-language and extensible build system
This report presents the forensic synthetic code analysis of bazelbuild/bazel, a Java project with 25,619 GitHub stars. SynthScan v2.0 examined 514,778 lines of code across 2244 source files, recording 1956 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 4.9 places this repository in the Likely human-written 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).
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.
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.
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.
The scanner identified 1956 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compile.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | combine_distfiles.py | 1 | # pylint: disable=g-bad-file-header | COMMENT |
| LOW | combine_distfiles_to_tar.sh | 1 | #!/bin/sh | COMMENT |
| LOW | tools/upload_bazel_mirror.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/aquery_differ/aquery_differ.py | 1 | # Copyright 2020 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/aquery_differ/aquery_differ_test.py | 1 | # pylint: disable=g-direct-third-party-import | COMMENT |
| LOW | tools/aquery_differ/resolvers/path_fragment_resolver.py | 1 | # Copyright 2020 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/aquery_differ/resolvers/dep_set_resolver.py | 1 | # Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/genrule/genrule-setup.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/launcher/empty.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/test/test-setup.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/test/test-setup.sh | 241 | start=$(date +%s) | COMMENT |
| LOW | tools/test/collect_coverage.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/test/collect_coverage.sh | 101 | # TODO: GCOV_PREFIX_STRIP=3 is incorrect on MacOS in the default setup | COMMENT |
| LOW | tools/test/collect_coverage.sh | 121 | # too large (the combined merged jars for several big tests in a run | COMMENT |
| LOW | tools/test/collect_coverage.sh | 221 | # --coverage_dir The absolute path of the directory where the | COMMENT |
| LOW | tools/test/dummy.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/test/generate-xml.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/test/generate-xml.sh | 21 | DURATION_IN_SECONDS="$3" | COMMENT |
| LOW | tools/test/generate-xml.sh | 41 | # We can't use sed in UTF-8 mode, because it would fail on the first | COMMENT |
| LOW | tools/test/generate-xml.sh | 61 | # 4. Replace the string ']]>' with ']]>]]<![CDATA[>' to prevent escaping the | COMMENT |
| LOW | tools/test/collect_cc_coverage.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/test/collect_cc_coverage.sh | 21 | # | COMMENT |
| LOW | tools/test/collect_cc_coverage.sh | 121 | # If the gcda file was not found we skip generating coverage from the gcno | COMMENT |
| LOW | tools/test/collect_cc_coverage.sh | 141 | # Invoke gcov to generate a code coverage report with the flags: | COMMENT |
| LOW | …e/devtools/coverageoutputgenerator/BranchCoverage.java | 1 | // Copyright 2025 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …/devtools/coverageoutputgenerator/LcovMergerFlags.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …om/google/devtools/coverageoutputgenerator/Parser.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …vtools/coverageoutputgenerator/SourceFileCoverage.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …gle/devtools/coverageoutputgenerator/LineCoverage.java | 1 | // Copyright 2025 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …/google/devtools/coverageoutputgenerator/Coverage.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …oogle/devtools/coverageoutputgenerator/LcovParser.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …evtools/coverageoutputgenerator/BranchCoverageKey.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …vtools/coverageoutputgenerator/BranchCoverageItem.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …/com/google/devtools/coverageoutputgenerator/Main.java | 1 | // Copyright 2016 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …oogle/devtools/coverageoutputgenerator/GcovParser.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …e/devtools/coverageoutputgenerator/GcovJsonParser.java | 1 | // Copyright 2020 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …e/devtools/coverageoutputgenerator/build_and_upload.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | …ogle/devtools/coverageoutputgenerator/LcovPrinter.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …google/devtools/coverageoutputgenerator/Constants.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …vtools/coverageoutputgenerator/BranchCoverageTest.java | 1 | // Copyright 2025 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …gle/devtools/coverageoutputgenerator/CoverageTest.java | 1 | // Copyright 2016 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …e/devtools/coverageoutputgenerator/GcovParserTest.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …/devtools/coverageoutputgenerator/LcovPrinterTest.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …devtools/coverageoutputgenerator/LineCoverageTest.java | 1 | // Copyright 2025 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …tools/coverageoutputgenerator/LcovMergerTestUtils.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …e/devtools/coverageoutputgenerator/LcovParserTest.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …vtools/coverageoutputgenerator/GcovJsonParserTest.java | 1 | // Copyright 2025 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …tools/coverageoutputgenerator/LcovMergerFlagsTest.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …/google/devtools/coverageoutputgenerator/MainTest.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | …ls/coverageoutputgenerator/SourceFileCoverageTest.java | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/test/windows/tw.h | 1 | // Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/osx/xcode_locator_stub.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/osx/xcode_locator.m | 1 | // Copyright 2015 Google Inc. All rights reserved. | COMMENT |
| LOW | tools/python/pywrapper_test.py | 1 | # pylint: disable=g-bad-file-header | COMMENT |
| LOW | tools/python/pywrapper_template.txt | 21 | COMMENT | |
| LOW | tools/python/runfiles/runfiles.py | 1 | # Copyright 2018 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/jdk/proguard_allowlister_test.py | 1 | # Copyright 2015 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/jdk/proguard_allowlister.py | 1 | # Copyright 2015 The Bazel Authors. All rights reserved. | COMMENT |
| LOW | tools/compliance/packages_used_test.py | 1 | # Copyright 2023 The Bazel Authors. All rights reserved. | COMMENT |
| 1180 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | compile.sh | 42 | # Create an initial binary so we can host ourself | COMMENT |
| MEDIUM | tools/upload_bazel_mirror.sh | 48 | # Create a temp directory to hold the versioned tarball, | COMMENT |
| MEDIUM | tools/test/test-setup.sh | 98 | # Create the test temp directory, which may not exist on the remote host when | COMMENT |
| MEDIUM | tools/test/collect_coverage.sh | 135 | # Create a paramsfile for invoking SingleJar. | COMMENT |
| MEDIUM | tools/build_defs/hash/sha256_test.sh | 37 | # The following code produces a 120MB file (30*2^22 bytes) | COMMENT |
| MEDIUM | third_party/py/mock/docs/conf.py | 6 | # This file is execfile()d with the current directory set to its containing dir. | COMMENT |
| MEDIUM | third_party/py/concurrent/futures/_base.py | 442 | # The following methods should only be used by Executors and in tests. | COMMENT |
| MEDIUM | third_party/py/abseil/absl/flags/argparse_flags.py | 15 | """This module provides argparse integration with absl.flags. | STRING |
| MEDIUM | third_party/py/abseil/absl/flags/_helpers.py | 39 | # Define the allowed error rate in an input string to get suggestions. | COMMENT |
| MEDIUM | third_party/py/abseil/absl/flags/_helpers.py | 57 | # This module is explicitly added to this set so that we never consider it to | COMMENT |
| MEDIUM | third_party/py/abseil/absl/testing/xml_reporter.py | 54 | # This function is much more reliable. | COMMENT |
| MEDIUM | third_party/py/abseil/absl/testing/parameterized.py | 334 | # Create a new dict to avoid modifying the supplied testcase_params. | COMMENT |
| MEDIUM | third_party/py/abseil/absl/testing/parameterized.py | 677 | # This function is kept CamelCase because it's used as a class's base class. | COMMENT |
| MEDIUM | third_party/py/abseil/absl/logging/__init__.py | 837 | # Create a symlink to the log file with a canonical name. | COMMENT |
| MEDIUM | third_party/py/dataclasses/dataclasses/__init__.py | 286 | # This function is used instead of exposing Field creation directly, | COMMENT |
| MEDIUM | third_party/py/dataclasses/dataclasses/__init__.py | 510 | # Create a comparison function. If the fields in the object are | COMMENT |
| MEDIUM | third_party/py/dataclasses/dataclasses/__init__.py | 820 | # Create a class doc-string. | COMMENT |
| MEDIUM | third_party/py/dataclasses/dataclasses/__init__.py | 1051 | # Create the new object, which calls __init__() and | COMMENT |
| MEDIUM | third_party/ijar/test/ijar_test.sh | 325 | # Create a huge (~2.2Gb) input jar to test "large file" correctness | COMMENT |
| MEDIUM | third_party/ijar/test/ijar_test.sh | 334 | # Create an output jar with upper bound on size > 2GB | COMMENT |
| MEDIUM | scripts/bootstrap/build_windows_jni.sh | 38 | # Create a temp directory. It will used for the batch file we generate soon and | COMMENT |
| MEDIUM | scripts/bootstrap/compile.sh | 199 | # Create the deploy JAR | COMMENT |
| MEDIUM | scripts/bootstrap/compile.sh | 303 | # Create the bazel_tools repository. | COMMENT |
| MEDIUM | scripts/bootstrap/compile.sh | 361 | # Create the rest of @bazel_tools//tools/... | COMMENT |
| MEDIUM | scripts/bootstrap/buildenv.sh | 319 | # Create a link for a directory on the filesystem | COMMENT |
| MEDIUM | scripts/ci/build.sh | 348 | # Create a debian package with version in package name and add it to the repo | COMMENT |
| MEDIUM | scripts/release/relnotes.sh | 124 | # Create the release notes since commit $1 ($2...${[#]} are the cherry-picks, | COMMENT |
| MEDIUM | scripts/release/relnotes.sh | 196 | # Create the revision information given a list of commits. The first | COMMENT |
| MEDIUM | scripts/release/release.sh | 86 | # Create the release commit by changing the CHANGELOG file | COMMENT |
| MEDIUM | scripts/release/release.sh | 132 | # Create a new release named "$1" with "$2" as the baseline commit. | COMMENT |
| MEDIUM | scripts/packages/dmg/create_bazel_dmg.sh | 93 | # Create the dmg file | COMMENT |
| MEDIUM | src/create_java_tools_release.sh | 70 | # Create a tmp directory to download the artifacts from GCS and compute their | COMMENT |
| MEDIUM | src/upload_java_tools.sh | 79 | # Create a temp directory and a writable temp zip file to add a README.md file to | COMMENT |
| MEDIUM | src/upload_java_tools.sh | 92 | # Create the README.md file and add the re-build java tools instructions. | COMMENT |
| MEDIUM | src/tools/singlejar/zip64_huge_entry_test.sh | 67 | # Create a single 4GB file | COMMENT |
| MEDIUM | src/test/py/bazel/launcher_test.py | 771 | # Create a directory with a path longer than 260 | COMMENT |
| MEDIUM | src/test/py/bazel/runfiles_test.py | 201 | # Create a copy of the runfiles manifest, replacing | COMMENT |
| MEDIUM | src/test/py/bazel/bazel_external_repository_test.py | 519 | # Create a repository rule for bar that symlinks to foo's file. | COMMENT |
| MEDIUM | …est/py/bazel/bzlmod/remote_repo_contents_cache_test.py | 1575 | # Create a repo with two BUILD files (one in a subpackage), build a target | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 102 | # Create a project with deps on 'sss' | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 148 | # Create a project with deps on 'sss' | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 183 | # Create a project with deps on 'sss' | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 216 | # Create a project with deps on the BCR's 'platforms' module | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 251 | # Create a project with deps on the BCR's 'platforms' module | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 291 | # Create a project with an outdated direct dep on aaa | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/repo_contents_cache_test.py | 649 | # Create the external file outside the workspace so it's not treated as | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/mod_command_test.py | 1078 | # Create a lockfile and let the extension evaluations emit fixup warnings. | COMMENT |
| MEDIUM | src/test/py/bazel/bzlmod/mod_command_test.py | 1420 | # Create a lockfile and let the extension evaluations emit fixup warnings. | COMMENT |
| MEDIUM | src/test/shell/unittest.bash | 61 | # This file provides utilities for assertions over the output of a | COMMENT |
| MEDIUM | src/test/shell/testenv.sh | 227 | # Create a shorter bazel root on Windows to avoid long path issue. | COMMENT |
| MEDIUM | src/test/shell/integration/thread_dump_test.sh | 25 | # Create a new workspace to ensure the output_base is clean | COMMENT |
| MEDIUM | src/test/shell/integration/exec_group_test.sh | 673 | # Define the toolchains. | COMMENT |
| MEDIUM | src/test/shell/integration/exec_group_test.sh | 703 | # Define the platforms. | COMMENT |
| MEDIUM | src/test/shell/integration/exec_group_test.sh | 752 | # Define a simple rule to put the aspect on. | COMMENT |
| MEDIUM | src/test/shell/integration/exec_group_test.sh | 794 | # Define the toolchains. | COMMENT |
| MEDIUM | src/test/shell/integration/exec_group_test.sh | 837 | # Define a simple rule to put the aspect on. | COMMENT |
| MEDIUM | src/test/shell/integration/platform_based_flags_test.sh | 77 | # Create a transition on platform. | COMMENT |
| MEDIUM | …test/shell/integration/starlark_configurations_test.sh | 900 | # Define the flags that are used. | COMMENT |
| MEDIUM | src/test/shell/integration/toolchain_test.sh | 176 | # Define the toolchain. | COMMENT |
| MEDIUM | src/test/shell/integration/toolchain_test.sh | 255 | # Define the toolchain. | COMMENT |
| 57 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/aquery_differ/aquery_differ.py | 117 | def _map_action_index_to_output_files(actions, artifacts): | CODE |
| LOW | tools/aquery_differ/aquery_differ.py | 137 | def _map_output_files_to_input_artifacts(action_graph_container, | CODE |
| LOW | tools/aquery_differ/aquery_differ.py | 172 | def _map_output_files_to_command_line(actions, action_index_to_output_files): | CODE |
| LOW | tools/aquery_differ/aquery_differ_test.py | 54 | def make_aquery_output_with_dep_set(action_objs, artifact_objs, | CODE |
| LOW | tools/aquery_differ/aquery_differ_test.py | 120 | def test_no_difference_different_output_files_order(self): | CODE |
| LOW | tools/aquery_differ/aquery_differ_test.py | 189 | def test_first_has_extra_output_files(self): | CODE |
| LOW | tools/aquery_differ/aquery_differ_test.py | 269 | def test_different_command_lines(self): | CODE |
| LOW⚡ | tools/python/pywrapper_test.py | 152 | def test_no_interpreter_found(self): | STRING |
| LOW⚡ | tools/python/pywrapper_test.py | 158 | def test_error_getting_version(self): | STRING |
| LOW⚡ | tools/python/pywrapper_test.py | 166 | def test_interpreter_not_executable(self): | STRING |
| LOW | tools/compliance/packages_used_test.py | 46 | def test_found_remote_packages(self): | CODE |
| LOW | tools/compliance/write_sbom.py | 144 | def maven_install_to_packages(maven_install: dict) -> dict: | CODE |
| LOW⚡ | tools/android/instrumentation_test_check_test.py | 51 | def test_extract_instrumentation_target_package(self): | STRING |
| LOW⚡ | tools/android/instrumentation_test_check_test.py | 56 | def test_extract_target_package(self): | STRING |
| LOW⚡ | tools/android/instrumentation_test_check_test.py | 60 | def test_target_package_check(self): | STRING |
| LOW⚡ | tools/android/instrumentation_test_check_test.py | 66 | def test_target_package_check_failure(self): | STRING |
| LOW | tools/ctexplain/bazel_api.py | 130 | def _parse_cquery_result_line(line: str) -> ConfiguredTarget: | CODE |
| LOW | tools/ctexplain/ctexplain.py | 101 | def _render_analysis_help_text() -> str: | CODE |
| LOW | third_party/py/mock/__init__.py | 808 | def _format_mock_call_signature(self, args, kwargs): | CODE |
| LOW | third_party/py/mock/__init__.py | 813 | def _format_mock_failure_message(self, args, kwargs): | CODE |
| LOW | third_party/py/mock/tests/testcallable.py | 89 | def test_patch_spec_set_instance(self): | CODE |
| LOW | third_party/py/mock/tests/testcallable.py | 98 | def test_patch_spec_callable_class(self): | CODE |
| LOW | third_party/py/mock/tests/testcallable.py | 151 | def test_create_autospec_instance(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 22 | def test_deleting_magic_methods(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 46 | def test_magic_method_wrapping(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 60 | def test_magic_methods_isolated_between_mocks(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 338 | def test_non_default_magic_methods(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 348 | def test_magic_methods_and_spec(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 373 | def test_magic_methods_and_spec_set(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 398 | def test_setting_unsupported_magic_method(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 408 | def test_attributes_and_return_value(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 421 | def test_magic_methods_are_magic_mocks(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 429 | def test_magic_method_reset_mock(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 468 | def test_descriptor_from_class(self): | CODE |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 474 | def test_iterable_as_iter_return_value(self): | CODE |
| LOW⚡ | third_party/py/mock/tests/testmock.py | 327 | def test_attribute_access_returns_mocks(self): | CODE |
| LOW⚡ | third_party/py/mock/tests/testmock.py | 343 | def test_attributes_have_name_and_parent_set(self): | CODE |
| LOW⚡ | third_party/py/mock/tests/testmock.py | 353 | def test_method_calls_recorded(self): | CODE |
| LOW⚡ | third_party/py/mock/tests/testmock.py | 471 | def test_exceptional_side_effect(self): | CODE |
| LOW⚡ | third_party/py/mock/tests/testmock.py | 479 | def test_baseexceptional_side_effect(self): | CODE |
| LOW⚡ | third_party/py/mock/tests/testmock.py | 487 | def test_assert_called_with_message(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 93 | def test_return_value_in_constructor(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 175 | def test_java_exception_side_effect(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 230 | def test_reset_mock_recursion(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 272 | def test_call_args_comparison(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 303 | def test_assert_called_once_with(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 368 | def test_method_calls_compare_easily(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 392 | def test_only_allowed_methods_exist(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 445 | def test_wraps_call_with_nondefault_return_value(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 531 | def test_setting_attribute_with_spec_set(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 557 | def test_spec_old_style_classes(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 571 | def test_spec_set_old_style_classes(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 592 | def test_subclass_with_properties(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 714 | def test_assert_called_with_failure_message(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 916 | def test_side_effect_iterator(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 940 | def test_side_effect_setting_iterator(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 962 | def test_side_effect_iterator_exceptions(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 972 | def test_assert_has_calls_any_order(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 1082 | def test_mock_calls_create_autospec(self): | CODE |
| LOW | third_party/py/mock/tests/testmock.py | 1154 | def test_mock_add_spec_magic_methods(self): | CODE |
| 229 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/build_defs/proguard/wrapper.py | 31 | Lookup the runfiles-adjusted path to a binary. Args: r: The Runfiles object to use for the lookup. path: The | STRING |
| HIGH | tools/ctexplain/bazel_api.py | 95 | Calls "bazel config" with the given config hash. Args: config_hash: A config hash as reported by "bazel cquer | STRING |
| HIGH | tools/ctexplain/bazel_api.py | 168 | Strips a fully qualified Java class name to the file scope. Examples: - "A.B.OuterClass" -> "OuterClass" - "A | STRING |
| HIGH | tools/ctexplain/lib.py | 23 | Gets a build invocation's configured targets. Args: bazel: API for invoking Bazel. labels: The targets to bui | STRING |
| HIGH | third_party/py/concurrent/futures/_base.py | 180 | An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (pos | STRING |
| HIGH | third_party/py/concurrent/futures/_base.py | 379 | Return the result of the call that the future represents. Args: timeout: The number of seconds to w | STRING |
| HIGH | third_party/py/concurrent/futures/_base.py | 410 | Return the exception raised by the call that the future represents. Args: timeout: The number of se | STRING |
| HIGH | third_party/py/concurrent/futures/_base.py | 524 | Returns a iterator equivalent to map(fn, iter). Args: fn: A callable that will take take as many ar | STRING |
| HIGH | third_party/py/abseil/absl/app.py | 189 | Registers help flags, parses arguments and shows usage if appropriate. This also calls sys.exit(0) if flag --only_che | STRING |
| HIGH | third_party/py/abseil/absl/flags/_validators.py | 84 | A function decorator for defining a flag validator. Registers the decorated function as a validator for flag_name, e. | STRING |
| HIGH | third_party/py/abseil/absl/flags/_validators.py | 160 | A function decorator for defining a multi-flag validator. Registers the decorated function as a validator for flag_na | STRING |
| HIGH | third_party/py/abseil/absl/flags/_flagvalues.py | 356 | Returns value if setting flag |name| to |value| returned True. Args: name: str, name of the flag to set. | STRING |
| HIGH | third_party/py/abseil/absl/flags/_flagvalues.py | 614 | Parses flags from argv; stores parsed flags into this FlagValues object. All unparsed arguments are returned. | STRING |
| HIGH | third_party/py/abseil/absl/flags/_flagvalues.py | 682 | Helper function to do the main argument parsing. This function goes through args and does the bulk of the flag pars | STRING |
| HIGH | third_party/py/abseil/absl/flags/_flagvalues.py | 1019 | Returns filename from a flagfile_str of form -[-]flagfile=filename. The cases of --flagfile foo and -flagfile foo s | STRING |
| HIGH | third_party/py/abseil/absl/flags/_flagvalues.py | 1109 | Processes command line args, but also allow args to be read from file. Args: argv: [str], a list of strings, | STRING |
| HIGH | third_party/py/abseil/absl/flags/_defines.py | 874 | Defines an alias flag for an existing one. Args: name: str, the flag name. original_name: str, the original f | STRING |
| HIGH | third_party/py/abseil/absl/flags/_helpers.py | 230 | Wraps a given text to a maximum line length and returns it. It turns lines that only contain whitespace into empty li | STRING |
| HIGH | third_party/py/abseil/absl/flags/_argument_parser.py | 112 | Parses the string argument and returns the native value. By default it returns its argument unmodified. Args: | STRING |
| HIGH | third_party/py/abseil/absl/flags/_argument_parser.py | 338 | Determines validity of argument and returns the correct element of enum. Args: argument: str, the supplied fl | STRING |
| HIGH | third_party/py/abseil/absl/flags/_argument_parser.py | 418 | Determines validity of argument and returns the correct element of enum. Args: argument: str or Enum class me | STRING |
| HIGH | third_party/py/abseil/absl/testing/absltest.py | 487 | Return a context manager for opening the file in text mode. Args: mode: The mode to open the file in. The "t" | STRING |
| HIGH | third_party/py/abseil/absl/testing/absltest.py | 511 | Return a context manager for opening the file in binary mode. Args: mode: The mode to open the file in. The " | STRING |
| HIGH | third_party/py/abseil/absl/testing/absltest.py | 1360 | Asserts that exception is thrown and predicate(exception) is true. Args: expected_exception: Exception class | STRING |
| HIGH | third_party/py/abseil/absl/testing/absltest.py | 1405 | Asserts that the message in a raised exception equals the given string. Unlike assertRaisesRegex, this method takes | STRING |
| HIGH | third_party/py/abseil/absl/testing/parameterized.py | 405 | Implementation of the parameterization decorators. Args: naming_type: The naming type. testcases: Testcase pa | STRING |
| HIGH | third_party/py/abseil/absl/testing/parameterized.py | 446 | A decorator for creating parameterized tests. See the module docstring for a usage example. Args: *testcases: | STRING |
| HIGH | third_party/py/abseil/absl/testing/parameterized.py | 465 | A decorator for creating parameterized tests. See the module docstring for a usage example. For every parameter tuple | STRING |
| HIGH | third_party/py/abseil/absl/testing/parameterized.py | 487 | A decorator for running tests over cartesian product of parameters values. See the module docstring for a usage examp | STRING |
| HIGH | third_party/py/abseil/absl/logging/converter.py | 116 | Converts an absl log level to a cpp log level. Args: level: int, an absl.logging level. Raises: TypeError: | STRING |
| HIGH | third_party/py/abseil/absl/logging/converter.py | 137 | Converts an integer level from the absl value to the standard value. Args: level: int, an absl.logging level. | STRING |
| HIGH | third_party/py/abseil/absl/logging/converter.py | 172 | Converts an integer level from the standard value to the absl value. Args: level: int, a Python standard logging | STRING |
| HIGH | third_party/py/abseil/absl/logging/converter.py | 203 | Converts an integer level from the standard value to the cpp value. Args: level: int, a Python standard logging l | STRING |
| HIGH | third_party/py/abseil/absl/logging/__init__.py | 648 | Computes the directory and filename prefix for log file. Args: program_name: str|None, the filename part of the p | STRING |
| HIGH | third_party/py/abseil/absl/logging/__init__.py | 761 | Skips reporting the prefix of a given function or name by :class:`~absl.logging.ABSLLogger`. This is a convenience wr | STRING |
| HIGH | src/test/py/bazel/test_base.py | 133 | Extracts the version of a module from the default MODULE.bazel.lock file. Args: module: string; the name of t | STRING |
| HIGH | src/test/py/bazel/test_base.py | 248 | Returns environment variable `name`. Args: name: string; name of the environment variable default: anyt | STRING |
| HIGH | src/test/py/bazel/test_base.py | 302 | Returns the absolute path of `path` relative to self._test_cwd. Args: path: string; a path, relative to self. | STRING |
| HIGH | src/test/py/bazel/test_base.py | 323 | Creates directories under the test's scratch directory. Args: path: string; a path, relative to the test's sc | STRING |
| HIGH | src/test/py/bazel/test_base.py | 345 | Creates a file under the test's scratch directory. Args: path: string; a path, relative to the test's scratch | STRING |
| HIGH | src/test/py/bazel/test_base.py | 378 | Copy a file to a path under the test's scratch directory. Args: src_path: string; a path, the file to copy | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 56 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40 | CODE |
| CRITICAL⚡ | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 102 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40:42 | CODE |
| CRITICAL⚡ | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 109 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40 | CODE |
| CRITICAL⚡ | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 119 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40 | CODE |
| CRITICAL⚡ | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 127 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40 | CODE |
| CRITICAL⚡ | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 137 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40 | CODE |
| CRITICAL⚡ | …/proguard/proguard6.2.2/docs/manual/retrace/mapping.md | 146 | 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40 | CODE |
| CRITICAL | src/test/shell/bazel/remote/remote_execution_test.sh | 1003 | myrunfiles = ctx.runfiles(files=ctx.attr.dir.default_runfiles.files.to_list()) | STRING |
| CRITICAL | …t/runner/testdata/system_exit_detecting_test_stack.txt | 5 | at com.google.testing.junit.runner.ProgramThatCallsSystemExit.main(ProgramThatCallsSystemExit.java:XXX) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/test/collect_coverage.sh | 93 | # -------------------------------------- | COMMENT |
| MEDIUM | third_party/py/mock/docs/conf.py | 24 | # --------------------- | COMMENT |
| MEDIUM | third_party/py/mock/docs/conf.py | 111 | # ----------------------- | STRING |
| MEDIUM | third_party/py/mock/docs/conf.py | 179 | # ------------------------ | STRING |
| MEDIUM⚡ | site/en/external/migration_tool.md | 156 | # ------------------- | COMMENT |
| MEDIUM⚡ | site/en/external/migration_tool.md | 165 | # ------------------- | COMMENT |
| MEDIUM⚡ | site/en/external/migration_tool.md | 174 | # ------------------- | COMMENT |
| MEDIUM⚡ | site/en/external/migration_tool.md | 181 | # ------------------- | COMMENT |
| MEDIUM | site/en/external/migration_tool.md | 217 | # ------------------- | COMMENT |
| MEDIUM | src/test/shell/unittest.bash | 23 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/shell/unittest.bash | 43 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/shell/integration/jvm_flags_escaping_test.sh | 47 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/shell/integration/jvm_flags_escaping_test.sh | 49 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/shell/integration/jvm_flags_escaping_test.sh | 236 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/shell/integration/jvm_flags_escaping_test.sh | 238 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/shell/integration/starlark_dependency_pruning_test.sh | 175 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/shell/integration/starlark_dependency_pruning_test.sh | 177 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/shell/integration/starlark_dependency_pruning_test.sh | 200 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/shell/integration/starlark_dependency_pruning_test.sh | 202 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | …test/shell/integration/config_stripped_outputs_test.sh | 22 | # ------------------- | COMMENT |
| MEDIUM | src/test/shell/bazel/run_test.sh | 43 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/shell/bazel/run_test.sh | 45 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/shell/bazel/py_args_escaping_test.sh | 43 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/shell/bazel/py_args_escaping_test.sh | 45 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/shell/bazel/py_args_escaping_test.sh | 201 | # ---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/shell/bazel/py_args_escaping_test.sh | 203 | # ---------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/python/pywrapper_test.py | 16 | CODE | |
| LOW | tools/build_defs/hash/sha256.py | 18 | CODE | |
| LOW | tools/build_defs/hash/sha256.py | 19 | CODE | |
| LOW | tools/build_defs/hash/sha256.py | 20 | CODE | |
| LOW | third_party/py/frozendict/frozendict/__init__.py | 2 | CODE | |
| LOW | third_party/py/frozendict/frozendict/__init__.py | 3 | CODE | |
| LOW | third_party/py/frozendict/frozendict/__init__.py | 4 | CODE | |
| LOW | third_party/py/mock/tests/support.py | 6 | CODE | |
| LOW | third_party/py/mock/tests/support.py | 8 | CODE | |
| LOW | third_party/py/mock/tests/testmagicmethods.py | 14 | CODE | |
| LOW | third_party/py/mock/tests/support_with.py | 1 | CODE | |
| LOW | third_party/py/mock/tests/support_with.py | 9 | CODE | |
| LOW | third_party/py/mock/tests/testwith.py | 4 | CODE | |
| LOW | third_party/py/mock/tests/_testwith.py | 5 | CODE | |
| LOW | third_party/py/concurrent/futures/_base.py | 4 | CODE | |
| LOW | third_party/py/concurrent/futures/_base.py | 5 | CODE | |
| LOW | third_party/py/concurrent/futures/thread.py | 6 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 8 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 17 | CODE | |
| LOW | third_party/py/concurrent/futures/__init__.py | 18 | CODE | |
| LOW | third_party/py/concurrent/futures/process.py | 46 | CODE | |
| LOW | third_party/py/abseil/absl/app.py | 30 | CODE | |
| LOW | third_party/py/abseil/absl/flags/__init__.py | 28 | CODE | |
| LOW | third_party/py/abseil/absl/flags/__init__.py | 29 | CODE | |
| LOW | third_party/py/abseil/absl/flags/__init__.py | 30 | CODE | |
| LOW | third_party/py/abseil/absl/flags/__init__.py | 32 | CODE | |
| LOW | third_party/py/abseil/absl/flags/__init__.py | 33 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_defines.py | 32 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_defines.py | 32 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_defines.py | 32 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_defines.py | 37 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 26 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 43 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 67 | CODE | |
| LOW | third_party/py/abseil/absl/logging/__init__.py | 93 | CODE | |
| LOW | third_party/py/abseil/absl/logging/__init__.py | 100 | CODE | |
| LOW | scripts/generate_fish_completion.py | 16 | CODE | |
| LOW | scripts/generate_fish_completion.py | 17 | CODE | |
| LOW | scripts/generate_fish_completion.py | 18 | CODE | |
| LOW | scripts/docs/rewriter_test.py | 15 | CODE | |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | combine_distfiles.py | 28 | CODE | |
| LOW | tools/aquery_differ/aquery_differ.py | 263 | CODE | |
| LOW | tools/build_defs/pkg/archive_test.py | 27 | CODE | |
| LOW | tools/build_defs/pkg/build_tar.py | 56 | CODE | |
| LOW | third_party/py/mock/__init__.py | 754 | CODE | |
| LOW | third_party/py/mock/__init__.py | 1176 | CODE | |
| LOW | third_party/py/mock/__init__.py | 1247 | CODE | |
| LOW | third_party/py/mock/__init__.py | 1988 | CODE | |
| LOW | third_party/py/mock/__init__.py | 2028 | CODE | |
| LOW | third_party/py/mock/__init__.py | 1182 | CODE | |
| LOW | third_party/py/mock/tests/testmock.py | 1016 | CODE | |
| LOW | third_party/py/mock/tests/testmock.py | 1101 | CODE | |
| LOW | third_party/py/mock/tests/support_with.py | 13 | CODE | |
| LOW | third_party/py/concurrent/futures/_base.py | 158 | CODE | |
| LOW | third_party/py/concurrent/futures/_base.py | 179 | CODE | |
| LOW | third_party/py/concurrent/futures/_base.py | 237 | CODE | |
| LOW | third_party/py/concurrent/futures/thread.py | 79 | CODE | |
| LOW | third_party/py/concurrent/futures/process.py | 192 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_flagvalues.py | 516 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_flagvalues.py | 681 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_flagvalues.py | 1003 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_flagvalues.py | 1041 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_flagvalues.py | 1108 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_helpers.py | 201 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_helpers.py | 286 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_helpers.py | 205 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_argument_parser.py | 206 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_argument_parser.py | 247 | CODE | |
| LOW | third_party/py/abseil/absl/flags/_argument_parser.py | 268 | CODE | |
| LOW | third_party/py/abseil/absl/testing/_bazelize_command.py | 24 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 1823 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 1896 | CODE | |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 2431 | CODE | |
| LOW | third_party/py/abseil/absl/testing/parameterized.py | 310 | CODE | |
| LOW | third_party/py/abseil/absl/testing/parameterized.py | 314 | CODE | |
| LOW | third_party/py/abseil/absl/logging/converter.py | 171 | CODE | |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 355 | CODE | |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 427 | CODE | |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 965 | CODE | |
| LOW | scripts/docs/create_release_docs.py | 133 | CODE | |
| LOW | scripts/packages/debian/generate_changelog.py | 22 | CODE | |
| LOW | src/create_embedded_tools.py | 124 | CODE | |
| LOW | src/create_embedded_tools_lib.py | 34 | CODE | |
| LOW | src/test/py/bazel/first_time_use_test.py | 31 | CODE | |
| LOW | src/test/py/bazel/test_wrapper_test.py | 265 | CODE | |
| LOW | src/test/py/bazel/test_wrapper_test.py | 306 | CODE | |
| LOW | src/test/py/bazel/test_wrapper_test.py | 354 | CODE | |
| LOW | src/test/py/bazel/test_wrapper_test.py | 606 | CODE | |
| LOW | src/test/py/bazel/test_base.py | 32 | CODE | |
| LOW | src/test/py/bazel/bzlmod/repo_contents_cache_test.py | 44 | CODE | |
| LOW | src/test/py/bazel/bzlmod/mod_command_test.py | 747 | CODE | |
| LOW | src/test/shell/bazel/testing_server.py | 134 | CODE | |
| LOW | src/test/shell/bazel/remote/uds_proxy.py | 41 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | site/en/install/compile-source.md | 52 | ### Step 1: Get the latest Bazel release {:#build-bazel-install-bazel} | COMMENT |
| LOW | site/en/install/compile-source.md | 81 | ### Step 2: Download Bazel's sources from GitHub {:#build-bazel-git} | COMMENT |
| LOW | site/en/install/compile-source.md | 95 | ### Step 3: Install prerequisites {:#build-bazel-prerequisites} | COMMENT |
| LOW | site/en/install/compile-source.md | 159 | ### Step 5: Install the built binary {:#build-bazel-install} | COMMENT |
| LOW | site/en/install/compile-source.md | 173 | ### Step 1: Download Bazel's sources (distribution archive) {:#download-distfile} | COMMENT |
| LOW | site/en/install/ubuntu.md | 40 | ### Step 1: Add Bazel distribution URI as a package source {:#add-dis-uri} | COMMENT |
| LOW | site/en/install/ubuntu.md | 58 | ### Step 2: Install and update Bazel {:#install-bazel} | COMMENT |
| LOW | site/en/install/ubuntu.md | 91 | ### Step 3: Install a JDK (optional) {:#install-jdk} | COMMENT |
| LOW | site/en/install/ubuntu.md | 113 | ### Step 1: Install required packages {:#install-packages} | COMMENT |
| LOW | site/en/install/ubuntu.md | 127 | ### Step 2: Run the installer {:#run-installer} | COMMENT |
| LOW | site/en/install/ubuntu.md | 144 | ### Step 3: Set up your environment {:#set-environment} | COMMENT |
| LOW | site/en/install/os-x.md | 24 | ### Step 1: Install Homebrew on macOS | COMMENT |
| LOW | site/en/install/os-x.md | 32 | ### Step 2: Install Bazel via Homebrew | COMMENT |
| LOW | site/en/install/os-x.md | 62 | ### Step 1: Install Xcode command line tools | COMMENT |
| LOW | site/en/install/os-x.md | 85 | ### Step 2: Download the Bazel installer | COMMENT |
| LOW | site/en/install/os-x.md | 104 | ### Step 3: Run the installer | COMMENT |
| LOW | site/en/install/os-x.md | 122 | ### Step 4: Set up your environment | COMMENT |
| LOW | site/en/migrate/xcode.md | 75 | ### Step 1: Create the `MODULE.bazel` file {:#create-workspace} | COMMENT |
| LOW | site/en/migrate/xcode.md | 98 | ### Step 3: Create a `BUILD` file {:#create-build-file} | COMMENT |
| LOW | site/en/migrate/xcode.md | 238 | ### Step 5: Run the build {:#run-build} | COMMENT |
| LOW | site/en/migrate/xcode.md | 250 | ### Step 6: Generate the Xcode project with rules_xcodeproj {:#generate-the-xcode-project-with-rules_xcodeproj} | COMMENT |
| LOW | site/en/remote/sandbox.md | 103 | ### Step 1: Run the build {:#run-build} | COMMENT |
| LOW | site/en/remote/sandbox.md | 127 | ### Step 2: Resolve detected issues {:#resolve-common-issues} | COMMENT |
| LOW | site/en/remote/sandbox.md | 169 | ### Step 1: Build the container {:#build-container} | COMMENT |
| LOW | site/en/remote/sandbox.md | 199 | ### Step 2: Start the container {:#start-container} | COMMENT |
| LOW | site/en/remote/sandbox.md | 224 | ### Step 3: Test the container {:#test-container} | COMMENT |
| LOW | site/en/remote/sandbox.md | 234 | ### Step 4: Run the build {:#run-build-step} | COMMENT |
| LOW | site/en/remote/sandbox.md | 246 | ### Step 5: Resolve detected issues {:#resolve-build-failures} | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/test/test-setup.sh | 124 | # If the file path is already fully specified, simply return it. | COMMENT |
| LOW | tools/test/test-setup.sh | 127 | # If the file exists in the $TEST_SRCDIR then just use it. | COMMENT |
| LOW | third_party/py/mock/tests/testmock.py | 772 | # need to do this because MagicMock.mock_calls used to just return | COMMENT |
| LOW | third_party/py/abseil/absl/flags/_helpers.py | 165 | # Returning an int as default is fine, int(int) just return the int. | COMMENT |
| LOW | third_party/py/abseil/absl/logging/__init__.py | 218 | # just return a copy. | COMMENT |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 346 | # via object.__setattr__. Otherwise, just use a simple | COMMENT |
| LOW | …est/py/bazel/bzlmod/remote_repo_contents_cache_test.py | 155 | # Deleting the cache fails on Windows, so we just use a different directory. | COMMENT |
| MEDIUM | src/test/shell/unittest.bash | 95 | # be absolute to be robust against | COMMENT |
| LOW | src/test/shell/unittest.bash | 248 | # the stack because they just add noise.) Also prints the contents of | COMMENT |
| LOW | src/test/shell/unittest.bash | 276 | # the stack because they just add noise.) | COMMENT |
| MEDIUM | …est/shell/integration/param_file_flag_per_line_test.sh | 17 | # Tests Starlark API pertaining to action inspection via aspect. | COMMENT |
| MEDIUM | src/test/shell/integration/action_aspect_test.sh | 17 | # Tests Starlark API pertaining to action inspection via aspect. | COMMENT |
| MEDIUM | src/test/shell/bazel/coverage_helpers.sh | 67 | # Replace newlines with commas to facilitate the assertion. | COMMENT |
| MEDIUM | src/test/shell/bazel/execution_phase_tests.sh | 109 | # We cannot make any robust assertions on the first run because of implicit | COMMENT |
| LOW | src/test/shell/bazel/bazel_test_test.sh | 415 | # We don't just use the local PATH, but use the test's PATH, which is more restrictive. | COMMENT |
| LOW | src/test/shell/bazel/jdeps_test.sh | 71 | # If jdeps fails with a NPE, just add the class file to the list in | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/test/test-setup.sh | 70 | # Set USER to the current user, unless passed by Bazel via --test_env. | COMMENT |
| LOW | …party/py/abseil/absl/testing/_pretty_print_reporter.py | 71 | # Set this to true at the class or instance level to run tests using a | COMMENT |
| LOW | third_party/py/abseil/absl/testing/xml_reporter.py | 151 | # Check if it's something like "setUpClass (__main__.TestCase)". | COMMENT |
| LOW | third_party/py/abseil/absl/testing/parameterized.py | 586 | # Check if the base has _test_params_reprs first, then check if it's a | COMMENT |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 568 | # Check if this is an InitVar. | COMMENT |
| LOW | scripts/bash_completion_test.sh | 39 | # Set this to test completion with package path (if enabled) | COMMENT |
| LOW | scripts/bootstrap/build_windows_jni.sh | 48 | # Check if BAZEL_VC points to Visual C++ Build Tools 2019 | COMMENT |
| LOW | scripts/bootstrap/build_windows_jni.sh | 65 | # Check if Visual Studio 2019 is installed. Look for it at the default | COMMENT |
| LOW | scripts/bootstrap/buildenv.sh | 21 | # Check if all necessary tools are available. | COMMENT |
| LOW | src/test/py/bazel/bazel_windows_test.py | 247 | # Set BAZEL_VC to a non-existing path, | COMMENT |
| LOW | src/test/py/bazel/bazel_windows_test.py | 304 | # Set BAZEL_VC to a non-existing path, | COMMENT |
| LOW | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 979 | # Set version to old | COMMENT |
| LOW | src/test/shell/shell_utils.sh | 47 | # Print the result to stdout. | COMMENT |
| LOW | src/test/shell/unittest.bash | 170 | # Check if the script path is absolute, if not prefix the PWD. | COMMENT |
| LOW | src/test/shell/unittest_utils.sh | 30 | # Print message in "$1" then exit with status "$2" | COMMENT |
| LOW | src/test/shell/unittest_utils.sh | 67 | # Print message in "$1" then record that a non-fatal error occurred in | COMMENT |
| LOW | src/test/shell/integration/java_integration_test.sh | 293 | # Set javabase to an absolute path. | COMMENT |
| LOW | src/test/shell/integration/build_event_stream_test.sh | 1558 | # Check if null builds still have build metrics | COMMENT |
| LOW | src/test/shell/bazel/cc_integration_test.sh | 2211 | # Check if clang version is less than 17 | COMMENT |
| LOW | src/test/shell/bazel/bazel_cc_code_coverage_test.sh | 31 | # Check if all the tools required by CC coverage are installed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/ctexplain/bazel_api.py | 138 | "<label> (null)" | STRING |
| HIGH | scripts/generate_fish_completion.py | 178 | params.append("({} query -k '{}' 2>/dev/null)".format(_BAZEL, query)) | CODE |
| HIGH | src/test/py/bazel/bzlmod/bazel_repo_mapping_test.py | 234 | source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \ | STRING |
| HIGH | src/test/py/bazel/bzlmod/bazel_repo_mapping_test.py | 235 | source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \ | STRING |
| HIGH | src/test/py/bazel/bzlmod/bazel_lockfile_test.py | 656 | # resolution doesn't rerun (its event is null), the lockfile is still | COMMENT |
| HIGH | src/test/shell/unittest_test.py | 35 | if [[ -f "${RUNFILES_DIR:-/dev/null}/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; then | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/py/mock/tests/_testwith.py | 31 | except Exception: | CODE |
| MEDIUM | third_party/py/mock/tests/_testwith.py | 26 | def test_with_statement_exception(self): | CODE |
| LOW | third_party/py/concurrent/futures/_base.py | 301 | except Exception: | CODE |
| LOW | third_party/py/abseil/absl/app.py | 328 | except Exception as e: | CODE |
| LOW | third_party/py/abseil/absl/app.py | 376 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 2079 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | scripts/release/relnotes.py | 197 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | scripts/release/relnotes.py | 198 | print("Error: Not a release branch.") | CODE |
| MEDIUM⚡ | .github/scripts/check_ssl.py | 49 | print(f"Error: Config file not found at {self.config_path}") | CODE |
| MEDIUM⚡ | .github/scripts/check_ssl.py | 57 | print(f"Error parsing YAML config: {exc}") | CODE |
| MEDIUM | .github/scripts/check_ssl.py | 132 | print("Error: No domains found in config.") | CODE |
| MEDIUM | …n/java/com/google/devtools/common/options/Options.java | 37 | * System.err.print("Error parsing options: " + e.getMessage()); | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/py_native/lib.py | 0 | a tiny example binary for the native python rules of bazel. | STRING |
| HIGH | examples/py_native/bin.py | 0 | a tiny example binary for the native python rules of bazel. | STRING |
| HIGH | examples/py_native/test.py | 0 | a tiny example binary for the native python rules of bazel. | STRING |
| HIGH | examples/py_native/fail.py | 0 | a tiny example binary for the native python rules of bazel. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/test/generate-xml.sh | 35 | # make sure to append a whitespace in step #1. | COMMENT |
| MEDIUM | third_party/py/abseil/absl/flags/argparse_flags.py | 21 | Here is a simple example:: | STRING |
| MEDIUM | scripts/ci/ci.sh | 35 | # you can replace origin/master in the COMMIT_RANGE variable initialization | COMMENT |
| LOW | .github/ISSUE_TEMPLATE/feature_request.yml | 26 | description: Help us triage this issue faster and more accurately to the relevant team(s). Check the [team labels | CODE |
| LOW | .github/ISSUE_TEMPLATE/bug_report.yml | 26 | description: Help us triage this issue faster and more accurately to the relevant team(s). Check the [team labels | CODE |
| LOW | …main/java/net/starlark/java/eval/MethodDescriptor.java | 474 | @CheckReturnValue // don't forget to throw it | CODE |
| LOW | src/main/java/net/starlark/java/eval/Starlark.java | 934 | @CheckReturnValue // don't forget to throw it | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | third_party/py/abseil/absl/testing/absltest.py | 2441 | # Set up --failfast as requested in environment | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | third_party/py/mock/tests/testmock.py | 334 | # Usage example | COMMENT |
| LOW | scripts/bootstrap/buildenv.sh | 353 | # Usage: | COMMENT |
| LOW | src/test/shell/unittest_utils.sh | 143 | # Usage: | COMMENT |
| LOW | src/test/shell/unittest_utils.sh | 174 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/docs/testdata/input/markdown_with_html.md | 6 | Lorem ipsum [short link](/foo/bar). Or rather a [long link](https://bazel.build/foo/bar)? | CODE |
| LOW | …ts/docs/testdata/expected_output/markdown_with_html.md | 8 | Lorem ipsum [short link](/versions/6.6.6/foo/bar). Or rather a [long link](https://bazel.build/versions/6.6.6/foo/bar)? | CODE |
| LOW | src/test/py/bazel/test_wrapper_test.py | 55 | ' "@echo lorem ipsum",', | CODE |
| LOW | src/test/py/bazel/test_wrapper_test.py | 277 | if line.startswith('lorem ipsum'): | CODE |
| LOW | src/test/shell/bazel/bazel_workspace_status_test.sh | 55 | echo BUILD_USER fake_user | CODE |
| LOW | src/test/shell/bazel/bazel_workspace_status_test.sh | 76 | expect_log "BUILD_USER fake_user" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/build_defs/pkg/archive.py | 143 | CODE | |
| LOW | third_party/py/mock/__init__.py | 477 | CODE | |
| LOW | third_party/py/mock/__init__.py | 933 | CODE | |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 965 | CODE | |
| LOW | src/test/py/bazel/bzlmod/test_utils.py | 322 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ty/java/proguard/proguard6.2.2/docs/manual/examples.md | 929 | ### Processing dependency injection {: #injection} | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/py/mock/tests/support_with.py | 5 | __all__ = ['nested', 'catch_warnings', 'examine_warnings'] | CODE |
| LOW | third_party/py/dataclasses/dataclasses/__init__.py | 6 | __all__ = ['dataclass', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/py/mock/tests/testhelpers.py | 684 | def test_function(self): | CODE |
| LOW | third_party/py/abseil/absl/testing/absltest.py | 2158 | def main_function(argv): | CODE |