Sha256: f8c244158a920c5fb24e3e4f38f2e83713c2a3e5325887500f7399358e61ad9e

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

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

          KIND = 'module'

          def on_rbs_module(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_module_body.rb
rubocop-on-rbs-1.2.0 lib/rubocop/cop/rbs/layout/empty_lines_around_module_body.rb
rubocop-on-rbs-1.1.0 lib/rubocop/cop/rbs/layout/empty_lines_around_module_body.rb
rubocop-on-rbs-1.0.0 lib/rubocop/cop/rbs/layout/empty_lines_around_module_body.rb