summaryrefslogtreecommitdiff
path: root/spec/rubocop
Commit message (Collapse)AuthorAgeFilesLines
* Add AddColumnWithDefaultToLargeTable copRobert Speicher2017-04-281-0/+44
|
* Rename AddColumnWithDefault to ReversibleAddColumnWithDefaultRobert Speicher2017-04-281-2/+2
| | | | | We're going to add another cop that deals with another aspect of `add_column_with_default`, so we need to separate them.
* Add remove_concurrent_index to database helperblackst0ne2017-04-062-0/+76
|
* Add cop to ensure reversibility of add_concurrent_indexDouwe Maan2017-03-071-0/+41
|
* Add RuboCop cop for custom error classesSean McGivern2017-03-011-0/+111
| | | | | | | | | | | | | | | | | | From the Ruby style guide: # bad class FooError < StandardError end # okish class FooError < StandardError; end # good FooError = Class.new(StandardError) This cop does that, but only for error classes (classes where the superclass ends in 'Error'). We have empty controllers and models, which are perfectly valid empty classes.
* Enforce use of add_concurrent_foreign_keyconcurrent-foreign-keysYorick Peterse2017-02-101-0/+33
| | | | | | | This adds a Rubocop rule to enforce the use of add_concurrent_foreign_key instead of the regular add_foreign_key method. This cop has been disabled for existing migrations so we don't need to change those.
* Add a spec for our custom GemFetcher coprs-gemfetcher-cop-specRobert Speicher2017-02-091-0/+46
|
* Add cop that checks if add_column_with_default is used with up/down methodsDouwe Maan2017-02-081-0/+41