Skip to content

Put Reported Issue's Mass in Read Up Contents #45

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

Merged
merged 3 commits into from
Nov 18, 2015
Merged

Conversation

wfleming
Copy link
Contributor

One aspect of the duplication engine that is different from other engines
and that can be frustrating is that the main dial you can turn to adjust
the results, mass threshold, is a completely invisible value once the issue
has been reported to CC (either .com or CLI). As a user, this makes the
engine difficult to configure because even though the README documents how
to set the mass threshold, the fact that you can't ever see what mass
issues have makes the feedback loop between getting results and deciding
what your settings should be basically impossible.

This is an attempt to remediate this problem by describing generally what
mass is, and what its specific value for an issue is, within the read up
contents. This makes the value accessible without unduly cluttering the
description with that value.

Also some other minor cleanup of copy & the test suite I ran into while I was doing this.

👀 @codeclimate/review

this was old & not up to date or useful: I'm co-opting it to run the
spec suite in docker to avoid local setup woes.
private

def read_up_path
relative_path = "../../../../config/contents/duplicated_code.md.erb"
Copy link
Contributor

Choose a reason for hiding this comment

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

Thoughts on making this a constant?

@BlakeWilliams
Copy link
Contributor

I like the extracted class! LGTM

One aspect of the duplication engine that is different from other
engines and that can be frustrating is that the main dial you can turn
to adjust the results, mass threshold, is a completely invisible value
once the issue has been reported to CC (either .com or CLI). As a user,
this makes the engine difficult to configure because even though the
README documents how to set the mass threshold, the fact that you can't
ever see what mass issues have makes the feedback loop between getting
results and deciding what your settings should be basically impossible.

This is an attempt to remediate this problem by describing generally
what mass is, and what its specific value for an issue is, within the
read up contents. This makes the value accessible without unduly
cluttering the description with that value.
@wfleming wfleming force-pushed the will/mass-in-readup branch from 1e5fd2a to 4af82cc Compare November 18, 2015 18:19
wfleming added a commit that referenced this pull request Nov 18, 2015
Put Reported Issue's Mass in Read Up Contents
@wfleming wfleming merged commit 8c6f2b7 into master Nov 18, 2015
@wfleming wfleming deleted the will/mass-in-readup branch November 18, 2015 18:34
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