Emacs Plus formulae for the Homebrew package manager
This report summarizes scanner evidence for d12frosted/homebrew-emacs-plus, a Ruby project with 2,946 GitHub stars. SynthScan examined 15,285 lines of code across 143 source files, recording 152 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 24.8 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 42 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 114 finding(s).
Which changes need focused human review? 152 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 152 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| 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 | 43 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 45 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 67 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 69 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 133 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 135 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 289 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 291 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 560 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 562 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 680 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 682 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 710 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 712 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 835 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 837 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 856 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 858 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 926 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_env.rb | 929 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 84 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 86 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 109 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 111 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 137 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 139 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 155 | # =========================================== | COMMENT |
| MEDIUM | tests/test_formula_postinstall.rb | 157 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_postflight_cli.rb | 62 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_postflight_cli.rb | 64 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_postflight_cli.rb | 94 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_postflight_cli.rb | 96 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_postflight_cli.rb | 120 | # =========================================== | COMMENT |
| MEDIUM | tests/test_cask_postflight_cli.rb | 122 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 17 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 19 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 75 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 77 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 124 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 126 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 183 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 185 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 209 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 211 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 233 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 235 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 294 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 296 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 340 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 342 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 400 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 402 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 643 | # =========================================== | COMMENT |
| MEDIUM | tests/test_build_config.rb | 645 | # =========================================== | COMMENT |
| 48 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .rubocop.yml | 201 | COMMENT | |
| LOW | .rubocop.yml | 221 | # Enabled: false | COMMENT |
| LOW | Casks/emacs-plus-app@master.rb | 61 | # Post-install setup: quarantine removal, environment injection, custom | COMMENT |
| LOW | tests/test_update_cask_sha.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | tests/test_applescript_escaping.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | tests/test_client_app_script.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | tests/test_build_config.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | Library/FormulaPostinstall.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/PlistExtras.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/PlistExtras.rb | 21 | # 2. The AutoFill opt-out, which stops macOS 26 (Tahoe) and later from | COMMENT |
| LOW | Library/PlistExtras.rb | 81 | # Add a key, or set it when the bundle already declares it (Emacs 31 and | COMMENT |
| LOW | Library/CaskPostflightCLI.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/FormulaPostinstallCLI.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/BuildConfig.rb | 101 | return value[exact] if exact | COMMENT |
| LOW | Library/CaskPostflight.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/EmacsBase.rb | 701 | COMMENT | |
| LOW | Library/CaskEnv.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | Library/CaskEnv.rb | 181 | paths.compact.join(":") | COMMENT |
| LOW | scripts/postinstall-formula.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | .github/workflows/build-app.yml | 101 | echo "Warning: $patch_file not found, skipping" | COMMENT |
| LOW | .github/workflows/build-app.yml | 561 | # - LDFLAGS lets configure link the test binary and embeds an rpath | COMMENT |
| LOW | .github/workflows/build-app.yml | 581 | echo "debug: brew --prefix gcc=$(brew --prefix gcc); versions: $(brew list --versions gcc)" | COMMENT |
| LOW | .github/workflows/build-app.yml | 1001 | echo "Warning: $patch_file not found, skipping" | COMMENT |
| 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 | 249 | # Check if icon is configured for non-Cocoa builds | COMMENT |
| LOW⚡ | Library/EmacsBase.rb | 471 | # Check if user PATH injection is enabled (default: true) | COMMENT |
| LOW | Library/EmacsBase.rb | 832 | # Set CFBundleIconName to match the icon name in Assets.car (defaults to "Emacs") | COMMENT |
| LOW | Library/CaskEnv.rb | 69 | # Check if user PATH injection is enabled (default: true) | COMMENT |
| LOW | Library/CaskEnv.rb | 213 | # Check if already injected | COMMENT |
| LOW | Library/CaskEnv.rb | 295 | # 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 | 724 | # Create a fake versioned gcc driver that answers -print-file-name with | COMMENT |
| MEDIUM | Library/CaskEnv.rb | 267 | # Create a wrapper script at Emacs.app/Contents/MacOS/bin/emacs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_applescript_escaping.rb | 167 | def assert_applescript_compiles(path) | CODE |
| LOW | Library/BuildConfig.rb | 171 | def native_comp_driver_options_el(prefix) | CODE |
| LOW | Library/EmacsBase.rb | 563 | def inject_emacs_plus_site_lisp(major_version) | CODE |
| LOW | Library/EmacsBase.rb | 722 | def escape_for_applescript_shell(str) | CODE |
| LOW | Library/CaskEnv.rb | 248 | def declare_usage_descriptions(app_path) | CODE |
| LOW | Library/CaskEnv.rb | 521 | 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Library/CaskPostflightCLI.rb | 12 | # Usage: | COMMENT |
| LOW | Library/FormulaPostinstallCLI.rb | 12 | # Usage: | COMMENT |