Sha256: 6e0be75ab01db30b95854da8d0a1748987d5f001ad6a6ed1df4e4643cff4aff6

Contents?: true

Size: 297 Bytes

Versions: 13

Compression:

Stored size: 297 Bytes

Contents

# encoding: utf-8
module CodeAnalyzer::CheckingVisitor
  # Base class for checking visitor.
  class Base
    def initialize(options={})
      @checkers = options[:checkers]
    end

    def after_check; end

    def warnings
      @warnings ||= @checkers.map(&:warnings).flatten
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
code_analyzer-0.4.8 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.7 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.6 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.5 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.4 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.3 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.2 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.1 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.4.0 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.3.2 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.3.1 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.3.0 lib/code_analyzer/checking_visitor/base.rb
code_analyzer-0.2.0 lib/code_analyzer/checking_visitor/base.rb