lib/zoom_search.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

    def find_private_related_items_for(item, zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - options. If it's necessary, use _ or _options as an argument name to indicate that it won't be used. You can also write as count_private_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def count_private_items_for(zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - item. If it's necessary, use _ or _item as an argument name to indicate that it won't be used. You can also write as find_private_related_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def find_private_related_items_for(item, zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - options. If it's necessary, use _ or _options as an argument name to indicate that it won't be used. You can also write as count_public_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def count_public_items_for(zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - zoom_class. If it's necessary, use _ or _zoom_class as an argument name to indicate that it won't be used. You can also write as find_private_related_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def find_private_related_items_for(item, zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - zoom_class. If it's necessary, use _ or _zoom_class as an argument name to indicate that it won't be used. You can also write as find_public_related_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def find_public_related_items_for(item, zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - zoom_class. If it's necessary, use _ or _zoom_class as an argument name to indicate that it won't be used. You can also write as count_private_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def count_private_items_for(zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - zoom_class. If it's necessary, use _ or _zoom_class as an argument name to indicate that it won't be used. You can also write as count_public_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def count_public_items_for(zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - item. If it's necessary, use _ or _item as an argument name to indicate that it won't be used. You can also write as find_public_related_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def find_public_related_items_for(item, zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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 - options. If it's necessary, use _ or _options as an argument name to indicate that it won't be used. You can also write as find_public_related_items_for(*) if you want the method to accept any arguments but don't care about them.
Open

    def find_public_related_items_for(item, zoom_class, options = {})
Severity: Minor
Found in lib/zoom_search.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