Closed robbyoconnor closed 4 years ago
With commit 8931f1ae, we should slowly see an increase in the CC grade.
CodeClimate is being a little too strict, so we hope to loosen up some of its checks to improve this.
That's kind of the point. It's supposed to be strict -- it's running a linter.
On 10/30/18 11:22 AM, Tim Zabel wrote:
With commit 8931f1a https://github.com/RITlug/teleirc/commit/8931f1ae3f5a70acfe6e38588b569375aeab2d85, we should slowly see an increase in the CC grade.
CodeClimate is being a little too strict, so we hope to loosen up some of its checks to improve this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RITlug/teleirc/issues/64#issuecomment-434343855, or mute the thread https://github.com/notifications/unsubscribe-auth/AABaMIN7nOeO20PLDYQcsshCJIDTHs2zks5uqG7QgaJpZM4Vvks3.
I get that it is supposed to be strict, but it seems to be overly strict. We're testing out a threshold before CC declares code to be duplicates, which is where a lot of the issues seem to arise.
If this doesn't work we can always revert to what it's been doing.
Are we okay with CC's limit of 25 lines per method? Would we want to raise this to 30, or consider a re-factor of all methods above 25?
You can customize things -- Code Climate allows you to make calls on your own :) On 12/28/18 3:26 PM, Tim Zabel wrote:
Are we okay with CC's limit of 25 lines per method? Would we want to raise this to 30, or consider a re-factor of all methods above 25?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RITlug/teleirc/issues/64#issuecomment-450421970, or mute the thread https://github.com/notifications/unsubscribe-auth/AABaMByIfWWAC8WJhnwGOUmt7QtmtI7oks5u9n6RgaJpZM4Vvks3.
@Tjzabel 30 lines over 25 lines feels like a harmless change. When I write code, I'm more liberal with breaking things across multiple lines anyways for the benefit of readability.
There are valid reasons for deviating from coding standards...do so with good reason though. On 1/6/19 9:55 PM, Justin W. Flory wrote:
@Tjzabel https://github.com/Tjzabel 30 lines over 25 lines feels like a harmless change. When I write code, I'm more liberal with breaking things across multiple lines anyways for the benefit of readability.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RITlug/teleirc/issues/64#issuecomment-451807108, or mute the thread https://github.com/notifications/unsubscribe-auth/AABaMJyw8kK12dtCttIoqUc5OUblxm26ks5vArcggaJpZM4Vvks3.
Since we are in the middle of rewriting the codebase (#163) and already have some issues open to discuss code style and best practices (#73, #207), I'm going to close this issue as wontfix
for the time being. Once we ship the v2.0.0 release and figure out what tools we can use for code health, we can open a new issue to discuss this later.
Closing. :clapper:
This is REALLY great for beginners looking to get their feet wet who knows Node.js well and has good code design instincts.
Currently we are at a D -- let's get it up!