codeforamerica/ohana-api

View on GitHub
app/models/concerns/parent_presence_validatable.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

ParentPresenceValidatable#parents has the variable name 'a'
Open

    belongs_to_associations.map { |a| send(a.name) }

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

ParentPresenceValidatable#list_of_parents has the variable name 'a'
Open

    belongs_to_associations.map { |a| a.name.to_s.titleize }.join(' or ')

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

There are no issues that match your filters.

Category
Status