gitlab-org--gitlab-foss/rubocop/cop
Sean McGivern 8dd097a915 Add RuboCop cop for custom error classes
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.
2017-03-01 10:53:10 +00:00
..
migration Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
custom_error_class.rb Add RuboCop cop for custom error classes 2017-03-01 10:53:10 +00:00
gem_fetcher.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00