Closed drusepth closed 9 years ago
Yeah absolutely. ActiveModel actually includes a set of Lint tests that we can include. I'll do some research and stick a few references here. Also there's ruby-lint and Rubocop. I think I'd like to look at using what's built into ActiveModel, then make the most of Rubocop. Then we could consider ruby-lint but I think Rubocop is more widely used.
Also, I'm on vacation all through this coming week, and I can think of nothing I'd enjoy more than to sit and code something fun like this.
Excellent! A lot of people complain lint is a bit too strict sometimes, but I think it'd be good to set up at least and decide whether it's too strict and standardize with some solution accordingly. :dancers:
The recommendation I've heard is to start out very basic, like just enforce ending whitespace. Then you clean up all of those errors, and then work your way up to more strict rules. I think it's called ratcheting.
Can we just jshint (or ruby-equivalent) the whole system and fix everything? Whitespace seems like a good place to start. Not a big deal, but pretty code is pretty code.