Sha256: 3dd77b1bdb9788267290424c9bb1711524ecbbe688df507417e7e54e348c2b0b

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
  <style>
    .container {
      margin: 0 auto;
      width: 980px;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>
      ESLint Report <%= "(after auto-corrections)" if params[:should_autocorrect] %>
      <small>
        <%= link_to 'eslint.json', config_file_path %>
      </small>
    </h1>
    <table class="table">
      <thead>
        <tr>
          <th>Location</th>
          <th>Severity</th>
          <th>Rule</th>
          <th>Message</th>
        </tr>
      </thead>
      <tbody>
        <% @warnings.each do |warning| %>
          <%
             row_class = case warning.severity
             when :low
               'warning'
             when :high
               'danger'
             else
               ''
             end
          %>
          <tr class="<%= row_class %>">
            <td><%= link_to(
                      "#{warning.line}:#{warning.column}",
                      eslint_source_path(filename: @filename, anchor: warning.line)
                    ) %></td>
            <td><%= warning.severity.to_s.capitalize %></td>
            <td><%= link_to warning.rule_id, "http://eslint.org/docs/rules/#{warning.rule_id}.html" %></td>
            <td><%= warning.message %></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eslint-rails-ee-1.0.3 app/views/eslint/show.html.erb
eslint-rails-ee-1.0.2 app/views/eslint/show.html.erb