Top Level Namespace

Defined Under Namespace

Modules: HTMLStyleSheet, MetricFu, ResultIndexGenerator, Saikuro Classes: BaseFormater, EndableParseState, Filter, HTMLTokenCounterFormater, ParseBlock, ParseClass, ParseComment, ParseCond, ParseDef, ParseDoCond, ParseModule, ParseState, ParseStateFormater, ParseSymbol, StateHTMLComplexityFormater, TokenCounter, TokenCounterFormater

Instance Method Summary collapse

Methods included from ResultIndexGenerator

#list_analyzed_files, #print_summary_table_rows, #summarize_errors_and_warnings, #write_cyclo_index, #write_index, #write_token_index

Instance Method Details

#get_ruby_files(input_path) ⇒ Object



1123
1124
1125
1126
1127
1128
1129
1130
1131
# File 'lib/metric_fu/saikuro/saikuro.rb', line 1123

def get_ruby_files(input_path)
  files = Array.new
  input_path.split("|").each do |path|
    Find.find(path.strip) do |f|
      files << f if !FileTest.directory?(f) && f =~ /\.rb$/
    end
  end
  files
end

#seperate_file_from_path(path) ⇒ Object

Returns the path without the file



1114
1115
1116
1117
1118
1119
1120
1121
# File 'lib/metric_fu/saikuro/saikuro.rb', line 1114

def seperate_file_from_path(path)
  res = path.split("/")
  if res.size == 1
    ""
  else
    res[0..res.size - 2].join("/")
  end
end