class Blufin::ScannerJsTests
Public Class Methods
scan(path)
click to toggle source
Scan Javascript (test) code. @return void
# File lib/scan/scanner_js_tests.rb, line 7 def self.scan(path) # Check path exists. Blufin::Terminal::error("Path does not exist: #{Blufin::Terminal::format_invalid(path)}") unless Blufin::Files::path_exists(path) @data = {} @errors = [] # Get all file(s) in path. Blufin::Files::get_files_in_dir(path, 'js').each { |file| scan_file(file) } return @data, @errors end
Private Class Methods
scan_file(file)
click to toggle source
Scans a file. @return void
# File lib/scan/scanner_js_tests.rb, line 26 def self.scan_file(file) # TODO NOW - FINISH THIS! end