Method: CodeAnalyzer::Checker#parse_file?

Defined in:
lib/code_analyzer/checker.rb

#parse_file?(node_file) ⇒ Boolean

check if the checker will parse the node file.

Parameters:

  • the (String)

    file name of node.

Returns:

  • (Boolean)

    true if the checker will parse the file.



20
21
22
# File 'lib/code_analyzer/checker.rb', line 20

def parse_file?(node_file)
  interesting_files.any? { |pattern| node_file =~ pattern }
end