varvet/godmin

View on GitHub
lib/godmin/resources/resource_service/associations.rb

Summary

Maintainability
A
0 mins
Test Coverage

Rename has_many_map to many_map?.
Open

          def has_many_map

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

Rename has_many to many?.
Open

          def has_many(attr, options = {})

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

There are no issues that match your filters.

Category
Status