lib/uber/models/activity.rb
Method Uber::History#start_city=
is defined at both lib/uber/models/activity.rb:12 and lib/uber/models/activity.rb:35. Open
Open
def start_city=(value)
- Read upRead up
- Exclude checks
This cop checks for duplicated instance (or singleton) method definitions.
Example:
# bad
def duplicated
1
end
def duplicated
2
end
Example:
# bad
def duplicated
1
end
alias duplicated other_duplicated
Example:
# good
def duplicated
1
end
def other_duplicated
2
end
Method Uber::History#end_time=
is defined at both lib/uber/models/activity.rb:12 and lib/uber/models/activity.rb:31. Open
Open
def end_time=(value)
- Read upRead up
- Exclude checks
This cop checks for duplicated instance (or singleton) method definitions.
Example:
# bad
def duplicated
1
end
def duplicated
2
end
Example:
# bad
def duplicated
1
end
alias duplicated other_duplicated
Example:
# good
def duplicated
1
end
def other_duplicated
2
end
Method Uber::History#start_time=
is defined at both lib/uber/models/activity.rb:12 and lib/uber/models/activity.rb:27. Open
Open
def start_time=(value)
- Read upRead up
- Exclude checks
This cop checks for duplicated instance (or singleton) method definitions.
Example:
# bad
def duplicated
1
end
def duplicated
2
end
Example:
# bad
def duplicated
1
end
alias duplicated other_duplicated
Example:
# good
def duplicated
1
end
def other_duplicated
2
end
Add an empty line after magic comments. Open
Open
module Uber
- Read upRead up
- Exclude checks
Checks for a newline after the final magic comment.
Example:
# good
# frozen_string_literal: true
# Some documentation for Person
class Person
# Some code
end
# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
# Some code
end
Method Uber::History#request_time=
is defined at both lib/uber/models/activity.rb:12 and lib/uber/models/activity.rb:23. Open
Open
def request_time=(value)
- Read upRead up
- Exclude checks
This cop checks for duplicated instance (or singleton) method definitions.
Example:
# bad
def duplicated
1
end
def duplicated
2
end
Example:
# bad
def duplicated
1
end
alias duplicated other_duplicated
Example:
# good
def duplicated
1
end
def other_duplicated
2
end