AI Slop Code RIsk Monitor

d12frosted/homebrew-emacs-plus

Emacs Plus formulae for the Homebrew package manager

24.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

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.

24.8
Adjusted Signal
24.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.9K
Stars
Ruby
Language
15.3K
Lines of Code
143
Files
152
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 16.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.0/100 · LOW

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

Agent Over-Engineering Ratio 65.9/100 · HIGH

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

PR Review Velocity Impact 70.6/100 · HIGH

Which changes need focused human review? 152 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 111LOW 41

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 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.

Decorative Section Separators108 hits · 322 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_applescript_escaping.rb37 # ===========================================COMMENT
MEDIUMtests/test_applescript_escaping.rb39 # ===========================================COMMENT
MEDIUMtests/test_applescript_escaping.rb107 # ===========================================COMMENT
MEDIUMtests/test_applescript_escaping.rb109 # ===========================================COMMENT
MEDIUMtests/test_applescript_escaping.rb140 # ===========================================COMMENT
MEDIUMtests/test_applescript_escaping.rb142 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb43 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb45 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb67 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb69 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb133 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb135 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb289 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb291 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb560 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb562 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb680 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb682 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb710 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb712 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb835 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb837 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb856 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb858 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb926 # ===========================================COMMENT
MEDIUMtests/test_cask_env.rb929 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb84 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb86 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb109 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb111 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb137 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb139 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb155 # ===========================================COMMENT
MEDIUMtests/test_formula_postinstall.rb157 # ===========================================COMMENT
MEDIUMtests/test_cask_postflight_cli.rb62 # ===========================================COMMENT
MEDIUMtests/test_cask_postflight_cli.rb64 # ===========================================COMMENT
MEDIUMtests/test_cask_postflight_cli.rb94 # ===========================================COMMENT
MEDIUMtests/test_cask_postflight_cli.rb96 # ===========================================COMMENT
MEDIUMtests/test_cask_postflight_cli.rb120 # ===========================================COMMENT
MEDIUMtests/test_cask_postflight_cli.rb122 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb17 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb19 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb75 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb77 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb124 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb126 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb183 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb185 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb209 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb211 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb233 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb235 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb294 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb296 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb340 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb342 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb400 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb402 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb643 # ===========================================COMMENT
MEDIUMtests/test_build_config.rb645 # ===========================================COMMENT
48 more matches not shown…
Over-Commented Block23 hits · 22 pts
SeverityFileLineSnippetContext
LOW.rubocop.yml201COMMENT
LOW.rubocop.yml221# Enabled: falseCOMMENT
LOWCasks/emacs-plus-app@master.rb61 # Post-install setup: quarantine removal, environment injection, customCOMMENT
LOWtests/test_update_cask_sha.rb1#!/usr/bin/env rubyCOMMENT
LOWtests/test_applescript_escaping.rb1#!/usr/bin/env rubyCOMMENT
LOWtests/test_client_app_script.rb1#!/usr/bin/env rubyCOMMENT
LOWtests/test_build_config.rb1#!/usr/bin/env rubyCOMMENT
LOWLibrary/FormulaPostinstall.rb1# frozen_string_literal: trueCOMMENT
LOWLibrary/PlistExtras.rb1# frozen_string_literal: trueCOMMENT
LOWLibrary/PlistExtras.rb21# 2. The AutoFill opt-out, which stops macOS 26 (Tahoe) and later fromCOMMENT
LOWLibrary/PlistExtras.rb81 # Add a key, or set it when the bundle already declares it (Emacs 31 andCOMMENT
LOWLibrary/CaskPostflightCLI.rb1# frozen_string_literal: trueCOMMENT
LOWLibrary/FormulaPostinstallCLI.rb1# frozen_string_literal: trueCOMMENT
LOWLibrary/BuildConfig.rb101 return value[exact] if exactCOMMENT
LOWLibrary/CaskPostflight.rb1# frozen_string_literal: trueCOMMENT
LOWLibrary/EmacsBase.rb701COMMENT
LOWLibrary/CaskEnv.rb1# frozen_string_literal: trueCOMMENT
LOWLibrary/CaskEnv.rb181 paths.compact.join(":")COMMENT
LOWscripts/postinstall-formula.rb1#!/usr/bin/env rubyCOMMENT
LOW.github/workflows/build-app.yml101 echo "Warning: $patch_file not found, skipping"COMMENT
LOW.github/workflows/build-app.yml561 # - LDFLAGS lets configure link the test binary and embeds an rpathCOMMENT
LOW.github/workflows/build-app.yml581 echo "debug: brew --prefix gcc=$(brew --prefix gcc); versions: $(brew list --versions gcc)"COMMENT
LOW.github/workflows/build-app.yml1001 echo "Warning: $patch_file not found, skipping"COMMENT
Redundant / Tautological Comments8 hits · 13 pts
SeverityFileLineSnippetContext
LOWLibrary/IconApplier.rb163 # Check if we're in Homebrew context where ohai is a methodCOMMENT
LOWLibrary/EmacsBase.rb249 # Check if icon is configured for non-Cocoa buildsCOMMENT
LOW⚡Library/EmacsBase.rb471 # Check if user PATH injection is enabled (default: true)COMMENT
LOWLibrary/EmacsBase.rb832 # Set CFBundleIconName to match the icon name in Assets.car (defaults to "Emacs")COMMENT
LOWLibrary/CaskEnv.rb69 # Check if user PATH injection is enabled (default: true)COMMENT
LOWLibrary/CaskEnv.rb213 # Check if already injectedCOMMENT
LOWLibrary/CaskEnv.rb295 # Check if we need to recompile (look for our marker in Info.plist)COMMENT
LOWscripts/create-community-icon.rb54 # Check if it's a valid icns file (magic number)COMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_applescript_escaping.rb190 # Create a script that sets PATH and echoes it backCOMMENT
MEDIUMtests/test_cask_env.rb724 # Create a fake versioned gcc driver that answers -print-file-name withCOMMENT
MEDIUMLibrary/CaskEnv.rb267 # Create a wrapper script at Emacs.app/Contents/MacOS/bin/emacsCOMMENT
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test_applescript_escaping.rb167 def assert_applescript_compiles(path)CODE
LOWLibrary/BuildConfig.rb171 def native_comp_driver_options_el(prefix)CODE
LOWLibrary/EmacsBase.rb563 def inject_emacs_plus_site_lisp(major_version)CODE
LOWLibrary/EmacsBase.rb722 def escape_for_applescript_shell(str)CODE
LOWLibrary/CaskEnv.rb248 def declare_usage_descriptions(app_path)CODE
LOWLibrary/CaskEnv.rb521 def escape_for_applescript_shell(str)CODE
Fake / Example Data2 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_format_maintainer.rb73 maintainer = { "github" => "user", "name" => "Full Name", "email" => "user@example.com" }CODE
LOW⚡tests/test_format_maintainer.rb109 maintainer = { "email" => "user@example.com" }CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWLibrary/CaskPostflightCLI.rb12# Usage:COMMENT
LOWLibrary/FormulaPostinstallCLI.rb12# Usage:COMMENT