AI Slop Code RIsk Monitor

bazelbuild/bazel

a fast, scalable, multi-language and extensible build system

4.6 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for bazelbuild/bazel, a Java project with 25,933 GitHub stars. SynthScan examined 433,781 lines of code across 1982 source files, recording 1568 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 4.6 (Low 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.

4.6
Adjusted Signal
4.6
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
25.9K
Stars
Java
Language
433.8K
Lines of Code
2.0K
Files
1.6K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 17.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1487 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.9/100 · LOW

Are imports declared and package/API names verified? 38 finding(s).

Agent Over-Engineering Ratio 2.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 160 finding(s).

PR Review Velocity Impact 21.1/100 · LOW

Which changes need focused human review? 1568 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 9HIGH 22MEDIUM 149LOW 1388

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 1568 distinct pattern matches across 19 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.

Over-Commented Block1192 hits · 1188 pts
SeverityFileLineSnippetContext
LOWcompile.sh1#!/usr/bin/env bashCOMMENT
LOWverify_module_bazel_lock.sh1#!/usr/bin/env bashCOMMENT
LOWverify_module_bazel_lock.sh41# Verifies that Bazel's own MODULE.bazel.lock is up-to-date, i.e., that runningCOMMENT
LOWcombine_distfiles.py1# pylint: disable=g-bad-file-headerCOMMENT
LOWcombine_distfiles_to_tar.sh1#!/bin/shCOMMENT
LOWtools/mirror_external_deps.py1#!/usr/bin/env python3COMMENT
LOWtools/upload_bazel_mirror.sh1#!/usr/bin/env bashCOMMENT
LOWtools/genrule/genrule-setup.sh1#!/usr/bin/env bashCOMMENT
LOWtools/launcher/empty.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/test-setup.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/test-setup.sh241 trap "signal_children ${signal}" ${signal}COMMENT
LOWtools/test/collect_coverage.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/collect_coverage.sh101# Setting up the environment for executing the C++ tests.COMMENT
LOWtools/test/collect_coverage.sh121#COMMENT
LOWtools/test/collect_coverage.sh221COMMENT
LOWtools/test/dummy.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/generate-xml.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/generate-xml.sh21DURATION_IN_SECONDS="$3"COMMENT
LOWtools/test/generate-xml.sh41 # We can't use sed in UTF-8 mode, because it would fail on the firstCOMMENT
LOWtools/test/generate-xml.sh61 # 4. Replace the string ']]>' with ']]>]]<![CDATA[>' to prevent escaping theCOMMENT
LOWtools/test/collect_cc_coverage.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/collect_cc_coverage.sh21#COMMENT
LOWtools/test/collect_cc_coverage.sh121 # If the gcda file was not found we skip generating coverage from the gcnoCOMMENT
LOWtools/test/collect_cc_coverage.sh141 # Invoke gcov to generate a code coverage report with the flags:COMMENT
LOW…e/devtools/coverageoutputgenerator/BranchCoverage.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…/devtools/coverageoutputgenerator/LcovMergerFlags.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…om/google/devtools/coverageoutputgenerator/Parser.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/SourceFileCoverage.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…gle/devtools/coverageoutputgenerator/LineCoverage.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…/google/devtools/coverageoutputgenerator/Coverage.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…oogle/devtools/coverageoutputgenerator/LcovParser.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…evtools/coverageoutputgenerator/BranchCoverageKey.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/BranchCoverageItem.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…/com/google/devtools/coverageoutputgenerator/Main.java1// Copyright 2016 The Bazel Authors. All rights reserved.COMMENT
LOW…oogle/devtools/coverageoutputgenerator/GcovParser.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/GcovJsonParser.java1// Copyright 2020 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/build_and_upload.sh1#!/usr/bin/env bashCOMMENT
LOW…ogle/devtools/coverageoutputgenerator/LcovPrinter.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…google/devtools/coverageoutputgenerator/Constants.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/BranchCoverageTest.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…gle/devtools/coverageoutputgenerator/CoverageTest.java1// Copyright 2016 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/GcovParserTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…/devtools/coverageoutputgenerator/LcovPrinterTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…devtools/coverageoutputgenerator/LineCoverageTest.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…tools/coverageoutputgenerator/LcovMergerTestUtils.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/LcovParserTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/GcovJsonParserTest.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…tools/coverageoutputgenerator/LcovMergerFlagsTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…/google/devtools/coverageoutputgenerator/MainTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…ls/coverageoutputgenerator/SourceFileCoverageTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/test/windows/tw.h1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/osx/xcode_locator_stub.sh1#!/usr/bin/env bashCOMMENT
LOWtools/osx/xcode_locator.m1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWtools/python/runfiles/runfiles.py1# Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/jdk/proguard_allowlister_test_lib.h1// Copyright 2026 The Bazel Authors. All rights reserved.COMMENT
LOWtools/jdk/proguard_allowlister_lib.h1// Copyright 2026 The Bazel Authors. All rights reserved.COMMENT
LOW…ls/cpp/modules_tools/generate-modmap/generate-modmap.h1// Copyright 2024 The Bazel Authors. All rights reserved.COMMENT
LOWtools/cpp/modules_tools/common/json.hpp1// Copyright 2024 The Bazel Authors. All rights reserved.COMMENT
LOWtools/cpp/modules_tools/common/json.hpp21#include <iomanip>COMMENT
LOWtools/cpp/modules_tools/common/common.h1// Copyright 2024 The Bazel Authors. All rights reserved.COMMENT
1132 more matches not shown…
Self-Referential Comments104 hits · 269 pts
SeverityFileLineSnippetContext
MEDIUMcompile.sh42# Create an initial binary so we can host ourselfCOMMENT
MEDIUMtools/upload_bazel_mirror.sh48# Create a temp directory to hold the versioned tarball,COMMENT
MEDIUMtools/test/test-setup.sh98# Create the test temp directory, which may not exist on the remote host whenCOMMENT
MEDIUMtools/test/collect_coverage.sh137 # Create a paramsfile for invoking SingleJar.COMMENT
MEDIUMtools/build_defs/hash/sha256_test.sh37# The following code produces a 120MB file (30*2^22 bytes)COMMENT
MEDIUMthird_party/ijar/test/ijar_test.sh327# Create a huge (~2.2Gb) input jar to test "large file" correctnessCOMMENT
MEDIUMthird_party/ijar/test/ijar_test.sh336# Create an output jar with upper bound on size > 2GBCOMMENT
MEDIUMscripts/bootstrap/build_windows_jni.sh38# Create a temp directory. It will used for the batch file we generate soon andCOMMENT
MEDIUMscripts/bootstrap/compile.sh199# Create the deploy JARCOMMENT
MEDIUMscripts/bootstrap/compile.sh303 # Create the bazel_tools repository.COMMENT
MEDIUMscripts/bootstrap/compile.sh361 # Create the rest of @bazel_tools//tools/...COMMENT
MEDIUMscripts/bootstrap/buildenv.sh325# Create a link for a directory on the filesystemCOMMENT
MEDIUMscripts/ci/build.sh376# Create a debian package with version in package name and add it to the repoCOMMENT
MEDIUMscripts/release/relnotes.sh124# Create the release notes since commit $1 ($2...${[#]} are the cherry-picks,COMMENT
MEDIUMscripts/release/relnotes.sh196# Create the revision information given a list of commits. The firstCOMMENT
MEDIUMscripts/release/release.sh86# Create the release commit by changing the CHANGELOG fileCOMMENT
MEDIUMscripts/release/release.sh132# Create a new release named "$1" with "$2" as the baseline commit.COMMENT
MEDIUMscripts/packages/dmg/create_bazel_dmg.sh93# Create the dmg fileCOMMENT
MEDIUMsrc/create_java_tools_release.sh70# Create a tmp directory to download the artifacts from GCS and compute theirCOMMENT
MEDIUMsrc/upload_java_tools.sh79# Create a temp directory and a writable temp zip file to add a README.md file toCOMMENT
MEDIUMsrc/upload_java_tools.sh92# Create the README.md file and add the re-build java tools instructions.COMMENT
MEDIUMsrc/tools/singlejar/zip64_huge_entry_test.sh67 # Create a single 4GB fileCOMMENT
MEDIUMsrc/test/py/bazel/launcher_test.py802 # Create a directory with a path longer than 260COMMENT
MEDIUMsrc/test/py/bazel/runfiles_test.py205 # Create a copy of the runfiles manifest, replacingCOMMENT
MEDIUMsrc/test/py/bazel/bazel_external_repository_test.py519 # Create a repository rule for bar that symlinks to foo's file.COMMENT
MEDIUM…el/bzlmod/remote_repo_contents_cache_rewinding_test.py59 # Create a repo with two BUILD files (one in a subpackage), build a targetCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py163 # Create a project with deps on 'sss'COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py247 # Create a project with deps on 'sss'COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py282 # Create a project with deps on 'sss'COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py315 # Create a project with deps on the BCR's 'platforms' moduleCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py350 # Create a project with deps on the BCR's 'platforms' moduleCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py390 # Create a project with an outdated direct dep on aaaCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/repo_contents_cache_test.py676 # Create the external file outside the workspace so it's not treated asCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/mod_command_test.py1102 # Create a lockfile and let the extension evaluations emit fixup warnings.COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/mod_command_test.py1514 # Create a lockfile and let the extension evaluations emit fixup warnings.COMMENT
MEDIUMsrc/test/shell/unittest.bash61# This file provides utilities for assertions over the output of aCOMMENT
MEDIUMsrc/test/shell/testenv.sh227 # Create a shorter bazel root on Windows to avoid long path issue.COMMENT
MEDIUMsrc/test/shell/integration/thread_dump_test.sh25 # Create a new workspace to ensure the output_base is cleanCOMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh673# Define the toolchains.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh703# Define the platforms.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh752 # Define a simple rule to put the aspect on.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh794# Define the toolchains.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh837 # Define a simple rule to put the aspect on.COMMENT
MEDIUMsrc/test/shell/integration/platform_based_flags_test.sh77 # Create a transition on platform.COMMENT
MEDIUM…test/shell/integration/starlark_configurations_test.sh901 # Define the flags that are used.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh176# Define the toolchain.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh255# Define the toolchain.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh306# Define the toolchain.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh355 # Create an alias for the toolchain type.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh373# Define the toolchain.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh415 # Create an alias for the toolchain type.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh752# Define a toolchain that can't be used due to the target_settingsCOMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh974# Define the toolchain.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh1552# Define the toolchain.STRING
MEDIUMsrc/test/shell/integration/toolchain_test.sh1640# Define the toolchain.STRING
MEDIUMsrc/test/shell/integration/toolchain_test.sh1757# Define the toolchains.STRING
MEDIUMsrc/test/shell/integration/toolchain_test.sh1823 # Create a toolchain rule that also exposes make variables.STRING
MEDIUMsrc/test/shell/integration/toolchain_test.sh1846 # Create a rule that consumes the toolchain.STRING
MEDIUMsrc/test/shell/integration/toolchain_test.sh1870# Define the toolchain.STRING
MEDIUMsrc/test/shell/integration/toolchain_test.sh1963 # Define the actual targets using these.STRING
44 more matches not shown…
Hallucination Indicators9 hits · 115 pts
SeverityFileLineSnippetContext
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md56 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL⚡…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md102 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.md109 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL⚡…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md119 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL⚡…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md127 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL⚡…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md137 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL⚡…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md146 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICALsrc/test/shell/bazel/remote/remote_execution_test.sh1006 myrunfiles = ctx.runfiles(files=ctx.attr.dir.default_runfiles.files.to_list())STRING
CRITICAL…t/runner/testdata/system_exit_detecting_test_stack.txt5 at com.google.testing.junit.runner.ProgramThatCallsSystemExit.main(ProgramThatCallsSystemExit.java:XXX)CODE
Decorative Section Separators30 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMtools/test/collect_coverage.sh95# --------------------------------------COMMENT
MEDIUMsrc/test/shell/unittest.bash23# ------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/unittest.bash43# ------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh47# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh49# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh236# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh238# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh212# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh214# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh237# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh239# ----------------------------------------------------------------------COMMENT
MEDIUM…test/shell/integration/config_stripped_outputs_test.sh22# -------------------COMMENT
MEDIUMsrc/test/shell/bazel/run_test.sh43# ------------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/run_test.sh45# ------------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh43# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh45# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh201# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh203# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2591 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2593 # -------------------------------------------------------------COMMENT
MEDIUM⚡src/test/shell/bazel/bazel_java_test.sh2608 # -------------------------------------------------------------COMMENT
MEDIUM⚡src/test/shell/bazel/bazel_java_test.sh2610 # -------------------------------------------------------------COMMENT
MEDIUM⚡src/test/shell/bazel/bazel_java_test.sh2616 # -------------------------------------------------------------COMMENT
MEDIUM⚡src/test/shell/bazel/bazel_java_test.sh2618 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2633 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2635 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2648 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2650 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2664 # -------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/bazel_java_test.sh2666 # -------------------------------------------------------------COMMENT
Hyper-Verbose Identifiers115 hits · 96 pts
SeverityFileLineSnippetContext
LOWtools/mirror_external_deps.py78def parse_downloader_cfg_domains(workspace: pathlib.Path) -> set[str]:CODE
LOWtools/mirror_external_deps.py142def extract_lockfile_source_urls(CODE
LOW⚡tools/android/instrumentation_test_check_test.py51 def test_extract_instrumentation_target_package(self):STRING
LOW⚡tools/android/instrumentation_test_check_test.py56 def test_extract_target_package(self):STRING
LOW⚡tools/android/instrumentation_test_check_test.py60 def test_target_package_check(self):STRING
LOW⚡tools/android/instrumentation_test_check_test.py66 def test_target_package_check_failure(self):STRING
LOWscripts/generate_fish_completion.py195 def _normalize_subcommand_name(subcommand):CODE
LOWscripts/aquery_differ/aquery_differ.py137def _map_action_index_to_output_files(actions, artifacts):CODE
LOWscripts/aquery_differ/aquery_differ.py158def _map_output_files_to_input_artifacts(CODE
LOWscripts/aquery_differ/aquery_differ.py195def _map_output_files_to_command_line(actions, action_index_to_output_files):CODE
LOWscripts/aquery_differ/aquery_differ_test.py54def make_aquery_output_with_dep_set(CODE
LOWscripts/aquery_differ/aquery_differ_test.py98 def test_no_difference_different_output_files_order(self):CODE
LOWscripts/aquery_differ/aquery_differ_test.py135 def test_first_has_extra_output_files(self):CODE
LOWscripts/aquery_differ/aquery_differ_test.py180 def test_different_command_lines(self):CODE
LOW⚡scripts/release/relnotes_test.py31 def test_parse_version_standard(self):CODE
LOW⚡scripts/release/relnotes_test.py36 def test_parse_version_two_digit_major(self):CODE
LOW⚡scripts/release/relnotes_test.py41 def test_parse_version_with_v_prefix(self):CODE
LOW⚡scripts/release/relnotes_test.py45 def test_parse_version_prerelease_and_rc(self):CODE
LOW⚡scripts/release/relnotes_test.py51 def test_parse_version_invalid(self):CODE
LOW⚡scripts/release/relnotes_test.py55 def test_version_sorting_two_digit_major(self):CODE
LOWscripts/release/relnotes_test.py74 def test_extract_relnotes_standard(self):CODE
LOWscripts/release/relnotes_test.py87 def test_extract_relnotes_incompatible(self):CODE
LOWscripts/release/relnotes_test.py98 def test_extract_relnotes_none(self):CODE
LOWscripts/release/relnotes.py155def get_external_authors_between(base, head):CODE
LOWscripts/docs/docs2mdx.py115def _cell_has_complex_content(cell):CODE
LOWscripts/docs/docs2mdx.py157def _convert_html_to_single_line_md(content):CODE
LOWscripts/docs/docs2mdx.py282def _fix_configuration_dot_html(content):CODE
LOWscripts/docs/docs2mdx.py329def _move_flag_links_outside_code(content):CODE
LOWscripts/docs/docs2mdx.py348def _convert_heading_ids_to_mdx_anchors(content):CODE
LOWscripts/docs/docs2mdx.py378def _post_markdown_transforms(content):CODE
LOWscripts/docs/clr_converter_test.py69 def test_void_expansion_option(self):STRING
LOWscripts/docs/clr_converter_test.py89 def test_allow_multiple_option(self):STRING
LOWscripts/docs/clr_converter_test.py162 def test_quotes_in_type_description(self):STRING
LOWscripts/docs/clr_converter_test.py176 def test_angle_brackets_in_type_description(self):STRING
LOWscripts/docs/mdx_fixes.py188def _remove_trailing_whitespaces(content):CODE
LOWscripts/docs/mdx_fixes.py193def _remove_anything_before_front_matter(content):CODE
LOWscripts/docs/docs2mdx_test.py27 def test_code_blocks_keep_literal_characters(self):CODE
LOWscripts/docs/docs2mdx_test.py41 def test_prose_still_escapes_mdx_special_characters(self):CODE
LOWscripts/docs/docs2mdx_test.py51 def test_pre_blocks_in_markdown_are_not_entity_escaped(self):CODE
LOWscripts/docs/docs2mdx_test.py168 def test_heading_id_preserved(self, html, expected_heading):STRING
LOWscripts/docs/docs2mdx_test.py172 def test_heading_without_id_has_no_anchor(self):STRING
LOWscripts/docs/docs2mdx_test.py213 def test_flag_anchor_preserved(self, html, anchor_id):STRING
LOWscripts/docs/docs2mdx_test.py218 def test_duplicate_anchor_id_inserted_once(self):STRING
LOWscripts/ctexplain/bazel_api.py139def _parse_cquery_result_line(line: str) -> ConfiguredTarget:CODE
LOWscripts/ctexplain/ctexplain.py101def _render_analysis_help_text() -> str:CODE
LOW⚡.github/scripts/check_ssl.py60 def get_days_until_expiration(self, domain: str) -> int:CODE
LOWsrc/tools/singlejar/data/log4j2_plugins_gen.py78def load_cache_files_from_bytes(byte_data, consolidated_plugins):CODE
LOWsrc/tools/singlejar/data/log4j2_plugins_gen.py113def create_jar_with_empty_data(jar_file_path):CODE
LOW…est/py/bazel/bzlmod/remote_repo_contents_cache_test.py311 'def _platform_dependent_repo_impl(rctx):',CODE
LOW…est/py/bazel/bzlmod/remote_repo_contents_cache_test.py407 'def _platform_dependent_binary_impl(rctx):',CODE
LOWsrc/test/shell/unittest_test.py235 def test_set_bash_errexit_prints_stack_trace(self):CODE
LOWsrc/test/shell/unittest_test.py263 def test_set_bash_errexit_runs_tear_down(self):CODE
LOWsrc/test/shell/unittest_test.py291 def test_set_bash_errexit_pipefail_propagates_failure_through_pipe(self):CODE
LOWsrc/test/shell/unittest_test.py312 def test_set_bash_errexit_no_pipefail_ignores_failure_before_pipe(self):CODE
LOWsrc/test/shell/unittest_test.py334 def test_set_bash_errexit_pipefail_long_testname_succeeds(self):CODE
LOWsrc/test/shell/unittest_test.py366 def test_empty_test_succeeds_sharding(self):CODE
LOWsrc/test/shell/unittest_test.py576 def __run_sharded_test_assert_expected_tests_were_run(STRING
LOWsrc/test/shell/unittest_test.py600 def test_manual_sharding_unknown_test(self):STRING
LOWsrc/test/shell/unittest_test.py622 def test_manual_sharding_double_defined_test(self):STRING
LOWsrc/test/shell/unittest_test.py643 def test_filter_runs_only_matching_test(self):STRING
55 more matches not shown…
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHscripts/ctexplain/bazel_api.py103Calls "bazel config" with the given config hash. Args: config_hash: A config hash as reported by "bazel cquerSTRING
HIGHscripts/ctexplain/bazel_api.py178Strips a fully qualified Java class name to the file scope. Examples: - "A.B.OuterClass" -> "OuterClass" - "ASTRING
HIGHscripts/ctexplain/lib.py27Gets a build invocation's configured targets. Args: bazel: API for invoking Bazel. labels: The targets to buiSTRING
HIGHsrc/test/py/bazel/test_base.py142Extracts the version of a module from the default MODULE.bazel.lock file. Args: module: string; the name of tSTRING
HIGHsrc/test/py/bazel/test_base.py269Returns environment variable `name`. Args: name: string; name of the environment variable default: anytSTRING
HIGHsrc/test/py/bazel/test_base.py323Returns the absolute path of `path` relative to self._test_cwd. Args: path: string; a path, relative to self.STRING
HIGHsrc/test/py/bazel/test_base.py369Creates directories under the test's scratch directory. Args: path: string; a path, relative to the test's scSTRING
HIGHsrc/test/py/bazel/test_base.py391Creates a file under the test's scratch directory. Args: path: string; a path, relative to the test's scratchSTRING
HIGHsrc/test/py/bazel/test_base.py424Copy a file to a path under the test's scratch directory. Args: src_path: string; a path, the file to copy STRING
AI Slop Vocabulary15 hits · 34 pts
SeverityFileLineSnippetContext
LOWtools/test/test-setup.sh124 # If the file path is already fully specified, simply return it.COMMENT
LOWtools/test/test-setup.sh127 # If the file exists in the $TEST_SRCDIR then just use it.COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_module_test.py1473 # The test harness disables the repo contents cache, which this test isCOMMENT
LOW…est/py/bazel/bzlmod/remote_repo_contents_cache_test.py123 # Deleting the cache fails on Windows, so we just use a different directory.COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_fetch_test.py382 # The test harness disables the repo contents cache, which this test isCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/repo_contents_cache_test.py52 # The test harness disables the repo contents cache in its own bazelrc,COMMENT
MEDIUMsrc/test/shell/unittest.bash95 # be absolute to be robust againstCOMMENT
LOWsrc/test/shell/unittest.bash248# the stack because they just add noise.) Also prints the contents ofCOMMENT
LOWsrc/test/shell/unittest.bash276# the stack because they just add noise.)COMMENT
MEDIUM…est/shell/integration/param_file_flag_per_line_test.sh17# Tests Starlark API pertaining to action inspection via aspect.COMMENT
MEDIUMsrc/test/shell/integration/action_aspect_test.sh17# Tests Starlark API pertaining to action inspection via aspect.COMMENT
MEDIUMsrc/test/shell/bazel/coverage_helpers.sh67 # Replace newlines with commas to facilitate the assertion.COMMENT
MEDIUMsrc/test/shell/bazel/execution_phase_tests.sh109 # We cannot make any robust assertions on the first run because of implicitCOMMENT
LOWsrc/test/shell/bazel/bazel_test_test.sh429 # We don't just use the local PATH, but use the test's PATH, which is more restrictive.COMMENT
LOWsrc/test/shell/bazel/jdeps_test.sh71 # If jdeps fails with a NPE, just add the class file to the list inCOMMENT
Redundant / Tautological Comments17 hits · 26 pts
SeverityFileLineSnippetContext
LOWtools/test/test-setup.sh70# Set USER to the current user, unless passed by Bazel via --test_env.COMMENT
LOWscripts/bash_completion_test.sh39# Set this to test completion with package path (if enabled)COMMENT
LOWscripts/bootstrap/build_windows_jni.sh48 # Check if BAZEL_VC points to Visual C++ Build Tools 2019COMMENT
LOWscripts/bootstrap/build_windows_jni.sh65# Check if Visual Studio 2019 is installed. Look for it at the defaultCOMMENT
LOWscripts/bootstrap/buildenv.sh21# Check if all necessary tools are available.COMMENT
LOWsrc/test/py/bazel/bazel_windows_test.py278 # Set BAZEL_VC to a non-existing path,COMMENT
LOWsrc/test/py/bazel/bazel_windows_test.py335 # Set BAZEL_VC to a non-existing path,COMMENT
LOWsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py1161 # Set version to oldCOMMENT
LOWsrc/test/shell/shell_utils.sh47# Print the result to stdout.COMMENT
LOWsrc/test/shell/unittest.bash170# Check if the script path is absolute, if not prefix the PWD.COMMENT
LOWsrc/test/shell/unittest_utils.sh30# Print message in "$1" then exit with status "$2"COMMENT
LOWsrc/test/shell/unittest_utils.sh67# Print message in "$1" then record that a non-fatal error occurred inCOMMENT
LOWsrc/test/shell/integration/java_integration_test.sh293 # Set javabase to an absolute path.COMMENT
LOWsrc/test/shell/integration/build_event_stream_test.sh1558 # Check if null builds still have build metricsCOMMENT
LOWsrc/test/shell/bazel/cc_integration_test.sh1161 # Check if clang version is less than 17COMMENT
LOWsrc/test/shell/bazel/bazel_cc_code_coverage_test.sh31# Check if all the tools required by CC coverage are installed.COMMENT
LOWsrc/test/shell/bazel/bazel_java_test.sh2545 # Check if rules_java has the toolchain-driven unused_deps supportCOMMENT
Cross-Language Confusion6 hits · 25 pts
SeverityFileLineSnippetContext
HIGHscripts/generate_fish_completion.py184 params.append("({} query -k '{}' 2>/dev/null)".format(_BAZEL, query))CODE
HIGHscripts/ctexplain/bazel_api.py147 "<label> (null)"STRING
HIGHsrc/test/py/bazel/bzlmod/bazel_repo_mapping_test.py234source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \STRING
HIGHsrc/test/py/bazel/bzlmod/bazel_repo_mapping_test.py235 source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \STRING
HIGHsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py755 # resolution doesn't rerun (its event is null), the lockfile is stillCOMMENT
HIGHsrc/test/shell/unittest_test.py35if [[ -f "${RUNFILES_DIR:-/dev/null}/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; thenCODE
Deep Nesting24 hits · 24 pts
SeverityFileLineSnippetContext
LOWcombine_distfiles.py28CODE
LOWtools/mirror_external_deps.py142CODE
LOWtools/build_defs/pkg/archive_test.py27CODE
LOWtools/build_defs/pkg/build_tar.py56CODE
LOWscripts/aquery_differ/aquery_differ.py317CODE
LOWscripts/docs/docs2mdx.py262CODE
LOWscripts/docs/create_release_docs.py109CODE
LOWscripts/docs/clr_converter.py215CODE
LOWscripts/docs/clr_converter.py345CODE
LOWscripts/docs/clr_converter.py388CODE
LOWscripts/docs/clr_converter.py432CODE
LOWscripts/packages/debian/generate_changelog.py22CODE
LOWsrc/create_embedded_tools.py120CODE
LOWsrc/create_embedded_tools_lib.py34CODE
LOWsrc/test/py/bazel/first_time_use_test.py31CODE
LOWsrc/test/py/bazel/test_wrapper_test.py274CODE
LOWsrc/test/py/bazel/test_wrapper_test.py315CODE
LOWsrc/test/py/bazel/test_wrapper_test.py363CODE
LOWsrc/test/py/bazel/test_wrapper_test.py618CODE
LOWsrc/test/py/bazel/test_base.py33CODE
LOWsrc/test/py/bazel/bzlmod/repo_contents_cache_test.py57CODE
LOWsrc/test/py/bazel/bzlmod/mod_command_test.py771CODE
LOWsrc/test/shell/bazel/testing_server.py135CODE
LOWsrc/test/shell/bazel/remote/uds_proxy.py41CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHexamples/py_native/lib.py0a tiny example binary for the native python rules of bazel.STRING
HIGHexamples/py_native/bin.py0a tiny example binary for the native python rules of bazel.STRING
HIGHexamples/py_native/test.py0a tiny example binary for the native python rules of bazel.STRING
HIGHexamples/py_native/fail.py0a tiny example binary for the native python rules of bazel.STRING
Unused Imports17 hits · 17 pts
SeverityFileLineSnippetContext
LOWtools/build_defs/hash/sha256.py18CODE
LOWtools/build_defs/hash/sha256.py19CODE
LOWtools/build_defs/hash/sha256.py20CODE
LOWscripts/generate_fish_completion.py16CODE
LOWscripts/generate_fish_completion.py17CODE
LOWscripts/generate_fish_completion.py18CODE
LOWscripts/docs/docs2mdx_test.py15CODE
LOWscripts/docs/docs2mdx_test.py16CODE
LOWscripts/docs/docs2mdx_test.py17CODE
LOWscripts/docs/rewriter_test.py15CODE
LOWscripts/docs/rewriter_test.py16CODE
LOWscripts/docs/rewriter_test.py17CODE
LOWsrc/test/py/bazel/testdata/runfiles_test/foo/foo.py16CODE
LOWsrc/test/py/bazel/testdata/runfiles_test/bar/bar.py16CODE
LOWsrc/test/shell/unittest_test.py17CODE
LOWsrc/test/shell/unittest_test.py18CODE
LOWsrc/test/shell/unittest_test.py19CODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/test/py/bazel/test_base.py46except (FileNotFoundError, OSError):CODE
HIGHsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py67except FileNotFoundError:CODE
HIGHsrc/test/py/bazel/bzlmod/repo_contents_cache_test.py114except OSError:CODE
Excessive Try-Catch Wrapping6 hits · 14 pts
SeverityFileLineSnippetContext
LOWscripts/release/relnotes.py211 except Exception: # pylint: disable=broad-exception-caughtCODE
MEDIUMscripts/release/relnotes.py212 print("Error: Not a release branch.")CODE
MEDIUM⚡.github/scripts/check_ssl.py49 print(f"Error: Config file not found at {self.config_path}")CODE
MEDIUM⚡.github/scripts/check_ssl.py57 print(f"Error parsing YAML config: {exc}")CODE
MEDIUM.github/scripts/check_ssl.py135 print("Error: No domains found in config.")CODE
MEDIUM…n/java/com/google/devtools/common/options/Options.java37 * System.err.print("Error parsing options: " + e.getMessage());COMMENT
Slop Phrases6 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/test/generate-xml.sh35 # make sure to append a whitespace in step #1.COMMENT
MEDIUMscripts/ci/ci.sh35# you can replace origin/master in the COMMIT_RANGE variable initializationCOMMENT
LOW.github/ISSUE_TEMPLATE/feature_request.yml26 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.yml26 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.java476 @CheckReturnValue // don't forget to throw itCODE
LOWsrc/main/java/net/starlark/java/eval/Starlark.java1037 @CheckReturnValue // don't forget to throw itCODE
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/docs/testdata/input/markdown_with_html.md1Lorem 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.md1Lorem ipsum [short link](/versions/6.6.6/foo/bar). Or rather a [long link](https://bazel.build/versions/6.6.6/foo/bar)?CODE
LOWsrc/test/py/bazel/test_wrapper_test.py56 ' "@echo lorem ipsum",',CODE
LOWsrc/test/py/bazel/test_wrapper_test.py286 if line.startswith('lorem ipsum'):CODE
LOWsrc/test/shell/bazel/bazel_workspace_status_test.sh55echo BUILD_USER fake_userCODE
LOWsrc/test/shell/bazel/bazel_workspace_status_test.sh76 expect_log "BUILD_USER fake_user"CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…ty/java/proguard/proguard6.2.2/docs/manual/examples.md929### Processing dependency injection {: #injection}COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/bootstrap/buildenv.sh359# Usage:COMMENT
LOWsrc/test/shell/unittest_utils.sh143# Usage:COMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/build_defs/pkg/archive.py143CODE
LOWsrc/test/py/bazel/bzlmod/test_utils.py322CODE