test/models/activity_test.rb
Line is too long. [111/80] Open
Open
activity = Activity.new(user_id: users(:one).id, objective_id: meetups(:one).id, objective_type: 'Meetup' )
- Exclude checks
Extra empty line detected at class body end. Open
Open
end
- Read upRead up
- Exclude checks
This cops checks if empty lines around the bodies of classes match the configuration.
Example: EnforcedStyle: empty_lines
# good
class Foo
def bar
# ...
end
end
Example: EnforcedStyle: emptylinesexcept_namespace
# good
class Foo
class Bar
# ...
end
end
Example: EnforcedStyle: emptylinesspecial
# good
class Foo
def bar; end
end
Example: EnforcedStyle: noemptylines (default)
# good
class Foo
def bar
# ...
end
end
Space inside parentheses detected. Open
Open
activity = Activity.new(user_id: users(:one).id, objective_id: meetups(:one).id, objective_type: 'Meetup' )
- Read upRead up
- Exclude checks
Checks for spaces inside ordinary round parentheses.
Example:
# bad
f( 3)
g = (a + 3 )
# good
f(3)
g = (a + 3)