Repository Analysis

Homebrew/brew

🍺 The Package Manager for Everywhere

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Homebrew/brew, a Ruby project with 48,820 GitHub stars. SynthScan v2.0 examined 292,946 lines of code across 1869 source files, recording 594 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 2.4 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).

2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
48.8K
Stars
Ruby
Language
292.9K
Lines of Code
1.9K
Files
594
Pattern Hits
2026-07-14
Scan Date
0.00
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 0HIGH 3MEDIUM 46LOW 545

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 594 distinct pattern matches across 11 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 Identifiers217 hits · 217 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/retryable_download.rb106 def verify_download_integrity(filename) = downloadable.verify_download_integrity(filename)CODE
LOWLibrary/Homebrew/install_renamed.rb44 def append_default_if_different(src, dst)CODE
LOWLibrary/Homebrew/keg_relocate.rb144 def prepare_relocation_to_placeholders(new_usr_local_relocation: new_usr_local_relocation?)CODE
LOWLibrary/Homebrew/keg_relocate.rb195 def replace_placeholders_with_locations(files, skip_linkage: false)CODE
LOWLibrary/Homebrew/keg_relocate.rb313 def each_unique_file_matching(string, &_block)CODE
LOWLibrary/Homebrew/bottle.rb269 def stage_from_download_queue(download, pour:)CODE
LOWLibrary/Homebrew/install.rb21 def perform_preinstall_checks_once(all_fatal: false)CODE
LOWLibrary/Homebrew/install.rb42 def perform_build_from_source_checks(all_fatal: false)CODE
LOWLibrary/Homebrew/install.rb418 def show_combined_fetch_downloads_heading(formula_names: [], cask_names: [])CODE
LOWLibrary/Homebrew/install.rb505 def print_dry_run_dependencies(formula, dependencies, skip_formula_names: [], &_block)CODE
LOWLibrary/Homebrew/install.rb741 def perform_preinstall_checks(all_fatal: false)CODE
LOWLibrary/Homebrew/formula_installer.rb776 def expand_dependencies_for_formula(formula)CODE
LOWLibrary/Homebrew/formula_installer.rb818 def effective_build_options_for(dependent)CODE
LOWLibrary/Homebrew/dependency.rb292 def delete_timestamped_cache_entry(key, cache_timestamp)CODE
LOWLibrary/Homebrew/formula_versions.rb85 def file_contents_at_revision(revision, relative_path)CODE
LOWLibrary/Homebrew/installed_dependents.rb26 def find_some_installed_dependents(kegs, casks: [])CODE
LOWLibrary/Homebrew/messages.rb34 def record_completions_and_elisp(completions_and_elisp)CODE
LOWLibrary/Homebrew/sandbox.rb397 def allow_write_path_if_exists(path)CODE
LOWLibrary/Homebrew/sbom.rb582 def full_spdx_runtime_dependencies(bottling:)CODE
LOWLibrary/Homebrew/sbom.rb647 def described_package_spdx_id(bottling:)CODE
LOWLibrary/Homebrew/tap.rb347 def worktree_source_tap_path_for(path:)CODE
LOWLibrary/Homebrew/tap.rb1488 def read_formula_list_directory(directory)CODE
LOWLibrary/Homebrew/local_patch.rb90 def api_source_repository_path(path)CODE
LOWLibrary/Homebrew/resource.rb374 def verify_download_integrity(_filename)CODE
LOWLibrary/Homebrew/cleanup.rb139 def excluded_versions_from_cleanup(formula)CODE
LOWLibrary/Homebrew/cleanup.rb506 def cleanup_legacy_cask_downloads(casks)CODE
LOWLibrary/Homebrew/cleanup.rb587 def cleanup_empty_api_source_directories(directory = cache/"api-source")CODE
LOWLibrary/Homebrew/formula_cellar_checks.rb123 def check_generic_executables(bin)CODE
LOWLibrary/Homebrew/tap_auditor.rb147 def check_formula_list_directory(directory_name, lists)CODE
LOWLibrary/Homebrew/downloadable.rb177 def stage_from_download_queue(_download, pour:); endCODE
LOWLibrary/Homebrew/downloadable.rb180 def verify_download_integrity(filename)CODE
LOWLibrary/Homebrew/caveats.rb219 def function_completion_caveats(shell)CODE
LOWLibrary/Homebrew/github_runner_matrix.rb309 def compatible_testing_formulae(runner)CODE
LOWLibrary/Homebrew/github_runner_matrix.rb328 def formulae_with_untested_dependents(runner)CODE
LOWLibrary/Homebrew/deprecate_disable.rb121 def to_reason_string_or_symbol(string, type:)CODE
LOWLibrary/Homebrew/install_steps.rb332 def delete_keychain_certificate(name, matching_certificate: nil, base: nil)CODE
LOWLibrary/Homebrew/development_tools.rb45 def insecure_download_warning(resource)CODE
LOWLibrary/Homebrew/head_software_spec.rb14 def verify_download_integrity(_filename)CODE
LOWLibrary/Homebrew/formula.rb410 def full_name_with_optional_tap(name)CODE
LOWLibrary/Homebrew/formula.rb2468 def generate_completions_from_executable(*commands,CODE
LOWLibrary/Homebrew/formula.rb2790 def runtime_formula_dependencies(read_from_tab: true, undeclared: true)CODE
LOWLibrary/Homebrew/formula.rb2806 def installed_runtime_formula_dependencies(read_from_tab: true, undeclared: true)CODE
LOWLibrary/Homebrew/formula.rb3555 def eligible_kegs_for_cleanup(quiet: false)CODE
LOWLibrary/Homebrew/formula.rb3639 def enqueue_resources_and_patches(download_queue:)CODE
LOWLibrary/Homebrew/bundle.rb85 def formula_versions_from_env(formula_name)CODE
LOWLibrary/Homebrew/build.rb53 def effective_build_options_for(dependent)CODE
LOWLibrary/Homebrew/download_queue.rb233 def stdout_print_and_flush_if_tty(message)CODE
LOWLibrary/Homebrew/download_queue.rb260 def create_symlinks_for_shared_download(cached_location)CODE
LOWLibrary/Homebrew/download_queue.rb343 def align_checksum_mismatch_message(downloadable_type)CODE
LOWLibrary/Homebrew/service.rb532 def cron_weekday_to_systemd_weekday(cron_weekday)CODE
LOWLibrary/Homebrew/cmd/info.rb476 def shadowing_installed_formula(formula)CODE
LOWLibrary/Homebrew/cmd/info.rb482 def swap_to_installed_formula(formula, qualified_inputs)CODE
LOWLibrary/Homebrew/cmd/search.rb159 def print_missing_formula_help(query, found_matches)CODE
LOWLibrary/Homebrew/cmd/update-report.rb339 def link_completions_manpages_and_docs(repository = HOMEBREW_REPOSITORY)CODE
LOWLibrary/Homebrew/cmd/upgrade.rb547 def record_formula_upgrade_summary(context, include_sizes: false, formulae_installer: nil, version_changes: nil)CODE
LOWLibrary/Homebrew/cmd/upgrade.rb578 def show_final_upgrade_summary(dry_run: args.dry_run?)CODE
LOWLibrary/Homebrew/cmd/upgrade.rb628 def show_final_upgrade_summary_section(title, items)CODE
LOWLibrary/Homebrew/cmd/upgrade.rb637 def formula_upgrade_descriptions(formulae, include_sizes: false)CODE
LOWLibrary/Homebrew/cmd/upgrade.rb658 def formula_upgrade_display_version(formula, old_version)CODE
LOWLibrary/Homebrew/cmd/uses.rb101 def intersection_of_dependents(use_runtime_dependents, used_formulae)CODE
157 more matches not shown…
Over-Commented Block242 hits · 200 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/formula_installer.rb1361COMMENT
LOWLibrary/Homebrew/attestation.rb21 BACKFILL_REPO = "trailofbits/homebrew-brew-verify"COMMENT
LOWLibrary/Homebrew/attestation.rb41 #COMMENT
LOWLibrary/Homebrew/attestation.rb201 # Ideally, we would also constrain the signing workflow here, but homebrew-coreCOMMENT
LOWLibrary/Homebrew/installed_dependents.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/lock_file.rb41 if lockfile.flock(File::LOCK_EX | File::LOCK_NB)COMMENT
LOWLibrary/Homebrew/brew.sh621COMMENT
LOWLibrary/Homebrew/cleaner.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/cleaner.rb41 # 1. `info/dir`COMMENT
LOWLibrary/Homebrew/tap.rb241 sig { returns(String) }COMMENT
LOWLibrary/Homebrew/tap.rb261 sig { returns(String) }COMMENT
LOWLibrary/Homebrew/utils.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/utils.rb21 # Removes the module part from the expression in the string.COMMENT
LOWLibrary/Homebrew/livecheck.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/dependency_collector.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/resource.rb181 # This method evaluates the DSL specified in the `livecheck` block of theCOMMENT
LOWLibrary/Homebrew/abstract_command.rb1# typed: strongCOMMENT
LOWLibrary/Homebrew/build_options.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/build_options.rb21 # args << "--qt-gui" if build.with? "qt" # "--with-qt" ==> build.with? "qt"COMMENT
LOWLibrary/Homebrew/build_options.rb61 !with?(val)COMMENT
LOWLibrary/Homebrew/build_options.rb81 # if build.head?COMMENT
LOWLibrary/Homebrew/description_cache_store.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/version.rb381 # e.g. `ltopers-v2017-04-14.tar.gz`COMMENT
LOWLibrary/Homebrew/version.rb401COMMENT
LOWLibrary/Homebrew/version.rb441 # e.g. `https://ftpmirror.gnu.org/autogen/autogen-5.5.7-5.i386.rpm`COMMENT
LOWLibrary/Homebrew/version.rb461 # e.g. `https://cdn.nuxeo.com/nuxeo-9.2/nuxeo-server-9.2-tomcat.zip`COMMENT
LOWLibrary/Homebrew/development_tools.rb1# typed: strictCOMMENT
LOWLibrary/Homebrew/formula.rb61# @abstractCOMMENT
LOWLibrary/Homebrew/formula.rb141 # The full path to this {Formula}.COMMENT
LOWLibrary/Homebrew/formula.rb181 # A symbol to indicate currently active {SoftwareSpec}.COMMENT
LOWLibrary/Homebrew/formula.rb201 # @api publicCOMMENT
LOWLibrary/Homebrew/formula.rb221 # Will only be non-`nil` inside {.test}.COMMENT
LOWLibrary/Homebrew/formula.rb561 Bottle.new(self, bottle_specification, tag) if bottled?(tag)COMMENT
LOWLibrary/Homebrew/formula.rb581 # @see .livecheckCOMMENT
LOWLibrary/Homebrew/formula.rb841 endCOMMENT
LOWLibrary/Homebrew/formula.rb1081 # Need to install into the {.bin} but the makefile doesn't `mkdir -p prefix/bin`?COMMENT
LOWLibrary/Homebrew/formula.rb1101 # @api publicCOMMENT
LOWLibrary/Homebrew/formula.rb1121 # The directory where the formula's info files should be installed.COMMENT
LOWLibrary/Homebrew/formula.rb1141 # @api publicCOMMENT
LOWLibrary/Homebrew/formula.rb1161COMMENT
LOWLibrary/Homebrew/formula.rb1181 # man1.install "example.1"COMMENT
LOWLibrary/Homebrew/formula.rb1201 #COMMENT
LOWLibrary/Homebrew/formula.rb1221 # This is symlinked into `HOMEBREW_PREFIX` after installation or withCOMMENT
LOWLibrary/Homebrew/formula.rb1241 sig { returns(Pathname) }COMMENT
LOWLibrary/Homebrew/formula.rb1261 # The directory where the formula's shared files should be installed.COMMENT
LOWLibrary/Homebrew/formula.rb1281 # ```rubyCOMMENT
LOWLibrary/Homebrew/formula.rb1301 #COMMENT
LOWLibrary/Homebrew/formula.rb1321 # ```COMMENT
LOWLibrary/Homebrew/formula.rb1341 # @api publicCOMMENT
LOWLibrary/Homebrew/formula.rb1361 sig { returns(Pathname) }COMMENT
LOWLibrary/Homebrew/formula.rb1381 # The directory where the formula's `fish` function files should beCOMMENT
LOWLibrary/Homebrew/formula.rb1401 # This is symlinked into `HOMEBREW_PREFIX` after installation or withCOMMENT
LOWLibrary/Homebrew/formula.rb1481 # The service specification for the software.COMMENT
LOWLibrary/Homebrew/formula.rb1501 #COMMENT
LOWLibrary/Homebrew/formula.rb1661 # EOSCOMMENT
LOWLibrary/Homebrew/formula.rb1741 delegate deprecated?: :"self.class"COMMENT
LOWLibrary/Homebrew/formula.rb1761 # @see .deprecate!COMMENT
LOWLibrary/Homebrew/formula.rb1781 # @return [Boolean]COMMENT
LOWLibrary/Homebrew/formula.rb1801 # @!method disable_replacement_formulaCOMMENT
LOWLibrary/Homebrew/formula.rb2221 #COMMENT
182 more matches not shown…
Self-Referential Comments38 hits · 114 pts
SeverityFileLineSnippetContext
MEDIUMLibrary/Homebrew/descriptions.rb52 # Create an actual instance.COMMENT
MEDIUMLibrary/Homebrew/bottle.rb286 # Create a separate file to mark a completed extraction. This avoidsCOMMENT
MEDIUMLibrary/Homebrew/bundle_version.rb92 # Create a nicely formatted version (on a best effort basis).COMMENT
MEDIUMLibrary/Homebrew/cleaner.rb20 # Create a cleaner for the given formula.COMMENT
MEDIUMLibrary/Homebrew/dependency_collector.rb18# This class is used by `depends_on` in the formula DSL to turn dependencyCOMMENT
MEDIUMLibrary/Homebrew/formula.rb3146 # Create a hash of spec names (stable/head) to the list of dependencies under eachCOMMENT
MEDIUMLibrary/Homebrew/formula.rb3266 # This method is overridden in {Formula} subclasses to provide theCOMMENT
MEDIUMLibrary/Homebrew/formula.rb3284 # This method is overridden in {Formula} subclasses to provide theCOMMENT
MEDIUMLibrary/Homebrew/formula.rb3598 # Create a temporary directory then yield. When the block returns,COMMENT
MEDIUMLibrary/Homebrew/system_command.rb342 # Create a new process group so that we can send `SIGINT` fromCOMMENT
MEDIUMLibrary/Homebrew/cmd/pyenv-sync.rb77 # Create an unversioned symlinksCOMMENT
MEDIUMLibrary/Homebrew/extend/os/linux/install.rb89 # This file is generated by Homebrew. Do not modify.COMMENT
MEDIUMLibrary/Homebrew/rubocops/extend/formula_cop.rb29 # This method is called by RuboCop and is the main entry point.COMMENT
MEDIUMLibrary/Homebrew/test/cleanup_spec.rb629 # Create the latest version of testball so the older version is eligible for cleanup.COMMENT
MEDIUMLibrary/Homebrew/test/style_spec.rb44 # This file is known to use non-rocket hashes and other things that trigger audit,COMMENT
MEDIUMLibrary/Homebrew/test/cmd/info_spec.rb584 # Create a rack for the installed dependencyCOMMENT
MEDIUMLibrary/Homebrew/test/cmd/info_spec.rb591 # Create a dependent keg whose tab references testballCOMMENT
MEDIUM…ry/Homebrew/test/support/helper/cask/install_helper.rb32 # Create the caskroom pathCOMMENT
MEDIUM…ry/Homebrew/test/support/helper/cask/install_helper.rb35 # Create the staged_path (version directory)COMMENT
MEDIUMLibrary/Homebrew/test/cask/installer_spec.rb863 # Create a different fileCOMMENT
MEDIUMLibrary/Homebrew/test/cask/artifact/symlinked_spec.rb30 # Create a fake formula directory structureCOMMENT
MEDIUMLibrary/Homebrew/standalone/init.rb4# This file is included before any other files.COMMENT
MEDIUMLibrary/Homebrew/livecheck/strategy/extract_plist.rb132 # Create a copy of the cask that overrides the artifact URL with theCOMMENT
MEDIUMLibrary/Homebrew/utils/analytics.rb284 # This method is undocumented because it is not intended for general use.COMMENT
MEDIUMLibrary/Homebrew/utils/lock.sh1# Create a lock using `flock(2)`. A command name with arguments is required asCOMMENT
MEDIUMLibrary/Homebrew/utils/curl.rb787 # Create a hash from the header linesCOMMENT
MEDIUMLibrary/Homebrew/prof/vernier_fork_guard.rb8 # This file is required before Homebrew's usual command boot has installedCOMMENT
MEDIUMLibrary/Homebrew/cask/audit.rb692 # Create a temporary installer to process renames in the audit directoryCOMMENT
MEDIUMLibrary/Homebrew/services/formula_wrapper.rb17 # Create a new `Service` instance from either a path or label.COMMENT
MEDIUMLibrary/Homebrew/dev-cmd/typecheck.rb287 # This file is autogenerated. Do not edit it by hand.COMMENT
MEDIUMLibrary/Homebrew/dev-cmd/create.rb71 # Create a formula from a tarball URL.COMMENT
MEDIUM.github/zizmor.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
MEDIUM.github/dependabot.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
MEDIUM.github/workflows/check-issues.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
MEDIUM.github/workflows/stale-issues-and-prs.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
MEDIUM.github/workflows/check-prs.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
MEDIUM.github/workflows/actionlint.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
MEDIUM.github/codeql/extensions/homebrew-actions.yml1# This file is synced from the `.github` repository, do not modify it directly.COMMENT
Redundant / Tautological Comments41 hits · 67 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/install.rb110 # Check if the installed formula is from a different tapCOMMENT
LOWLibrary/Homebrew/install.rb214 # Check if the formula we try to install is the same as installedCOMMENT
LOWLibrary/Homebrew/linkage_checker.rb289 # Check if this is a no_linkage dependency with unexpected linkageCOMMENT
LOWLibrary/Homebrew/missing_formula.rb178 # Check if the formula has been deleted in the last month.COMMENT
LOWLibrary/Homebrew/version.rb513 # Check if this is a HEAD version.COMMENT
LOWLibrary/Homebrew/formula.rb4634 # Check if `@rpath` install names should be preserved.COMMENT
LOWLibrary/Homebrew/cmd/update-report.rb149 # Check if we can parse the JSON and do any Ruby-side follow-up.COMMENT
LOWLibrary/Homebrew/cmd/update_report/reporter.rb274 # Check if the migration target is a cask (either in homebrew/cask or any other tap)COMMENT
LOWLibrary/Homebrew/rubocops/components_order.rb244 # Check if each present_components is above rest of the present_componentsCOMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb22 # Check if a desc is present.COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb33 # Check if the desc is empty.COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb46 # Check if "command-line" is spelled incorrectly in the desc.COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb52 # Check if the desc starts with an article.COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb55 # Check if invalid lowercase words are at the start of a desc.COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb60 # Check if the desc starts with the formula's or cask's name.COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb72 # Check if a full stop is used at the end of a desc (apart from in the case of "etc.").COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb77 # Check if the desc contains Unicode emojis or symbols (Unicode Other Symbols category).COMMENT
LOWLibrary/Homebrew/rubocops/shared/desc_helper.rb80 # Check if the desc length exceeds maximum length.COMMENT
LOWLibrary/Homebrew/rubocops/shared/helper_functions.rb376 # Check if a block method is called inside a block.COMMENT
LOWLibrary/Homebrew/rubocops/shared/helper_functions.rb389 # Check if method_name is called among the direct children nodes in the given node.COMMENT
LOWLibrary/Homebrew/rubocops/shared/helper_functions.rb390 # Check if the node itself is the method.COMMENT
LOWLibrary/Homebrew/rubocops/shared/helper_functions.rb406 # Check if method_name is called among every descendant node of given node.COMMENT
LOWLibrary/Homebrew/rubocops/shared/helper_functions.rb441 # Check if negation is present in the given node.COMMENT
LOWLibrary/Homebrew/rubocops/cask/no_overrides.rb45 # Check if multiple `on_{system}` blocks have different `depends_on macos:` versions.COMMENT
LOWLibrary/Homebrew/test/cask/cask_loader_spec.rb514 # Set HOMEBREW_LIBRARY to our test prefix for the security checkCOMMENT
LOWLibrary/Homebrew/unpack_strategy/dmg.rb45 # Check if path is considered disk image metadata.COMMENT
LOWLibrary/Homebrew/unpack_strategy/dmg.rb51 # Check if path is a symlink to a system directory (commonly to /Applications).COMMENT
LOWLibrary/Homebrew/unpack_strategy/tar.rb31 # Check if `tar` can list the contents, then it can also extract it.COMMENT
LOWLibrary/Homebrew/bundle/extensions/flatpak.rb181 # Check if package is installed at all (regardless of remote)COMMENT
LOWLibrary/Homebrew/utils/gem_setup.rb161 # Write the file atomically, in case we're working parallelCOMMENT
LOWLibrary/Homebrew/utils/gem_setup.rb231 # Check if the install is intact. This is useful if any gems are added to gitignore.COMMENT
LOWLibrary/Homebrew/utils/curl.rb381 # Check if a URL is protected by CloudFlare (e.g. badlion.net and jaxx.io).COMMENT
LOWLibrary/Homebrew/utils/curl.rb393 # Check if a URL is protected by Incapsula (e.g. corsair.com).COMMENT
LOWLibrary/Homebrew/utils/service.rb7 # Check if a service is running for a specified formula.COMMENT
LOWLibrary/Homebrew/utils/service.rb19 # Check if a service file is installed in the expected location.COMMENT
LOWLibrary/Homebrew/os/linux/elf.rb230 # Check if DF_1_NODEFLIB is setCOMMENT
LOWLibrary/Homebrew/cask/cask.rb390 # Check if the installed cask is outdated.COMMENT
LOWLibrary/Homebrew/cask/caskroom.rb48 # Check if the cask is installed with an old name.COMMENT
LOWLibrary/Homebrew/cask/artifact/symlinked.rb116 # Check if the target file is a symlink that originates from a formulaCOMMENT
LOWLibrary/Homebrew/services/cli.rb46 # Check if formula has been found.COMMENT
LOWLibrary/Homebrew/dev-cmd/bump-formula-pr.rb351 # Check if there are any resources that still need manual update:COMMENT
AI Slop Vocabulary18 hits · 36 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/diagnostic.rb1258 # If quarantine is not available, a warning is already shown by check_cask_quarantine_support so just returnCOMMENT
LOWLibrary/Homebrew/keg.rb836 # no need to put .app bundles in the path, the user can just useCOMMENT
MEDIUMLibrary/Homebrew/formula.rb2092 # libraries before trying to utilize Frameworks, many of which will be fromCOMMENT
LOWLibrary/Homebrew/cmd/log.rb40 # As this command is simplifying user-run commands then let's just use aCOMMENT
LOWLibrary/Homebrew/rubocops/lines.rb1074 problem "`Dir([\"#{string_content(path)}\"])` is unnecessary; just use `#{match[0]}`"CODE
MEDIUMLibrary/Homebrew/rubocops/unreferenced_let.rb18 # example or an included test harness) cannot be seen, so the cop stays conservative andCOMMENT
LOWLibrary/Homebrew/unpack_strategy/dmg.rb103 # For HFS, just use <mount-path>COMMENT
MEDIUMLibrary/Homebrew/livecheck/strategy/json.rb19 # `strategy :json` in a `livecheck` block (in conjunction with aCOMMENT
MEDIUMLibrary/Homebrew/livecheck/strategy/yaml.rb19 # `strategy :yaml` in a `livecheck` block (in conjunction with aCOMMENT
MEDIUMLibrary/Homebrew/livecheck/strategy/xml.rb23 # `strategy :xml` in a `livecheck` block (in conjunction with aCOMMENT
LOWLibrary/Homebrew/utils/gzip.rb27 # 1. Ideally, we would just set mtime = 0 if SOURCE_DATE_EPOCH is absent, but Ruby'sCOMMENT
MEDIUMLibrary/Homebrew/utils/github/artifacts.rb17 # We use a download strategy here to leverage the Homebrew cacheCOMMENT
LOWLibrary/Homebrew/os/mac/ffi/core_foundation.rb50 # ASCII-8BIT could be anything, so just use Latin-1COMMENT
LOWLibrary/Homebrew/dev-cmd/generate-cask-ci-matrix.rb181 # if it's just a single OS test then we can just use the two real arch runnersCOMMENT
LOWLibrary/Homebrew/dev-cmd/bump-revision.rb31 # As this command is simplifying user-run commands then let's just use aCOMMENT
LOWLibrary/Homebrew/dev-cmd/bump-compatibility-version.rb29 # As this command is simplifying user-run commands then let's just use aCOMMENT
LOWLibrary/Homebrew/dev-cmd/bump-formula-pr.rb108 # As this command is simplifying user-run commands then let's just use aCOMMENT
LOWLibrary/Homebrew/dev-cmd/bump-cask-pr.rb71 # As this command is simplifying user-run commands then let's just use aCOMMENT
Fake / Example Data26 hits · 34 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/test/utils_spec.rb119 .to eq({ name: "John Doe", email: "john.doe@example.com" })CODE
LOWLibrary/Homebrew/test/utils_spec.rb122 expect { described_class.parse_author!("John Doe") }CODE
LOWLibrary/Homebrew/test/missing_formula_spec.rb79 (tap_path/"Formula/deleted-formula.rb").write "placeholder"CODE
LOW…y/Homebrew/test/livecheck/strategy/sourceforge_spec.rb35 <description><![CDATA[Files from abc Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tCODE
LOW…y/Homebrew/test/livecheck/strategy/sourceforge_spec.rb35 <description><![CDATA[Files from abc Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tCODE
LOWLibrary/Homebrew/test/utils/curl_spec.rb348 let(:user_agent_string) { "Lorem ipsum dolor sit amet" }CODE
LOWLibrary/Homebrew/test/utils/curl_spec.rb348 let(:user_agent_string) { "Lorem ipsum dolor sit amet" }CODE
LOWLibrary/Homebrew/test/utils/user_spec.rb36 fake_user ttys002 Oct 1 11:27CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb7 let(:message) { "lorem ipsum" }CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb28 annotation = described_class.new(:warning, "lorem ipsum", file: "file.txt")CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb30 expect(annotation.to_s).to eq "::warning file=file.txt::lorem ipsum"CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb34 annotation = described_class.new(:warning, "lorem ipsum", file: "file.txt", title: "foo")CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb36 expect(annotation.to_s).to eq "::warning file=file.txt,title=foo::lorem ipsum"CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb40 annotation = described_class.new(:error, "lorem ipsum", file: "file.txt", line: 3)CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb42 expect(annotation.to_s).to eq "::error file=file.txt,line=3::lorem ipsum"CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb46 annotation = described_class.new(:error, "lorem ipsum", file: "file.txt", line: 3, column: 18)CODE
LOWLibrary/Homebrew/test/utils/github/actions_spec.rb48 expect(annotation.to_s).to eq "::error file=file.txt,line=3,col=18::lorem ipsum"CODE
LOWLibrary/Homebrew/test/cask/artifact/app_spec.rb172 allow(User).to receive(:current).and_return(User.new("fake_user"))CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb52 allow(User).to receive(:current).and_return(User.new("fake_user"))CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb56 .with("chown", args: ["-R", "--", "fake_user:staff", fake_pathname], sudo: true)CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb64 allow(User).to receive(:current).and_return(User.new("fake_user"))CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb70 args: ["-R", "--", "fake_user:staff", fake_pathname, fake_pathname],CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb95 allow(User).to receive(:current).and_return(User.new("fake_user"))CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb102 .with("chown", args: ["-R", "--", "fake_user:staff", fake_pathname], sudo: true)CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb110 allow(User).to receive(:current).and_return(User.new("fake_user"))CODE
LOW…brary/Homebrew/test/cask/dsl/shared_examples/staged.rb124 allow(User).to receive(:current).and_return(User.new("fake_user"))CODE
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHLibrary/Homebrew/tap.rb556 # Redirect targets must pass the same allow/forbid checks as requested remotes.COMMENT
HIGHLibrary/Homebrew/dev-cmd/pr-pull.rb165 ohai "Ignoring workflow #{workflow} as requested by `--ignore-missing-artifacts`"CODE
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMLibrary/Homebrew/formula.rb4223 # If you maintain your own repository, you can add your own bottle links.COMMENT
MEDIUMLibrary/Homebrew/formula.rb4289 # If a block is provided you can also add {.depends_on} and {Patch}es just to the {.head} {SoftwareSpec}.COMMENT
LOWLibrary/Homebrew/test_bot/formulae.rb126 # If we depend on a versioned formula, make sure to unlink any otherCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdocs/Brew-Bundle-and-Brewfile.md290# In this example, pass `--appdir=~/Applications` and `--require_sha`COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/extend/kernel.rb198 # NOTE: This method is **not** thread-safe – other threadsCOMMENT
LOWLibrary/Homebrew/bundle/brew.rb403 # Step 1: Sort by formula full name while putting tap formulae behind core formulae.COMMENT
LOWLibrary/Homebrew/bundle/brew.rb415 # Step 2: Sort by formula dependency topology.COMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWLibrary/Homebrew/bundle/brew.rb403 # Step 1: Sort by formula full name while putting tap formulae behind core formulae.COMMENT
LOWLibrary/Homebrew/bundle/brew.rb415 # Step 2: Sort by formula dependency topology.COMMENT
LOWLibrary/Homebrew/services/formula_wrapper.rb279 # The purpose of this function is to lazy load the Homebrew::Service classCOMMENT