Sha256: f17d07c22d4d651f29c6f8cb8ffc56885b5c859e16397616abfa01e5949cd9c7

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

require 'simplabs/excellent/checks/base'

module Simplabs

  module Excellent

    module Checks

      class ForLoopCheck < Base

        def interesting_nodes
          [:for]
        end

        def evaluate(node)
          add_error('For loop used.')
        end

      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simplabs-excellent-1.0.0 lib/simplabs/excellent/checks/for_loop_check.rb
simplabs-excellent-1.0.1 lib/simplabs/excellent/checks/for_loop_check.rb