ngauthier/opentracing-ruby

View on GitHub
lib/opentracing/span.rb

Summary

Maintainability
A
0 mins
Test Coverage

Unused method argument - fields. If it's necessary, use _ or _fields as an argument name to indicate that it won't be used. You can also write as log(*) if you want the method to accept any arguments but don't care about them.
Open

    def log(event: nil, timestamp: Time.now, **fields)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - key. If it's necessary, use _ or _key as an argument name to indicate that it won't be used. You can also write as set_tag(*) if you want the method to accept any arguments but don't care about them.
Open

    def set_tag(key, value)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - event. You can also write as log(*) if you want the method to accept any arguments but don't care about them.
Open

    def log(event: nil, timestamp: Time.now, **fields)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - value. If it's necessary, use _ or _value as an argument name to indicate that it won't be used. You can also write as set_tag(*) if you want the method to accept any arguments but don't care about them.
Open

    def set_tag(key, value)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - key. If it's necessary, use _ or _key as an argument name to indicate that it won't be used. You can also write as get_baggage_item(*) if you want the method to accept any arguments but don't care about them.
Open

    def get_baggage_item(key)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - value. If it's necessary, use _ or _value as an argument name to indicate that it won't be used. You can also write as set_baggage_item(*) if you want the method to accept any arguments but don't care about them.
Open

    def set_baggage_item(key, value)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - timestamp. You can also write as log(*) if you want the method to accept any arguments but don't care about them.
Open

    def log(event: nil, timestamp: Time.now, **fields)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - end_time. You can also write as finish(*) if you want the method to accept any arguments but don't care about them.
Open

    def finish(end_time: Time.now)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Unused method argument - key. If it's necessary, use _ or _key as an argument name to indicate that it won't be used. You can also write as set_baggage_item(*) if you want the method to accept any arguments but don't care about them.
Open

    def set_baggage_item(key, value)
Severity: Minor
Found in lib/opentracing/span.rb by rubocop

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

There are no issues that match your filters.

Category
Status