AI Slop Code RIsk Monitor

norman/friendly_id

FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.

16.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for norman/friendly_id, a Ruby project with 6,221 GitHub stars. SynthScan examined 6,328 lines of code across 62 source files, recording 86 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 16.9 (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.

16.9
Adjusted Signal
16.9
Raw Pattern Score
100%
Time Factor
2026-08-18
Last Push
6.2K
Stars
Ruby
Language
6.3K
Lines of Code
62
Files
86
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 55.7/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

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

Agent Over-Engineering Ratio 2.3/100 · LOW

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

PR Review Velocity Impact 56.0/100 · HIGH

Which changes need focused human review? 86 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 9LOW 77

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 86 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.

Over-Commented Block64 hits · 64 pts
SeverityFileLineSnippetContext
LOWtest/benchmarks/object_utils.rb1require File.expand_path("../../helper", __FILE__)COMMENT
LOWlib/friendly_id.rb1require "active_record"COMMENT
LOWlib/friendly_id.rb21# It requires few changes to your application code and offers flexibility,COMMENT
LOWlib/friendly_id.rb61 # In addition to adding {FriendlyId::Base#friendly_id friendly_id}, the classCOMMENT
LOWlib/friendly_id/base.rb1module FriendlyIdCOMMENT
LOWlib/friendly_id/base.rb21 # *A note about single table inheritance (STI): you must extend FriendlyId inCOMMENT
LOWlib/friendly_id/base.rb41 # In this case, FriendlyId assumes you want to use the column as-is; it will neverCOMMENT
LOWlib/friendly_id/base.rb61 # class Post < ActiveRecord::BaseCOMMENT
LOWlib/friendly_id/base.rb81 # endCOMMENT
LOWlib/friendly_id/base.rb101 # friendly_id :titleCOMMENT
LOWlib/friendly_id/base.rb121 # friendly_id do |config|COMMENT
LOWlib/friendly_id/base.rb141 # on-the-fly. For example, let's say you want to makeCOMMENT
LOWlib/friendly_id/base.rb161 # swedish, turkish, ukrainian and vietnamese. Characters that no named ruleCOMMENT
LOWlib/friendly_id/base.rb181 # Configures the sequence of characters used to separate a slug from aCOMMENT
LOWlib/friendly_id/base.rb201 # Sets the value used for the slugged association's dependent option. UseCOMMENT
LOWlib/friendly_id/base.rb221 # Returns a scope that includes the friendly finders.COMMENT
LOWlib/friendly_id/history.rb1module FriendlyIdCOMMENT
LOWlib/friendly_id/history.rb21 # model.COMMENT
LOWlib/friendly_id/history.rb41 #COMMENT
LOWlib/friendly_id/reserved.rb1module FriendlyIdCOMMENT
LOWlib/friendly_id/reserved.rb21 # friendly_id :name, use: :sluggedCOMMENT
LOWlib/friendly_id/slugged.rb1require "friendly_id/slug_generator"COMMENT
LOWlib/friendly_id/slugged.rb21 # endCOMMENT
LOWlib/friendly_id/slugged.rb41 # class Post < ActiveRecord::BaseCOMMENT
LOWlib/friendly_id/slugged.rb61 # endCOMMENT
LOWlib/friendly_id/slugged.rb81 # FriendlyId uses.COMMENT
LOWlib/friendly_id/slugged.rb101 # When you try to insert a record that would generate a duplicate friendly id,COMMENT
LOWlib/friendly_id/slugged.rb121 # friendly_id :slug_candidates, use: :sluggedCOMMENT
LOWlib/friendly_id/slugged.rb141 # To use candidates, make your FriendlyId base method return an array. TheCOMMENT
LOWlib/friendly_id/slugged.rb161 # be interpreted as either a friendly slug or a database ID. To prevent this, you canCOMMENT
LOWlib/friendly_id/slugged.rb181 #COMMENT
LOWlib/friendly_id/slugged.rb201 # friendly_id :title, :use => :sluggedCOMMENT
LOWlib/friendly_id/slugged.rb221 #COMMENT
LOWlib/friendly_id/slugged.rb241 # #### Gotchas: Common ProblemsCOMMENT
LOWlib/friendly_id/slugged.rb281 #COMMENT
LOWlib/friendly_id/slugged.rb321 # Public: Resolve conflicts.COMMENT
LOWlib/friendly_id/slugged.rb401COMMENT
LOWlib/friendly_id/sequence_calculator.rb1module FriendlyIdCOMMENT
LOWlib/friendly_id/initializer.rb1# FriendlyId Global ConfigurationCOMMENT
LOWlib/friendly_id/initializer.rb21COMMENT
LOWlib/friendly_id/initializer.rb41 # always also configure it on a per-model basis if you prefer.COMMENT
LOWlib/friendly_id/initializer.rb61 # By default, slug has no size limit, but you can change it if you wish.COMMENT
LOWlib/friendly_id/initializer.rb81 # nil, but if you're using a column as your base method can change thisCOMMENT
LOWlib/friendly_id/initializer.rb101 #COMMENT
LOWlib/friendly_id/initializer.rb121 # - :restrict_with_exceptionCOMMENT
LOWlib/friendly_id/scoped.rb1require "friendly_id/slugged"COMMENT
LOWlib/friendly_id/scoped.rb21 # extend FriendlyIdCOMMENT
LOWlib/friendly_id/scoped.rb41 # endCOMMENT
LOWlib/friendly_id/scoped.rb61 #COMMENT
LOWlib/friendly_id/scoped.rb81 #COMMENT
LOWlib/friendly_id/scoped.rb141 (changed & friendly_id_config.scope_columns).any? || superCOMMENT
LOWlib/friendly_id/object_utils.rb21 module ObjectUtilsCOMMENT
LOWlib/friendly_id/simple_i18n.rb1require "i18n"COMMENT
LOWlib/friendly_id/simple_i18n.rb21 # ### Example migrationCOMMENT
LOWlib/friendly_id/simple_i18n.rb41 # Post.friendly.find("la-guerra-de-las-galaxias")COMMENT
LOWlib/friendly_id/simple_i18n.rb61 # {FriendlyId::SimpleI18n::Model#set_friendly_id}. This will ensure that the slugCOMMENT
LOWlib/friendly_id/finders.rb1module FriendlyIdCOMMENT
LOWlib/friendly_id/finders.rb21 # not have a public API, which was harder to maintain and at times causedCOMMENT
LOWlib/friendly_id/finders.rb41 # Unless you've chosen to use the `:finders` addon, be sure to modify the findersCOMMENT
LOWlib/friendly_id/finder_methods.rb1module FriendlyIdCOMMENT
4 more matches not shown…
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMlib/friendly_id/candidates.rb4 # This class provides the slug candidate functionality.COMMENT
MEDIUMlib/friendly_id/slugged.rb273 # This method is not intended to be invoked directly; FriendlyId uses itCOMMENT
MEDIUMlib/friendly_id/simple_i18n.rb17 # This module is most suitable to applications that need to support few locales.COMMENT
MEDIUMlib/friendly_id/finder_methods.rb84 # This method is not intended to be invoked directly; FriendlyId uses itCOMMENT
MEDIUMlib/friendly_id/configuration.rb38 # This method is invoked by {FriendlyId::Base#friendly_id friendly_id} whenCOMMENT
MEDIUMlib/friendly_id/configuration.rb68 # This method is generally only used internally by FriendlyId.COMMENT
Slop Phrases6 hits · 12 pts
SeverityFileLineSnippetContext
LOWlib/friendly_id/slugged.rb209 # don't forget to invoke `super` from your implementation:COMMENT
LOWlib/friendly_id/slugged.rb209 # don't forget to invoke `super` from your implementation:COMMENT
MEDIUMlib/friendly_id/initializer.rb57 # 'slug', but you can change it if you wish.COMMENT
MEDIUMlib/friendly_id/initializer.rb61 # By default, slug has no size limit, but you can change it if you wish.COMMENT
LOWlib/friendly_id/initializer.rb100 # ASCII. If you use this, don't forget to add "babosa" to your Gemfile.COMMENT
LOWlib/friendly_id/initializer.rb100 # ASCII. If you use this, don't forget to add "babosa" to your Gemfile.COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/simple_i18n_test.rb16 journalist = Journalist.new(name: "John Doe")CODE
LOWtest/simple_i18n_test.rb33 journalist = Journalist.new(name: "John Doe")CODE
LOWtest/simple_i18n_test.rb39 journalist = Journalist.new(name: "John Doe")CODE
LOWtest/simple_i18n_test.rb74 journalist.set_friendly_id("John Doe")CODE
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWlib/friendly_id/sequentially_slugged.rb9 def resolve_friendly_id_conflict(candidate_slugs)CODE
LOWlib/friendly_id/slugged.rb337 def resolve_friendly_id_conflict(candidates)CODE
LOWlib/friendly_id/finder_methods.rb114 def raise_not_found_exception(id)CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlib/friendly_id/reserved.rb16 # scaffolding works as expected, one way to accomplish this is to move the errorCOMMENT
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWlib/friendly_id/simple_i18n.rb67 # If you don't pass in a locale argument, FriendlyId::SimpleI18n will just use theCOMMENT
LOWlib/generators/friendly_id_generator.rb8 # new table name. Our generator always uses 'friendly_id_slugs', so we just set a random name here.COMMENT