Emacs Plus formulae for the Homebrew package manager
This report presents the forensic synthetic code analysis of d12frosted/homebrew-emacs-plus, a Ruby project with 2,892 GitHub stars. SynthScan v2.0 examined 12,777 lines of code across 129 source files, recording 95 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 19.2 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 95 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_applescript_escaping.rb | 37 | # =========================================== | COMMENT |
| MEDIUM | tests/test_applescript_escaping.rb | 39 | # =========================================== | COMMENT |
| MEDIUM | tests/test_applescript_escaping.rb | 107 | # =========================================== | COMMENT |
| MEDIUM | tests/test_applescript_escaping.rb | 109 | # =========================================== | COMMENT |
| MEDIUM | tests/test_applescript_escaping.rb | 140 | # =========================================== | COMMENT |
| MEDIUM | tests/test_applescript_escaping.rb | 142 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 42 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 44 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 66 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 68 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 132 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 134 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 288 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 290 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 471 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 473 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 591 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 593 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 621 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 623 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 746 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 748 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 16 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 18 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 74 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 76 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 123 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 125 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 182 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 184 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 208 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 210 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 232 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 234 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 293 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 295 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 339 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 341 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 399 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 401 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 642 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 644 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 702 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 704 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 755 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 757 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 794 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 796 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 827 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 829 | # =========================================== | COMMENT |
| MEDIUM⚡ | tests/test_format_maintainer.rb | 31 | # =========================================== | COMMENT |
| MEDIUM⚡ | tests/test_format_maintainer.rb | 33 | # =========================================== | COMMENT |
| MEDIUM⚡ | tests/test_format_maintainer.rb | 43 | # =========================================== | COMMENT |
| MEDIUM⚡ | tests/test_format_maintainer.rb | 45 | # =========================================== | COMMENT |
| MEDIUM | tests/test_format_maintainer.rb | 59 | # =========================================== | COMMENT |
| MEDIUM | tests/test_format_maintainer.rb | 61 | # =========================================== | COMMENT |
| MEDIUM⚡ | tests/test_format_maintainer.rb | 77 | # =========================================== | COMMENT |
| MEDIUM⚡ | tests/test_format_maintainer.rb | 79 | # =========================================== | COMMENT |
| MEDIUM | tests/test_format_maintainer.rb | 90 | # =========================================== | COMMENT |
| MEDIUM | tests/test_format_maintainer.rb | 92 | # =========================================== | COMMENT |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Library/IconApplier.rb | 163 | # Check if we're in Homebrew context where ohai is a method | COMMENT |
| LOW | Library/EmacsBase.rb | 248 | # Check if icon is configured for non-Cocoa builds | COMMENT |
| LOW⚡ | Library/EmacsBase.rb | 459 | # Check if user PATH injection is enabled (default: true) | COMMENT |
| LOW | Library/EmacsBase.rb | 813 | # Set CFBundleIconName to match the icon name in Assets.car (defaults to "Emacs") | COMMENT |
| LOW | Library/CaskEnv.rb | 66 | # Check if user PATH injection is enabled (default: true) | COMMENT |
| LOW | Library/CaskEnv.rb | 210 | # Check if already injected | COMMENT |
| LOW | Library/CaskEnv.rb | 267 | # Check if we need to recompile (look for our marker in Info.plist) | COMMENT |
| LOW | scripts/create-community-icon.rb | 54 | # Check if it's a valid icns file (magic number) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_applescript_escaping.rb | 190 | # Create a script that sets PATH and echoes it back | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 635 | # Create a fake versioned gcc driver that answers -print-file-name with | COMMENT |
| MEDIUM | Library/CaskEnv.rb | 239 | # Create a wrapper script at Emacs.app/Contents/MacOS/bin/emacs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .rubocop.yml | 201 | COMMENT | |
| LOW | .rubocop.yml | 221 | # Enabled: false | COMMENT |
| LOW | tests/test_applescript_escaping.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | tests/test_build_config.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | Library/EmacsBase.rb | 681 | end | COMMENT |
| LOW | Library/CaskEnv.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/CaskEnv.rb | 181 | # Environment variables injected into LSEnvironment for native compilation. | COMMENT |
| LOW | scripts/postinstall-formula.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | .github/workflows/build-app.yml | 981 | done | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_applescript_escaping.rb | 167 | def assert_applescript_compiles(path) | CODE |
| LOW | Library/BuildConfig.rb | 116 | def native_comp_driver_options_el(prefix) | CODE |
| LOW | Library/EmacsBase.rb | 543 | def inject_emacs_plus_site_lisp(major_version) | CODE |
| LOW | Library/EmacsBase.rb | 711 | def escape_for_applescript_shell(str) | CODE |
| LOW | Library/CaskEnv.rb | 425 | def escape_for_applescript_shell(str) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_format_maintainer.rb | 73 | maintainer = { "github" => "user", "name" => "Full Name", "email" => "user@example.com" } | CODE |
| LOW⚡ | tests/test_format_maintainer.rb | 109 | maintainer = { "email" => "user@example.com" } | CODE |