Fix RuboCop style offences#397
Conversation
|
I'd like some feedback on how to fix the two remaining style offences.
|
Yeah I don't think the underscore here is the right answer -- I don't know if I would want that rule even for non-timestamp large numbers. +1 to disabling that.
I personally type double-quotes as my 'default'. I agree that consistency is for the best. One small thing that has me favoring double-quotes is that can't use |
Let's enforce double quotes then?
My preference is not a strong one, and it will be RuboCop doing all the heavy lifting in this case. This cop supports auto-correction. 😃 |
|
👍 |
078ff83 to
4cc8b99
Compare
4cc8b99 to
01c1690
Compare
01c1690 to
4cd6fb4
Compare
Remove the dead code.
Writing documentation for all classes and modules is a project of its own. It's something we'll have to deal with later.
IMHO it's the idiomatic way of casting values to booleans.
Ignores offences in `SampleStory` since those methods mimic column definitions in `Story`.
Me: > Most of the offences reported by this cop are UNIX timestamps. I'm not sure if > adding underscores improves readability in these cases. Matt: > Yeah I don't think the underscore here is the right answer -- I don't know if > I would want that rule even for non-timestamp large numbers. +1 to disabling > that.
Neither me nor Matt have a strong opinion on the question of single or double quotes, but we settled on enforcing double quotes for consistency.
4cd6fb4 to
f68e946
Compare
Fixes all remaining style offences reported by RuboCop.
TODO: