ikuseiGmbH/Goldencobra

View on GitHub
admin/dashboards.rb

Summary

Maintainability
A
0 mins
Test Coverage

Extra blank line detected.
Open


  # == Render Partial Section
Severity: Minor
Found in admin/dashboards.rb by rubocop

This cops checks for two or more consecutive blank lines.

Example:

# bad - It has two empty lines.
some_method
# one empty line
# two empty lines
some_method

# good
some_method
# one empty line
some_method

Unnecessary utf-8 encoding comment.
Open

# encoding: utf-8
Severity: Minor
Found in admin/dashboards.rb by rubocop

This cop checks ensures source files have no utf-8 encoding comments.

Example:

# bad
# encoding: UTF-8
# coding: UTF-8
# -*- coding: UTF-8 -*-

Line is too long. [103/100]
Open

  #       render "recent_posts" # => this will render /app/views/admin/dashboard/_recent_posts.html.erb
Severity: Minor
Found in admin/dashboards.rb by rubocop

This cop checks the length of lines in the source code. The maximum length is configurable. The tab size is configured in the IndentationWidth of the Layout/Tab cop.

Incorrect indentation detected (column 2 instead of 4).
Open

  # Will render the "Recent Users" then the "Recent Posts" sections on the dashboard.
Severity: Minor
Found in admin/dashboards.rb by rubocop

This cops checks the indentation of comments.

Example:

# bad
  # comment here
def method_name
end

  # comment here
a = 'hello'

# yet another comment
  if true
    true
  end

# good
# comment here
def method_name
end

# comment here
a = 'hello'

# yet another comment
if true
  true
end

There are no issues that match your filters.

Category
Status