Sha256: 12781a55099a9765f435f398787d017b6d06d481e18b42005f12dc6815092a46

Contents?: true

Size: 593 Bytes

Versions: 10

Compression:

Stored size: 593 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module RuboCop
  module Cop
    module Style
      # This cops checks if empty lines around the bodies of modules match
      # the configuration.
      #
      # @example
      #
      #   module Test
      #
      #      def something
      #        ...
      #      end
      #
      #   end
      #
      class EmptyLinesAroundModuleBody < Cop
        include EmptyLinesAroundBody

        KIND = 'module'.freeze

        def on_module(node)
          _name, body = *node
          check(node, body)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubocop-0.41.2 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.41.1 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.41.0 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.40.0 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.39.0 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.38.0 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.37.2 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.37.1 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.37.0 lib/rubocop/cop/style/empty_lines_around_module_body.rb
rubocop-0.36.0 lib/rubocop/cop/style/empty_lines_around_module_body.rb