Acceptance test framework for web applications
This report summarizes scanner evidence for teamcapybara/capybara, a Ruby project with 10,178 GitHub stars. SynthScan examined 38,612 lines of code across 273 source files, recording 229 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 6.7 (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? 214 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 14 finding(s).
Which changes need focused human review? 229 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 229 distinct pattern matches across 5 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 | README.md | 781 | page.find(:field, 'Greeting') == page.find_field('Greeting') # => true | COMMENT |
| LOW | .github/lock.yml | 21 | COMMENT | |
| LOW | .github/workflows/build.yml | 101 | # - uses: actions/checkout@v7 | COMMENT |
| LOW | .github/workflows/build.yml | 121 | # - uses: actions/checkout@v7 | COMMENT |
| LOW | lib/capybara.rb | 21 | class InfiniteRedirectError < CapybaraError; end | COMMENT |
| LOW | lib/capybara.rb | 41 | # See {Capybara.configure} | COMMENT |
| LOW | lib/capybara.rb | 61 | ## | COMMENT |
| LOW | lib/capybara.rb | 81 | # - **default_normalize_ws** (Boolean = `false`) - Whether text predicates and matchers use normalize whitespace beh | COMMENT |
| LOW | lib/capybara.rb | 101 | # - **server_errors** (Array\<Class> = `[Exception]`) - Error classes that should be raised in the tests if they are | COMMENT |
| LOW | lib/capybara.rb | 121 | # | COMMENT |
| LOW | lib/capybara.rb | 141 | # Rack::Handler::WEBrick.run(app, ...) | COMMENT |
| LOW | lib/capybara.rb | 161 | # xpath { |num| ".//tbody/tr[#{num}]" } | COMMENT |
| LOW | lib/capybara.rb | 181 | # | COMMENT |
| LOW | lib/capybara.rb | 221 | # anchor[:href] #=> 'foo' | COMMENT |
| LOW | lib/capybara.rb | 241 | Capybara::Node::Simple.new(html) | COMMENT |
| LOW | lib/capybara.rb | 321 | # | COMMENT |
| LOW | lib/capybara/helpers.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/helpers.rb | 41 | ## | COMMENT |
| LOW | lib/capybara/result.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/session.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/session.rb | 21 | # current values of the global options and a configuration block can be passed to the session initializer. | COMMENT |
| LOW | lib/capybara/session.rb | 221 | # | COMMENT |
| LOW | lib/capybara/session.rb | 241 | # session.visit('http://google.com') | COMMENT |
| LOW | lib/capybara/session.rb | 301 | ## | COMMENT |
| LOW | lib/capybara/session.rb | 321 | # Not supported by Rack Test | COMMENT |
| LOW | lib/capybara/session.rb | 341 | # | COMMENT |
| LOW | lib/capybara/session.rb | 381 | end | COMMENT |
| LOW | lib/capybara/session.rb | 461 | Window.new(self, driver.current_window_handle) | COMMENT |
| LOW | lib/capybara/session.rb | 501 | # window = switch_to_window { title == 'Page title' } | COMMENT |
| LOW | lib/capybara/session.rb | 521 | _switch_to_window(window, **options, &window_locator) | COMMENT |
| LOW | lib/capybara/session.rb | 561 | _switch_to_window(original) unless original == window_or_proc | COMMENT |
| LOW | lib/capybara/session.rb | 601 | # @param [String] script A string of JavaScript to execute | COMMENT |
| LOW | lib/capybara/session.rb | 641 | # Execute the block, accepting a alert. | COMMENT |
| LOW | lib/capybara/session.rb | 661 | end | COMMENT |
| LOW | lib/capybara/session.rb | 681 | end | COMMENT |
| LOW | lib/capybara/session.rb | 701 | dismiss_modal(:prompt, text, options, &blk) | COMMENT |
| LOW | lib/capybara/session.rb | 721 | COMMENT | |
| LOW | lib/capybara/session.rb | 741 | # and file will be given randomly generated filename. If invoked with a relative path | COMMENT |
| LOW | lib/capybara/selector.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | lib/capybara/selector.rb | 21 | # * **:xpath** - Select elements by XPath expression | COMMENT |
| LOW | lib/capybara/selector.rb | 41 | # | COMMENT |
| LOW | lib/capybara/selector.rb | 61 | # * :valid (Boolean) - Match fields that are valid/invalid according to HTML5 form validation | COMMENT |
| LOW | lib/capybara/selector.rb | 81 | # page.html # => '<fieldset disabled> | COMMENT |
| LOW | lib/capybara/selector.rb | 101 | # page.html # => '<a href="/"><img src="/logo.png" alt="The logo"></a>' | COMMENT |
| LOW | lib/capybara/selector.rb | 121 | # page.html # => '<button name="article[state]" value="draft">Save as draft</button>' | COMMENT |
| LOW | lib/capybara/selector.rb | 141 | # * **:fillable_field** - Find text fillable fields ( textarea, input [not of type submit, image, radio, checkbox, hidde | COMMENT |
| LOW | lib/capybara/selector.rb | 161 | # ``` | COMMENT |
| LOW | lib/capybara/selector.rb | 181 | # page.find :radio_button, 'Published', checked: true | COMMENT |
| LOW | lib/capybara/selector.rb | 201 | # page.find :checkbox, 'I agree to terms and conditions', unchecked: true | COMMENT |
| LOW | lib/capybara/selector.rb | 221 | # # <option value="General" checked></option> | COMMENT |
| LOW | lib/capybara/selector.rb | 241 | # ```ruby | COMMENT |
| LOW | lib/capybara/selector.rb | 261 | # | COMMENT |
| LOW | lib/capybara/selector.rb | 281 | # * Filters: | COMMENT |
| LOW | lib/capybara/selector.rb | 301 | # * :name (String, Regexp) - Matches the name attribute | COMMENT |
| LOW | lib/capybara/selector.rb | 321 | # ```ruby | COMMENT |
| LOW | lib/capybara/selector.rb | 341 | # # <caption>A table</caption> | COMMENT |
| LOW | lib/capybara/selector.rb | 361 | # page.find :table, with_rows: [ | COMMENT |
| LOW | lib/capybara/selector.rb | 381 | # # <tr> | COMMENT |
| LOW | lib/capybara/selector.rb | 401 | # * Filters: | COMMENT |
| LOW | lib/capybara/config.rb | 41 | # By default, Capybara will try to use puma. | COMMENT |
| 135 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | lib/capybara/spec/public/jquery-ui.js | 6 | (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a, | CODE |
| CRITICAL | lib/capybara/spec/public/jquery-ui.js | 8 | return e.datepicker._get(n,"constrainInput")?(i=e.datepicker._possibleChars(e.datepicker._get(n,"dateFormat")),s=String. | CODE |
| CRITICAL | lib/capybara/spec/public/jquery.js | 4 | marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/capybara/selector/definition.rb | 47 | # Define a selector by an xpath expression | COMMENT |
| MEDIUM | lib/capybara/selector/definition.rb | 65 | # Define a selector by a CSS selector | COMMENT |
| MEDIUM | lib/capybara/selector/definition.rb | 133 | # Define a node filter for use with this selector | COMMENT |
| MEDIUM | lib/capybara/selector/definition.rb | 150 | # Define an expression filter for use with this selector | COMMENT |
| MEDIUM | lib/capybara/node/base.rb | 44 | # This method is Capybara's primary defence against asynchronicity | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/regexp_dissassembler_spec.rb | 244 | def verify_alternated_strings(hsh, wrap: false) | CODE |
| LOW | lib/capybara/selenium/atoms/src/isDisplayed.js | 392 | function getParentNodeInComposedDom(node) { | CODE |
| LOW | lib/capybara/selenium/extensions/scroll.rb | 32 | def scroll_element_to_location(element, location) | CODE |
| LOW | lib/capybara/selector/definition.rb | 180 | def describe_expression_filters(&block) | CODE |
| LOW | lib/capybara/selector/definition.rb | 190 | def describe_all_expression_filters(**opts) | CODE |
| LOW | lib/capybara/selector/builders/xpath_builder.rb | 62 | def regexp_to_xpath_conditions(regexp) | CODE |
| LOW | lib/capybara/selector/definition/table.rb | 92 | def row_match_cells_to_headers(row) | CODE |
| LOW | lib/capybara/spec/spec_helper.rb | 131 | def be_an_invalid_element_error(session) | CODE |
| LOW | lib/capybara/queries/selector_query.rb | 242 | def find_nodes_by_selector_format(node, exact) | CODE |
| LOW | lib/capybara/rack_test/browser.rb | 54 | def process_and_follow_redirects(method, path, attributes = {}, env = {}) | CODE |
| LOW | lib/capybara/node/whitespace_normalizer.rb | 71 | def normalize_visible_spacing(text) | CODE |
| LOW | lib/capybara/node/matchers.rb | 602 | def assert_not_matches_selector(*args, &optional_filter_block) | CODE |
| LOW | lib/capybara/node/matchers.rb | 894 | def _set_query_session_options(*query_args) | CODE |
| LOW | lib/capybara/node/actions.rb | 310 | def find_select_or_datalist_input(from, options) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 119 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 163 | User.create(email: 'user@example.com', password: 'password') | CODE |
| LOW | README.md | 169 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 194 | User.create(email: 'user@example.com', password: 'caplin') | CODE |
| LOW | README.md | 200 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 999 | fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | README.md | 1070 | session.fill_in 'Email', with: 'user@example.com' | CODE |
| LOW | lib/capybara/spec/session/ancestor_spec.rb | 14 | expect(el.ancestor('//p')).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/spec/session/ancestor_spec.rb | 37 | expect(el.ancestor(:css, 'p')).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/spec/session/ancestor_spec.rb | 50 | expect(el.ancestor(:xpath, '//p')).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/spec/session/all_spec.rb | 65 | expect(paras[0]).to have_text('Lorem ipsum dolor') | CODE |
| LOW | lib/capybara/node/matchers.rb | 733 | # page.has_text?('lorem ipsum', between: 2..4) | COMMENT |