Repository Analysis

facebook/buck2

Build system, successor to Buck

4.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of facebook/buck2, a Rust project with 4,370 GitHub stars. SynthScan v2.0 examined 888,522 lines of code across 5253 source files, recording 3234 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 4.6 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.4K
Stars
Rust
Language
888.5K
Lines of Code
5.3K
Files
3.2K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 38HIGH 11MEDIUM 97LOW 3088

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3234 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1335 hits · 1428 pts
SeverityFileLineSnippetContext
LOWtest.py233def _get_default_rustc_warnings() -> list[str]: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.rs364 /// def _impl_read_package_visibility(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/functions.rs391 /// 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/uquery.rs466 /// def _targets_in_buildfile_impl(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs490 /// def _impl_resolved_attrs_lazy(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs519 /// def _impl_resolved_attrs_eager(ctx):COMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/nodes/configured.rs1070 /// 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.py34def benchmark_call_native_len():CODE
LOWstarlark-rust/starlark/src/typing/tests/callable.rs48def good_function_pos_or_named(x: str, y: int) -> None:CODE
LOWstarlark-rust/starlark/src/typing/tests/callable.rs57def bad_function_missing_params(x: str) -> None:CODE
LOWstarlark-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
LOWwebsite/gen_docs.py162def generate_help_docs_subcommand(buck: str, args: List[str]) -> str:CODE
LOWwebsite/gen_docs.py169def generate_subcommand_short_help(buck: str, args: List[str]) -> str:CODE
LOWwebsite/gen_docs.py178def 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
LOWtests/core/interpreter/test_cpu_instruction_count.py21async 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.py56async def test_audit_package_values_visibility_cap_intersection(CODE
LOW…s/core/interpreter/test_package_file_package_values.py69async def test_targets_package_values(buck: Buck) -> None:CODE
LOW…s/core/interpreter/test_package_file_package_values.py78async def test_targets_package_values_regex(buck: Buck) -> None:CODE
LOW…s/core/interpreter/test_package_file_package_values.py132async def test_targets_streaming_package_values(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_relative_paths.py25async def test_relative_path_left_allowed_dir(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_relative_paths.py33async def test_relative_path_has_symlink(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_relative_paths.py42async def test_relative_path_in_attribute_default_current(buck: Buck) -> None:CODE
LOWtests/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
LOWtests/core/interpreter/test_deprecated_config.py38async def test_not_deprecated_config(buck: Buck, root: str) -> None:CODE
LOWtests/core/interpreter/test_deprecated_config.py52async def test_no_deprecated_cell_config(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_missing_source_file.py22async def test_missing_source_file_when_hard_errors_enabled(buck: Buck) -> None:CODE
LOWtests/core/interpreter/test_missing_source_file.py34async def test_missing_source_file_when_hard_errors_disabled(buck: Buck) -> None:CODE
LOW…e/interpreter/test_package_values_missing_buck_file.py18async def test_package_values_missing_buck_file(buck: Buck) -> None:CODE
LOW…interpreter/test_peak_allocated_bytes_exceeds_limit.py24async def test_peak_allocated_bytes_exceeds_limit(buck: Buck) -> None:CODE
LOW…sts/core/interpreter/test_package_values_cross_cell.py18async def test_audit_package_values_cross_cell(buck: Buck) -> None:CODE
LOW…terpreter/test_package_file_visibility_intersection.py19async def test_optin_inside_consumer_can_depend_on_public_target(CODE
LOW…terpreter/test_package_file_visibility_intersection.py27async def test_optin_clips_public_target_for_outside_consumer(CODE
LOW…terpreter/test_package_file_visibility_intersection.py43async def test_optin_cap_blocks_target_visibility_leaking_outside_cap(CODE
LOW…terpreter/test_package_file_visibility_intersection.py59async def test_optin_target_own_visibility_match_passes(buck: Buck) -> None:CODE
LOW…terpreter/test_package_file_visibility_intersection.py65async def test_inherit_true_child_can_still_tighten_cap(buck: Buck) -> None:CODE
LOW…terpreter/test_package_file_visibility_intersection.py81async def test_package_with_omitted_visibility_does_not_empty_cap(CODE
LOW…terpreter/test_package_file_visibility_intersection.py93async def test_optin_preserves_parent_within_view(buck: Buck) -> None:CODE
LOW…terpreter/test_package_file_visibility_intersection.py108async def test_call_from_bzl_is_rejected(buck: Buck) -> None:CODE
LOW…ore/configurations/test_toolchain_overconfiguration.py17async def test_configuration_rule_unbound(buck: Buck) -> None:CODE
LOWtests/core/configurations/test_target_incompatible.py21async def test_incompatible_target_skipping(buck: Buck) -> None:CODE
LOWtests/core/configurations/test_target_incompatible.py47async def test_dep_incompatible_target(buck: Buck, target_pattern: str) -> None:CODE
LOWtests/core/configurations/test_target_incompatible.py60async def test_incompatible_target_with_incompatible_dep(buck: Buck) -> None:CODE
LOWtests/core/configurations/test_target_incompatible.py71async def test_exec_dep_transitive_incompatible(buck: Buck) -> None:CODE
LOWtests/core/configurations/test_target_incompatible.py78async def test_exec_dep_transitive_incompatible_post_transition(buck: Buck) -> None:CODE
LOWtests/core/configurations/test_target_incompatible.py98async def test_error_on_dep_only_incompatible(CODE
LOWtests/core/configurations/test_target_incompatible.py116async def test_error_on_dep_only_incompatible_conf(buck: Buck) -> None:CODE
1275 more matches not shown…
Over-Commented Block1434 hits · 1416 pts
SeverityFileLineSnippetContext
LOWrust-project.sh1#!/usr/bin/env bashCOMMENT
LOWbuck2.py1#!/usr/bin/env python3COMMENT
LOWhost_sharing/src/host_sharing.rs21COMMENT
LOWapp/buck2_cli_proto/src/lib.rs201macro_rules! define_request {COMMENT
LOWapp/buck2_file_watcher/src/watchman/core.rs61 #[buck2(input)]COMMENT
LOWapp/buck2_file_watcher/src/watchman/core.rs321/// commands to be sent to the SyncableQueryHandler.COMMENT
LOWapp/buck2_file_watcher/src/watchman/interface.rs281 let has_new_mergebase = self.last_mergebase.as_ref() != mergebase.as_ref();COMMENT
LOWapp/buck2_file_watcher/src/edenfs/interface.rs701 // Mergebase has not changed (or dice_clear_on_mergebase_change is disabled) -COMMENT
LOWapp/buck2_file_watcher/src/edenfs/interface.rs721 // In the case of lost changes, we need to treat the DICE map and dep files asCOMMENT
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/trace_io.rs41/// Enable I/O tracing in the buck daemon so we keep track of which filesCOMMENT
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.rs181COMMENT
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.rs261 /// use buck2_fs::paths::forward_rel_path::ForwardRelativePathBuf;COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs301 /// use buck2_fs::paths::forward_rel_path::ForwardRelativePath;COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs321 }COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs341 /// ForwardRelativePath::new("usr/bin/ls")?.file_name()COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs401 } else {COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs421 /// assert_eq!(COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs501 &self.0[..self.0.len() - suffix.0.len() - 1],COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs521 /// # buck2_error::Ok(())COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs541 /// assert!(!path.ends_with(ForwardRelativePath::new("oo")?));COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs561 /// `.`s within;COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs641 /// );COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs661 /// Append a relative system path, obtained from e.g. `read_link`.COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs681 /// assert_eq!(it.next(), Some(FileName::unchecked_new("foo")));COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs701 /// assert_eq!(COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs801 }COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs821 /// );COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs881 /// use buck2_fs::paths::RelativePath;COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs901 /// pathCOMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs1081 ///COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs1101 }COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs1141 ///COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs1181 /// assert!(ForwardRelativePathBuf::try_from("./bar".to_owned()).is_err());COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs1201 /// use std::path::PathBuf;COMMENT
LOWapp/buck2_fs/src/paths/forward_rel_path.rs1221 }COMMENT
LOWapp/buck2_fs/src/paths/file_name.rs121impl AsRef<ForwardRelativePath> for FileName {COMMENT
LOWapp/buck2_fs/src/paths/file_name.rs181 /// * The entire file name if the file name begins with `.` and has no otherCOMMENT
LOWapp/buck2_fs/src/paths/abs_path.rs181 ///COMMENT
LOWapp/buck2_fs/src/paths/abs_path.rs201 /// );COMMENT
LOWapp/buck2_fs/src/paths/abs_path.rs221 /// path.with_added_extension(""),COMMENT
1374 more matches not shown…
Hallucination Indicators38 hits · 450 pts
SeverityFileLineSnippetContext
CRITICALapp/buck2_core/src/target/label/label.rs103 self.0.header.header.hash.hash(state);CODE
CRITICALapp/buck2_core/src/target/label/label.rs139 self.0.header.header.pkg.dupe()CODE
CRITICALapp/buck2_server/src/ctx.rs771 self.cmd_ctx.base_context.daemon.memory_tracker.is_some(),CODE
CRITICALapp/buck2_server/src/ctx.rs890 self.cmd_ctx.base_context.daemon.materializer.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs891 self.cmd_ctx.base_context.daemon.blocking_executor.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs895 self.cmd_ctx.base_context.daemon.forkserver.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs898 self.cmd_ctx.base_context.daemon.io.project_root().dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs900 self.cmd_ctx.base_context.daemon.paranoid.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs904 self.cmd_ctx.base_context.daemon.memory_tracker.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs905 self.cmd_ctx.base_context.daemon.incremental_db_state.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs908 self.cmd_ctx.base_context.daemon.daemon_id.dupe(),CODE
CRITICALapp/buck2_server/src/ctx.rs910 data.set_blocking_executor(self.cmd_ctx.base_context.daemon.blocking_executor.dupe());CODE
CRITICALapp/buck2_server/src/ctx.rs911 data.set_http_client(self.cmd_ctx.base_context.daemon.http_client.dupe());CODE
CRITICALapp/buck2_server/src/ctx.rs912 data.set_materializer(self.cmd_ctx.base_context.daemon.materializer.dupe());CODE
CRITICALapp/buck2_server/src/ctx.rs934 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…d/src/com/facebook/buck/jvm/java/ClasspathChecker.java113 com.google.common.io.Files.getFileExtension(CODE
CRITICAL…k/jvm/java/stepsbuilder/javacd/main/JavaCDCommand.java61 com.facebook.buck.cd.model.java.BuildJavaCommand.newBuilder();CODE
CRITICAL…n/src/main/kotlin/compose/ClassStabilityTransformer.kt173 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrFieldSymbolImpl(),CODE
CRITICAL…i-gen/src/main/kotlin/compose/ComposerParamInjector.kt164 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl(),CODE
CRITICAL…i-gen/src/main/kotlin/compose/ComposerParamInjector.kt187 symbol = org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl(),CODE
CRITICAL…i-gen/src/main/kotlin/compose/ComposerParamInjector.kt211 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.java120 com.google.common.io.Files.hash(outputApkPath.toFile(), Hashing.sha1()).toString());CODE
CRITICAL…roid/resources/ExoResourcesRewriterExecutableMain.java106 com.google.common.io.Files.hash(Paths.get(exoResources).toFile(), Hashing.sha1())CODE
CRITICAL…ebook/buck/android/exopackage/ExopackageInstaller.java343 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.java529 com.google.common.io.Files.getFileExtension(CODE
CRITICAL…android/src/com/facebook/buck/android/dex/D8Utils.java151 com.android.tools.r8.D8.run(d8Command);CODE
CRITICAL…android/src/com/facebook/buck/android/dex/D8Utils.java248 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 Comments60 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUMapp/buck2_interpreter_for_build/src/plugins.rs224/// # Define a plugin kind for Rust proc macrosCOMMENT
MEDIUM…k2_action_impl/src/dynamic/dynamic_actions_callable.rs265/// # Create a DynamicActionsCallableCOMMENT
MEDIUMapp/buck2_daemon/src/daemon.rs206# This file is a cache directory tag created by Buck2.COMMENT
MEDIUM…reter/rule_defs/provider/builtin/configuration_info.rs404 /// # 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.py224 # Create a new daemon and build something else (could be any command that starts a daemon).COMMENT
MEDIUMtests/core/materializer/test_clean_stale.py257 # Create a new daemon and build something else (could be any command that starts a daemon).COMMENT
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
MEDIUMtests/core/common/io/file_watcher_scm_tests.py75 # Create a fileCOMMENT
MEDIUMtests/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…/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…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
MEDIUMtests/e2e_util/buck_workspace.py130 # Create a temporary file to store all lines of extra buck config values.COMMENT
MEDIUMtests/e2e_util/helper/golden.py20 f"# This file is {'@'}generated, "CODE
MEDIUMtests/e2e_util/helper/golden.py292 # 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
MEDIUM…elude/apple/tools/info_plist_processor/process_test.py420 # Create a non-trivial plist_data structure with nested dictionaries and arraysCOMMENT
MEDIUMprelude/rust/tools/transitive_dependency_symlinks.py143 # Create the symlinks in the directory (i.e., not the relative path)COMMENT
MEDIUMprelude/cxx/tools/stub_header_unit.py122 # Create a temporary file for the dependency output (currently we ignore it, but inCOMMENT
MEDIUM…oid/tools/tests/test_combine_apk_with_relinked_libs.py245 # Create an empty relinked dirCOMMENT
Structural Annotation Overuse85 hits · 122 pts
SeverityFileLineSnippetContext
LOWapp/buck2_test/src/internal_runner.rs63 // Step 1: Execute listing using the dedicated listing commandCOMMENT
LOWapp/buck2_test/src/internal_runner.rs113 // Step 2: Parse listing output via Starlark callbackCOMMENT
LOWapp/buck2_test/src/internal_runner.rs118 // Step 3: Report discovered testsCOMMENT
LOWapp/buck2_action_impl/src/context/dynamic_output.rs227 /// # Step 1: Define the implementation functionCOMMENT
LOWapp/buck2_action_impl/src/context/dynamic_output.rs236 /// # Step 2: Create a factoryCOMMENT
LOWapp/buck2_action_impl/src/context/unsorted.rs144 /// # Step 1: Create a unique tag for tracking header dependenciesCOMMENT
LOWapp/buck2_action_impl/src/context/unsorted.rs152 /// # Step 2: Tag the inputs and depfile outputCOMMENT
LOWapp/buck2_action_impl/src/context/unsorted.rs161 /// # Step 3: Associate the tag with the "headers" labelCOMMENT
LOWapp/buck2_build_api/src/configure_targets.rs35// NOTE: This function returns Result<(..., Vec<Error>)> to support keep-going:COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py218 # Step 1: Run the test normally to get a valid run_id from the test infraCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py224 # Step 2: Create BRR file with suite-level "- main" entry, simulating aCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py295 # Step 1: Run the unmanaged type-check target normally to get a valid run_id.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py301 # Step 2: BRR file with a real existing unmanaged entry plus a synthetic newCOMMENT
LOWtests/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
LOWtests/e2e/test/test_brr_suite_level_retry.py577 # Step 2: BRR file naming a `- unmanaged` entry for a target that does notCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py665 # Step 2: Verify the report was written and contains a "- main" entry.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py672 # Step 3: Feed the report back as a BRR retry input, saving the retryCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py807 # Step 2: Verify the report has "- listing".COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py814 # Step 3: Feed the report back WITHOUT TPX_PLAYGROUND_FATAL — listingCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py829 # Step 4: Execution is suppressed for listing-only targets. ListingCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py865 # Step 2: Verify the report contains a "- listing" entry.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py872 # Step 3: Feed the report back with --list-only (simulating CitadelCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py911 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py926 # Step 2: Verify the report has "- listing".COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py933 # Step 3: Feed the report back with --list-only WITHOUTCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py967 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py982 # Step 2: Verify the report has "- listing".COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py989 # Step 3: Feed the report back WITHOUT --list-only and WITHOUTCOMMENT
LOWtests/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
LOW.claude/skills/buck2-rule-basics/SKILL.md382### Step 4: Create an ActionCOMMENT
LOW.claude/skills/buck2-rule-basics/SKILL.md453### Step 5: Understanding TargetsSTRING
LOW.claude/skills/buck2-rule-basics/SKILL.md548### Step 6: Add Configuration Support with select()STRING
LOW.claude/skills/buck2-rule-basics/SKILL.md644### Step 7: Add DependenciesSTRING
LOW.claude/skills/buck2-rule-basics/SKILL.md771### Step 8: Rules vs MacrosSTRING
LOWdocs/rule_authors/anon_targets.md339 # Step 2: now link them all togetherCOMMENT
LOWdocs/rule_authors/anon_targets.md353 # Step 1: compile all my individual filesCOMMENT
LOWdocs/getting_started/tutorial_adding_tests.md29## Step 1: Create a dedicated directory for our testsCOMMENT
25 more matches not shown…
Deep Nesting92 hits · 92 pts
SeverityFileLineSnippetContext
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.py58CODE
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/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.py151CODE
LOWprelude/python/tools/__test_main__.py675CODE
LOWprelude/python/tools/make_py_package_modules.py75CODE
LOWprelude/python/tools/make_py_package_modules.py192CODE
LOWprelude/python/tools/make_py_package_modules.py286CODE
LOWprelude/python/tools/create_link_tree.py17CODE
LOWprelude/python/tools/compile.py80CODE
LOWprelude/python/tools/compile.py136CODE
LOWprelude/python/tools/extract.py62CODE
LOWprelude/python/tools/extract.py98CODE
LOWprelude/python/tools/wheel.py180CODE
LOWprelude/python/tools/make_py_package_manifest_module.py53CODE
LOWprelude/python/tools/make_par/sitecustomize.py27CODE
LOWprelude/python/tools/make_par/sitecustomize.py248CODE
LOWprelude/python/tools/make_par/sitecustomize.py32CODE
LOWprelude/python/tools/make_par/live_builder.py45CODE
LOWprelude/go_bootstrap/tools/go_wrapper.py19CODE
LOWprelude/js/worker_runner/worker_tool_runner.py277CODE
LOWprelude/js/worker_runner/worker_tool_runner.py311CODE
LOWprelude/rust/tools/shared_libraries_symlink_tree.py68CODE
LOWprelude/rust/tools/rustc_action.py229CODE
LOWprelude/rust/tools/rustc_action.py241CODE
LOWprelude/rust/tools/rustc_action.py322CODE
LOWprelude/rust/tools/failure_filter_action.py54CODE
LOWprelude/rust/tools/extract_link_action.py58CODE
LOWprelude/rust/tools/buildscript_run.py211CODE
LOWprelude/cxx/dist_lto/tools/dist_lto_planner_darwin.py183CODE
LOWprelude/cxx/dist_lto/tools/dist_lto_prepare_gnu.py51CODE
LOWprelude/cxx/dist_lto/tools/dist_lto_prepare_gnu.py75CODE
LOWprelude/cxx/dist_lto/tools/dist_lto_planner_gnu.py67CODE
LOWprelude/cxx/dist_lto/tools/dist_lto_planner_gnu.py108CODE
32 more matches not shown…
Verbosity Indicators58 hits · 87 pts
SeverityFileLineSnippetContext
LOWapp/buck2_test/src/internal_runner.rs63 // Step 1: Execute listing using the dedicated listing commandCOMMENT
LOWapp/buck2_test/src/internal_runner.rs113 // Step 2: Parse listing output via Starlark callbackCOMMENT
LOWapp/buck2_test/src/internal_runner.rs118 // Step 3: Report discovered testsCOMMENT
LOWapp/buck2_core/src/cells.rs213// TODO(bobyf) we need to check if cells changedCOMMENT
LOWapp/buck2_action_impl/src/context/dynamic_output.rs227 /// # Step 1: Define the implementation functionCOMMENT
LOWapp/buck2_action_impl/src/context/dynamic_output.rs236 /// # Step 2: Create a factoryCOMMENT
LOWapp/buck2_action_impl/src/context/unsorted.rs144 /// # Step 1: Create a unique tag for tracking header dependenciesCOMMENT
LOWapp/buck2_action_impl/src/context/unsorted.rs152 /// # Step 2: Tag the inputs and depfile outputCOMMENT
LOWapp/buck2_action_impl/src/context/unsorted.rs161 /// # Step 3: Associate the tag with the "headers" labelCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py218 # Step 1: Run the test normally to get a valid run_id from the test infraCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py224 # Step 2: Create BRR file with suite-level "- main" entry, simulating aCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py295 # Step 1: Run the unmanaged type-check target normally to get a valid run_id.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py301 # Step 2: BRR file with a real existing unmanaged entry plus a synthetic newCOMMENT
LOWtests/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
LOWtests/e2e/test/test_brr_suite_level_retry.py577 # Step 2: BRR file naming a `- unmanaged` entry for a target that does notCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py665 # Step 2: Verify the report was written and contains a "- main" entry.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py672 # Step 3: Feed the report back as a BRR retry input, saving the retryCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py807 # Step 2: Verify the report has "- listing".COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py814 # Step 3: Feed the report back WITHOUT TPX_PLAYGROUND_FATAL — listingCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py829 # Step 4: Execution is suppressed for listing-only targets. ListingCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py865 # Step 2: Verify the report contains a "- listing" entry.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py872 # Step 3: Feed the report back with --list-only (simulating CitadelCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py911 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py926 # Step 2: Verify the report has "- listing".COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py933 # Step 3: Feed the report back with --list-only WITHOUTCOMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py949 # Step 4: --list-only must suppress execution even when listing succeeds.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py967 # Step 1: Run with TPX_PLAYGROUND_FATAL=1 to make listing crash.COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py982 # Step 2: Verify the report has "- listing".COMMENT
LOWtests/e2e/test/test_brr_suite_level_retry.py989 # Step 3: Feed the report back WITHOUT --list-only and WITHOUTCOMMENT
LOWtests/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.kt330 // Step 1: root, wait-for-device, remountCOMMENT
LOW…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt334 // Step 5: push apexCOMMENT
LOW…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt338 // Step 6: rebootCOMMENT
LOW…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt392 // Step 1: root, wait-for-device, remountCOMMENT
LOW…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt399 // Step 4: root, wait-for-device, remount again after rebootCOMMENT
LOW…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt403 // Step 5: push apexCOMMENT
LOW…ebook/buck/android/exopackage/AndroidDeviceImplTest.kt407 // Step 6: final rebootCOMMENT
LOW…k/buck/jvm/java/abi/source/PostEnterCanonicalizer.java163 // DeclaredType that has ErrorTypes for type arguments. So we need to check if there's anCOMMENT
LOW…src/main/kotlin/K2JvmAbiFirAnalysisHandlerExtension.kt1010 // We need to check if the companion has the property AND if it's resolvable.COMMENT
Cross-Language Confusion11 hits · 80 pts
SeverityFileLineSnippetContext
HIGHtests/core/resource_control/test_memory_reporting.py35 "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/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
HIGHprelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py267 "-Wl,--undefined,Global",CODE
HIGHprelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py268 "-Wl,--undefined,Local",CODE
HIGHprelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py269 "-Wl,--undefined,MockConnection",CODE
HIGHprelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py270 "-Wl,--undefined,Global",CODE
HIGHprelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py271 "-Wl,--undefined,Local",CODE
HIGHprelude/cxx/dist_lto/tools/tests/test_dist_lto_opt.py272 "-Wl,--undefined,MockConnection",CODE
Decorative Section Separators20 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUMpagable/src/pagable_arc.rs67//! ┌─────────────────┐COMMENT
MEDIUMpagable/src/pagable_arc.rs72//! └────────▲────────┘COMMENT
MEDIUMpagable/src/pagable_arc.rs74//! ┌─────────────────┼─────────────────┐COMMENT
MEDIUMpagable/src/pagable_arc.rs76//! ┌──────┴──────┐ ┌──────┴──────┐ ┌──────┴──────┐COMMENT
MEDIUMpagable/src/pagable_arc.rs80//! └─────────────┘ └─────────────┘ └─────────────┘COMMENT
MEDIUMpagable/src/pagable_arc.rs92//! ┌─────────┐ alloc_pinned ┌────────┐ release_pin ┌──────────┐COMMENT
MEDIUMpagable/src/pagable_arc.rs93//! │ PagedOut│ ───────────────►│ Pinned │───────────────►│ Unpinned │COMMENT
MEDIUMpagable/src/pagable_arc.rs94//! └─────────┘ (deserialize) └────────┘ (count→0, └──────────┘COMMENT
MEDIUMpagable/src/pagable_arc.rs97//! └──────────────────────────────────────────────────────┘COMMENT
MEDIUM…rlark-rust/starlark/src/values/layout/avalues/array.rs189 /// ┌─────────────────────────────┐ ← meCOMMENT
MEDIUM…rlark-rust/starlark/src/values/layout/avalues/array.rs191 /// ├─────────────────────────────┤ ← + offset_of_payload()COMMENT
MEDIUM…rlark-rust/starlark/src/values/layout/avalues/array.rs193 /// ├─────────────────────────────┤ ← + offset_of_extra()COMMENT
MEDIUM…rlark-rust/starlark/src/values/layout/avalues/array.rs195 /// └─────────────────────────────┘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
AI Slop Vocabulary12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMtest.py250 # This is some parsing that wants to be a little robust to changes in theCOMMENT
MEDIUMapp/buck2_interpreter_for_build/src/nodes/attr_spec.rs181 // For now `within_view` is always set, but let's make code more robust.COMMENT
MEDIUMstarlark-rust/starlark/src/values/types/function.rs326 /// Essentially a `&dyn Fn(Value, Heap) -> Result<Value>`, but expanded out by hand, andCOMMENT
MEDIUMstarlark-rust/starlark/src/eval/bc/writer.rs480 // Definitely assigned save/restore is redundant here, it is performed more preciselyCOMMENT
MEDIUMstarlark-rust/starlark/src/eval/compiler/call.rs163 // 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/helper/utils.py134 # The test harness's extra external config is part of normal Buck configCOMMENT
MEDIUMdice/dice_examples/bin/memory_by_key.rs29//! of the trailing few per-shadow heap deltas** — robust toCOMMENT
MEDIUMprelude/python/tools/__test_main__.py228 # the builtin python test harness). If we see one, recurse on it.COMMENT
MEDIUMprelude/python/tools/__test_main__.py232 # 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
MEDIUM…vm-abi-gen/src/main/kotlin/fir/FirMetadataSanitizer.kt507 // This is more robust than trying to replace error expressions with literals,COMMENT
Excessive Try-Catch Wrapping23 hits · 26 pts
SeverityFileLineSnippetContext
LOWtests/core/interpreter/test_cancellation.py68 except Exception:CODE
LOWtests/e2e_util/api/buck_result.py331 except Exception as e:CODE
LOWtests/e2e_util/api/buck_result.py439 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.py573 except Exception:STRING
LOWprelude/apple/tools/bundling/main.py621 except Exception:STRING
LOWprelude/apple/tools/bundling/main.py715 except Exception:STRING
LOWprelude/python/tools/compile.py130 except Exception:CODE
LOWprelude/python/tools/make_par/sitecustomize.py64 except Exception:CODE
LOWprelude/python/tools/make_par/sitecustomize.py496 except Exception:CODE
LOWprelude/python/tools/make_par/sitecustomize.py502 except Exception:CODE
MEDIUMprelude/python/tools/make_par/sitecustomize.py476def __startup__() -> None:CODE
LOWprelude/js/worker_runner/worker_tool_runner.py349 except Exception:CODE
LOWprelude/rust/tools/from_any_dir.py69 except Exception:CODE
LOWprelude/erlang/toolchain/generate_otp_versions.py239 except Exception as e:CODE
MEDIUMprelude/erlang/toolchain/generate_otp_versions.py240 print(f"Error: {e}", file=sys.stderr)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
LOW…/com/facebook/buck/jvm/java/testdata/prebuilt/unzip.py20 except Exception:CODE
Unused Imports26 hits · 26 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/trace_io/test_trace_io.py12CODE
LOWtests/e2e_util/conftest.py13CODE
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
LOWprelude/apple/tools/code_signing/identity.py11CODE
LOWprelude/apple/tools/code_signing/app_id.py11CODE
LOWprelude/apple/tools/bundling/assemble_bundle_types.py11CODE
LOWprelude/apple/tools/bundling/incremental_state.py11CODE
LOWprelude/python/tools/wheel.py9CODE
LOWprelude/python/tools/sourcedb_merger/tests/__init__.py18CODE
LOWprelude/python/tools/sourcedb_merger/tests/__init__.py30CODE
LOWprelude/python/tools/sourcedb_merger/tests/__init__.py37CODE
LOWprelude/python/tools/make_par/sitecustomize.py12CODE
LOWprelude/python/runtime/__par__/bootstrap.py11CODE
LOWprelude/python/sourcedb/tests/pyrefly_test.py9CODE
LOWprelude/cxx/tools/clang_tidy_wrapper.py27CODE
LOWprelude/android/tools/create_jdk_system_image.py23CODE
LOWprelude/android/tools/sort_pre_dexed_files.py28CODE
LOWprelude/android/tools/merge_sequence.py106CODE
LOW…oid/tools/tests/test_combine_apk_with_relinked_libs.py15CODE
Fake / Example Data9 hits · 14 pts
SeverityFileLineSnippetContext
LOWapp/buck2_execute_impl/src/executors/local.rs937 // wrote outputs at "placeholder" paths, not the final content-based paths (becauseCOMMENT
LOWapp/buck2_execute_impl/src/executors/local.rs945 // (2) Declare an existing artifact at the "placeholder" output path that the action wrote to.COMMENT
LOWapp/buck2_execute_impl/src/executors/local.rs946 // (3) Then we declare a copy from the "placeholder" output path to the content-based path.COMMENT
LOWapp/buck2_execute_impl/src/executors/local.rs948 // (5) Note that we don't need to invalidate the "placeholder" output path, as that isCOMMENT
LOWapp/buck2_cmd_log_client/src/what_ran.rs614 digest: "placeholder",CODE
LOWapp/buck2_cmd_log_client/src/what_ran.rs694 "digest": "placeholder",CODE
LOWapp/buck2_event_observer/src/what_ran.rs483 action_digest: "placeholder".to_owned(),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
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOW…uck2_interpreter_for_build/src/interpreter/selector.rs709/// # Check if any branch has more than 2 itemsCOMMENT
LOWapp/buck2_bxl/src/bxl/starlark_defs/targetset.rs253/// # Check if sets are equalCOMMENT
LOW…k2_build_api/src/interpreter/rule_defs/cmd_args/typ.rs855 /// # Check if command has any inputsCOMMENT
LOWtests/e2e_util/buck_workspace.py274 # 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
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
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.py193 def _setup_child_env() -> None:CODE
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.rs567 /// 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.rs302 /// 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.py205 # FYI: if you remove this, make sure to remove it from external_buckconfig tests tooCOMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/core/help/test_help.py34CODE
LOWtests/e2e_util/buck_workspace.py534CODE
LOWtests/e2e_util/helper/utils.py32CODE
LOWprelude/apple/tools/code_signing/codesign_bundle.py385CODE
LOWprelude/java/tools/fat_jar.py172CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWapp/buck2_node/src/metadata/value.rs25 // TODO: implement our own equality here that preserves orderingCOMMENT
LOWstarlark-rust/starlark/src/values/typing/callable.rs283 // TODO: implement `#[trace(bound = "")]`.COMMENT