Module: LintWare

Defined in:
lib/helpers/lint_ware.rb

Class Method Summary collapse

Class Method Details

.init_dir_linting(error_bin, path) ⇒ Object



31
32
33
34
35
36
37
38
# File 'lib/helpers/lint_ware.rb', line 31

def self.init_dir_linting(error_bin, path)
  if CheckJsFiles.find_dir(path)
    files = CheckJsFiles.seek_js(path)
    files.each { |file| start_all(error_bin, file) } && files
  else
    CheckJsFiles.find_dir(path)
  end
end

.init_files_linting(error_bin, path) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/helpers/lint_ware.rb', line 23

def self.init_files_linting(error_bin, path)
  if CheckJsFiles.find_file(path)
    start_all(error_bin, path)
  else
    puts "No such File as #{path}".yellow
  end
end