decko-commons/decko

View on GitHub
mod/content/set/all/templating.rb

Summary

Maintainability
A
0 mins
Test Coverage

Rename is_structure? to structure?.
Open

def is_structure?
Severity: Minor
Found in mod/content/set/all/templating.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

Rename is_template? to template?.
Open

def is_template?
Severity: Minor
Found in mod/content/set/all/templating.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

There are no issues that match your filters.

Category
Status