Module: FlexAnalyzer
- Defined in:
- lib/flex_analyzer.rb
Instance Method Summary collapse
- #analyze_cpd(src, outfile) ⇒ Object
- #analyze_metrics(src, outfile) ⇒ Object
- #analyze_pmd(src, outdir) ⇒ Object
- #cpd_jar ⇒ Object
- #flex_pmd ⇒ Object
- #java_cmd ⇒ Object
- #java_mem ⇒ Object
- #metrics_jar ⇒ Object
- #pmd_dir ⇒ Object
- #pmd_jar ⇒ Object
- #pmd_ver ⇒ Object
- #run_command(jar, src, out) ⇒ Object
Instance Method Details
#analyze_cpd(src, outfile) ⇒ Object
10 11 12 |
# File 'lib/flex_analyzer.rb', line 10 def analyze_cpd(src,outfile) run_command(cpd_jar,src,outfile) end |
#analyze_metrics(src, outfile) ⇒ Object
14 15 16 |
# File 'lib/flex_analyzer.rb', line 14 def analyze_metrics(src,outfile) run_command(metrics_jar,src,outfile) end |
#analyze_pmd(src, outdir) ⇒ Object
6 7 8 |
# File 'lib/flex_analyzer.rb', line 6 def analyze_pmd(src,outdir) run_command(pmd_jar,src,outdir) end |
#cpd_jar ⇒ Object
48 49 50 |
# File 'lib/flex_analyzer.rb', line 48 def cpd_jar cpd_jar = "flex-pmd-cpd-command-line-" + pmd_ver + ".jar" end |
#flex_pmd ⇒ Object
32 33 34 |
# File 'lib/flex_analyzer.rb', line 32 def flex_pmd FlexPMD.new end |
#java_cmd ⇒ Object
28 29 30 |
# File 'lib/flex_analyzer.rb', line 28 def java_cmd java_cmd = "java -Xmx#{java_mem}" end |
#java_mem ⇒ Object
24 25 26 |
# File 'lib/flex_analyzer.rb', line 24 def java_mem java_mem = "512m" end |
#metrics_jar ⇒ Object
52 53 54 |
# File 'lib/flex_analyzer.rb', line 52 def metrics_jar metrics_jar = "flex-pmd-metrics-command-line-" + pmd_ver + ".jar" end |
#pmd_dir ⇒ Object
36 37 38 |
# File 'lib/flex_analyzer.rb', line 36 def pmd_dir flex_pmd.pmd_dir end |
#pmd_jar ⇒ Object
44 45 46 |
# File 'lib/flex_analyzer.rb', line 44 def pmd_jar pmd_jar = "flex-pmd-command-line-" + pmd_ver + ".jar" end |
#pmd_ver ⇒ Object
40 41 42 |
# File 'lib/flex_analyzer.rb', line 40 def pmd_ver flex_pmd.pmd_ver end |