codeclimate/codeclimate-duplication

View on GitHub
lib/cc/engine/analyzers/node.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not prefix writer method names with set_.
Open

        def set_sexp_line(sexp)
Severity: Minor
Found in lib/cc/engine/analyzers/node.rb by rubocop

This cop makes sure that accessor methods are named properly.

Example:

# bad
def set_attribute(value)
end

# good
def attribute=(value)
end

# bad
def get_attribute
end

# good
def attribute
end

Do not prefix writer method names with set_.
Open

        def set_default_line(default)
Severity: Minor
Found in lib/cc/engine/analyzers/node.rb by rubocop

This cop makes sure that accessor methods are named properly.

Example:

# bad
def set_attribute(value)
end

# good
def attribute=(value)
end

# bad
def get_attribute
end

# good
def attribute
end

There are no issues that match your filters.

Category
Status