lib/ruumba/analyzer.rb
# Performs static analysis on the provided directory.
# @param [Array<String>] dir The directory to analyze.
Performs static analysis on the provided directory.
Performs static analysis on the provided directory .
def run(dir = ARGV)
      fq_dir = Pathname.new(File.expand_path(dir.first))
      pwd = Pathname.new ENV['PWD']
      target = fq_dir.relative_path_from(pwd)
      tmp = create_temp_dir
      copy_erb_files(fq_dir, tmp, pwd)
      run_rubocop(target, tmp)
    end
def run ( dir = ARGV ) fq_dir = Pathname . new ( File . expand_path ( dir . first ) ) pwd = Pathname . new ENV [ 'PWD' ] target = fq_dir . relative_path_from ( pwd ) tmp = create_temp_dir copy_erb_files ( fq_dir , tmp , pwd ) run_rubocop ( target , tmp ) end
Performs static analysis on the provided directory.
Performs static analysis on the provided directory .
dir
<not_specific>
<not_specific>
dir The directory to analyze.
dir The directory to analyze .