A flexible framework for maintainable Ruby apps
This report summarizes scanner evidence for hanami/hanami, a Ruby project with 6,424 GitHub stars. SynthScan examined 40,697 lines of code across 273 source files, recording 326 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 7.8 (Moderate 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? 308 finding(s).
Are imports declared and package/API names verified? 18 finding(s).
Are wrappers, guards, and repeated structures necessary? 9 finding(s).
Which changes need focused human review? 326 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 326 distinct pattern matches across 4 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 |
|---|---|---|---|---|
| LOW | CHANGELOG.md | 181 | COMMENT | |
| LOW | spec/integration/container/prepare_container_spec.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami.rb | 81 | if lib_path&.directory? | COMMENT |
| LOW | lib/hanami.rb | 161 | # | COMMENT |
| LOW | lib/hanami.rb | 181 | # @example | COMMENT |
| LOW | lib/hanami.rb | 201 | # @example | COMMENT |
| LOW | lib/hanami.rb | 221 | COMMENT | |
| LOW | lib/hanami/slice_configurable.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/routes.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/routes.rb | 21 | # root to: "home.show" | COMMENT |
| LOW | lib/hanami/routes.rb | 61 | end | COMMENT |
| LOW | lib/hanami/errors.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/errors.rb | 21 | COMMENT | |
| LOW | lib/hanami/settings.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/settings.rb | 21 | # # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/settings.rb | 41 | # When the settings are initialized, all type errors will be collected and presented together for | COMMENT |
| LOW | lib/hanami/settings.rb | 61 | # [dry-t]: https://dry-rb.org/gems/dry-types/ | COMMENT |
| LOW | lib/hanami/settings.rb | 181 | COMMENT | |
| LOW | lib/hanami/settings.rb | 201 | # | COMMENT |
| LOW | lib/hanami/app.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/app.rb | 41 | # @return [Hanami::Config] | COMMENT |
| LOW | lib/hanami/app.rb | 61 | # | COMMENT |
| LOW | lib/hanami/slice_name.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/slice_name.rb | 21 | # | COMMENT |
| LOW | lib/hanami/slice_name.rb | 41 | # @since 2.0.0 | COMMENT |
| LOW | lib/hanami/slice_name.rb | 61 | end | COMMENT |
| LOW | lib/hanami/slice_name.rb | 81 | # @since 2.0.0 | COMMENT |
| LOW | lib/hanami/rake_tasks.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/rake_tasks.rb | 21 | # === | COMMENT |
| LOW | lib/hanami/config.rb | 21 | # For the app, this defaults to `Dir.pwd`. For slices detected in `slices/` `config/slices/`, | COMMENT |
| LOW | lib/hanami/config.rb | 41 | # | COMMENT |
| LOW | lib/hanami/config.rb | 61 | # @see Hanami::Settings::EnvStore#fetch | COMMENT |
| LOW | lib/hanami/config.rb | 81 | # config.slices # => ["admin", "search"] | COMMENT |
| LOW | lib/hanami/config.rb | 101 | # @since 2.0.0 | COMMENT |
| LOW | lib/hanami/config.rb | 121 | # @since 2.0.0 | COMMENT |
| LOW | lib/hanami/config.rb | 141 | # top of their source file. | COMMENT |
| LOW | lib/hanami/config.rb | 161 | # | COMMENT |
| LOW | lib/hanami/config.rb | 181 | # @return [Boolean] | COMMENT |
| LOW | lib/hanami/config.rb | 201 | # Sets whether the app can be reloaded in place via `Hanami::Slice.reload`. | COMMENT |
| LOW | lib/hanami/config.rb | 221 | # | COMMENT |
| LOW | lib/hanami/config.rb | 241 | COMMENT | |
| LOW | lib/hanami/config.rb | 261 | # @since 2.0.0 | COMMENT |
| LOW | lib/hanami/config.rb | 281 | # | COMMENT |
| LOW | lib/hanami/config.rb | 301 | # @api public | COMMENT |
| LOW | lib/hanami/config.rb | 321 | # Use this to configure middleware that should apply to all routes. | COMMENT |
| LOW | lib/hanami/config.rb | 341 | # | COMMENT |
| LOW | lib/hanami/config.rb | 361 | # @api public | COMMENT |
| LOW | lib/hanami/config.rb | 461 | logger.finalize! | COMMENT |
| LOW | lib/hanami/config.rb | 481 | # @api public | COMMENT |
| LOW | lib/hanami/config.rb | 501 | # | COMMENT |
| LOW | lib/hanami/config.rb | 521 | # @since 2.0.0 | COMMENT |
| LOW | lib/hanami/config.rb | 541 | # class MyClass | COMMENT |
| LOW | lib/hanami/env.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/slice.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/hanami/slice.rb | 21 | # | COMMENT |
| LOW | lib/hanami/slice.rb | 61 | # memoizes its registrar upon first access, so registering or configuring any provider from | COMMENT |
| LOW | lib/hanami/slice.rb | 81 | COMMENT | |
| LOW | lib/hanami/slice.rb | 101 | # {#register}, {#register_provider}, {#prepare}, {#start}, {#stop}). | COMMENT |
| LOW | lib/hanami/slice.rb | 121 | # Returns true if the slice is Hanami.app | COMMENT |
| LOW | lib/hanami/slice.rb | 141 | def config | COMMENT |
| 227 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .rubocop.yml | 1 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | spec/unit/hanami/universal_logger_spec.rb | 160 | # Create a second independent logger instance | COMMENT |
| MEDIUM | spec/integration/i18n/i18n_spec.rb | 343 | # Create a custom backend | COMMENT |
| MEDIUM | spec/support/rspec.rb | 3 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | spec/support/coverage.rb | 3 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | spec/support/warnings.rb | 3 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | .github/workflows/rubocop.yml | 3 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | .github/workflows/pr-comments.yml | 1 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | .github/workflows/ci.yml | 1 | # This file is synced from hanakai-rb/repo-sync | COMMENT |
| MEDIUM | lib/hanami/config/console.rb | 42 | # Define a module extension to be included in the console | COMMENT |
| MEDIUM | lib/hanami/providers/db.rb | 185 | # Create a single default gateway if none is configured or detected from database URLs | COMMENT |
| MEDIUM | lib/hanami/helpers/form_helper.rb | 12 | # This module provides one primary method: {#form_for}, yielding an HTML form builder. This | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1356 | f.email_field "book.publisher_email", value: "publisher@example.org" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1359 | expect(html).to include %(<input type="email" name="book[publisher_email]" id="book-publisher-email" value="publis | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1392 | f.email_field "book.publisher_email", value: "publisher@example.org" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1395 | expect(html).to include %(<input type="email" name="book[publisher_email]" id="book-publisher-email" value="publ | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1413 | f.email_field "book.publisher_email", value: "publisher@example.org" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1416 | expect(html).to include %(<input type="email" name="book[publisher_email]" id="book-publisher-email" value="publ | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1561 | f.tel_field "book.publisher_telephone", value: "publisher@example.org" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1564 | expect(html).to include %(<input type="tel" name="book[publisher_telephone]" id="book-publisher-telephone" value=" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1597 | f.tel_field "book.publisher_telephone", value: "publisher@example.org" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1600 | expect(html).to include %(<input type="tel" name="book[publisher_telephone]" id="book-publisher-telephone" value | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1618 | f.tel_field "book.publisher_telephone", value: "publisher@example.org" | CODE |
| LOW | spec/unit/hanami/helpers/form_helper_spec.rb | 1621 | expect(html).to include %(<input type="tel" name="book[publisher_telephone]" id="book-publisher-telephone" value | CODE |
| LOW | spec/integration/mailers/mailers_spec.rb | 115 | to "user@example.com" | CODE |
| LOW | spec/integration/mailers/mailers_spec.rb | 143 | to "user@example.com" | CODE |
| LOW | spec/integration/mailers/mailers_spec.rb | 196 | to "user@example.com" | CODE |
| LOW | spec/integration/mailers/mailers_spec.rb | 273 | to "user@example.com" | CODE |
| LOW | spec/integration/db/gateways_spec.rb | 353 | extra_gateway.connection.execute("INSERT INTO users (name) VALUES ('Jane Doe')") | CODE |
| LOW | spec/integration/db/gateways_spec.rb | 358 | expect(Hanami.app["relations.users"].to_a).to eq [{id: 1, name: "Jane Doe"}] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/integration/view/parts/default_rendering_spec.rb | 92 | def slice_screaming_snake_case(str) | CODE |
| LOW | lib/hanami/providers/db.rb | 207 | def apply_parent_gateway_config(key, gw_config) | CODE |
| LOW | lib/hanami/providers/i18n/backend.rb | 330 | def handle_missing_translation(missing_translation, options) | CODE |
| LOW | lib/hanami/providers/i18n/backend.rb | 350 | def expand_localization_format(locale, object, format) | CODE |
| LOW | lib/hanami/helpers/i18n_helper.rb | 174 | def _escape_translation_options(options) | CODE |
| LOW | lib/hanami/helpers/i18n_helper.rb | 185 | def _missing_translation_markup(key, error) | CODE |
| LOW | lib/hanami/helpers/assets_helper.rb | 746 | def _subresource_integrity_value(source, ext) | CODE |
| LOW | lib/hanami/helpers/form_helper/form_builder.rb | 1306 | def _hidden_field_for_check_box(name, attributes) | CODE |
| LOW | lib/hanami/helpers/form_helper/form_builder.rb | 1320 | def _attributes_for_check_box(name, attributes) | CODE |