znamenica/dneslov

View on GitHub
app/models/links/language_link.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
80%

Expression at 9, 57 should be on its own line.
Open

      Languageble.alphabeth_list_for( l.language_code ) } }
Severity: Minor
Found in app/models/links/language_link.rb by rubocop

This cop checks whether the end statement of a do..end block is on its own line.

Example:

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

Space inside parentheses detected.
Open

      Languageble.alphabeth_list_for( l.language_code ) } }
Severity: Minor
Found in app/models/links/language_link.rb by rubocop

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

Missing top-level class documentation comment.
Open

class LanguageLink < Link
Severity: Minor
Found in app/models/links/language_link.rb by rubocop

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

Space inside parentheses detected.
Open

      Languageble.alphabeth_list_for( l.language_code ) } }
Severity: Minor
Found in app/models/links/language_link.rb by rubocop

Checks for spaces inside ordinary round parentheses.

Example:

# bad
f( 3)
g = (a + 3 )

# good
f(3)
g = (a + 3)

There are no issues that match your filters.

Category
Status