Sha256: f75e3d59e38c259bf86e2c3d1993b1cc9a8b3b4c6dd1ac24e70b71764edb86a7

Contents?: true

Size: 459 Bytes

Versions: 4

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module CodeAnalyzer::CheckingVisitor
  # This is the checking visitor to check ruby plain code.
  class Plain < Base
    # check the ruby plain code.
    #
    # @param [String] filename is the filename of ruby code.
    # @param [String] content is the content of ruby file.
    def check(filename, content)
      @checkers.each { |checker| checker.check(filename, content) if checker.parse_file?(filename) }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
code_analyzer-0.5.5 lib/code_analyzer/checking_visitor/plain.rb
code_analyzer-0.5.4 lib/code_analyzer/checking_visitor/plain.rb
code_analyzer-0.5.3 lib/code_analyzer/checking_visitor/plain.rb
code_analyzer-0.5.2 lib/code_analyzer/checking_visitor/plain.rb