Conversation
Codecov Report
@@ Coverage Diff @@
## master #249 +/- ##
=========================================
Coverage ? 80.24%
=========================================
Files ? 57
Lines ? 1083
Branches ? 251
=========================================
Hits ? 869
Misses ? 155
Partials ? 59 |
363bf13 to
1f3364f
Compare
dcocchia
left a comment
There was a problem hiding this comment.
Do you feel like this refactor based on the Code Climate report is worthwhile? I’d like to use it more if it is, but I also don’t want to force people to rearrange bits to make some tool happy if it doesn’t help :)
|
I would say it was 50/50. I feel like a tool like this is great as an overall guide but I don't think striving for all A's should be the goal (not that anyone stated it is the goal). There were some improvements I made that felt good but to get rid of all of the issues I definately felt I was refactoring for the tool vs maintainability and readibility. Code golf is fun but I felt like I was code golfing vs trying to improve a shared lib. I think I would prefer to go back and reintroduce some offenders before merging this. |
|
I will push a few more commits later. They will reduce the file scores but I'm curious where the happy medium falls. Maybe a B or greater is a good goal. I think sensible rules around a good tool now are is better than waiting for the perfect tool and adopting none at all. |
|
Great feedback :) If you remove some of the code changes, let’s keep track of which rules seem arbitrary or too strict. We can change the code climate config to match our needs |
8df3718 to
da58962
Compare
da58962 to
8de7703
Compare
|
Hmm, I reintroduced some of the code that was offending before and it's no longer an issue... I was definitely getting hits on too many return statements and too many args for a function. These are good rules overall and I think we would get value in keeping them. |
|
Interesting 🤔 Well, I think we can safely merge and keep track of our feelings on the code climate reports with future PRs to adjust how strict the rules are |
will be pushing commits