Let's add RuboCop Continuous Integration to plots2 so that the code is as per the ruby guide.
@siaw23 @jywarren currently we have 1473 rubocop offences. I think we can solve this in the prs itself after the rubocop ci addition to plots2
I wonder if we could:
first-timers-only issues for these, but at some reasonable pace (not all at once as we couldn't be supportive of that many people at once!)What do you think?
@ryzokuken - you'd been interested in this! I'm also curious.
@SidharthBansal can you link to the RuboCop CI and also describe how it'd work?
@siaw23 was mentioning that somehow RuboCop could automatically fix things. I haven't been able to dig out info on that but if there's a link we could look at, that sounds interesting!
Link https://github.com/ad2games/rubocop-ci
The person sending a patch needs to do bundle exec rake rubocop:auto_correct to fix most of the issues automatically before committing the changes.
We can add the exceptions in .rubocop_todo.yml file.
Link https://github.com/ad2games/rubocop-ci
The person sending a patch needs to do bundle exec rake rubocop:auto_correct to fix most of the issues automatically before committing the changes.
We can add the exceptions in .rubocop_todo.yml file.
my thoughts exactly for a long time now. we should finally get this done. i can single-handedly do this if need be. no automation. Rubocop itself is VERY friendly in pointing out what's wrong, how to fix it.
i can single-handedly do this if need be.
Ok great.
i'd like to go ahead with this but without the "generating first-timers-only issues" part as i'm not a fan of bots. please let provide thoughts on this. @jywarren
oh cool! single-handedly meaning implementing the cleanup yourself?
I am thinking there are 2 variants we may want to discuss -- A) cleanup of
the current codebase, B) potential to run a code cleanup step on new code
automatically as it's submitted in a PR. Is that right?
Thanks all!!!
On Mon, Jul 2, 2018 at 9:48 AM Emmanuel Hayford notifications@github.com
wrote:
i'd like to go ahead with this but without the "generating
first-timers-only issues" part as i'm not a fan of bots. please let provide
thoughts on this. @jywarren https://github.com/jywarren—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2919#issuecomment-401810056,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ8znCJAtN3UN2EttCUKiIW9ZsAQAks5uCiSSgaJpZM4U3AtY
.
yeap. i think creating first-time-issues for this will take forever. so instead i'll do it.
A. yes
B. yes
lol ok!!
On Tue, Jul 3, 2018 at 8:40 AM Emmanuel Hayford notifications@github.com
wrote:
yeap. i think creating first-time-issues for this will take forever. so
instead i'll do it.A. yes
B. yes—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/2919#issuecomment-402142035,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ90TUtXqCSWLtU-D0Nnx4M8uqlhPks5uC2YwgaJpZM4U3AtY
.
by "forever" i meant there are lots of offences/cleanups we have to do, if we had to divide those into small bits it'd take a very long time to finish everything vs a couple of people doing everything in bulk in a short period of time. but i think i can divide them into chunks for first timers, maybe a group of 5 cops at a time and see how it goes... i think it'd be nice to have these easy tasks around to welcome and encourage new contributors.
@SidharthBansal @jywarren
Link https://github.com/ad2games/rubocop-ci
The person sending a patch needs to do bundle exec rake rubocop:auto_correct to fix most of the issues automatically before committing the changes.
We can add the exceptions in .rubocop_todo.yml file.
I also think we can encourage contributors to add git pre-commit hooks to "force" users to to run rubocop before they commit
Yeah, we should encourage them to run rubocop. We can add that in documentation or in the pull request message.
maybe a group of 5 cops at a time
Sounds interesting
This sounds great -- once we're ready for FTOs, let's make just one that we can take a look at and see if it's approximately an appropriate amount to work on for a newcomer, before starting to generate a lot.
Thanks for thinking this through!
Most helpful comment
by "forever" i meant there are lots of offences/cleanups we have to do, if we had to divide those into small bits it'd take a very long time to finish everything vs a couple of people doing everything in bulk in a short period of time. but i think i can divide them into chunks for first timers, maybe a group of 5 cops at a time and see how it goes... i think it'd be nice to have these easy tasks around to welcome and encourage new contributors.