Regroup tests under folder structure (#1443) #182
Annotations
4 errors
|
lint
Process completed with exit code 1.
|
|
parser-no-errors • @herb-tools/linter@0.8.0:
lib/rdoc/generator/template/darkfish/_head.rhtml#L23
`<% else %>` appears outside its control flow block. Keep ERB control flow statements together within the same HTML scope (tag, attribute, or content). (`ERB_CONTROL_FLOW_SCOPE_ERROR`) [parser-no-errors]
lib/rdoc/generator/template/darkfish/_head.rhtml:23:2
21 │ main_page = @files.find { |f| f.full_name == @options.main_page
│ } then %>
22 │ <meta name="description" content="<%= h "#{@title}:
│ #{excerpt(main_page.comment)}" %>">
→ 23 │ <%- else %>
│ ~~~~~~~~~~~
24 │ <meta name="description" content="Documentation for <%= h @title
│ %>">
25 │ <%- end %>
|
|
html-input-require-autocomplete • @herb-tools/linter@0.8.0:
lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml#L4
Add an `autocomplete` attribute to improve form accessibility. Use a specific value (e.g., `autocomplete="email"`), `autocomplete="on"` for defaults, or `autocomplete="off"` to disable. [html-input-require-autocomplete]
lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml:4:6
2 │ <form action="#" method="get" accept-charset="utf-8">
3 │ <div id="search-field-wrapper">
→ 4 │ <input id="search-field" role="combobox" aria-label="Search"
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 │ aria-autocomplete="list" aria-controls="search-results"
6 │ type="text" name="search" placeholder="Search (/) for a
│ class, method, ..." spellcheck="false"
|
|
erb-no-extra-whitespace-inside-tags • @herb-tools/linter@0.8.0:
lib/rdoc/generator/template/darkfish/table_of_contents.rhtml#L50
Remove extra whitespace after `<%-`. [erb-no-extra-whitespace-inside-tags]
lib/rdoc/generator/template/darkfish/table_of_contents.rhtml:50:3
48 │ <ul>
49 │ <%- table.each do |item| %>
→ 50 │ <%- label = item.respond_to?(:label) ? item.label(klass) :
│ item.aref %>
│ ~~~
51 │ <li><a href="<%= klass.path %>#<%= label %>"><%=
│ item.plain_html %></a></li>
52 │ <%- end %>
|