Changes are below categorized as Features, Fixes, or Misc
.
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 and pessimistic versioning
As such, a Feature would map to either major 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.
- Features
- Fixes
- Misc
- Update to rails_best_practices that removes activesupport dependency (for inflecto). (Benjamin Fleischer, #134)
MetricFu 4.4.3 / 2013-09-25
- Features
- Fixes
- Scratch directory no longer dependent on generator class name. Saikuro works again! (Benjamin Fleischer, #141)
- Misc
- Metric scratch directory now set via Metric
run_options[:output_directory] || MetricFu::Io::FileSystem.scratch_directory(metric)
(Benjamin Fleischer, #141)
- Metric scratch directory now set via Metric
MetricFu 4.4.2 / 2013-09-25
- Features
- Add --debug-info command line switch to get debug info for Issues. (calveto, #118)
- Fixes
- Return valid line locations for code with either no AST or nil nodes (Benjamin Fleischer, #137)
- Only use FakeFS on MRI. Avoid intermittent failures on JRuby or Rubinius (Benjamin Fleischer, #135)
- Hotspots no longer serialize actual classes to YAML. (Benjamin Fleischer, #128)
- Misc
- Extract SexpNode class from LineNumbers to handle Sexp Processing (Benjamin Fleischer, #137)
- Separate out Hotspot ranked problem location and misc code improvements (Benjamin Fleischer, #128)
- 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)
MetricFu 4.4.1 / 2013-08-29
- Features
- Fixes
- No longer consider an ampty sexp in LineNumbers an error. A file with only comments is empty of code. (Benjamin Fleischer)
- Prevent encoding errors when using syntax highlighting via coderay (Benjamin Fleischer #120, #131)
- Misc
- Update dependencies: cane, flay, flog, reek; switch from metric_fu-roodi to revived roodi (Benjamin Fleischer #130)
- Update to fully ruby_parser-compatible rails_best_practices (Benjamin Fleischer #133)
- Hotspots: remove legacy test code, reduce duplication (Benjamin Fleischer, #127, #77)
- Remove a lot of dead code (Benjamin Fleischer, #77)
- Features
- Metrics now configure themselves in a subclass of MetricFu::Metric ( Benjamin Fleischer / Robin Curry #91, #111)
- 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)
- Distinguish between an activated metric library and an enabled metric.
- An enabled metric will be run.
- An activated metric has had its library successfully required. (Benjamin Fleischer #125)
- Code Statistics metrics always runs now, relies on the code_metrics gem extracted from Rails. Does not shell out. ( Benjamin Fleischer, #108 )
- Rails Best Practices report now provides a link to the description and solution of the problem (Calveto #117)
- Rails Best Practices now runs as a library. It is no longer shelled out. (Calveto #117)
- Update flog to ~> 4.1.1, this is needed to use keyword parameters in ruby 2. (George Erickson, #122)
- Fixes
- Skip reek when no files are found to run against. Otherwise, reek hangs trying to read from STDIN (Benjamin Fleischer, #119, #121)
- Reek will now find files on Windows. Remove *nix-specific '/' directory separators from Reek file glob. (Benjamin Fleischer, #119, #121)
- Link to correct reek url on report. (Calveto #116)
- Hack to accomodate Rails Best Practices dependency Code Analyzer monkey patch of Sexp (Benjamin Fleischer #123, #124)
- Misc
- Moved environmental concerns into an Environment module ( Benjamin Fleischer / Robin Curry #91, #111)
- Exposed RubyParser patch ( Benjamin Fleischer / Robin Curry #91, #111)
- 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)
- Generator subclasses can now be found by metric name. MetricFu::Generator.get_generator(:flog) (Benjamin Fleischer, #126)
- Breaking change related to the above: 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
- Features
- Fixes
- Misc
- Don't set a default flay minimum score (was 100); use flay default (16) instead. (Robin Curry #110)
- Loosen gem dependencies. Please report any bugs! (Benjamin Fleischer, #109)
- Features
- Allow customization of reporting results using formatters (Robin Curry #94)
- Fixes
- obey --no-open option (Chris Mason)
- Don't run the hotspots metric if it has been disabled (Chris Mason)
- No longer crashes when rake stats outputs blank lines (Benjamin Fleischer #103, #24)
- Run saikuro metrics the same way as the other metrics (Martin Gotink #100)
- Add missing Cane Google Chart Grapher (Benjamin Fleischer)
- Fix wrong arguments to display_location, split off line numbers from paths (Benjamin Fleischer #88)
- Remove line numbers from direct file link so the browser can open it (Benjamin Fleischer #82)
- Make the run specs work without the need to shell out (Robin Curry)
- Misc
- metric_fu runs with the -r option by default (Chris Mason #69)
- Switch to metric_fu-Saikuro gem (Benjamin Fleischer)
- Reduce Grapher code duplication (Benjamin Fleischer #89)
- Fixes
- Remove ActiveSupport dependencies (Benjamin Fleischer #79)
- Add MultiJson to ensure JSON support in rbx and jruby (Benjamin Fleischer)
- Remove ActiveSupport dependencies (Benjamin Fleischer #79)
- Misc
- Improve STDOUT to show which metric is running but hide the details by default
- Features
- Allow setting of the --continue flag with flog (Eric Wollesen) *Fixes
- Allow the 2.0.x point releases (Benjamin Fleischer #75)
- Misc
- Make Location and AnalyzedProblems code more confident (Avdi Grimm)
- Features
- Tests now pass in JRuby and Rubinius! (Benjamin Fleischer)
- Fixes
- Line numbers now display and link properly in annotated code (Benjamin Fleischer)
- No longer remove historical metrics when testing metric_fu
- Churn metric handler won't crash when no source control found (Dan Mayer)
- Misc (Benjamin Fleischer)
- Removed StandardTemplate, had no additional value and needed to be maintained
- Removed most template references to specific metrics
- Fixes
- No longer load rake when running from the command line (Benjamin Fleischer)
- Disable rails_best_practices in non-MRI rubies as it requires ripper (Benjamin Fleischer)
- Ensure metric executables use the same version the gemfile requires (Benjamin Fleischer)
- Fixes
- Fix Syck warning in Ruby > 1.9 (Todd A. Jacobs #58, Benjamin Fleischer)
- Cane parser doesn't blow up when no output returned (Guilherme Souza #55)
- Fix typo in readme (Paul Elliott #52)
- Disable Flog and Cane in non-MRI rubies, as they require ripper (Benjamin Fleischer)
- Refactor hotspots and graph code to live in its own metric (Benjamin Fleischer #54, #60)
- Use RedCard gem to determine ruby version and ruby engine
- Fix Gemfile ssl source warning
- Fix crash in cane when missing readme (Sathish, pull request #51)
- Prevent future cane failures on unexpected violations (Sathish, pull request #51)
- Adding cane metrics (Sathish, pull request #49)
- Not yet included in hotspots
- Removed ruby 1.8 support
- Fixed typo in Flay generator (Sathish, pull request #47)
- Included metrics: churn, flay, flog, roodi, saikuro, reek, 'coverage', rails stats, rails_best_practices, hotspots.
- Works with ruby 1.9 syntax.
- Can be configured just like metrical, with a .metrics file.
- Add commandline behavior to
metric_fu
. Trymetric_fu --help
. - Does not require rake to run. Can be run directly from the commandline.
- Is tested to run on rbx-19 and jruby-19 in addition to cruby-19 and cruby-18.
- 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
- Installation and running it have less dependency issues.
- Can either load external coverage metrics (rcov or simplecov) or run rcov directly.
- Rcov is not included in the gem, and is off by default.
- Rails best practices is not available in ruby 1.8.
- Version 2.1.3.7.18.1 is currently the last version fully compatible with 1.8.
- Metrical is no longer necessary. Its functionality has been merged into metric_fu.
- Re-organized test files - Michael Stark
- Rspec2 - Michael Stark
- Unify verbose logging with the MF_DEBUG=true commandline flag
- Begin to isolate each metric code. Each metric configures itself
- Clean up global ivars a bit in Configuration
- Thanks to Dan Mayer for helping with churn compatibility
- Thanks to Timo Rößner and Matijs van Zuijlen for their work on maintaining reek
- Same as 2.1.3.7.18.1 but gem packaged using ruby 1.8 dependencies, including ripper
- Bug fix, ensure Configuration is loaded before Run, metricfu#36
- Gem packaged using ruby 1.9 dependencies. Learned that we cannot dynamically change dependencies for a packaged gem.
- Fixed bug that wasn't show stats or rails_best_practices graphs
- Updated churn and rails_best_practices gems
- Move the metrics code in the rake task into its own file
- Remove executable metric_fu dependency on rake
- TODO: some unclear dependency issues may make metrics in 1.9 crash, esp Flog, Flay, Stats
- Issue #35, Namespace MetricFu::Table. -Benjamin Fleischer
- Additionally namespace
- MetricFu::CodeIssue
- MetricFu::MetricAnalyzer
- MetricFu::AnalysisError
- MetricFu::HotspotScoringStrategies
- Rename MetricAnalyzer to HotspotAnalyzer, and rename all Analzyer classes to Hotspot to signify that they are part of the Hotspot code -Benjamin Fleischer
- Restructuring of the project layout
- Project is now at https://github.com/metricfu/metric_fu and gem is again metric_fu
- Can run tasks as
metric_fu
command
- Don't raise an exception in the LineNumbers rescue block. Issue https://github.com/bf4/metric_fu/issues/6 by joonty -Benjamin Fleischer tmp/metric_fu/output/flog.js
- Added to rubygems.org as bf-metric_fu -Benjamin Fleischer
- Added to travis-ci -Benjamin Fleischer
- Re-enabling Saikuro for ruby 1.9 with jpgolly's gem jpgolly-Saikuro -Benjamin Fleischer
- Ensured files are only loaded once -Benjamin Fleischer
- Looked at moving to simplecov-rcov, but was unsuccessful -Benjamin Fleischer
- Fixed breaking tests, deprecation warnings -Benjamin Fleischer
- Getting it working on Rails 3, partly by going through the pull requests and setting gem dependencies to older, working versions - Benjamin Fleischer
- It mostly works on Ruby 1.9, though there is an unresolved sexp_parser issue - Benjamin Fleischer
- Added link_prefix to configuration to allow URIs specified in config instead of file or txmt - dan sinclair
- Making syntax highlighting optional (config.syntax_highlighting = false) so Ruby 1.9.2 users don't get "invalid byte sequence in UTF-8" errors.
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).
- Flog gemspec version was >= 2.2.0, which was too early and didn't work. Changed to >= 2.3.0 - Chris Griego
- 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
- 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
- Dan Mayer ported some specs for the Hotspots code into MetricFu from Caliper's code.
- Stefan Huber fixed some problems with churn pretending not to support Svn.
- Kakutani Shintaro added the ability to opt out of opening files with TextMate (config.darwin_txmt_protocol_no_thanks = true).
- Joel Nimety and Andrew Selder fixed a problem where Saikuro was parsing a dir twice.
- Dan Sinclair added some awesome 'annotate' functionality to the Hotspots page. Click on it so see the file with problems in-line.
- Dan Sinclair added a verbose mode (config.verbose = true).
- Delete trailing whitespaces - Delwyn de Villiers
- Stop Ubuntu choking on invalid multibyte char (US-ASCII) - Delwyn de Villiers
- Fix invalid next in lib/base/metric_analyzer.rb - Delwyn de Villiers
- Don't load Saikuro for Ruby 1.9.2 - Delwyn de Villiers
- Fixed a bug reported by Andrew Davis on the mailing list where configuring the data directory causes dates to be 0/0 - Joshua Cronemeyer
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:
Big thanks to Dan Mayer and Ben Brinckerhoff for the Hotspots code and for helping me integrate it with RCov.
- Hotspots - Dan Mayer, Ben Brinckerhoff, Jake Scruggs
- Rcov integration with Hotspots - Jake Scruggs, Tony Castiglione, Rob Meyer
- Patch that allows graphers to skip dates that didn't generate metrics for that graph (GitHub Issue #20). - Chris Griego
- 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
- Fixed 'If coverage is 0% metric_fu will explode' bug (GitHub Issue #6). - Stew Welbourne
- 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).
- 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.
- Added support for using config files in Reek and Roodi (roodi support was already there but undocumented).
- 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.
- Deal with Rails 3 activesupport vs active_support problems. - jinzhu
- Added support for rails_best_practices gem - Richard Huang
- Added rails stats graphing -- Josh Cronemeyer
- Parameterize the filetypes for flay. By default flay supports haml as well as rb and has a plugin ability for other filetypes. - bfabry
- Support for Flog 2.4.0 line numbers - Dan Mayer
- Saikuro multi input directory patch - Spencer Dillard and Dan Mayer
- Can now parse rcov analysis file coming from multiple sources with an rcov :external option in the config. - Tarsoly András
- Fixed open file handles problem in the Saikuro analyzer - aselder, erebor
- Fix some problems with the google charts - Chris Griego
- Stop showing the googlecharts warning if you are not using google charts.
- Flay can be configured to ignore scores below a threshold (by default it ignores scores less than 100)
- When running Rcov you can configure the RAILS_ENV (defaults to 'test') so running metric_fu doesn't interfere with other environments
- Changed devver-construct (a gem hosted by GitHub) development dependency to test-construct dependency (on Gemcutter) - Dan Mayer
- Upgrade Bluff to 0.3.6 and added tooltips to graphs - Édouard Brière
- Removed Saikuro from vendor and added it as a gem dependency - Édouard Brière
- Churn has moved outside metric_fu and is now a gem and a dependency - Dan Mayer
- Fix 'activesupport' deprecation (it should be 'active_support') - Bryan Helmkamp
- Declared development dependencies
- Cleaned and sped up specs
- ftools isn't supported by 1.9 so moved to fileutils.
- Overhauled the graphing to use Gruff or Google Charts so we no longer depend on ImageMagick/rmagick -- thanks to Carl Youngblood.
- Stopped relying on Github gems as they will be going away.
- Now compatible with Reek 1.2x thanks to Kevin Rutherford
- Fixed problem with deleted files still showing up in Flog reports thanks to Dan Mayer
- Previous Ruby 1.9 fix was not quite fix-y enough
- Fixed another Ruby 1.9x bug
- MetricFu is now Ruby 1.9x compatible
- 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.
- 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.
- Sort Flog by highest score in the class which I feel is more important than the total flog flog score.
- Removed dependency on gruff and rmagick (unless the user wants graphs, of course).
- New look for styling -- Edouard Brière
- Extra param in rcov call was causing problems -- Stewart Welbourne
- Preventing rake task from being run multiple times when other rake tasks switch the environment -- Matthew Van Horn
- Typo in Rcov dependency verification and fixing parsing Saikuro nested information -- Mark Wilden
- Fix for empty flog files
- Flog, flay, reek, roodi, and rcov reports now graph progress over time. Well done Nick Quaranto and Edouard Brière.
- 'Awesome' template has been brought in so that reports look 90% less 'ghetto.' Also done by Nick Quaranto and Edouard Brière.
- Added links to TextMate (which keep getting removed. Probably by me. Sorry.) -- David Chelimsky
- Fixed a bug for scratch files which have a size of 0 -- Kevin Hall
- 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
- Empty Flog file fix -- Adam Bair
- Added a simple fix for cases where Saikuro results with nested information -- Randy Souza
- Fixed rcov configuration so it ignores library files on Linux -- Diego Carrion
- Changing churn so that it still works deeper than the git root directory -- Andrew Timberlake
- Andrew Timberlake also made some nice changes to the base template which kinda of got overshadowed by the 'awesome' template. Sorry about that Andrew.
- Fixing problems with Reek new line character (thanks to all who pointed this out)
- Flog now recognizes namespaces in method names thanks to Daniel Guettler
- Saikuro now looks at multiple directories, again.
- metrics:all task no longer requires a MetricFu::Configuration.run {} if you want to accept the defaults
- rcov task now reports total coverage percent
- Merged in Grant McInnes' work on creating yaml output for all metrics to aid harvesting by other tools
- Supporting Flog 2.1.0
- Supporting Reek 1.0.0
- Removed dependency on Rails Env for 3.months.ago (for churn report), now using chronic gem ("3 months ago").
- Almost all code is out of Rakefiles now and so is more easily testable
- 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.
- 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.
- Adding line numbers to the views so that people viewing it on cc.rb can figure out where the problems are
- 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)
- Added totals to Flog results
- Moved rcov options to configuration
- Thanks to Andre Arko and Petrik de Heus for adding the following features:
- The source control type is auto-detected for Churn
- Moved all presentation to templates
- Wrote specs for all classes
- Added flay, Reek and Roodi metrics
- There's now a configuration class (see README for details)
- Unification of metrics reports
- Metrics can be generated using one command
- Adding new metrics reports has been standardized
- Source Control Churn now supports git (thanks to Erik St Martin)
- Flog Results are sorted by Highest Flog Score
- Fix for a bunch of 'already initialized constant' warnings that metric_fu caused
- Fixing bug so the flog reporter can handle methods with digits in the name (thanks to Andy Gregorowicz)
- Internal Rake task now allows metric_fu to flog/churn itself
- CHURN_OPTIONS has become MetricFu::CHURN_OPTIONS
- SAIKURO_OPTIONS has become MetricFu::SAIKURO_OPTIONS
- Rcov now looks at test and specs
- Exclude gems and Library ruby code from rcov
- Fixed bug with churn start_date functionality (bad path)
- Flog can now flog any set of directories you like (see README).
- Saikuro can now look at any set of directories you like (see README).
- Fixed filename bugs pointed out by Bastien
-
Merged in Sean Soper's changes to metric_fu.
-
Metric_fu is now a gem.
-
Flogging now uses a MD5 hash to figure out if it should re-flog a file (if it's changed)
-
Flogging also has a cool new output screen(s)
-
Thanks Sean!
- Changed rcov output directory so that it is no longer 'coverage/unit' but just 'coverage' for better integration with CC.rb
- Rcov tests now extend beyond one level depth directory by using RcovTask instead of the shell
- Implementing functionality for use as a gem
- Added Rakefile to facilitate testing
- Generated reports now open on darwin automatically
- Generated reports reside under tmp/metricks unless otherwise specified by ENV['CC_BUILD_ARTIFACTS']
- MD5Tracker works with Flog reports for speed optimization
- Integrated use of base directory constant
- Have all reports automatically open in a browser if platform is darwin
- Namespaced under Metricks
- Dropped use of shell md5 command in favor of Ruby's Digest::MD5 libraries
- Initial integration of metric_fu and my enhancements to flog
- Metrics are generated but are all over the place
- Add source control churn report
- Fixed bug with Saikuro report generation - thanks Toby Tripp
- create MetricFu as a Rails Plugin
- Add Flog Report
- Add Coverage Report
- Add Saikuro Report
- Add Stats Report