Growstuff/growstuff

View on GitHub
app/views/admin/roles/index.html.haml

Summary

Maintainability
Test Coverage

Unexpected trailing spaces found.
Open

          = link_to edit_admin_role_path(role), class: 'btn btn-default btn-xs' do 

Line is too long. [144/120]
Open

          = link_to admin_role_path(role), method: :delete, data: { confirm: t(:are_you_sure?) }, class: 'btn btn-default btn-xs text-danger' do

HamlLint/LineLength

Option Description
max Maximum number of columns a single line can have. (default 80)

Wrap lines at 80 characters. You can configure this amount via the max option on the linter, e.g. by adding the following to your .haml-lint.yml:

linters:
  LineLength:
    max: 100

Long lines are harder to read and usually indicative of complexity. You can avoid them by splitting long attribute hashes on a comma, for example:

%tag{ attr1: 1,
      attr2: 2,
      attr3: 3 }

This significantly improves readability.

Line contains trailing whitespace
Open

          = link_to edit_admin_role_path(role), class: 'btn btn-default btn-xs' do 

HamlLint/TrailingWhitespace

HAML documents should not contain trailing whitespace (spaces or tabs) on any lines.

There are no issues that match your filters.

Category
Status