AI Slop Code RIsk Monitor

facebook/buck2

Build system, successor to Buck

4.8 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for facebook/buck2, a Rust project with 4,465 GitHub stars. SynthScan examined 1,024,467 lines of code across 5654 source files, recording 3964 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 4.8 (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.8
Adjusted Signal
4.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.5K
Stars
Rust
Language
1.0M
Lines of Code
5.7K
Files
4.0K
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 18.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.9/100 · LOW

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

Agent Over-Engineering Ratio 9.9/100 · LOW

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

PR Review Velocity Impact 20.6/100 · LOW

Which changes need focused human review? 3964 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 41HIGH 38MEDIUM 106LOW 3779

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 3964 distinct pattern matches across 21 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.

Hyper-Verbose Identifiers1747 hits · 1864 pts
SeverityFileLineSnippetContext
LOWtools/starlark_fmt/lib/formatting.rs267 def module_name_consistency_test(name, module):CODE
LOW…cam/js/src/components/invocation/useExpandedCommand.ts27function parseExpandedCommandArtifact(raw: string): string {CODE
LOWapp/buck2_trailcam/js/src/lib/event-log-cache.ts464export async function writeCachedSummaryBatchesBulk(CODE
LOWapp/buck2_trailcam/js/src/lib/critical-path.ts424export function parseCriticalPathFromBgInfo(CODE
LOWapp/buck2_trailcam/js/src/lib/critical-path.ts478export async function extractCriticalPathDataAsync(CODE
LOWapp/buck2_trailcam/js/src/lib/streaming-collectors.ts62function extractTargetLabelFromConfigured(CODE
LOW…buck2_interpreter_for_build/src/interpreter/testing.rs382 def _assert_eq_ignore_hash_for_strings(a, b):CODE
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs119 /// def _impl_get_path_without_materialization(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs170 /// def _impl_get_paths_without_materialization(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs362 /// def _impl_read_package_visibility(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs389 /// def _impl_read_package_within_view(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs417 /// def _impl_read_package_visibility_cap(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs445 /// def _impl_read_package_visibility_intersection(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs479 /// def _impl_read_package_within_view_cap(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/uquery.rs478 /// def _targets_in_buildfile_impl(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs483 /// def _impl_resolved_attrs_lazy(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs512 /// def _impl_resolved_attrs_eager(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs1064 /// def _impl_resolved_attrs_lazy(ctx):COMMENT
LOWapp/buck2_interpreter_for_build_tests/src/select.rs115def _test_concatenated_native():CODE
LOWapp/buck2_interpreter_for_build_tests/src/select.rs128def _test_concatenated_nested():CODE
LOWstarlark-rust/benchmark/benchmark.py38def benchmark_call_native_len():CODE
LOW⚡starlark-rust/starlark/src/typing/tests/callable.rs48def good_function_pos_or_named(x: str, y: int) -> None:CODE
LOW⚡starlark-rust/starlark/src/typing/tests/callable.rs57def bad_function_missing_params(x: str) -> None:CODE
LOW⚡starlark-rust/starlark/src/typing/tests/callable.rs60def bad_function_extra_params(x: str, y: int, z: int) -> None:CODE
LOWwebsite/gen_docs.py58def generate_prelude_rules_docs(buck: str) -> None:CODE
LOWwebsite/gen_docs.py106def generate_bxl_utils_api_docs(buck: str) -> None:CODE
LOW⚡website/gen_docs.py163def generate_help_docs_subcommand(buck: str, args: List[str]) -> str:CODE
LOW⚡website/gen_docs.py170def generate_subcommand_short_help(buck: str, args: List[str]) -> str:CODE
LOW⚡website/gen_docs.py179def generate_help_docs_index_page(buck: str, subcommands: List[str]) -> str:CODE
LOWtests/core/interpreter/test_peak_allocated_bytes.py18async def test_peak_allocated_bytes(buck: Buck) -> None:CODE
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py27async def test_off_mode_boundary_is_dormant(buck: Buck) -> None:CODE
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py32async def test_enforce_mode_exempt_package_stays_visible(buck: Buck) -> None:CODE
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py43async def test_audit_mode_reports_instead_of_failing(buck: Buck) -> None:CODE
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py52async def test_exemption_does_not_weaken_ancestor_layer(buck: Buck) -> None:CODE
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py60async def test_exemption_does_not_lift_inherited_default_visibility(buck: Buck) -> None:CODE
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py69async def test_enforce_mode_nested_cell_inherits_parent_layer(buck: Buck) -> None:CODE
LOW…rpreter/test_package_file_visibility_exempt_targets.py90async def test_invalid_exemption_is_rejected(CODE
LOW…rpreter/test_package_file_visibility_exempt_targets.py100async def test_audit_visibility_lists_would_blocks(buck: Buck) -> None:CODE
LOW…rpreter/test_package_file_visibility_exempt_targets.py113async def test_audit_visibility_audit_mode_still_fails_real_violations(CODE
LOWtests/core/interpreter/test_infer_target_names.py23async def test_eponymous_dep_in_build_file_rejected_by_default(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_infer_target_names.py36async def test_eponymous_dep_in_build_file_inferred_when_enabled(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_infer_target_names.py44async def test_eponymous_source_in_build_file_rejected_by_default(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_infer_target_names.py55async def test_eponymous_source_in_build_file_inferred_when_enabled(CODE
LOWtests/core/interpreter/test_infer_target_names.py65async def test_eponymous_attr_default_in_bzl_rejected_by_default(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_infer_target_names.py79async def test_eponymous_attr_default_in_bzl_inferred_when_enabled(CODE
LOWtests/core/interpreter/test_cpu_instruction_count.py20async def test_cpu_instruction_count(buck: Buck) -> None:CODE
LOW⚡…s/core/interpreter/test_package_file_package_values.py21async def test_package_file_package_values(buck: Buck) -> None:CODE
LOW⚡…s/core/interpreter/test_package_file_package_values.py28async def test_audit_package_values(buck: Buck) -> None:CODE
LOW⚡…s/core/interpreter/test_package_file_package_values.py37async def test_audit_package_values_select(buck: Buck) -> None:CODE
LOW…s/core/interpreter/test_package_file_package_values.py58async def test_audit_package_values_visibility_intersection(CODE
LOW…s/core/interpreter/test_package_file_package_values.py81async def test_audit_package_values_visibility_intersection_exempt(CODE
LOW…s/core/interpreter/test_package_file_package_values.py103async def test_targets_package_values(buck: Buck) -> None:CODE
LOW…s/core/interpreter/test_package_file_package_values.py112async def test_targets_package_values_regex(buck: Buck) -> None:CODE
LOW…s/core/interpreter/test_package_file_package_values.py166async def test_targets_streaming_package_values(buck: Buck) -> None:CODE
LOW⚡tests/core/interpreter/test_relative_paths.py25async def test_relative_path_left_allowed_dir(buck: Buck) -> None:CODE
LOW⚡tests/core/interpreter/test_relative_paths.py33async def test_relative_path_has_symlink(buck: Buck) -> None:CODE
LOW⚡tests/core/interpreter/test_relative_paths.py42async def test_relative_path_in_attribute_default_current(buck: Buck) -> None:CODE
LOW⚡tests/core/interpreter/test_relative_paths.py50async def test_relative_path_in_attribute_default_up(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_package_file_visibility.py17async def test_no_package_call_does_not_reset_visibility(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_package_file_alt_name.py19async def test_package_file_alt_name(buck: Buck) -> None:CODE
1687 more matches not shown…
Over-Commented Block1671 hits · 1650 pts
SeverityFileLineSnippetContext
LOWrust-project.sh1#!/usr/bin/env bashCOMMENT
LOWbuck2.py1#!/usr/bin/env python3COMMENT
LOWclippy.toml1# Copyright (c) Meta Platforms, Inc. and affiliates.COMMENT
LOWrust-toolchain.toml1[toolchain]COMMENT
LOWtools/starlark_fmt/lib/autofixes/sort_list_args.rs21//! blocklist (e.g., `genrule.srcs` where order may be significant).COMMENT
LOWtools/starlark_fmt/lib/autofixes/sort_dict_keys.rs21//! in a comment before or at the start of the dictionary literal:COMMENT
LOWtools/starlark_fmt/lib/autofixes/sort_dict_keys.rs521 for stmt in stmts {COMMENT
LOWtools/starlark_fmt/lib/autofixes/sort_kwargs.rs21//! rust_library(COMMENT
LOWtools/starlark_fmt/lib/autofixes/sort_kwargs.rs121COMMENT
LOWtools/starlark_fmt/lib/autofixes/sort_kwargs.rs481 #[test]COMMENT
LOWtools/starlark_fmt/lib/autofixes/unused_loads.rs21//! "Type", # @unusedCOMMENT
LOWtools/starlark_fmt/lib/autofixes/unused_loads.rs81 for comment_text in module.comments_in_range(search_range) {COMMENT
LOWtools/starlark_fmt/lib/autofixes/utils.rs81 }COMMENT
LOWtools/starlark_fmt/lib/autofixes/utils.rs181/// `"z": 1`), producing source that fails to re-parse.COMMENT
LOWtools/starlark_fmt/lib/formatting/join_plus_call.rs41 /// How many `+` BinOps deep we are. Only `+` BinOps increment thisCOMMENT
LOWhost_sharing/src/host_sharing.rs21COMMENT
LOWapp/buck2_cli_proto/src/lib.rs201macro_rules! define_request {COMMENT
LOWapp/buck2_file_watcher/src/watchman/core.rs61enum WatchmanClientError {COMMENT
LOWapp/buck2_file_watcher/src/watchman/core.rs321 watchman_version: Option<String>,COMMENT
LOWapp/buck2_file_watcher/src/edenfs/interface.rs741 FileSystemBaseline,COMMENT
LOWapp/buck2_file_watcher/src/edenfs/sapling.rs321 }COMMENT
LOWapp/buck2_cmd_debug_client/src/heap_dump.rs21use buck2_client_ctx::events_ctx::EventsCtx;COMMENT
LOWapp/buck2_cmd_debug_client/src/paranoid.rs21/// Configure paranoid mode.COMMENT
LOWapp/buck2_cmd_debug_client/src/anon_targets.rs21use buck2_client_ctx::common::target_cfg::TargetCfgOptions;COMMENT
LOWapp/buck2_cmd_debug_client/src/trace_io.rs41/// Enable I/O tracing in the buck daemon so we keep track of which filesCOMMENT
LOWapp/buck2_build_signals_impl/src/lib.rs821 // is how we discovered its existence.COMMENT
LOW…lcam/js/src/components/invocation/EventLogProvider.tsx521 });COMMENT
LOW…k2_trailcam/js/src/lib/parallel-decode/orchestrator.ts221 onMessage({type: 'error', message: 'ParallelDecoder already terminated'});COMMENT
LOW…trailcam/js/src/lib/parallel-decode/dispatch-worker.ts61 else (self as unknown as Worker).postMessage(msg);COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs101 {COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs121 let path = AbsPath::new(p.as_ref())?;COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs141 /// } else {COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs181 /// Some(AbsNormPath::new("/")?),COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs201 ///COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs221 /// let path = AbsNormPath::new(r"C:\test\foo\bar.txt")?;COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs241 /// shared_path.strip_prefix(AbsNormPath::new(r"\\server\share\")?)?,COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs301 /// let abs_path = AbsNormPath::new("/some/foo")?;COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs341 }COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs361 /// # buck2_error::Ok(())COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs381 /// .join_normalized("../../baz.txt")COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs441 #[cfg(windows)]COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs501 #[cfg(windows)]COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs521 /// assert_eq!(COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs621COMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs661 /// no allocation conversionCOMMENT
LOWapp/buck2_fs/src/paths/abs_norm_path.rs701 /// ```COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs181 ///COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs201 /// assert!(ForwardRelativePath::new(Path::new("normalize\\bar")).is_err());COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs241COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs301 /// Some(ForwardRelativePath::new("foo")?),COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs321 } else {COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs341 /// Some(FileName::unchecked_new("bin")),COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs401 }COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs421 /// );COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs501 } else {COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs521 let path = self.as_str();COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs541 /// # buck2_error::Ok(())COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs561 /// ```COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs581 }COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs621 }COMMENT
1611 more matches not shown…
Hallucination Indicators41 hits · 465 pts
SeverityFileLineSnippetContext
CRITICALapp/buck2_server/src/ctx.rs908 self.cmd_ctx.base_context.daemon.memory_tracker.is_some(),CODE
CRITICAL⚡app/buck2_server/src/ctx.rs1051 self.cmd_ctx.base_context.daemon.forkserver.dupe(),CODE
CRITICAL⚡app/buck2_server/src/ctx.rs1061 self.cmd_ctx.base_context.daemon.memory_tracker.dupe(),CODE
CRITICAL⚡app/buck2_server/src/ctx.rs1064 self.cmd_ctx.base_context.daemon.daemon_id.dupe(),CODE
CRITICAL⚡app/buck2_server/src/ctx.rs1067 data.set_http_client(self.cmd_ctx.base_context.daemon.http_client.dupe());CODE
CRITICALapp/buck2_server/src/ctx.rs1106 data.spawner = self.cmd_ctx.base_context.daemon.spawner.dupe();CODE
CRITICAL…/java/abi/source/TreeBackedAnnotatedConstructTest.java72 "@com.facebook.buck.jvm.java.abi.source.AnnotationWithSingleClassForTreeBackedTest(single"CODE
CRITICAL…/java/abi/source/TreeBackedAnnotatedConstructTest.java100 "@com.facebook.buck.jvm.java.abi.source.AnnotationWithClassArrayForTreeBackedTest(multi"CODE
CRITICAL…/java/abi/source/TreeBackedAnnotatedConstructTest.java127 "@com.facebook.buck.jvm.java.abi.source.AnnotationWithSingleClassForTreeBackedTest(single"CODE
CRITICAL…/java/abi/source/TreeBackedAnnotatedConstructTest.java163 "@com.facebook.buck.jvm.java.abi.source.AnnotationWithClassArrayForTreeBackedTest(multi"CODE
CRITICAL…serialization/kotlin/ActionMetadataSerializerTest.java57 return com.facebook.buck.cd.model.kotlin.ActionMetadata.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java34 com.facebook.buck.cd.model.java.BaseJarCommand.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java56 com.facebook.buck.cd.model.java.BaseJarCommand.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java73 com.facebook.buck.cd.model.java.BaseJarCommand.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java83 com.facebook.buck.cd.model.java.BaseJarCommand.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java94 com.facebook.buck.cd.model.java.BaseJarCommand.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java105 com.facebook.buck.cd.model.java.JarParameters.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java150 com.facebook.buck.cd.model.kotlin.KotlinExtraParams.newBuilder()CODE
CRITICAL⚡…/serialization/kotlin/CompilerCommandDefaultsTest.java184 com.facebook.buck.cd.model.java.BaseJarCommand.newBuilder()CODE
CRITICAL⚡…/serialization/kotlin/CompilerCommandDefaultsTest.java186 com.facebook.buck.cd.model.java.BuildTargetValue.newBuilder().setType(type))CODE
CRITICAL⚡…/serialization/kotlin/CompilerCommandDefaultsTest.java189 com.facebook.buck.cd.model.java.JarParameters.newBuilder().setJarPath("out.jar"))CODE
CRITICAL⚡…/serialization/kotlin/CompilerCommandDefaultsTest.java191 com.facebook.buck.cd.model.common.RelPathMapEntry.newBuilder()CODE
CRITICAL…/serialization/kotlin/CompilerCommandDefaultsTest.java211 com.facebook.buck.cd.model.kotlin.KotlinExtraParams.newBuilder()CODE
CRITICAL…d/src/com/facebook/buck/jvm/java/ClasspathChecker.java113 com.google.common.io.Files.getFileExtension(CODE
CRITICAL…k/jvm/java/stepsbuilder/javacd/main/JavaCDCommand.java62 com.facebook.buck.cd.model.java.BuildJavaCommand.newBuilder();CODE
CRITICAL…n/src/main/kotlin/compose/ClassStabilityTransformer.kt206 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrFieldSymbolImpl(),CODE
CRITICAL…i-gen/src/main/kotlin/compose/ComposerParamInjector.kt192 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl(),CODE
CRITICAL…i-gen/src/main/kotlin/compose/ComposerParamInjector.kt215 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl(),CODE
CRITICAL…i-gen/src/main/kotlin/compose/ComposerParamInjector.kt239 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl(),CODE
CRITICAL…ook/buck/jvm/kotlin/cd/workertool/KotlinCDCommand.java108 com.facebook.buck.cd.model.kotlin.BuildKotlinCommand.newBuilder();CODE
CRITICAL…ook/buck/jvm/kotlin/cd/workertool/KotlinCDCommand.java159 com.facebook.buck.cd.model.kotlin.ActionMetadata.newBuilder();CODE
CRITICAL…/buck/android/resources/MergeAssetsExecutableMain.java117 com.google.common.io.Files.hash(outputApkPath.toFile(), Hashing.sha1()).toString());CODE
CRITICAL…roid/resources/ExoResourcesRewriterExecutableMain.java72 com.google.common.io.Files.hash(Paths.get(exoResources).toFile(), Hashing.sha1())CODE
CRITICAL…ebook/buck/android/exopackage/ExopackageInstaller.java574 com.google.common.io.Files.write(CODE
CRITICAL⚡…com/facebook/buck/android/exopackage/DexExoHelper.java94 com.google.common.io.Files.toString(dexInfo.getMetadata().toFile(), StandardCharsets.UTF_8);CODE
CRITICAL⚡…com/facebook/buck/android/exopackage/DexExoHelper.java98 return com.google.common.io.Files.toString(CODE
CRITICAL⚡…com/facebook/buck/android/exopackage/DexExoHelper.java105 return com.google.common.io.Files.toString(CODE
CRITICAL…droid/src/com/facebook/buck/android/aapt/MiniAapt.java508 com.google.common.io.Files.getFileExtension(CODE
CRITICAL…android/src/com/facebook/buck/android/dex/D8Utils.java248 com.android.tools.r8.D8.run(d8Command);CODE
CRITICAL…android/src/com/facebook/buck/android/dex/D8Utils.java372 com.google.common.io.Files.hash(secondaryDexPath.toFile(), Hashing.sha1()).toString(),CODE
CRITICAL…roid/src/com/facebook/buck/installer/InstallError.java60 return com.facebook.buck.install.model.ErrorDetail.newBuilder()CODE
Self-Referential Comments64 hits · 192 pts
SeverityFileLineSnippetContext
MEDIUMapp/buck2_interpreter_for_build/src/plugins.rs229/// # Define a plugin kind for Rust proc macrosCOMMENT
MEDIUM…k2_action_impl/src/dynamic/dynamic_actions_callable.rs259/// # Create a DynamicActionsCallableCOMMENT
MEDIUMapp/buck2_daemon/src/daemon.rs208# This file is a cache directory tag created by Buck2.COMMENT
MEDIUM…reter/rule_defs/provider/builtin/configuration_info.rs435 /// # Create a copy and modify it without affecting the originalCOMMENT
MEDIUMpagable/src/pagable_arc.rs148/// # Creating a PagableArcCOMMENT
MEDIUMpagable/src/pagable_arc.rs482/// # Creating a PinnedPagableArcCOMMENT
MEDIUM…lues_data/targets-streaming-package-values.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…e_package_values_data/audit-package-values.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…package_values_data/targets-package-values.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ata/audit-package-values-missing-buck-file.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…_cell_data/audit-package-values-cross-cell.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…sibility_from_package_data/override/golden.uquery.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…visibility_from_package_data/simple/golden.uquery.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…isibility_from_package_data/inherit/golden.uquery.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…visibility_from_package_data/public/golden.uquery.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUMtests/core/materializer/test_clean_stale.py331 # Create a new daemon and build something else (could be any command that starts a daemon).STRING
MEDIUMtests/core/materializer/test_clean_stale.py381 # Create a new daemon and build something else (could be any command that starts a daemon).STRING
MEDIUMtests/core/docs/test_docs_data/prelude_docs.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…l/test_dynamic_data/happy_path_dynamic_ctx.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUMtests/core/common/io/file_watcher_scm_tests.py31 # Create a fileCOMMENT
MEDIUMtests/core/common/io/file_watcher_scm_tests.py43 # Create a fileCOMMENT
MEDIUMtests/core/common/io/file_watcher_scm_tests.py52 # Create a fileCOMMENT
MEDIUM⚡tests/core/common/io/file_watcher_scm_tests.py75 # Create a fileCOMMENT
MEDIUM⚡tests/core/common/io/file_watcher_scm_tests.py84 # Create a fileCOMMENT
MEDIUM…argets_data/json/golden.deeply_nested_subs_of_sub.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…dit_subtargets_data/json/golden.has_no_subtargets.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…t_subtargets_data/json/golden.deeply_nested_basic.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…dit/test_audit_subtargets_data/json/golden.nested.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…udit/test_audit_subtargets_data/json/golden.basic.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…log/test_user_event_log_data/instant_event.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…/log/test_user_event_log_data/action_event.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…e/query/aquery/test_aquery_data/bxl_target.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…/core/query/aquery/test_aquery_data/target.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ry/aquery/test_aquery_data/bxl_all_outputs.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…test_aquery_data/bxl_all_outputs_subtarget.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ore/query/aquery/test_aquery_data/bxl_deps.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ts/core/query/aquery/test_aquery_data/deps.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ery/test_aquery_data/all_outputs_subtarget.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ore/query/aquery/test_aquery_data/bxl_eval.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…/query/aquery/test_aquery_data/all_actions.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…s/core/query/aquery/test_aquery_data/rdeps.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…/query/aquery/test_aquery_data/all_outputs.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…e/query/aquery/test_aquery_data/bxl_filter.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…/core/query/aquery/test_aquery_data/filter.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…query/aquery/test_aquery_data/deps_bounded.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ry/aquery/test_aquery_data/bxl_all_actions.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…/multi_query_universe/multi_query_universe.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…a/unsorted/multi_query_print_provider_json.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ry_data/unsorted/query_print_provider_json.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…nd/test_target_metadata_data/test_metadata.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…ets_data/anon_targets_json_with_requesters.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUM…targets_data/anon_targets_basic_attributes.golden.json1# This file is @generated, regenerate by re-running test with `-- --env BUCK2_UPDATE_GOLDEN=1` appended to the test commCOMMENT
MEDIUMtests/e2e_util/buck_workspace.py135 # Create a temporary file to store all lines of extra buck config values.COMMENT
MEDIUMtests/e2e_util/helper/golden.py23 f"# This file is {'@'}generated, "CODE
MEDIUMtests/e2e_util/helper/golden.py348 # Create a new dict where the keys are 1 + a large numberCOMMENT
MEDIUMshim/third-party/rust/Cargo.toml10# This file is **not** used by cargo build of buck2.COMMENT
MEDIUMprelude/apple/tools/make_modulemap.py113 # Create a tree of nested modules, one for each path component.COMMENT
MEDIUM…elude/apple/tools/info_plist_processor/process_test.py274 # Create a temporary plist file to mergeCOMMENT
MEDIUM⚡…elude/apple/tools/info_plist_processor/process_test.py329 # Create a temporary plist file to merge with nested list of dictsCOMMENT
MEDIUM…elude/apple/tools/info_plist_processor/process_test.py375 # Create a non-trivial plist_data structure with nested dictionaries and arraysCOMMENT
4 more matches not shown…
Structural Annotation Overuse93 hits · 130 pts
SeverityFileLineSnippetContext
LOWapp/buck2_test/src/internal_runner.rs69 // Step 1: Execute listing using the dedicated listing commandCOMMENT
LOW⚡app/buck2_test/src/internal_runner.rs119 // Step 2: Parse listing output via Starlark callbackCOMMENT
LOW⚡app/buck2_test/src/internal_runner.rs124 // Step 3: Report discovered testsCOMMENT
LOW⚡app/buck2_action_impl/src/context/dynamic_output.rs227 /// # Step 1: Define the implementation functionCOMMENT
LOW⚡app/buck2_action_impl/src/context/dynamic_output.rs236 /// # Step 2: Create a factoryCOMMENT
LOW⚡app/buck2_action_impl/src/context/unsorted.rs143 /// # Step 1: Create a unique tag for tracking header dependenciesCOMMENT
LOW⚡app/buck2_action_impl/src/context/unsorted.rs151 /// # Step 2: Tag the inputs and depfile outputCOMMENT
LOW⚡app/buck2_action_impl/src/context/unsorted.rs160 /// # Step 3: Associate the tag with the "headers" labelCOMMENT
LOWapp/buck2_build_api/src/configure_targets.rs34// NOTE: This function returns Result<(..., Vec<Error>)> to support keep-going:COMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py69 # Step 1: Run the test with a failure. TPX_PLAYGROUND_FAIL makes theCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py84 # Step 2: Verify the report was written and contains the individual testCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py95 # Step 3: Feed the report back as a BRR retry input (still with theCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py113 # Step 4: The retry must actually run the test (not silently filter itCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py153 # Step 1: Run with TPX_PLAYGROUND_FAIL=1 to get a failure.COMMENT
LOW⚡tests/e2e/test/test_brr_unmanaged_retry.py166 # Step 2: Verify the report has the individual test name.COMMENT
LOW⚡tests/e2e/test/test_brr_unmanaged_retry.py173 # Step 3: Feed the report back WITHOUT TPX_PLAYGROUND_FAIL — the testCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py190 # Step 4: The retry must have produced a result — not "NO TESTS RAN".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py218 # Step 1: Run the test normally to get a valid run_id from the test infraCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py224 # Step 2: Create BRR file with suite-level "- main" entry, simulating aCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py295 # Step 1: Run the unmanaged type-check target normally to get a valid run_id.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py301 # Step 2: BRR file with a real existing unmanaged entry plus a synthetic newCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py570 # Step 1: a normal run of the real target just to get a valid run_id.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py577 # Step 2: BRR file naming a `- unmanaged` entry for a target that does notCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py665 # Step 2: Verify the report was written and contains a "- main" entry.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py672 # Step 3: Feed the report back as a BRR retry input, saving the retryCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py807 # Step 2: Verify the report has "- listing".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py814 # Step 3: Feed the report back WITHOUT TPX_PLAYGROUND_FATAL — listingCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py829 # Step 4: Execution is suppressed for listing-only targets. ListingCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py865 # Step 2: Verify the report contains a "- listing" entry.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py872 # Step 3: Feed the report back with --list-only (simulating CitadelCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py911 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py926 # Step 2: Verify the report has "- listing".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py933 # Step 3: Feed the report back with --list-only WITHOUTCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py967 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py982 # Step 2: Verify the report has "- listing".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py989 # Step 3: Feed the report back WITHOUT --list-only and WITHOUTCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py1004 # Step 4: TPX must suppress execution for listing-only targets evenCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py241 # Step 3: Run with BRR retry — the fix converts "- main" to a prefixCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py257 # Step 4: Assert tests actually ran (before the fix, this was "NO TESTS RAN")COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py320 # Step 3: Base-revision retry with new-test detection enabled, capturing theCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py385 # Step 1: target run — the unmanaged test FAILS on demand. Capture its run_id.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py396 # Step 2: BRR file naming the suite-level `- unmanaged` entry that failed.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py416 # Step 3: base-revision retry — still failing on base (BRR_SIM_FAIL=1).COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py485 # Step 1: target run — the labeled unmanaged test FAILS on demand. Capture run_id.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py496 # Step 2: BRR file naming the suite-level `- unmanaged` entry that failed.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py516 # Step 3: base-revision retry — still failing on base (BRR_SIM_FAIL=1).COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py598 # Step 3: base-revision retry with new-test detection enabled.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py649 # Step 1: Run the broken run_as_bundle target and save the failure report.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py689 # Step 4: The retry must reproduce the failure. Verify byCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py719 # Step 1: Run the broken listing target and save the failure report.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py736 # Step 2: Verify the report was written and contains a "- listing" entry.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py749 # Step 3: Feed the report back as a BRR retry input, saving the retryCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py766 # Step 4: The retry must reproduce the listing failure. Verify byCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py792 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py850 # Step 1: Run the broken listing target and save the failure report.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py891 # Step 4: The retry must reproduce the listing failure with --list-only.COMMENT
LOW.claude/skills/buck2-rule-basics/SKILL.md144### Step 0: SetupCOMMENT
LOW.claude/skills/buck2-rule-basics/SKILL.md202### Step 1: Create the Minimal Rule StubCOMMENT
LOW.claude/skills/buck2-rule-basics/SKILL.md262### Step 2: Add Source File AttributeCOMMENT
LOW.claude/skills/buck2-rule-basics/SKILL.md330### Step 3: Declare Output ArtifactCOMMENT
33 more matches not shown…
Empty Error Handlers26 hits · 130 pts
SeverityFileLineSnippetContext
HIGH…l_api/test_incremental_remote_action_data/increment.py84except FileExistsError:CODE
HIGHtests/core/daemon/test_concurrency.py42except FileNotFoundError:CODE
HIGHtests/core/executor/test_cancellation.py72except OSError:CODE
HIGHtests/e2e_util/api/lsp.py43except ProcessLookupError:CODE
HIGHtests/e2e_util/api/lsp.py161except (IndexError, ValueError):CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py335except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py662except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py686except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py733except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py763except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py804except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py862except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py888except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py923except BuckException:CODE
HIGHtests/e2e/test/test_brr_suite_level_retry.py979except BuckException:CODE
HIGHtests/e2e/test/test_test_inplace.py714except OSError:CODE
HIGHprelude/apple/tools/info_plist_processor/process.py66except OSError:CODE
HIGHprelude/apple/tools/resource_broker/utils.py25except json.JSONDecodeError:CODE
HIGHprelude/python/tools/make_par/sitecustomize.py307except OSError:CODE
HIGHprelude/python/tools/make_par/sitecustomize.py455except OSError:CODE
HIGHprelude/python/tools/make_par/sitecustomize.py476except OSError:CODE
HIGHprelude/cxx/dist_lto/tools/dist_lto_opt_gnu.py311except IOError:CODE
HIGHprelude/cxx/tools/stub_header_unit.py107except OSError:CODE
HIGHprelude/cxx/tools/stub_header_unit.py160except OSError:CODE
HIGHprelude/cxx/tools/stderr_to_file.py68except asyncio.InvalidStateError:CODE
HIGH…/com/facebook/buck/jvm/java/testdata/prebuilt/unzip.py20except Exception:CODE
Deep Nesting98 hits · 98 pts
SeverityFileLineSnippetContext
LOWapp/buck2_trailcam/build_bundle.py43CODE
LOWwebsite/gen_docs.py149CODE
LOWtests/core/resource_control/test_action_suspension.py50CODE
LOWtests/core/completion/test_completion.py26CODE
LOWtests/core/completion/test_completion.py41CODE
LOWtests/core/profile/test_profile.py331CODE
LOWtests/core/profile/test_profile.py368CODE
LOWtests/core/targets_command/test_targets_imports_toml.py19CODE
LOWtests/core/targets_command/test_targets_imports_json.py19CODE
LOWtests/core/targets_command/test_targets_imports.py19CODE
LOWtests/e2e_util/buck_workspace.py63CODE
LOWtests/e2e_util/buck_workspace.py480CODE
LOWtests/e2e_util/api/fixtures.py120CODE
LOWtests/e2e/test/test_configs.py260CODE
LOWtests/e2e/fdb/types.py32CODE
LOWtests/e2e/targets_command/test_targets.py152CODE
LOWdocs/developers/perf/scripts/heap_aggregate.py101CODE
LOWdocs/developers/perf/scripts/heap_aggregate.py180CODE
LOWdocs/developers/perf/scripts/heap_diff.py89CODE
LOWdocs/developers/perf/scripts/frag_symbolize.py163CODE
LOWdocs/developers/perf/scripts/heap_stacks.py130CODE
LOWprelude/apple/tools/swift_exec.py262CODE
LOWprelude/apple/tools/make_swift_interface.py126CODE
LOWprelude/apple/tools/make_swift_comp_db.py22CODE
LOWprelude/apple/tools/info_plist_processor/process.py19CODE
LOWprelude/apple/tools/info_plist_processor/process.py40CODE
LOWprelude/apple/tools/info_plist_processor/process.py72CODE
LOWprelude/apple/tools/info_plist_processor/process.py215CODE
LOWprelude/apple/tools/selective_debugging/macho_parser.py59CODE
LOW…elude/apple/tools/selective_debugging/scrubber_test.py288CODE
LOW…ools/code_signing/prepare_code_signing_entitlements.py23CODE
LOWprelude/apple/tools/index/merge_index_store.py77CODE
LOWprelude/apple/tools/bundling/incremental_state.py97CODE
LOWprelude/apple/tools/bundling/signing_context.py178CODE
LOWprelude/python/tools/__test_main__.py695CODE
LOWprelude/python/tools/make_py_package_modules.py74CODE
LOWprelude/python/tools/make_py_package_modules.py189CODE
LOWprelude/python/tools/make_py_package_modules.py283CODE
LOWprelude/python/tools/create_link_tree.py16CODE
LOWprelude/python/tools/compile.py79CODE
LOWprelude/python/tools/compile.py136CODE
LOWprelude/python/tools/extract.py61CODE
LOWprelude/python/tools/extract.py97CODE
LOWprelude/python/tools/wheel.py186CODE
LOWprelude/python/tools/make_py_package_manifest_module.py78CODE
LOWprelude/python/tools/make_par/sitecustomize.py26CODE
LOWprelude/python/tools/make_par/sitecustomize.py301CODE
LOWprelude/python/tools/make_par/sitecustomize.py31CODE
LOWprelude/python/tools/make_par/live_builder.py54CODE
LOWprelude/go_bootstrap/tools/go_wrapper.py19CODE
LOWprelude/js/worker_runner/worker_tool_runner.py391CODE
LOWprelude/js/worker_runner/worker_tool_runner.py425CODE
LOWprelude/rust/tools/shared_libraries_symlink_tree.py68CODE
LOWprelude/rust/tools/rustc_action.py251CODE
LOWprelude/rust/tools/rustc_action.py324CODE
LOWprelude/rust/tools/rustc_action.py405CODE
LOWprelude/rust/tools/failure_filter_action.py54CODE
LOWprelude/rust/tools/extract_link_action.py85CODE
LOWprelude/rust/tools/extract_link_action.py123CODE
LOWprelude/rust/tools/buildscript_run.py211CODE
38 more matches not shown…
Verbosity Indicators66 hits · 94 pts
SeverityFileLineSnippetContext
LOWapp/buck2_test/src/internal_runner.rs69 // Step 1: Execute listing using the dedicated listing commandCOMMENT
LOW⚡app/buck2_test/src/internal_runner.rs119 // Step 2: Parse listing output via Starlark callbackCOMMENT
LOW⚡app/buck2_test/src/internal_runner.rs124 // Step 3: Report discovered testsCOMMENT
LOWapp/buck2_core/src/cells.rs212// TODO(bobyf) we need to check if cells changedCOMMENT
LOW⚡app/buck2_action_impl/src/context/dynamic_output.rs227 /// # Step 1: Define the implementation functionCOMMENT
LOW⚡app/buck2_action_impl/src/context/dynamic_output.rs236 /// # Step 2: Create a factoryCOMMENT
LOW⚡app/buck2_action_impl/src/context/unsorted.rs143 /// # Step 1: Create a unique tag for tracking header dependenciesCOMMENT
LOW⚡app/buck2_action_impl/src/context/unsorted.rs151 /// # Step 2: Tag the inputs and depfile outputCOMMENT
LOW⚡app/buck2_action_impl/src/context/unsorted.rs160 /// # Step 3: Associate the tag with the "headers" labelCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py69 # Step 1: Run the test with a failure. TPX_PLAYGROUND_FAIL makes theCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py84 # Step 2: Verify the report was written and contains the individual testCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py95 # Step 3: Feed the report back as a BRR retry input (still with theCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py113 # Step 4: The retry must actually run the test (not silently filter itCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py153 # Step 1: Run with TPX_PLAYGROUND_FAIL=1 to get a failure.COMMENT
LOW⚡tests/e2e/test/test_brr_unmanaged_retry.py166 # Step 2: Verify the report has the individual test name.COMMENT
LOW⚡tests/e2e/test/test_brr_unmanaged_retry.py173 # Step 3: Feed the report back WITHOUT TPX_PLAYGROUND_FAIL — the testCOMMENT
LOWtests/e2e/test/test_brr_unmanaged_retry.py190 # Step 4: The retry must have produced a result — not "NO TESTS RAN".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py218 # Step 1: Run the test normally to get a valid run_id from the test infraCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py224 # Step 2: Create BRR file with suite-level "- main" entry, simulating aCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py295 # Step 1: Run the unmanaged type-check target normally to get a valid run_id.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py301 # Step 2: BRR file with a real existing unmanaged entry plus a synthetic newCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py570 # Step 1: a normal run of the real target just to get a valid run_id.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py577 # Step 2: BRR file naming a `- unmanaged` entry for a target that does notCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py665 # Step 2: Verify the report was written and contains a "- main" entry.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py672 # Step 3: Feed the report back as a BRR retry input, saving the retryCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py807 # Step 2: Verify the report has "- listing".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py814 # Step 3: Feed the report back WITHOUT TPX_PLAYGROUND_FATAL — listingCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py829 # Step 4: Execution is suppressed for listing-only targets. ListingCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py865 # Step 2: Verify the report contains a "- listing" entry.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py872 # Step 3: Feed the report back with --list-only (simulating CitadelCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py911 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py926 # Step 2: Verify the report has "- listing".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py933 # Step 3: Feed the report back with --list-only WITHOUTCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py949 # Step 4: --list-only must suppress execution even when listing succeeds.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py967 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py982 # Step 2: Verify the report has "- listing".COMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py989 # Step 3: Feed the report back WITHOUT --list-only and WITHOUTCOMMENT
LOW⚡tests/e2e/test/test_brr_suite_level_retry.py1004 # Step 4: TPX must suppress execution for listing-only targets evenCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py241 # Step 3: Run with BRR retry — the fix converts "- main" to a prefixCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py257 # Step 4: Assert tests actually ran (before the fix, this was "NO TESTS RAN")COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py320 # Step 3: Base-revision retry with new-test detection enabled, capturing theCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py385 # Step 1: target run — the unmanaged test FAILS on demand. Capture its run_id.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py396 # Step 2: BRR file naming the suite-level `- unmanaged` entry that failed.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py416 # Step 3: base-revision retry — still failing on base (BRR_SIM_FAIL=1).COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py485 # Step 1: target run — the labeled unmanaged test FAILS on demand. Capture run_id.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py496 # Step 2: BRR file naming the suite-level `- unmanaged` entry that failed.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py516 # Step 3: base-revision retry — still failing on base (BRR_SIM_FAIL=1).COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py598 # Step 3: base-revision retry with new-test detection enabled.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py649 # Step 1: Run the broken run_as_bundle target and save the failure report.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py689 # Step 4: The retry must reproduce the failure. Verify byCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py719 # Step 1: Run the broken listing target and save the failure report.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py736 # Step 2: Verify the report was written and contains a "- listing" entry.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py749 # Step 3: Feed the report back as a BRR retry input, saving the retryCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py766 # Step 4: The retry must reproduce the listing failure. Verify byCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py792 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py850 # Step 1: Run the broken listing target and save the failure report.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py891 # Step 4: The retry must reproduce the listing failure with --list-only.COMMENT
LOW⚡…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt441 // Step 1: root, wait-for-device, remountCOMMENT
LOW⚡…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt445 // Step 5: push apexCOMMENT
LOW⚡…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt449 // Step 6: rebootCOMMENT
6 more matches not shown…
Decorative Section Separators24 hits · 92 pts
SeverityFileLineSnippetContext
MEDIUMtools/starlark_fmt/lib/fuzz_starlark.rs25// ── AST types ────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/starlark_fmt/lib/fuzz_starlark.rs117// ── Leaf enums with fixed pools ──────────────────────────────────────────COMMENT
MEDIUMtools/starlark_fmt/lib/fuzz_starlark.rs198// ── Arbitrary impls ──────────────────────────────────────────────────────COMMENT
MEDIUMtools/starlark_fmt/lib/fuzz_starlark.rs488// ── Rendering ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs67//! ┌─────────────────┐COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs72//! └────────▲────────┘COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs74//! ┌─────────────────┼─────────────────┐COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs76//! ┌──────┴──────┐ ┌──────┴──────┐ ┌──────┴──────┐COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs80//! └─────────────┘ └─────────────┘ └─────────────┘COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs92//! ┌─────────┐ alloc_pinned ┌────────┐ release_pin ┌──────────┐COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs93//! │ PagedOut│ ───────────────►│ Pinned │───────────────►│ Unpinned │COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs94//! └─────────┘ (deserialize) └────────┘ (count→0, └──────────┘COMMENT
MEDIUM⚡pagable/src/pagable_arc.rs97//! └──────────────────────────────────────────────────────┘COMMENT
MEDIUM⚡…rlark-rust/starlark/src/values/layout/avalues/array.rs183 /// ┌─────────────────────────────┐ ← meCOMMENT
MEDIUM⚡…rlark-rust/starlark/src/values/layout/avalues/array.rs185 /// ├─────────────────────────────┤ ← + offset_of_payload()COMMENT
MEDIUM⚡…rlark-rust/starlark/src/values/layout/avalues/array.rs187 /// ├─────────────────────────────┤ ← + offset_of_extra()COMMENT
MEDIUM⚡…rlark-rust/starlark/src/values/layout/avalues/array.rs189 /// └─────────────────────────────┘COMMENT
MEDIUMprelude/apple/tools/make_vfsoverlay.py17# ----------------------------------COMMENT
MEDIUMprelude/cxx/tools/clang_tidy_wrapper.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMprelude/cxx/tools/clang_tidy_wrapper.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMprelude/cxx/tools/clang_tidy_wrapper.py77# ---------------------------------------------------------------------------COMMENT
MEDIUMprelude/cxx/tools/clang_tidy_wrapper.py79# ---------------------------------------------------------------------------COMMENT
MEDIUMprelude/cxx/tools/clang_tidy_wrapper.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMprelude/cxx/tools/clang_tidy_wrapper.py99# ---------------------------------------------------------------------------COMMENT
Cross-Language Confusion12 hits · 85 pts
SeverityFileLineSnippetContext
HIGHtests/core/resource_control/test_memory_reporting.py46 "BUCK2_TEST_RESOURCE_CONTROL_CONFIG": '{"status":"Off","init":"Systemd","memory_max":null,"memory_high":null,"meCODE
HIGHtests/core/common/io/file_watcher.py76# "incomplete_events_reason": null,COMMENT
HIGHtests/core/common/io/file_watcher.py78# "fresh_instance_data": null,COMMENT
HIGHprelude/python/tools/make_py_package_inplace.py62 _link=$(readlink "$_self" 2>/dev/null) || breakCODE
HIGHprelude/rust/tools/transitive_dependency_symlinks.py41# [ "../../libfoo.rlib", null ],COMMENT
HIGHprelude/rust/tools/transitive_dependency_symlinks.py50# If the cratename is null, then the artifact is simply symlinked from the basenameCOMMENT
HIGH⚡prelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py281 "-Wl,--undefined,Global",CODE
HIGH⚡prelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py282 "-Wl,--undefined,Local",CODE
HIGH⚡prelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py283 "-Wl,--undefined,MockConnection",CODE
HIGH⚡prelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py284 "-Wl,--undefined,Global",CODE
HIGH⚡prelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py285 "-Wl,--undefined,Local",CODE
HIGH⚡prelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py286 "-Wl,--undefined,MockConnection",CODE
Unused Imports46 hits · 46 pts
SeverityFileLineSnippetContext
LOW…core/incremental_api/test_incremental_remote_action.py12CODE
LOWtests/core/resource_control/test_action_suspension.py11CODE
LOW…urce_control/test_hybrid_execution_resource_control.py11CODE
LOWtests/core/vpnless/test_vpnless.py12CODE
LOWtests/core/http2/test_http2.py12CODE
LOWtests/core/executor/test_dep_files.py9CODE
LOWtests/core/ctargets_command/test_ctargets_transition.py9CODE
LOW…/core/ctargets_command/test_ctargets_target_hashing.py9CODE
LOWtests/core/trace_io/test_trace_io.py12CODE
LOWtests/core/client/test_agent_advice.py3CODE
LOWtests/core/client/test_agent_context.py9CODE
LOWtests/js_lockfiles/test_yarn_lockfiles.py11CODE
LOWtests/e2e_util/conftest.py13CODE
LOWtests/e2e/test_cxx_flags.py9CODE
LOW…le/tools/code_signing/provisioning_profile_metadata.py11CODE
LOWprelude/apple/tools/code_signing/info_plist_metadata.py11CODE
LOW…e/apple/tools/code_signing/list_codesign_identities.py11CODE
LOW…lude/apple/tools/code_signing/signing_context_types.py11CODE
LOWprelude/apple/tools/code_signing/identity.py11CODE
LOW…e/tools/code_signing/provisioning_profile_selection.py11CODE
LOWprelude/apple/tools/code_signing/app_id.py11CODE
LOWprelude/apple/tools/bundling/signing_info.py10CODE
LOWprelude/apple/tools/bundling/assemble_bundle_types.py11CODE
LOWprelude/apple/tools/bundling/incremental_state.py11CODE
LOW…ude/apple/tools/bundling/provisioning_manifest_main.py9CODE
LOWprelude/apple/tools/bundling/main.py9CODE
LOWprelude/apple/tools/bundling/signing_context.py9CODE
LOWprelude/apple/tools/bundling/signing_context_data.py9CODE
LOWprelude/apple/tools/bundling/logging_utils.py9CODE
LOWprelude/python/tools/gen_bytecode_bundle.py28CODE
LOWprelude/python/tools/wheel.py9CODE
LOWprelude/python/tools/sourcedb_merger/tests/__init__.py10CODE
LOWprelude/python/tools/sourcedb_merger/tests/__init__.py12CODE
LOWprelude/python/tools/sourcedb_merger/tests/__init__.py14CODE
LOWprelude/python/tools/make_par/sitecustomize.py11CODE
LOWprelude/python/tools/tests/gen_bytecode_bundle_test.py10CODE
LOWprelude/python/runtime/__par__/bootstrap.py11CODE
LOWprelude/python/sourcedb/tests/pyrefly_test.py9CODE
LOWprelude/cxx/tools/clang_tidy_wrapper.py27CODE
LOWprelude/java/tools/gen_class_to_source_map.py9CODE
LOW…/haskell/tools/tests/test_script_template_processor.py10CODE
LOWprelude/android/tools/create_jdk_system_image.py23CODE
LOWprelude/android/tools/sort_pre_dexed_files.py28CODE
LOWprelude/android/tools/merge_sequence.py106CODE
LOWprelude/android/tools/tests/test_filter_dex.py16CODE
LOW…oid/tools/tests/test_combine_apk_with_relinked_libs.py15CODE
AI Slop Vocabulary12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMapp/buck2_interpreter_for_build/src/nodes/attr_spec.rs183 // For now `within_view` is always set, but let's make code more robust.COMMENT
MEDIUMapp/buck2_action_impl/src/context/copy.rs248 /// duplicating their bytes while staying robust to rebuilds.COMMENT
MEDIUMstarlark-rust/starlark/src/values/types/function.rs321 /// Essentially a `&dyn Fn(Value, Heap) -> Result<Value>`, but expanded out by hand, andCOMMENT
MEDIUMstarlark-rust/starlark/src/eval/bc/writer.rs491 // Definitely assigned save/restore is redundant here, it is performed more preciselyCOMMENT
MEDIUMstarlark-rust/starlark/src/eval/compiler/call.rs177 // Definitely assigned local variable.COMMENT
MEDIUMtests/core/executor/test_hash_all_commands.py37 # Disable remote cache lookup so we actually utilize the local depfile cache for this testCOMMENT
MEDIUMtests/e2e_util/buck_workspace.py141 # harness build real targets and stay on the use case their executionCOMMENT
MEDIUMtests/e2e_util/helper/utils.py147 # The test harness's extra external config is part of normal Buck configCOMMENT
MEDIUMtests/lint_rules/no_inplace_true_in_build_isolated.py22# `fixit`'s own test harness lints every VALID/INVALID case under a syntheticCOMMENT
MEDIUMprelude/python/tools/__test_main__.py232 # the builtin python test harness). If we see one, recurse on it.COMMENT
MEDIUMprelude/python/tools/__test_main__.py236 # The builtin python test harness sets test references to `None`COMMENT
MEDIUM…id/src/com/facebook/buck/util/zip/EntryAccounting.java169 // Essentially, we're about to set bits 1 and 2 to indicate to tools such as zipinfo whichCOMMENT
Excessive Try-Catch Wrapping23 hits · 26 pts
SeverityFileLineSnippetContext
LOWtests/core/interpreter/test_cancellation.py78 except Exception:CODE
LOWtests/core/daemon/test_concurrency.py32 except Exception as error:CODE
LOWtests/e2e_util/api/buck_result.py332 except Exception as e:CODE
LOWtests/e2e_util/api/buck_result.py440 except Exception as e:CODE
LOWprelude/apple/tools/selective_debugging/main.py59 except Exception as e:CODE
LOW…ls/code_signing/provisioning_profile_selection_test.py118 except Exception:CODE
LOW…ls/code_signing/provisioning_profile_selection_test.py170 except Exception:CODE
LOWprelude/apple/tools/code_signing/app_id.py71 except Exception as e:CODE
LOWprelude/apple/tools/bundling/main.py549 except Exception:STRING
LOWprelude/apple/tools/bundling/main.py597 except Exception:STRING
LOWprelude/apple/tools/bundling/main.py691 except Exception:STRING
LOWprelude/python/tools/compile.py130 except Exception:CODE
LOWprelude/python/tools/make_par/sitecustomize.py63 except Exception:CODE
LOW⚡prelude/python/tools/make_par/sitecustomize.py555 except Exception:CODE
LOW⚡prelude/python/tools/make_par/sitecustomize.py561 except Exception:CODE
MEDIUMprelude/python/tools/make_par/sitecustomize.py536def __startup__() -> None:CODE
LOWprelude/js/worker_runner/worker_tool_runner.py469 except Exception:CODE
LOWprelude/rust/tools/from_any_dir.py69 except Exception:CODE
MEDIUMprelude/cxx/tools/stub_header_unit.py135 print("Error: No output file specified with -o", file=sys.stderr)CODE
MEDIUMprelude/cxx/tools/check_nonempty_output.py34 print("Error: Output file is empty.")CODE
LOWprelude/kotlin/tools/compile_kotlin/compile_kotlin.py260 except Exception as e:CODE
LOWprelude/kotlin/tools/typechecker/typechecker.py288 except Exception as e:CODE
LOW…/com/facebook/buck/jvm/java/testdata/prebuilt/unzip.py20 except Exception:CODE
Modern Structural Boilerplate10 hits · 11 pts
SeverityFileLineSnippetContext
LOW⚡…rpreter/test_package_file_visibility_exempt_targets.py21def set_default_intersection(buck: Buck, mode: str) -> None:CODE
LOW⚡…terpreter/test_package_file_visibility_intersection.py18def set_default_intersection(buck: Buck, mode: str) -> None:CODE
LOWtests/core/install/test_install.py22def _setup_sandbox(buck: Buck) -> None:CODE
LOWtests/core/trace_io/test_trace_io.py60def _setup_buckconfig_digest_algorithms(buck: Buck) -> None:CODE
LOWtests/core/external_cells/test_git.py40def _set_revision(rev: str, cwd: Path) -> None:CODE
LOWtests/e2e_util/api/buck.py50 def set_buckd(self, toggle: bool) -> None:CODE
LOWtests/e2e_util/api/buck.py57 def set_isolation_prefix(self, isolation_prefix: str) -> None:CODE
LOWtests/e2e_util/api/executable.py47 def set_env(self, key: str, value: str) -> None:CODE
LOWtests/e2e_util/api/executable.py53 def set_windows_cmd_option(self, key: WindowsCmdOption, value: bool) -> None:CODE
LOWprelude/python/tools/make_par/sitecustomize.py239 def _setup_child_env() -> None:CODE
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOW…uck2_interpreter_for_build/src/interpreter/selector.rs661/// # Check if any branch has more than 2 itemsCOMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/targetset.rs272/// # Check if sets are equalCOMMENT
LOW…k2_build_api/src/interpreter/rule_defs/cmd_args/typ.rs879 /// # Check if command has any inputsCOMMENT
LOWtests/e2e_util/buck_workspace.py287 # Check if mkscratch is available, fall back to tempfile.gettempdir() if notCOMMENT
LOWprelude/apple/tools/resource_broker/ios.py171 # Check if device is a device type identifierCOMMENT
LOWprelude/cxx/tools/check_nonempty_output.py32 # Check if the output file is not emptyCOMMENT
LOWprelude/cxx/tools/makefile_to_dep_file.py67 # Check if this was escaped by looking at the previous character. If itCOMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOW…2_interpreter_for_build/src/attrs/visibility_record.rs38 /// Example usage:COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs560 /// Example usage:COMMENT
LOWapp/buck2_query_derive/src/lib.rs24/// Example usage:COMMENT
LOWdocs/developers/perf/scripts/peak_watch.sh16# Usage:COMMENT
LOWdocs/developers/perf/scripts/measure.sh14# Usage:COMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
LOWapp/buck2_event_log/src/utils.rs93 // Don't forget to update these lists when this is updated:COMMENT
LOWstarlark-rust/starlark/src/values/layout/heap/arena.rs472 /// Don't forget to call this function to release memory.COMMENT
MEDIUMtests/core/cells/test_file_watcher_resolution.py37 # This is just one example, there's a thousand other ways that you can change the `CellResolver`COMMENT
LOWtests/e2e_util/buck_workspace.py214 # FYI: if you remove this, make sure to remove it from external_buckconfig tests tooCOMMENT
Fake / Example Data7 hits · 6 pts
SeverityFileLineSnippetContext
LOWapp/buck2_cmd_log_client/src/what_ran.rs623 digest: "placeholder",CODE
LOWapp/buck2_cmd_log_client/src/what_ran.rs703 "digest": "placeholder",CODE
LOWapp/buck2_event_observer/src/what_ran.rs483 action_digest: "placeholder".to_owned(),CODE
LOWapp/buck2_http/src/proxy.rs368 vec!["user@example.com"],CODE
LOWtests/core/executor/test_dep_files.py1708 ("placeholder", "cannot be combined with placeholder output"),CODE
LOW…/test/java/com/facebook/demoapp/model/PostModelTest.kt22 PostModel("Jane Doe", 123, "This is a post", 20)CODE
LOW…/test/java/com/facebook/demoapp/model/PostModelTest.kt32 PostModel("Jane Doe", 0, "This is a post", 20)CODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMapp/buck2_directory/src/directory/builder.rs1241 // Empty scaffold ∪ X = X, marking included.COMMENT
MEDIUMapp/buck2_directory/src/directory/builder.rs1248 // Exhaustively-empty ∪ empty scaffold joins to exhaustively empty. (A non-empty RHSCOMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/core/help/test_help.py34CODE
LOWtests/e2e_util/buck_workspace.py590CODE
LOWtests/e2e_util/helper/utils.py42CODE
LOWprelude/apple/tools/code_signing/codesign_bundle.py343CODE
LOWprelude/java/tools/fat_jar.py172CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWapp/buck2_node/src/metadata/value.rs26 // TODO: implement our own equality here that preserves orderingCOMMENT