code_metric_fu 4.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +28 -0
- data/.metrics +3 -0
- data/.rspec +2 -0
- data/.rubocop.yml +15 -0
- data/.rubocop_todo.yml +69 -0
- data/.simplecov +74 -0
- data/.travis.yml +22 -0
- data/.yardopts +4 -0
- data/AUTHORS +12 -0
- data/CONTRIBUTING.md +47 -0
- data/CONTRIBUTORS +76 -0
- data/DEV.md +76 -0
- data/Gemfile +74 -0
- data/Guardfile +30 -0
- data/HISTORY.md +705 -0
- data/MIT-LICENSE +22 -0
- data/README.md +299 -0
- data/Rakefile +27 -0
- data/TODO.md +118 -0
- data/appveyor.yml +31 -0
- data/bin/metric_fu +9 -0
- data/bin/mf-cane +10 -0
- data/bin/mf-churn +10 -0
- data/bin/mf-flay +10 -0
- data/bin/mf-reek +10 -0
- data/bin/mf-roodi +10 -0
- data/bin/mf-saikuro +10 -0
- data/certs/bf4.pem +22 -0
- data/checksum/.gitkeep +0 -0
- data/checksum/metric_fu-4.10.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.11.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.11.1.gem.sha512 +1 -0
- data/checksum/metric_fu-4.11.2.gem.sha512 +1 -0
- data/checksum/metric_fu-4.11.3.gem.sha512 +1 -0
- data/checksum/metric_fu-4.11.4.gem.sha512 +1 -0
- data/checksum/metric_fu-4.12.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.2.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.2.1.gem.sha512 +1 -0
- data/checksum/metric_fu-4.3.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.3.1.gem.sha512 +1 -0
- data/checksum/metric_fu-4.4.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.4.1.gem.sha512 +1 -0
- data/checksum/metric_fu-4.4.2.gem.sha512 +1 -0
- data/checksum/metric_fu-4.4.3.gem.sha512 +1 -0
- data/checksum/metric_fu-4.4.4.gem.sha512 +1 -0
- data/checksum/metric_fu-4.5.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.5.1.gem.sha512 +1 -0
- data/checksum/metric_fu-4.5.2.gem.sha512 +1 -0
- data/checksum/metric_fu-4.6.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.7.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.7.1.gem.sha512 +1 -0
- data/checksum/metric_fu-4.7.2.gem.sha512 +1 -0
- data/checksum/metric_fu-4.7.3.gem.sha512 +1 -0
- data/checksum/metric_fu-4.7.4.gem.sha512 +1 -0
- data/checksum/metric_fu-4.8.0.gem.sha512 +1 -0
- data/checksum/metric_fu-4.9.0.gem.sha512 +1 -0
- data/config/roodi_config.yml +22 -0
- data/config/rubocop.yml +269 -0
- data/gem_tasks/build.rake +197 -0
- data/gem_tasks/rubocop.rake +10 -0
- data/gem_tasks/usage_test.rake +19 -0
- data/gem_tasks/yard.rake +24 -0
- data/lib/metric_fu/calculate.rb +10 -0
- data/lib/metric_fu/cli/client.rb +26 -0
- data/lib/metric_fu/cli/helper.rb +80 -0
- data/lib/metric_fu/cli/parser.rb +138 -0
- data/lib/metric_fu/configuration.rb +150 -0
- data/lib/metric_fu/constantize.rb +57 -0
- data/lib/metric_fu/data_structures/line_numbers.rb +112 -0
- data/lib/metric_fu/data_structures/location.rb +110 -0
- data/lib/metric_fu/data_structures/sexp_node.rb +107 -0
- data/lib/metric_fu/environment.rb +129 -0
- data/lib/metric_fu/errors/analysis_error.rb +4 -0
- data/lib/metric_fu/formatter/html.rb +96 -0
- data/lib/metric_fu/formatter/syntax.rb +45 -0
- data/lib/metric_fu/formatter/yaml.rb +18 -0
- data/lib/metric_fu/formatter.rb +40 -0
- data/lib/metric_fu/gem_run.rb +70 -0
- data/lib/metric_fu/gem_version.rb +92 -0
- data/lib/metric_fu/generator.rb +135 -0
- data/lib/metric_fu/io.rb +132 -0
- data/lib/metric_fu/loader.rb +105 -0
- data/lib/metric_fu/logger.rb +62 -0
- data/lib/metric_fu/logging/mf_debugger.rb +23 -0
- data/lib/metric_fu/metric.rb +143 -0
- data/lib/metric_fu/metrics/cane/generator.rb +95 -0
- data/lib/metric_fu/metrics/cane/grapher.rb +37 -0
- data/lib/metric_fu/metrics/cane/metric.rb +34 -0
- data/lib/metric_fu/metrics/cane/report.html.erb +87 -0
- data/lib/metric_fu/metrics/cane/violations.rb +46 -0
- data/lib/metric_fu/metrics/churn/generator.rb +37 -0
- data/lib/metric_fu/metrics/churn/hotspot.rb +43 -0
- data/lib/metric_fu/metrics/churn/metric.rb +29 -0
- data/lib/metric_fu/metrics/churn/report.html.erb +58 -0
- data/lib/metric_fu/metrics/flay/generator.rb +51 -0
- data/lib/metric_fu/metrics/flay/grapher.rb +37 -0
- data/lib/metric_fu/metrics/flay/hotspot.rb +52 -0
- data/lib/metric_fu/metrics/flay/metric.rb +28 -0
- data/lib/metric_fu/metrics/flay/report.html.erb +29 -0
- data/lib/metric_fu/metrics/flog/generator.rb +113 -0
- data/lib/metric_fu/metrics/flog/grapher.rb +77 -0
- data/lib/metric_fu/metrics/flog/hotspot.rb +46 -0
- data/lib/metric_fu/metrics/flog/metric.rb +29 -0
- data/lib/metric_fu/metrics/flog/report.html.erb +50 -0
- data/lib/metric_fu/metrics/hotspots/analysis/analyzed_problems.rb +34 -0
- data/lib/metric_fu/metrics/hotspots/analysis/analyzer_tables.rb +114 -0
- data/lib/metric_fu/metrics/hotspots/analysis/grouping.rb +23 -0
- data/lib/metric_fu/metrics/hotspots/analysis/groupings.rb +12 -0
- data/lib/metric_fu/metrics/hotspots/analysis/problems.rb +20 -0
- data/lib/metric_fu/metrics/hotspots/analysis/ranked_problem_location.rb +70 -0
- data/lib/metric_fu/metrics/hotspots/analysis/ranking.rb +29 -0
- data/lib/metric_fu/metrics/hotspots/analysis/rankings.rb +91 -0
- data/lib/metric_fu/metrics/hotspots/analysis/record.rb +32 -0
- data/lib/metric_fu/metrics/hotspots/analysis/scoring_strategies.rb +24 -0
- data/lib/metric_fu/metrics/hotspots/analysis/table.rb +67 -0
- data/lib/metric_fu/metrics/hotspots/generator.rb +40 -0
- data/lib/metric_fu/metrics/hotspots/hotspot.rb +87 -0
- data/lib/metric_fu/metrics/hotspots/hotspot_analyzer.rb +61 -0
- data/lib/metric_fu/metrics/hotspots/metric.rb +20 -0
- data/lib/metric_fu/metrics/hotspots/report.html.erb +60 -0
- data/lib/metric_fu/metrics/rails_best_practices/generator.rb +47 -0
- data/lib/metric_fu/metrics/rails_best_practices/grapher.rb +38 -0
- data/lib/metric_fu/metrics/rails_best_practices/metric.rb +31 -0
- data/lib/metric_fu/metrics/rails_best_practices/report.html.erb +22 -0
- data/lib/metric_fu/metrics/rcov/external_client.rb +22 -0
- data/lib/metric_fu/metrics/rcov/generator.rb +75 -0
- data/lib/metric_fu/metrics/rcov/grapher.rb +37 -0
- data/lib/metric_fu/metrics/rcov/hotspot.rb +46 -0
- data/lib/metric_fu/metrics/rcov/metric.rb +61 -0
- data/lib/metric_fu/metrics/rcov/rcov_format_coverage.rb +149 -0
- data/lib/metric_fu/metrics/rcov/rcov_line.rb +48 -0
- data/lib/metric_fu/metrics/rcov/report.html.erb +40 -0
- data/lib/metric_fu/metrics/rcov/simplecov_formatter.rb +74 -0
- data/lib/metric_fu/metrics/reek/generator.rb +97 -0
- data/lib/metric_fu/metrics/reek/grapher.rb +55 -0
- data/lib/metric_fu/metrics/reek/hotspot.rb +95 -0
- data/lib/metric_fu/metrics/reek/metric.rb +26 -0
- data/lib/metric_fu/metrics/reek/report.html.erb +35 -0
- data/lib/metric_fu/metrics/roodi/generator.rb +41 -0
- data/lib/metric_fu/metrics/roodi/grapher.rb +37 -0
- data/lib/metric_fu/metrics/roodi/hotspot.rb +39 -0
- data/lib/metric_fu/metrics/roodi/metric.rb +24 -0
- data/lib/metric_fu/metrics/roodi/report.html.erb +22 -0
- data/lib/metric_fu/metrics/saikuro/generator.rb +145 -0
- data/lib/metric_fu/metrics/saikuro/hotspot.rb +51 -0
- data/lib/metric_fu/metrics/saikuro/metric.rb +31 -0
- data/lib/metric_fu/metrics/saikuro/parsing_element.rb +37 -0
- data/lib/metric_fu/metrics/saikuro/report.html.erb +71 -0
- data/lib/metric_fu/metrics/saikuro/scratch_file.rb +108 -0
- data/lib/metric_fu/metrics/stats/generator.rb +82 -0
- data/lib/metric_fu/metrics/stats/grapher.rb +40 -0
- data/lib/metric_fu/metrics/stats/hotspot.rb +35 -0
- data/lib/metric_fu/metrics/stats/metric.rb +28 -0
- data/lib/metric_fu/metrics/stats/report.html.erb +44 -0
- data/lib/metric_fu/reporter.rb +37 -0
- data/lib/metric_fu/reporting/graphs/graph.rb +69 -0
- data/lib/metric_fu/reporting/graphs/grapher.rb +66 -0
- data/lib/metric_fu/reporting/result.rb +59 -0
- data/lib/metric_fu/run.rb +82 -0
- data/lib/metric_fu/tasks/metric_fu.rake +54 -0
- data/lib/metric_fu/templates/_gem_info.html.erb +8 -0
- data/lib/metric_fu/templates/_graph.html.erb +2 -0
- data/lib/metric_fu/templates/_report_footer.html.erb +1 -0
- data/lib/metric_fu/templates/configuration.rb +25 -0
- data/lib/metric_fu/templates/css/bluff.css +15 -0
- data/lib/metric_fu/templates/css/buttons.css +82 -0
- data/lib/metric_fu/templates/css/default.css +43 -0
- data/lib/metric_fu/templates/css/integrity.css +337 -0
- data/lib/metric_fu/templates/css/rcov.css +32 -0
- data/lib/metric_fu/templates/css/reset.css +7 -0
- data/lib/metric_fu/templates/css/syntax.css +19 -0
- data/lib/metric_fu/templates/index.html.erb +13 -0
- data/lib/metric_fu/templates/javascripts/bluff-min.js +1 -0
- data/lib/metric_fu/templates/javascripts/bluff_graph.js +15 -0
- data/lib/metric_fu/templates/javascripts/excanvas.js +35 -0
- data/lib/metric_fu/templates/javascripts/highcharts.js +294 -0
- data/lib/metric_fu/templates/javascripts/highcharts_graph.js +38 -0
- data/lib/metric_fu/templates/javascripts/js-class.js +1 -0
- data/lib/metric_fu/templates/javascripts/standalone-framework.js +17 -0
- data/lib/metric_fu/templates/javascripts/utils.js +9 -0
- data/lib/metric_fu/templates/layout.html.erb +41 -0
- data/lib/metric_fu/templates/metrics_template.rb +86 -0
- data/lib/metric_fu/templates/report.html.erb +31 -0
- data/lib/metric_fu/templates/report.rb +41 -0
- data/lib/metric_fu/templates/template.rb +247 -0
- data/lib/metric_fu/utility.rb +79 -0
- data/lib/metric_fu/version.rb +9 -0
- data/lib/metric_fu.rb +143 -0
- data/metric_fu.gemspec +72 -0
- data/spec/capture_warnings.rb +55 -0
- data/spec/cli/helper_spec.rb +165 -0
- data/spec/dummy/.gitignore +1 -0
- data/spec/dummy/.gitkeep +0 -0
- data/spec/dummy/.metrics +4 -0
- data/spec/dummy/lib/.gitkeep +0 -0
- data/spec/dummy/lib/bad_encoding.rb +6 -0
- data/spec/dummy/spec/.gitkeep +0 -0
- data/spec/fixtures/20090630.yml +7922 -0
- data/spec/fixtures/coverage-153.rb +11 -0
- data/spec/fixtures/coverage.rb +13 -0
- data/spec/fixtures/exit0.sh +3 -0
- data/spec/fixtures/exit1.sh +3 -0
- data/spec/fixtures/hotspots/flog.yml +86 -0
- data/spec/fixtures/hotspots/generator.yml +47 -0
- data/spec/fixtures/hotspots/generator_analysis.yml +53 -0
- data/spec/fixtures/hotspots/reek.yml +14 -0
- data/spec/fixtures/hotspots/roodi.yml +13 -0
- data/spec/fixtures/hotspots/saikuro.yml +27 -0
- data/spec/fixtures/hotspots/several_metrics.yml +47 -0
- data/spec/fixtures/hotspots/stats.yml +4 -0
- data/spec/fixtures/hotspots/three_metrics_on_same_file.yml +36 -0
- data/spec/fixtures/line_numbers/foo.rb +33 -0
- data/spec/fixtures/line_numbers/module.rb +11 -0
- data/spec/fixtures/line_numbers/module_surrounds_class.rb +15 -0
- data/spec/fixtures/line_numbers/two_classes.rb +11 -0
- data/spec/fixtures/metric_missing.yml +1 -0
- data/spec/fixtures/rcov_output.txt +135 -0
- data/spec/fixtures/saikuro/app/controllers/sessions_controller.rb_cyclo.html +10 -0
- data/spec/fixtures/saikuro/app/controllers/users_controller.rb_cyclo.html +16 -0
- data/spec/fixtures/saikuro/index_cyclo.html +155 -0
- data/spec/fixtures/saikuro_sfiles/thing.rb_cyclo.html +11 -0
- data/spec/metric_fu/calculate_spec.rb +21 -0
- data/spec/metric_fu/configuration_spec.rb +90 -0
- data/spec/metric_fu/data_structures/line_numbers_spec.rb +63 -0
- data/spec/metric_fu/data_structures/location_spec.rb +110 -0
- data/spec/metric_fu/formatter/configuration_spec.rb +44 -0
- data/spec/metric_fu/formatter/html_spec.rb +138 -0
- data/spec/metric_fu/formatter/yaml_spec.rb +61 -0
- data/spec/metric_fu/formatter_spec.rb +49 -0
- data/spec/metric_fu/gem_version_spec.rb +12 -0
- data/spec/metric_fu/generator_spec.rb +130 -0
- data/spec/metric_fu/loader_spec.rb +10 -0
- data/spec/metric_fu/metric_spec.rb +46 -0
- data/spec/metric_fu/metrics/cane/configuration_spec.rb +22 -0
- data/spec/metric_fu/metrics/cane/generator_spec.rb +184 -0
- data/spec/metric_fu/metrics/churn/configuration_spec.rb +13 -0
- data/spec/metric_fu/metrics/churn/generator_spec.rb +64 -0
- data/spec/metric_fu/metrics/flay/configuration_spec.rb +13 -0
- data/spec/metric_fu/metrics/flay/generator_spec.rb +105 -0
- data/spec/metric_fu/metrics/flay/grapher_spec.rb +57 -0
- data/spec/metric_fu/metrics/flog/configuration_spec.rb +18 -0
- data/spec/metric_fu/metrics/flog/generator_spec.rb +77 -0
- data/spec/metric_fu/metrics/flog/grapher_spec.rb +107 -0
- data/spec/metric_fu/metrics/hotspots/analysis/analyzed_problems_spec.rb +104 -0
- data/spec/metric_fu/metrics/hotspots/analysis/analyzer_tables_spec.rb +71 -0
- data/spec/metric_fu/metrics/hotspots/analysis/ranking_spec.rb +30 -0
- data/spec/metric_fu/metrics/hotspots/analysis/rankings_spec.rb +97 -0
- data/spec/metric_fu/metrics/hotspots/analysis/table_spec.rb +6 -0
- data/spec/metric_fu/metrics/hotspots/generator_spec.rb +46 -0
- data/spec/metric_fu/metrics/hotspots/hotspot_analyzer_spec.rb +10 -0
- data/spec/metric_fu/metrics/hotspots/hotspot_spec.rb +16 -0
- data/spec/metric_fu/metrics/rails_best_practices/configuration_spec.rb +55 -0
- data/spec/metric_fu/metrics/rails_best_practices/generator_spec.rb +33 -0
- data/spec/metric_fu/metrics/rails_best_practices/grapher_spec.rb +62 -0
- data/spec/metric_fu/metrics/rcov/configuration_spec.rb +28 -0
- data/spec/metric_fu/metrics/rcov/generator_spec.rb +22 -0
- data/spec/metric_fu/metrics/rcov/grapher_spec.rb +57 -0
- data/spec/metric_fu/metrics/rcov/hotspot_spec.rb +20 -0
- data/spec/metric_fu/metrics/rcov/rcov_line_spec.rb +89 -0
- data/spec/metric_fu/metrics/rcov/simplecov_formatter_spec.rb +67 -0
- data/spec/metric_fu/metrics/reek/configuration_spec.rb +13 -0
- data/spec/metric_fu/metrics/reek/generator_spec.rb +169 -0
- data/spec/metric_fu/metrics/reek/grapher_spec.rb +66 -0
- data/spec/metric_fu/metrics/roodi/configuration_spec.rb +14 -0
- data/spec/metric_fu/metrics/roodi/generator_spec.rb +82 -0
- data/spec/metric_fu/metrics/roodi/grapher_spec.rb +57 -0
- data/spec/metric_fu/metrics/saikuro/configuration_spec.rb +25 -0
- data/spec/metric_fu/metrics/saikuro/generator_spec.rb +71 -0
- data/spec/metric_fu/metrics/stats/generator_spec.rb +96 -0
- data/spec/metric_fu/metrics/stats/grapher_spec.rb +69 -0
- data/spec/metric_fu/reporter_spec.rb +41 -0
- data/spec/metric_fu/reporting/graphs/graph_spec.rb +44 -0
- data/spec/metric_fu/reporting/graphs/grapher_spec.rb +24 -0
- data/spec/metric_fu/reporting/result_spec.rb +50 -0
- data/spec/metric_fu/run_spec.rb +197 -0
- data/spec/metric_fu/templates/configuration_spec.rb +51 -0
- data/spec/metric_fu/templates/metrics_template_spec.rb +11 -0
- data/spec/metric_fu/templates/report_spec.rb +15 -0
- data/spec/metric_fu/templates/template_spec.rb +233 -0
- data/spec/metric_fu/utility_spec.rb +12 -0
- data/spec/metric_fu_spec.rb +33 -0
- data/spec/quality_spec.rb +114 -0
- data/spec/shared/configured.rb +45 -0
- data/spec/shared/test_coverage.rb +95 -0
- data/spec/spec_helper.rb +54 -0
- data/spec/support/deferred_garbaged_collection.rb +33 -0
- data/spec/support/helper_methods.rb +32 -0
- data/spec/support/matcher_create_file.rb +37 -0
- data/spec/support/matcher_create_files.rb +43 -0
- data/spec/support/suite.rb +26 -0
- data/spec/support/test_fixtures.rb +37 -0
- data/spec/support/timeout.rb +7 -0
- data/spec/support/usage_test.rb +150 -0
- data/spec/usage_test_spec.rb +93 -0
- metadata +757 -0
data/HISTORY.md
ADDED
@@ -0,0 +1,705 @@
|
|
1
|
+
Changes are below categorized as `Breaking changes, Features, Fixes, or Misc`.
|
2
|
+
|
3
|
+
Each change should fall into categories that would affect whether the release is major (breaking changes), minor (new behavior), or patch (bug fix). See [semver](http://semver.org/) and [pessimistic versioning](http://docs.rubygems.org/read/chapter/16#page74)
|
4
|
+
|
5
|
+
As such, a _Feature_ would map to either major (breaking change) or minor. A _bug fix_ to a patch. And _misc_ is either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding tests would be patch level.
|
6
|
+
|
7
|
+
### Unreleased
|
8
|
+
|
9
|
+
* Breaking Changes
|
10
|
+
* Features
|
11
|
+
* Setup CI pipeline on AppVeyor and fixed specs. (Rasmus Bergholdt, #285, fixes #284)
|
12
|
+
* Upgraded roodi to v5.0.0 (Jonathan Keam, #287)
|
13
|
+
* Updated jruby-openssl and removed unused rb-notifu gem (Jonathan Keam, #290)
|
14
|
+
* Fixes
|
15
|
+
* Rails best practices options (Noah S-W, #264, #263)
|
16
|
+
* Fix deprecation warnings for Dir.exists? (Jared Szechy, #269)
|
17
|
+
* Fix specs (Luciano Sousa, #270)
|
18
|
+
* Fixed broken dependencies (Jonathan Keam, #279)
|
19
|
+
* FlogCli.flog must receive an expanded list of files (Rasmus Bergholdt, #282, fixes #273)
|
20
|
+
* Fix test warnings (Jonathan Keam, #289, addresses #288)
|
21
|
+
* Misc
|
22
|
+
* Add a Gitter chat badge to README.md (#259)
|
23
|
+
|
24
|
+
|
25
|
+
### [4.12.0](https://github.com/metricfu/metric_fu/compare/v4.11.4...v4.12.0)
|
26
|
+
|
27
|
+
* Features
|
28
|
+
* Add line numbers to reek output. (ggallen, #255)
|
29
|
+
* Use reek directly. (Martin Gotink, #258)
|
30
|
+
* Add support for reek 2. (Martin Gotink, #258)
|
31
|
+
* Fixes
|
32
|
+
* Use same styling for covered as ignored lines. (Martin Gotink, #254)
|
33
|
+
|
34
|
+
### [4.11.4](https://github.com/metricfu/metric_fu/compare/v4.11.3...v4.11.4)
|
35
|
+
|
36
|
+
* Fixes
|
37
|
+
* Hash hotspots output filenames. (Martin Gotink, #247, fixes #246)
|
38
|
+
* Fix invalid file links for rails best practices (Martin Gotink, #248)
|
39
|
+
* Add file links to cane and saikuro reports (Martin Gotink, #248)
|
40
|
+
* Fix incorrectly displaying not covered lines. (Martin Gotink, #249)
|
41
|
+
* Fix simplecov missing logger dependency. (Martin Gotink, #250, fixes #235)
|
42
|
+
|
43
|
+
### [4.11.3](https://github.com/metricfu/metric_fu/compare/v4.11.2...v4.11.3)
|
44
|
+
|
45
|
+
* Fixes
|
46
|
+
* Fix incorrectly passing --config option to reek. (Martin Gotink, #243, fixes #242)
|
47
|
+
|
48
|
+
### [4.11.2](https://github.com/metricfu/metric_fu/compare/v4.11.1...v4.11.2)
|
49
|
+
|
50
|
+
* Fixes
|
51
|
+
* Use reek as library, otherwise reek >= 1.6.2 hangs while reading input from stdin. (Martin Gotink, #240, fixes #239)
|
52
|
+
* Misc
|
53
|
+
* Refactor MetricFu::Templates::MetricsTemplate#write into a composed method. (#237)
|
54
|
+
|
55
|
+
### [4.11.1](https://github.com/metricfu/metric_fu/compare/v4.11.0...v4.11.1)
|
56
|
+
|
57
|
+
* Fixes
|
58
|
+
* Captured shell-output now only includes STDOUT. Appending STDERR was breaking expectations. (Benjamin Fleischer, #230, fixes #229)
|
59
|
+
|
60
|
+
### [4.11.0](https://github.com/metricfu/metric_fu/compare/v4.10.0...v4.11.0)
|
61
|
+
|
62
|
+
* Features
|
63
|
+
* There is now a `MetricFu.logger` with standard available configurations.
|
64
|
+
The old `mf_debug` and `mf_log` main mixin is presevered. Needs documentation. See #113. (Benjamin Fleischer, a49bfdd182)
|
65
|
+
* Use *launchy* (new dependency) when opening output files. (Nick Veys, #224)
|
66
|
+
* Coverage formatter now behaves like SimpleCov; it ignores certain lines in
|
67
|
+
calculating the precent run. Fixes #153, #222 (Benjamin Fleischer, #226).
|
68
|
+
- Thanks to @crv for the test in #153
|
69
|
+
- Note: JRuby will usually report different Coverage from MRI. This is a known issue.
|
70
|
+
- Note: This technically is a *breaking change* from how RCov works. But wwe don't run RCov anymore. (65bf21723291f)
|
71
|
+
* Fixes
|
72
|
+
* Ensure paths with spaces don't cause the open command to fail (Nick Veys, #220)
|
73
|
+
* Read in source files for annotation in BINARY mode to avoid encoding errors. (Benjamin Fleischer, #216)
|
74
|
+
* Start SimpleCov before any MetricFu code is loaded. Coverage isn't tracked on already-loaded code. (Benjamin Fleischer, cca659f7d48d3f6799)
|
75
|
+
* Remove unused/invalid Flay param 'filetypes'. Closes #151. (Benjamin Fleischer, 5973595f51c)
|
76
|
+
* Misc
|
77
|
+
* Document ENV variables the may fix encoding exceptions. (Mike Szyndel, #217)
|
78
|
+
* Begin adding shared tests for metrics and configuration. Test fenced-codeblock matching. (Benjamin Fleischer, #221)
|
79
|
+
* Reorganize the application file layout. Still more to be done. (Benjamin Fleischer, #223)
|
80
|
+
* Rename AwesomeTemplate to MetricFu::Templates::MetricsTemplate. (Benjamin Fleischer, 55c52afd95d78)
|
81
|
+
* Rename ReekHotspot to MetricFu::ReekHotspot. Was missing namespace. (Benjamin Fleischer, a3aa70c1a9)
|
82
|
+
* Allow failures for Ruby 2.1, in addition to rbx per issues with rvm. (Benjamin Fleischer, 3018b22)
|
83
|
+
* `spec/quality_spec.rb` checks for whitespace, tabs, quotes, etc. `rake spec` also checks for warnings. (Benjamin Fleischer, b0c51bb9b17)
|
84
|
+
* When run with COVERAGE=true, will ouptut a file to `coverage/coverage_percent.txt` that can be checked via `rake check_code_coverage`. Borrowed from VCR. (Benjamin Fleischer, 32df3a34c6)
|
85
|
+
|
86
|
+
### [4.10.0 / 2014-04-01](https://github.com/metricfu/metric_fu/compare/v4.9.0...v4.10.0)
|
87
|
+
|
88
|
+
* Features
|
89
|
+
* Implement partials for cleaning up double template code (Martin Gotink, #211)
|
90
|
+
* Fixes
|
91
|
+
* Ensure reek output does not include ANSI color escape codes (Ben Turner #213)
|
92
|
+
* Misc
|
93
|
+
* Remove duplicate methods from generator. (Alessandro Dias Batista, #210)
|
94
|
+
* Encapsulate methods on MetricFu: report_time, report_id, :report_fingerprint, :current_time. (Benjamin Fleischer, #209)
|
95
|
+
|
96
|
+
### [4.9.0 / 2014-03-23](https://github.com/metricfu/metric_fu/compare/v4.8.0...v4.9.0)
|
97
|
+
|
98
|
+
* Features
|
99
|
+
* Add SimpleCov::Formatter::MetricFu, compatible with legacy RCov format (Benjamin Fleischer with h/t Michael @kina, #201)
|
100
|
+
* Add Highcharts JS as available graphing engine (Martin Gotink, #205)
|
101
|
+
|
102
|
+
### [4.8.0 / 2014-02-24](https://github.com/metricfu/metric_fu/compare/v4.7.4...v4.8.0)
|
103
|
+
|
104
|
+
* Features
|
105
|
+
* Add configurable `MetricFu.report_name`. (Paul Swagerty, #203)
|
106
|
+
|
107
|
+
### [4.7.4 / 2014-02-16](https://github.com/metricfu/metric_fu/compare/v4.7.3...v4.7.4)
|
108
|
+
|
109
|
+
* Fixes
|
110
|
+
* Reek no longer crashes when reporting no warnings (Michael Stark, #199)
|
111
|
+
* Prevent Roodi non-metric output from ending up in the results (Martin Gotink #202)
|
112
|
+
* Coverage file is only read in when the specified external file exists. (Benjamin Fleischer, #156)
|
113
|
+
* Metrics are configured to default values before the user config is loaded (Benjamin Fleischer, #156, #78)
|
114
|
+
|
115
|
+
### [4.7.3 / 2014-02-09](https://github.com/metricfu/metric_fu/compare/v4.7.2...v4.7.3)
|
116
|
+
|
117
|
+
* Fixes
|
118
|
+
* Add `strip_escape_codes`; remove from Roodi output. (Przemysław Dąbek, #197)
|
119
|
+
* Misc
|
120
|
+
* Fix markdown in README. (Guilherme Simões, #198)
|
121
|
+
* Add Ruby 2.1 to Travis CI build. (Michael Stark , #200)
|
122
|
+
|
123
|
+
|
124
|
+
### [4.7.2 / 2014-01-21](https://github.com/metricfu/metric_fu/compare/v4.7.1...v4.7.2)
|
125
|
+
|
126
|
+
* Fixes
|
127
|
+
* Open Saikuro scratch files in BINARY; fixes #190. (Benjamin Fleischer, #195)
|
128
|
+
* Update to churn 0.0.35 for API compatibility. (Przemysław Dąbek, #193)
|
129
|
+
* Only specify reek config when set; disable line numbers. (Benjamin Fleischer, #196)
|
130
|
+
|
131
|
+
### [4.7.1 / 2014-01-01](https://github.com/metricfu/metric_fu/compare/v4.7.0...v4.7.1)
|
132
|
+
|
133
|
+
* Fixes
|
134
|
+
* Check for activated gems now works on earlier versions of RubyGems. (Benjamin Fleischer)
|
135
|
+
|
136
|
+
### [4.7.0 / 2013-12-31](https://github.com/metricfu/metric_fu/compare/v4.6.0...v4.7.0)
|
137
|
+
|
138
|
+
* Features
|
139
|
+
* Move to using churn library and allowing all churn options to be passed through to churn library. (Dan Mayer, #182)
|
140
|
+
* Create template for syntax highlighting in report. (Benjamin Fleischer, #179)
|
141
|
+
* Gem deps now derirved from gemspec via regex (from Gemnasium). Related to #184.
|
142
|
+
`--debug-info` will now show the version of the activated gem, if available. (Benjamin Fleischer, #189)
|
143
|
+
* Fixes
|
144
|
+
* Force gemspec to use utf-8 encoding when importing the AUTHORS file. (Paul Swagerty, #183)
|
145
|
+
* Ensure gemspec doesn't crash when reading in AUTHORS file. (saltracer, #184)
|
146
|
+
* Fix bad parsing of reek output. (Greg Allen, #185)
|
147
|
+
* Misc
|
148
|
+
* Spelling correction. (mdb, #177)
|
149
|
+
* Clean up README indentation. (simi, #187)
|
150
|
+
* Tests run faster. (Benjamin Fleischer, #181)
|
151
|
+
* Simplify load paths. (Benjamin Fleicher, #139)
|
152
|
+
* Update to RSpec 3.0.0.beta1. (Benjamin Fleischer)
|
153
|
+
* Update to new release of TestConstruct. (Benjamin Fleischer)
|
154
|
+
|
155
|
+
### MetricFu [4.6.0 / 2013-11-20](https://github.com/metricfu/metric_fu/compare/v4.5.2...v4.6.0)
|
156
|
+
|
157
|
+
* Features
|
158
|
+
* Allow configuration of the generation template, eg link_prefix (Adrien Montfort, #171)
|
159
|
+
* Fixes
|
160
|
+
* Return 0% coverage when the file has no lines. (Chirag Viradiya #152, Benjamin Fleischer, Michael Foley)
|
161
|
+
* Return stats code to test ratio of 0.0 when NaN (Benjamin Fleischer, reported by Greg Allen)
|
162
|
+
* Misc
|
163
|
+
|
164
|
+
### MetricFu [4.5.2 / 2013-11-07](https://github.com/metricfu/metric_fu/compare/v4.4.4...v4.5.2)
|
165
|
+
|
166
|
+
* Misc
|
167
|
+
* Exclude etc dir from built gem; save 1.1MB by not including erd.png. (Benjamin Fleischer, #173)
|
168
|
+
|
169
|
+
### MetricFu [4.5.1 / 2013-11-07](https://github.com/metricfu/metric_fu/compare/v4.4.4...v4.5.1)
|
170
|
+
|
171
|
+
* Features
|
172
|
+
* Fixes
|
173
|
+
* Misc
|
174
|
+
* Releasing the signed gem didn't work. See ed2f96d8
|
175
|
+
|
176
|
+
### MetricFu [4.5.0 / 2013-11-07](https://github.com/metricfu/metric_fu/compare/v4.4.4...v4.5.0)
|
177
|
+
|
178
|
+
* Features
|
179
|
+
* Signed gem; added certs/bf4.pem
|
180
|
+
* Run metrics without shelling out; use Open3.popen3 (Benjamin Fleischer, #157)
|
181
|
+
- GemRun runs external libraries, outputs nice error messages
|
182
|
+
- GemVersion returns version requirements for a gem dependency; replaces metric_fu_requires
|
183
|
+
- Consolidate code that runs external metrics to the generator
|
184
|
+
- `--debug-info` now outputs metric dependencies
|
185
|
+
* Add new MetricFu.run_dir that defaults to Pathname.pwd, but can be set (Benjamin Fleischer, #160)
|
186
|
+
- Used in dummy app for testing 9fcc085
|
187
|
+
* User config (.metrics) now loaded when metric_fu required (Benjamin Fleischer, #158)
|
188
|
+
* Consolidate grapher code; remove gchart grapher (Benjamin Fleischer, 5fd8f4)
|
189
|
+
- Remove bluff gem; bluff grapher is a js library. (Benjamin Fleischer, 8b534c7)
|
190
|
+
* Better rake tasks: can set options form the task (Benjamin Fleischer, 11ac27)
|
191
|
+
- Add ::run(options) and ::run_only(metric_name) to MetricFu namespace
|
192
|
+
* Fixes
|
193
|
+
* Churn hotspot no longer tries to read directories as if they were files (Adrien Montfort, #169)
|
194
|
+
* Set default Reek config to config/*.reek, per Reek docs (Benjamin Fleischer, #165)
|
195
|
+
- Ensure .reek still loaded, for backwards-compatibility
|
196
|
+
* Bump reek patch version due to change in meaning in reek config (Benjamin Fleischer, #166)
|
197
|
+
* Cleanup scratch files Saikuro leaves behind; else they are re-used! (Benjamin Fleischer, 91ac9af)
|
198
|
+
* Various IO-related fixes
|
199
|
+
- Close read pipe when capturing output, per @eclubb, Earle Clubb (6696d42)
|
200
|
+
- Stop leaving files open everywhere, even though 'everyone does it'. (Benjamin Fleischer, #159)
|
201
|
+
- Isolate file-system interactions in specs; rbx specs can pass (Benjamin Fleischer, #161)
|
202
|
+
* Remove unused before/after generator methods; standardize not_implemented message (Benjamin Fleischer, 5842d83)
|
203
|
+
* Misc
|
204
|
+
* Update README, and how to contribute (Benjamin Fleischer, #114)
|
205
|
+
* Set sane defaults for generator per_file_data hash (Benjamin Fleischer, d991fb8)
|
206
|
+
* Ensure gemspec reads AUTHORS from relative path (Benjamin Fleischer, ee0274f)
|
207
|
+
* Configure SimpleCov to run with the html and rcov text formatters (Benjamin Fleischer, d372d00)
|
208
|
+
* Extract CLI option parsing methods (Benjamin Fleischer, a54d018)
|
209
|
+
* Test improvements
|
210
|
+
- Update setup, add pry (Benjamin Fleischer)
|
211
|
+
- Add rspec FAIL_FAST option (bd2745a)
|
212
|
+
- Update spec_helper, add filters, defer gc (3db59d7)
|
213
|
+
- Configure tests not to manage GC under JRuby (000200b)
|
214
|
+
- Remove FakeFS; doesn't seem to be speeding up the tests, but it does break them (afc5518)
|
215
|
+
- Cache test fixtures. (And rename from resources to fixtures.) (Benjamin Fleischer, #164)
|
216
|
+
- Set timeout on each test (Benjamin Fleischer, f1d5f20)
|
217
|
+
- Add devtools-derived guardfile and configs (Benjamin Fleischer, e2463de)
|
218
|
+
- Ensure RailsBestPractices test runs when available (Benjamin Fleischer, #150)
|
219
|
+
|
220
|
+
add all contriubtors
|
221
|
+
|
222
|
+
### MetricFu [4.4.4 / 2013-09-27](https://github.com/metricfu/metric_fu/compare/v4.4.3...v4.4.4)
|
223
|
+
|
224
|
+
* Features
|
225
|
+
* Fixes
|
226
|
+
* Update rcov config instructions in README to include call to activate (Carlos Fernandez, #145)
|
227
|
+
* rcov hotspot analyzer (MetricFu::RcovHotspot) now overrides map_strategy instead of map (Carlos Fernandez, #145)
|
228
|
+
* Fix test failures relating to artifact directory missing (Benjamin Fleischer, #144)
|
229
|
+
* Misc
|
230
|
+
|
231
|
+
### MetricFu [4.4.3 / 2013-09-25](https://github.com/metricfu/metric_fu/compare/v4.4.2...v4.4.3)
|
232
|
+
|
233
|
+
* Features
|
234
|
+
* Fixes
|
235
|
+
* Scratch directory no longer dependent on generator class name. Saikuro works again! (Benjamin Fleischer, #141)
|
236
|
+
* Misc
|
237
|
+
* Metric scratch directory now set via Metric `run_options[:output_directory] || MetricFu::Io::FileSystem.scratch_directory(metric)` (Benjamin Fleischer, #141)
|
238
|
+
|
239
|
+
### MetricFu [4.4.2 / 2013-09-25](https://github.com/metricfu/metric_fu/compare/v4.4.1...v4.4.2)
|
240
|
+
|
241
|
+
* Features
|
242
|
+
* Add --debug-info command line switch to get debug info for Issues. (calveto, #118)
|
243
|
+
* Fixes
|
244
|
+
* Return valid line locations for code with either no AST or nil nodes (Benjamin Fleischer, #137)
|
245
|
+
* Only use FakeFS on MRI. Avoid intermittent failures on JRuby or Rubinius (Benjamin Fleischer, #135)
|
246
|
+
* Hotspots no longer serialize actual classes to YAML. (Benjamin Fleischer, #128)
|
247
|
+
* Misc
|
248
|
+
* Extract SexpNode class from LineNumbers to handle Sexp Processing (Benjamin Fleischer, #137)
|
249
|
+
* Separate out Hotspot ranked problem location and misc code improvements (Benjamin Fleischer, #128)
|
250
|
+
* Identify directories with code to analyze by checking if they exist. (No longer use :rails? as a proxy for checking if we should run on 'app'). (George Erickson, #129)
|
251
|
+
|
252
|
+
### MetricFu [4.4.1 / 2013-08-29](https://github.com/metricfu/metric_fu/compare/v4.4.0...v4.4.1)
|
253
|
+
|
254
|
+
* Features
|
255
|
+
* Fixes
|
256
|
+
* No longer consider an empty sexp in LineNumbers an error. A file with only comments is empty of code. (Benjamin Fleischer)
|
257
|
+
* Prevent encoding errors when using syntax highlighting via coderay (Benjamin Fleischer #120, #131)
|
258
|
+
* Misc
|
259
|
+
* Update dependencies: cane, flay, flog, reek; switch from metric_fu-roodi to revived roodi (Benjamin Fleischer #130)
|
260
|
+
* Update to fully ruby_parser-compatible rails_best_practices (Benjamin Fleischer #133)
|
261
|
+
* Hotspots: remove legacy test code, reduce duplication (Benjamin Fleischer, #127, #77)
|
262
|
+
* Remove a lot of dead code (Benjamin Fleischer, #77)
|
263
|
+
|
264
|
+
### MetricFu 4.4.0 / 2013-08-15
|
265
|
+
|
266
|
+
* Breaking Changes
|
267
|
+
* Removed configuration methods / MetricFu module methods: add_graph, add_metric, configure_graph, configure_metric, configure_graph_engine, graph_engine, metrics, formatters, graphs, graph_engines, rails?, code_dirs, base_directory, scratch_directory, output_directory, data_directory, file_globs_to_ignore, metric_fu_root_directory, template_directory, template_class, link_prefix, darwin_txmt_protocol_no_thanks, syntax_highlighting
|
268
|
+
* Features
|
269
|
+
* Metrics now configure themselves in a subclass of MetricFu::Metric ( Benjamin Fleischer / Robin Curry #91, #111)
|
270
|
+
* Metrics can be configured individually via Metric.configuration.configure_metric(:some_metric) or Metric.configuration.configure_metrics {|metric| }. See .metrics file for examples ( Benjamin Fleischer / Robin Curry #91, #111)
|
271
|
+
* Distinguish between an activated metric library and an enabled metric.
|
272
|
+
* An enabled metric will be run.
|
273
|
+
* An activated metric has had its library successfully required. (Benjamin Fleischer #125)
|
274
|
+
* Code Statistics metrics always runs now, relies on the code_metrics gem extracted from Rails. Does not shell out. ( Benjamin Fleischer, #108 )
|
275
|
+
* Rails Best Practices report now provides a link to the description and solution of the problem (Calveto #117)
|
276
|
+
* Rails Best Practices now runs as a library. It is no longer shelled out. (Calveto #117)
|
277
|
+
* Update flog to ~> 4.1.1, this is needed to use keyword parameters in ruby 2. (George Erickson, #122)
|
278
|
+
* Fixes
|
279
|
+
* Skip reek when no files are found to run against. Otherwise, reek hangs trying to read from STDIN (Benjamin Fleischer, #119, #121)
|
280
|
+
* Reek will now find files on Windows. Remove *nix-specific '/' directory separators from Reek file glob. (Benjamin Fleischer, #119, #121)
|
281
|
+
* Link to correct reek url on report. (Calveto #116)
|
282
|
+
* Hack to accomodate Rails Best Practices dependency Code Analyzer monkey patch of Sexp (Benjamin Fleischer #123, #124)
|
283
|
+
* Misc
|
284
|
+
* Moved environmental concerns into an Environment module ( Benjamin Fleischer / Robin Curry #91, #111)
|
285
|
+
* Exposed RubyParser patch ( Benjamin Fleischer / Robin Curry #91, #111)
|
286
|
+
* Separated out io / filesystem /templating concerns into their own classes or modules. Thus, we removed all the metaprogrammatically defined methods and instance variables.( Benjamin Fleischer / Robin Curry #91, #111, #112, #115)
|
287
|
+
* Generator subclasses can now be found by metric name. MetricFu::Generator.get_generator(:flog) (Benjamin Fleischer, #126)
|
288
|
+
|
289
|
+
### MetricFu 4.3.1 / 2013-08-02
|
290
|
+
|
291
|
+
* Features
|
292
|
+
* Fixes
|
293
|
+
* Misc
|
294
|
+
* Don't set a default flay minimum score (was 100); use flay default (16) instead. (Robin Curry #110)
|
295
|
+
* Loosen gem dependencies. Please report any bugs! (Benjamin Fleischer, #109)
|
296
|
+
|
297
|
+
### MetricFu 4.3.0 / 2013-07-26
|
298
|
+
|
299
|
+
* Features
|
300
|
+
* Allow customization of reporting results using formatters (Robin Curry #94)
|
301
|
+
* Fixes
|
302
|
+
* obey --no-open option (Chris Mason)
|
303
|
+
* Don't run the hotspots metric if it has been disabled (Chris Mason)
|
304
|
+
* No longer crashes when rake stats outputs blank lines (Benjamin Fleischer #103, #24)
|
305
|
+
* Run saikuro metrics the same way as the other metrics (Martin Gotink #100)
|
306
|
+
* Add missing Cane Google Chart Grapher (Benjamin Fleischer)
|
307
|
+
* Fix wrong arguments to display_location, split off line numbers from paths (Benjamin Fleischer #88)
|
308
|
+
* Remove line numbers from direct file link so the browser can open it (Benjamin Fleischer #82)
|
309
|
+
* Make the run specs work without the need to shell out (Robin Curry)
|
310
|
+
* Misc
|
311
|
+
* metric_fu runs with the -r option by default (Chris Mason #69)
|
312
|
+
* Switch to metric_fu-Saikuro gem (Benjamin Fleischer)
|
313
|
+
* Reduce Grapher code duplication (Benjamin Fleischer #89)
|
314
|
+
|
315
|
+
### MetricFu 4.2.1 / 2013-05-23
|
316
|
+
|
317
|
+
* Fixes
|
318
|
+
* Remove ActiveSupport dependencies (Benjamin Fleischer #79)
|
319
|
+
* Add MultiJson to ensure JSON support in rbx and jruby (Benjamin Fleischer)
|
320
|
+
* Misc
|
321
|
+
* Improve STDOUT to show which metric is running but hide the details by default
|
322
|
+
|
323
|
+
### MetricFu 4.2.0 / 2013-05-20
|
324
|
+
|
325
|
+
* Features
|
326
|
+
* Allow setting of the --continue flag with flog (Eric Wollesen)
|
327
|
+
*Fixes
|
328
|
+
* Allow the 2.0.x point releases (Benjamin Fleischer #75)
|
329
|
+
* Misc
|
330
|
+
* Make Location and AnalyzedProblems code more confident (Avdi Grimm)
|
331
|
+
|
332
|
+
### MetricFu 4.1.3 / 2013-05-13
|
333
|
+
|
334
|
+
* Features
|
335
|
+
* Tests now pass in JRuby and Rubinius! (Benjamin Fleischer)
|
336
|
+
* Fixes
|
337
|
+
* Line numbers now display and link properly in annotated code (Benjamin Fleischer)
|
338
|
+
* No longer remove historical metrics when testing metric_fu
|
339
|
+
* Churn metric handler won't crash when no source control found (Dan Mayer)
|
340
|
+
* Misc (Benjamin Fleischer)
|
341
|
+
* Removed StandardTemplate, had no additional value and needed to be maintained
|
342
|
+
* Removed most template references to specific metrics
|
343
|
+
|
344
|
+
### MetricFu 4.1.2 / 2013-04-17
|
345
|
+
|
346
|
+
* Fixes
|
347
|
+
* No longer load rake when running from the command line (Benjamin Fleischer)
|
348
|
+
* Disable rails_best_practices in non-MRI rubies as it requires ripper (Benjamin Fleischer)
|
349
|
+
* Ensure metric executables use the same version the gemfile requires (Benjamin Fleischer)
|
350
|
+
|
351
|
+
### MetricFu 4.1.1 / 2013-04-16
|
352
|
+
|
353
|
+
* Fixes
|
354
|
+
* Fix Syck warning in Ruby > 1.9 (Todd A. Jacobs #58, Benjamin Fleischer)
|
355
|
+
* Cane parser doesn't blow up when no output returned (Guilherme Souza #55)
|
356
|
+
* Fix typo in readme (Paul Elliott #52)
|
357
|
+
* Disable Flog and Cane in non-MRI rubies, as they require ripper (Benjamin Fleischer)
|
358
|
+
* Refactor hotspots and graph code to live in its own metric (Benjamin Fleischer #54, #60)
|
359
|
+
* Use RedCard gem to determine ruby version and ruby engine
|
360
|
+
* Fix Gemfile ssl source warning
|
361
|
+
|
362
|
+
### MetricFu 4.1.0 / 2013-03-06
|
363
|
+
|
364
|
+
* Fix crash in cane when missing readme (Sathish, pull request #51)
|
365
|
+
* Prevent future cane failures on unexpected violations (Sathish, pull request #51)
|
366
|
+
|
367
|
+
### MetricFu 4.0.0 / 2013-03-05
|
368
|
+
|
369
|
+
* Adding cane metrics (Sathish, pull request #49)
|
370
|
+
* Not yet included in hotspots
|
371
|
+
* *Removed ruby 1.8 support*
|
372
|
+
|
373
|
+
### MetricFu 3.0.1 / 2013-03-01
|
374
|
+
|
375
|
+
* Fixed typo in Flay generator (Sathish, pull request #47)
|
376
|
+
|
377
|
+
### MetricFu 3.0.0 / 2013-02-07
|
378
|
+
|
379
|
+
#### Features
|
380
|
+
|
381
|
+
* Included metrics: churn, flay, flog, roodi, saikuro, reek, 'coverage', rails stats, rails_best_practices, hotspots.
|
382
|
+
* Works with ruby 1.9 syntax.
|
383
|
+
* Can be configured just like metrical, with a .metrics file.
|
384
|
+
* Add commandline behavior to `metric_fu`. Try `metric_fu --help`.
|
385
|
+
* Does not require rake to run. Can be run directly from the commandline.
|
386
|
+
* Is tested to run on rbx-19 and jruby-19 in addition to cruby-19 and cruby-18.
|
387
|
+
* churn options include :minimum-churn-count and :start-date, see https://github.com/metricfu/metric_fu/blob/master/lib/metric_fu/metrics/churn/init.rb
|
388
|
+
* Installation and running it have less dependency issues.
|
389
|
+
* Can either load external coverage metrics (rcov or simplecov) or run rcov directly.
|
390
|
+
|
391
|
+
#### Notes:
|
392
|
+
|
393
|
+
* Rcov is not included in the gem, and is off by default.
|
394
|
+
* Rails best practices is not available in ruby 1.8.
|
395
|
+
* Version 2.1.3.7.18.1 is currently the last version fully compatible with 1.8.
|
396
|
+
* Metrical is no longer necessary. Its functionality has been merged into metric_fu.
|
397
|
+
|
398
|
+
#### Other work
|
399
|
+
|
400
|
+
* Re-organized test files - Michael Stark
|
401
|
+
* Rspec2 - Michael Stark
|
402
|
+
* Unify verbose logging with the MF_DEBUG=true commandline flag
|
403
|
+
* Begin to isolate each metric code. Each metric configures itself
|
404
|
+
* Clean up global ivars a bit in Configuration
|
405
|
+
* Thanks to Dan Mayer for helping with churn compatibility
|
406
|
+
* Thanks to Timo Rößner and Matijs van Zuijlen for their work on maintaining reek
|
407
|
+
|
408
|
+
### MetricFu 2.1.3.7.18.1 / 2013-01-09
|
409
|
+
|
410
|
+
* Same as 2.1.3.7.18.1 but gem packaged using ruby 1.8 dependencies, including ripper
|
411
|
+
|
412
|
+
### MetricFu 2.1.3.7.19 / 2013-01-08
|
413
|
+
|
414
|
+
* Bug fix, ensure Configuration is loaded before Run, https://github.com/metricfu/metric_fu/issues/36
|
415
|
+
* Gem packaged using ruby 1.9 dependencies. Learned that we cannot dynamically change dependencies for a packaged gem.
|
416
|
+
|
417
|
+
### MetricFu 2.1.3.6 / 2013-01-02
|
418
|
+
|
419
|
+
* Fixed bug that wasn't show stats or rails_best_practices graphs
|
420
|
+
* Updated churn and rails_best_practices gems
|
421
|
+
* Move the metrics code in the rake task into its own file
|
422
|
+
* Remove executable metric_fu dependency on rake
|
423
|
+
* TODO: some unclear dependency issues may make metrics in 1.9 crash, esp Flog, Flay, Stats
|
424
|
+
|
425
|
+
### MetricFu 2.1.3.5 / 2013-01-01
|
426
|
+
|
427
|
+
* Issue #35, Namespace MetricFu::Table. -Benjamin Fleischer
|
428
|
+
* Additionally namespace
|
429
|
+
* MetricFu::CodeIssue
|
430
|
+
* MetricFu::MetricAnalyzer
|
431
|
+
* MetricFu::AnalysisError
|
432
|
+
* MetricFu::HotspotScoringStrategies
|
433
|
+
* Rename MetricAnalyzer to HotspotAnalyzer, and rename all <metric>Analzyer classes to <metric>Hotspot to signify that they are part of the Hotspot code -Benjamin Fleischer
|
434
|
+
|
435
|
+
### MetricFu 2.1.3.4 / 2012-12-28
|
436
|
+
|
437
|
+
* Restructuring of the project layout
|
438
|
+
* Project is now at https://github.com/metricfu/metric_fu and gem is again metric_fu
|
439
|
+
* Can run tasks as `metric_fu` command
|
440
|
+
|
441
|
+
### MetricFu 2.1.3.2 / 2012-11-14
|
442
|
+
|
443
|
+
* Don't raise an exception in the LineNumbers rescue block. Issue https://github.com/bf4/metric_fu/issues/6 by joonty -Benjamin Fleischer
|
444
|
+
tmp/metric_fu/output/flog.js
|
445
|
+
|
446
|
+
### MetricFu 2.1.3 / 2012-10-25
|
447
|
+
|
448
|
+
* Added to rubygems.org as bf-metric_fu -Benjamin Fleischer
|
449
|
+
* Added to travis-ci -Benjamin Fleischer
|
450
|
+
* Re-enabling Saikuro for ruby 1.9 with jpgolly's gem jpgolly-Saikuro -Benjamin Fleischer
|
451
|
+
* Ensured files are only loaded once -Benjamin Fleischer
|
452
|
+
* Looked at moving to simplecov-rcov, but was unsuccessful -Benjamin Fleischer
|
453
|
+
* Fixed breaking tests, deprecation warnings -Benjamin Fleischer
|
454
|
+
|
455
|
+
### MetricFu 2.1.2 / 2012-09-05
|
456
|
+
|
457
|
+
* Getting it working on Rails 3, partly by going through the pull requests and setting gem dependencies to older, working versions - Benjamin Fleischer
|
458
|
+
* It mostly works on Ruby 1.9, though there is an unresolved sexp_parser issue - Benjamin Fleischer
|
459
|
+
* Added link_prefix to configuration to allow URIs specified in config instead of file or txmt - dan sinclair
|
460
|
+
|
461
|
+
### MetricFu 2.1.1 / 2011-03-2
|
462
|
+
|
463
|
+
* Making syntax highlighting optional (config.syntax_highlighting = false) so Ruby 1.9.2 users don't get "invalid byte sequence in UTF-8" errors.
|
464
|
+
|
465
|
+
### MetricFu 2.1.0 / 2011-03-1
|
466
|
+
|
467
|
+
In 2.1.0 there are a lot of bug fixes. There's a verbose mode (config.verbose = true) that's helpful for debugging (from Dan Sinclair), the ability to opt out of TextMate (from Kakutani Shintaro) opening your files (config.darwin_txmt_protocol_no_thanks = true), and super cool annotations on the Hotspots page so you can see your code problems in-line with the file contents (also from Dan Sinclair).
|
468
|
+
|
469
|
+
* Flog gemspec version was >= 2.2.0, which was too early and didn't work. Changed to >= 2.3.0 - Chris Griego
|
470
|
+
* RCov generator now uses a regex with begin and end line anchor to avoid splitting on comments with equal signs in source files - Andrew Selder
|
471
|
+
* RCov generator now always strips the 3 leading characters from the lines when reconstruction source files so that heredocs and block comments parse successfully - Andrew Selder
|
472
|
+
* Dan Mayer ported some specs for the Hotspots code into MetricFu from Caliper's code.
|
473
|
+
* Stefan Huber fixed some problems with churn pretending not to support Svn.
|
474
|
+
* Kakutani Shintaro added the ability to opt out of opening files with TextMate (config.darwin_txmt_protocol_no_thanks = true).
|
475
|
+
* Joel Nimety and Andrew Selder fixed a problem where Saikuro was parsing a dir twice.
|
476
|
+
* Dan Sinclair added some awesome 'annotate' functionality to the Hotspots page. Click on it so see the file with problems in-line.
|
477
|
+
* Dan Sinclair added a verbose mode (config.verbose = true).
|
478
|
+
|
479
|
+
### MetricFu 2.0.1 / 2010-11-13
|
480
|
+
|
481
|
+
* Delete trailing whitespaces - Delwyn de Villiers
|
482
|
+
* Stop Ubuntu choking on invalid multibyte char (US-ASCII) - Delwyn de Villiers
|
483
|
+
* Fix invalid next in lib/base/metric_analyzer.rb - Delwyn de Villiers
|
484
|
+
* Don't load Saikuro for Ruby 1.9.2 - Delwyn de Villiers
|
485
|
+
* Fixed a bug reported by Andrew Davis on the mailing list where configuring the data directory causes dates to be 0/0 - Joshua Cronemeyer
|
486
|
+
|
487
|
+
### MetricFu 2.0.0 / 2010-11-10
|
488
|
+
|
489
|
+
In 2.0.0 the big new feature is Hotspots. The Hotspots report combines Flog, Flay, Rcov, Reek, Roodi, and Churn numbers into one report so you see parts of your code that have multiple problems like so:
|
490
|
+
|
491
|
+
![Hotspots](http://metric-fu.rubyforge.org/hotspot.gif "That is one terrible method")
|
492
|
+
|
493
|
+
Big thanks to Dan Mayer and Ben Brinckerhoff for the Hotspots code and for helping me integrate it with RCov.
|
494
|
+
|
495
|
+
* Hotspots - Dan Mayer, Ben Brinckerhoff, Jake Scruggs
|
496
|
+
* Rcov integration with Hotspots - Jake Scruggs, Tony Castiglione, Rob Meyer
|
497
|
+
|
498
|
+
### MetricFu 1.5.1 / 2010-7-28
|
499
|
+
|
500
|
+
* Patch that allows graphers to skip dates that didn't generate metrics for that graph (GitHub Issue #20). - Chris Griego
|
501
|
+
* Fixed bug where if you try and use the gchart grapher with the rails_best_practices metric, it blows up (GitHub Issue #23). - Chris Griego
|
502
|
+
* Fixed 'If coverage is 0% metric_fu will explode' bug (GitHub Issue #6). - Stew Welbourne
|
503
|
+
|
504
|
+
### MetricFu 1.5.0 / 2010-7-27
|
505
|
+
|
506
|
+
* Fixed bug where Flay results were not being reported. Had to remove the ability to remove selected files from flay processing (undocumented feature that may go away soon if it keeps causing problems).
|
507
|
+
* Rewrote Flog parsing/processing to use Flog programmatically. Note: the yaml output for Flog has changed significantly - Pages have now become MethodContainers. This probably doesn't matter to you if you are not consuming the metric_fu yaml output.
|
508
|
+
* Added support for using config files in Reek and Roodi (roodi support was already there but undocumented).
|
509
|
+
* Removed verify_dependencies! as it caused too much confusion to justify the limited set of problems it solved. In the post Bundler world it just didn't seem necessary to limit metric_fu dependencies.
|
510
|
+
* Deal with Rails 3 activesupport vs active_support problems. - jinzhu
|
511
|
+
|
512
|
+
### MetricFu 1.4.0 / 2010-06-19
|
513
|
+
|
514
|
+
* Added support for rails_best_practices gem - Richard Huang
|
515
|
+
* Added rails stats graphing -- Josh Cronemeyer
|
516
|
+
* Parameterize the filetypes for flay. By default flay supports haml as well as rb and has a plugin ability for other filetypes. - bfabry
|
517
|
+
* Support for Flog 2.4.0 line numbers - Dan Mayer
|
518
|
+
* Saikuro multi input directory patch - Spencer Dillard and Dan Mayer
|
519
|
+
* Can now parse rcov analysis file coming from multiple sources with an rcov :external option in the config. - Tarsoly András
|
520
|
+
* Fixed open file handles problem in the Saikuro analyzer - aselder, erebor
|
521
|
+
* Fix some problems with the google charts - Chris Griego
|
522
|
+
* Stop showing the googlecharts warning if you are not using google charts.
|
523
|
+
|
524
|
+
### MetricFu 1.3.0 / 2010-01-26
|
525
|
+
|
526
|
+
* Flay can be configured to ignore scores below a threshold (by default it ignores scores less than 100)
|
527
|
+
* When running Rcov you can configure the RAILS_ENV (defaults to 'test') so running metric_fu doesn't interfere with other environments
|
528
|
+
* Changed devver-construct (a gem hosted by GitHub) development dependency to test-construct dependency (on Gemcutter) - Dan Mayer
|
529
|
+
* Upgrade Bluff to 0.3.6 and added tooltips to graphs - Édouard Brière
|
530
|
+
* Removed Saikuro from vendor and added it as a gem dependency - Édouard Brière
|
531
|
+
* Churn has moved outside metric_fu and is now a gem and a dependency - Dan Mayer
|
532
|
+
* Fix 'activesupport' deprecation (it should be 'active_support') - Bryan Helmkamp
|
533
|
+
* Declared development dependencies
|
534
|
+
* Cleaned and sped up specs
|
535
|
+
|
536
|
+
### MetricFu 1.2.0 / 2010-01-09
|
537
|
+
|
538
|
+
* ftools isn't supported by 1.9 so moved to fileutils.
|
539
|
+
* Overhauled the graphing to use Gruff or Google Charts so we no longer depend on ImageMagick/rmagick -- thanks to Carl Youngblood.
|
540
|
+
* Stopped relying on Github gems as they will be going away.
|
541
|
+
|
542
|
+
### MetricFu 1.1.6 / 2009-12-14
|
543
|
+
|
544
|
+
* Now compatible with Reek 1.2x thanks to Kevin Rutherford
|
545
|
+
* Fixed problem with deleted files still showing up in Flog reports thanks to Dan Mayer
|
546
|
+
|
547
|
+
### MetricFu 1.1.5 / 2009-8-13
|
548
|
+
|
549
|
+
* Previous Ruby 1.9 fix was not quite fix-y enough
|
550
|
+
|
551
|
+
### MetricFu 1.1.4 / 2009-7-13
|
552
|
+
|
553
|
+
* Fixed another Ruby 1.9x bug
|
554
|
+
|
555
|
+
### MetricFu 1.1.3 / 2009-7-10
|
556
|
+
|
557
|
+
* MetricFu is now Ruby 1.9x compatible
|
558
|
+
* Removed the check for deprecated ways of configuring metric_fu as the tests were causing Ruby 1.9x problems and it's been forever since they were supported.
|
559
|
+
* Removed total flog score from graph (which will always go up and so doesn't mean much) and replacing it with top_five_percent_average which is an average of the worst 5 percent of your methods.
|
560
|
+
* Sort Flog by highest score in the class which I feel is more important than the total flog flog score.
|
561
|
+
|
562
|
+
### MetricFu 1.1.2 / 2009-7-09
|
563
|
+
|
564
|
+
* Removed dependency on gruff and rmagick (unless the user wants graphs, of course).
|
565
|
+
* New look for styling -- Edouard Brière
|
566
|
+
* Extra param in rcov call was causing problems -- Stewart Welbourne
|
567
|
+
* Preventing rake task from being run multiple times when other rake tasks switch the environment -- Matthew Van Horn
|
568
|
+
* Typo in Rcov dependency verification and fixing parsing Saikuro nested information -- Mark Wilden
|
569
|
+
|
570
|
+
### MetricFu 1.1.1 / 2009-6-29
|
571
|
+
|
572
|
+
* Fix for empty flog files
|
573
|
+
|
574
|
+
### MetricFu 1.1.0 / 2009-6-22
|
575
|
+
|
576
|
+
* Flog, flay, reek, roodi, and rcov reports now graph progress over time. Well done Nick Quaranto and Edouard Brière.
|
577
|
+
* 'Awesome' template has been brought in so that reports look 90% less 'ghetto.' Also done by Nick Quaranto and Edouard Brière.
|
578
|
+
* Added links to TextMate (which keep getting removed. Probably by me. Sorry.) -- David Chelimsky
|
579
|
+
* Fixed a bug for scratch files which have a size of 0 -- Kevin Hall
|
580
|
+
* Changed gem dependencies from install-time in gemspec to runtime when each of the generators is loaded. This allows use of github gems (i.e. relevance-rcov instead of rcov) and also allows you to install only the gems for the metrics you plan on using. -- Alex Rothenberg
|
581
|
+
* Empty Flog file fix -- Adam Bair
|
582
|
+
* Added a simple fix for cases where Saikuro results with nested information -- Randy Souza
|
583
|
+
* Fixed rcov configuration so it ignores library files on Linux -- Diego Carrion
|
584
|
+
* Changing churn so that it still works deeper than the git root directory -- Andrew Timberlake
|
585
|
+
* Andrew Timberlake also made some nice changes to the base template which kinda of got overshadowed by the 'awesome' template. Sorry about that Andrew.
|
586
|
+
|
587
|
+
### MetricFu 1.0.2 / 2009-5-11
|
588
|
+
|
589
|
+
* Fixing problems with Reek new line character (thanks to all who pointed this out)
|
590
|
+
* Flog now recognizes namespaces in method names thanks to Daniel Guettler
|
591
|
+
* Saikuro now looks at multiple directories, again.
|
592
|
+
|
593
|
+
### MetricFu 1.0.1 / 2009-5-3
|
594
|
+
|
595
|
+
* metrics:all task no longer requires a MetricFu::Configuration.run {} if you want to accept the defaults
|
596
|
+
* rcov task now reports total coverage percent
|
597
|
+
|
598
|
+
### MetricFu 1.0.0 / 2009-4-30
|
599
|
+
|
600
|
+
* Merged in Grant McInnes' work on creating yaml output for all metrics to aid harvesting by other tools
|
601
|
+
* Supporting Flog 2.1.0
|
602
|
+
* Supporting Reek 1.0.0
|
603
|
+
* Removed dependency on Rails Env for 3.months.ago (for churn report), now using chronic gem ("3 months ago").
|
604
|
+
* Almost all code is out of Rakefiles now and so is more easily testable
|
605
|
+
* Metrics inherit from a refactored Generator now. New metrics generators just have to implement "emit", "analyze", "to_h" and inherit from Generator. They also must have a template. See the flay generator and template for a simple implementation.
|
606
|
+
* You now define the metrics you wish to run in the configuration and then run "metrics:all". No other metrics task is exposed by default.
|
607
|
+
|
608
|
+
### MetricFu 0.9.0 / 2009-1-25
|
609
|
+
|
610
|
+
* Adding line numbers to the views so that people viewing it on cc.rb can figure out where the problems are
|
611
|
+
* Merging in changes from Jay Zeschin having to do with the railroad task -- I still have no idea how to use it (lemme know if you figure it out)
|
612
|
+
* Added totals to Flog results
|
613
|
+
* Moved rcov options to configuration
|
614
|
+
|
615
|
+
### MetricFu 0.8.9 / 2009-1-20
|
616
|
+
|
617
|
+
* Thanks to Andre Arko and Petrik de Heus for adding the following features:
|
618
|
+
* The source control type is auto-detected for Churn
|
619
|
+
* Moved all presentation to templates
|
620
|
+
* Wrote specs for all classes
|
621
|
+
* Added flay, Reek and Roodi metrics
|
622
|
+
* There's now a configuration class (see README for details)
|
623
|
+
* Unification of metrics reports
|
624
|
+
* Metrics can be generated using one command
|
625
|
+
* Adding new metrics reports has been standardized
|
626
|
+
|
627
|
+
### MetricFu 0.8.0 / 2008-10-06
|
628
|
+
|
629
|
+
* Source Control Churn now supports git (thanks to Erik St Martin)
|
630
|
+
* Flog Results are sorted by Highest Flog Score
|
631
|
+
* Fix for a bunch of 'already initialized constant' warnings that metric_fu caused
|
632
|
+
* Fixing bug so the flog reporter can handle methods with digits in the name (thanks to Andy Gregorowicz)
|
633
|
+
* Internal Rake task now allows metric_fu to flog/churn itself
|
634
|
+
|
635
|
+
### MetricFu 0.7.6 / 2008-09-15
|
636
|
+
|
637
|
+
* CHURN_OPTIONS has become MetricFu::CHURN_OPTIONS
|
638
|
+
* SAIKURO_OPTIONS has become MetricFu::SAIKURO_OPTIONS
|
639
|
+
* Rcov now looks at test and specs
|
640
|
+
* Exclude gems and Library ruby code from rcov
|
641
|
+
* Fixed bug with churn start_date functionality (bad path)
|
642
|
+
|
643
|
+
### MetricFu 0.7.5 / 2008-09-12
|
644
|
+
|
645
|
+
* Flog can now flog any set of directories you like (see README).
|
646
|
+
* Saikuro can now look at any set of directories you like (see README).
|
647
|
+
|
648
|
+
### MetricFu 0.7.1 / 2008-09-12
|
649
|
+
|
650
|
+
* Fixed filename bugs pointed out by Bastien
|
651
|
+
|
652
|
+
### MetricFu 0.7.0 / 2008-09-11
|
653
|
+
|
654
|
+
* Merged in Sean Soper's changes to metric_fu.
|
655
|
+
* Metric_fu is now a gem.
|
656
|
+
* Flogging now uses a MD5 hash to figure out if it should re-flog a file (if it's changed)
|
657
|
+
* Flogging also has a cool new output screen(s)
|
658
|
+
* Thanks Sean!
|
659
|
+
|
660
|
+
### Metricks 0.4.2 / 2008-07-01
|
661
|
+
|
662
|
+
* Changed rcov output directory so that it is no longer 'coverage/unit' but just 'coverage' for better integration with CC.rb
|
663
|
+
|
664
|
+
### Metricks 0.4.1 / 2008-06-13
|
665
|
+
|
666
|
+
* Rcov tests now extend beyond one level depth directory by using RcovTask instead of the shell
|
667
|
+
|
668
|
+
### Metricks 0.4.0 / 2008-06-13
|
669
|
+
|
670
|
+
* Implementing functionality for use as a gem
|
671
|
+
* Added Rakefile to facilitate testing
|
672
|
+
|
673
|
+
### Metricks 0.3.0 / 2008-06-11
|
674
|
+
|
675
|
+
* Generated reports now open on darwin automatically
|
676
|
+
* Generated reports reside under tmp/metricks unless otherwise specified by ENV['CC_BUILD_ARTIFACTS']
|
677
|
+
* MD5Tracker works with Flog reports for speed optimization
|
678
|
+
|
679
|
+
### Metricks 0.2.0 / 2008-06-11
|
680
|
+
|
681
|
+
* Integrated use of base directory constant
|
682
|
+
* Have all reports automatically open in a browser if platform is darwin
|
683
|
+
* Namespaced under Metricks
|
684
|
+
* Dropped use of shell md5 command in favor of Ruby's Digest::MD5 libraries
|
685
|
+
|
686
|
+
### Metricks 0.1.0 / 2008-06-10
|
687
|
+
|
688
|
+
* Initial integration of metric_fu and my enhancements to flog
|
689
|
+
* Metrics are generated but are all over the place
|
690
|
+
|
691
|
+
### MetricFu 0.6.0 / 2008-05-11
|
692
|
+
|
693
|
+
* Add source control churn report
|
694
|
+
|
695
|
+
### MetricFu 0.5.1 / 2008-04-25
|
696
|
+
|
697
|
+
* Fixed bug with Saikuro report generation - thanks Toby Tripp
|
698
|
+
|
699
|
+
### MetricFu 0.5.0 / 2008-04-25
|
700
|
+
|
701
|
+
* create MetricFu as a Rails Plugin
|
702
|
+
* Add Flog Report
|
703
|
+
* Add Coverage Report
|
704
|
+
* Add Saikuro Report
|
705
|
+
* Add Stats Report
|