chrisenytc/uber-sdk

View on GitHub
lib/uber/models/activity.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method Uber::History#start_city= is defined at both lib/uber/models/activity.rb:12 and lib/uber/models/activity.rb:35.
Open

    def start_city=(value)
Severity: Minor
Found in lib/uber/models/activity.rb by rubocop

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

    def end_time=(value)
Severity: Minor
Found in lib/uber/models/activity.rb by rubocop

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

    def start_time=(value)
Severity: Minor
Found in lib/uber/models/activity.rb by rubocop

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

module Uber
Severity: Minor
Found in lib/uber/models/activity.rb by rubocop

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

    def request_time=(value)
Severity: Minor
Found in lib/uber/models/activity.rb by rubocop

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

There are no issues that match your filters.

Category
Status