route_downcaser icon indicating copy to clipboard operation
route_downcaser copied to clipboard

add rubocop as a development dependency

Open timdiggins opened this issue 5 years ago • 5 comments

Seems like a shame to have defined rubocop config (and implemented rubocop changes) and not enforce it.

I've pinned the version of rubocop to the latest version to prevent arbitrary correctness changes.

timdiggins avatar Mar 14 '21 07:03 timdiggins

Thank you so much for contributing.

We run Rubocop via Code Climate, though, (see https://codeclimate.com/github/substancelab/route_downcaser/pull/47 for an example). I wonder if it is worth running it on Travis as well?

koppen avatar Mar 31 '21 13:03 koppen

Ah ok, I didn't see that. But it would be helpful to make it a development dependency pinned to the version being used. (just to make it easier to develop on). Shall I adjust the PR to remove travis and keep the dev dependency? Or if you're not convinced, you can just close it :)

timdiggins avatar Apr 02 '21 16:04 timdiggins

Have made this change in case helpful

timdiggins avatar Apr 02 '21 16:04 timdiggins

I am toying with the idea of switching to https://github.com/testdouble/standard instead of raw Rubocop. It would require us to not rely on Code Climate, but that's not a dealbreaker for me.

What do you think of this instead?

koppen avatar Apr 02 '21 20:04 koppen

I don't see a problem with testdouble/standard -- the standards seem more sensible than rubocop defaults.

And in terms of moving the rubocop from codeclimate to travis -- I would generally prefer this as I feel like a codeclimate fail is advisory (and needs informed judgement) whereas rubocop fail (like test suite fail) tend to be more absolute.

timdiggins avatar Apr 06 '21 13:04 timdiggins

We've switched to standard by now.

koppen avatar Jun 02 '23 08:06 koppen