Sha256: 4502bb97310a264e7d935e7c113c172723985a43041ae608c78b8eb0d241857b

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module RBS
      module Layout
        # Checks if empty lines around the bodies of classes match
        # the configuration.
        #
        # @example default
        #   # good
        #
        #   class Foo
        #     def bar: () -> void
        #   end
        class EmptyLinesAroundClassBody < RuboCop::RBS::CopBase
          include EmptyLinesAroundBody
          extend AutoCorrector

          KIND = 'class'

          def on_rbs_class(decl)
            check(decl)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-on-rbs-1.3.0 lib/rubocop/cop/rbs/layout/empty_lines_around_class_body.rb
rubocop-on-rbs-1.2.0 lib/rubocop/cop/rbs/layout/empty_lines_around_class_body.rb
rubocop-on-rbs-1.1.0 lib/rubocop/cop/rbs/layout/empty_lines_around_class_body.rb
rubocop-on-rbs-1.0.0 lib/rubocop/cop/rbs/layout/empty_lines_around_class_body.rb