Sha256: 4c28564cce67af05324026f352eaf893e2c2ff736a7c4181bf45c590c964297f

Contents?: true

Size: 579 Bytes

Versions: 16

Compression:

Stored size: 579 Bytes

Contents

# encoding: utf-8

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

        KIND = 'class'

        def on_class(node)
          check(node)
        end

        def on_sclass(node)
          check(node)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubocop-0.35.1 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.35.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.34.2 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.34.1 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.34.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.33.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.32.1 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.32.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.31.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.30.1 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.30.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.29.1 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.29.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.28.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.27.1 lib/rubocop/cop/style/empty_lines_around_class_body.rb
rubocop-0.27.0 lib/rubocop/cop/style/empty_lines_around_class_body.rb