Sha256: 0c16edef696b5361e42f1259a6ddac1ba3d4bb25f7922225a86a219d051ffc0b

Contents?: true

Size: 620 Bytes

Versions: 4

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

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

          KIND = 'interface'

          def on_rbs_interface(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_interface_body.rb
rubocop-on-rbs-1.2.0 lib/rubocop/cop/rbs/layout/empty_lines_around_interface_body.rb
rubocop-on-rbs-1.1.0 lib/rubocop/cop/rbs/layout/empty_lines_around_interface_body.rb
rubocop-on-rbs-1.0.0 lib/rubocop/cop/rbs/layout/empty_lines_around_interface_body.rb