Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP -- Reduce complexity of group_data method #15250

Closed
wants to merge 3 commits into from

Conversation

ondenman
Copy link
Contributor

term-table.rb contains three methods with an ABC count that fails Rubocop's tests. (#15249)

Tackling the first one -- #group_data -- by breaking it into separate methods.

@tmtmtmtm tmtmtmtm requested a deployment to everypolitician-viewe-pr-15250 August 31, 2016 10:45 Pending
@tmtmtmtm tmtmtmtm requested a deployment to everypolitician-viewe-pr-15250 August 31, 2016 10:46 Pending
Renamed argument to avoid confusion with #memberships_grouped_by_party
@tmtmtmtm tmtmtmtm requested a deployment to everypolitician-viewe-pr-15250 August 31, 2016 10:50 Pending
@tmtmtmtm tmtmtmtm requested a deployment to everypolitician-viewe-pr-15250 August 31, 2016 10:51 Pending
end

SeatCount = Struct.new(:group_id, :name, :member_count)
def party_seat_counts(grouped_memberships)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this take a parameter?

@ondenman
Copy link
Contributor Author

ondenman commented Sep 2, 2016

Closing as restarted on new branch.

@ondenman ondenman closed this Sep 2, 2016
@tmtmtmtm tmtmtmtm removed the 3 - WIP label Sep 2, 2016
@tmtmtmtm tmtmtmtm deleted the reduce-complexity-of-group_data-method branch December 16, 2017 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants