europeana/europeana-api-client-ruby

View on GitHub
lib/europeana/api/resource.rb

Summary

Maintainability
A
0 mins
Test Coverage

Rename has_api_endpoint to has_api_endpoint?.
Open

        def has_api_endpoint(name, **options)
Severity: Minor
Found in lib/europeana/api/resource.rb by rubocop

This cop makes sure that predicates are named properly.

Example:

# bad
def is_even?(value)
end

# good
def even?(value)
end

# bad
def has_value?
end

# good
def value?
end

Add an empty line after magic comments.
Open

module Europeana
Severity: Minor
Found in lib/europeana/api/resource.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

There are no issues that match your filters.

Category
Status