Software Details:
Version: 2.1.1
Upload Date: 13 May 15
Distribution Type: Freeware
Downloads: 333
The "Excellent" library was created for the testing phase of Ruby development, helping programmers prevent bugs from reaching the final version of an app or website.
The library works on a series of preset checks and tests, on which new ones can be added based on the developer's project requirements.
Features:
- Default Ruby specific checks:
- Reports methods with an ABC metric score that is higher than the threshold.
- Reports conditionals that test an assignment.
- Reports case statements that don't have an else clause.
- Reports classes which have more lines than the threshold.
- Reports classes with bad names.
- Reports methods that check the value of a parameter to decide which execution path to take.
- Reports blocks with a cyclomatic complexity metric score that is higher than the threshold.
- Reports methods with a cyclomatic complexity metric score that is higher than the threshold.
- Reports empty rescue blocks.
- Reports blocks with a Flog metric score that is higher than the threshold.
- Reports classes with a Flog metric score that is higher than the threshold.
- Reports methods with a Flog metric score that is higher than the threshold.
- Reports code that uses for loops.
- Reports methods which have more lines than the threshold.
- Reports methods with bad names.
- Reports modules which have more lines than the threshold.
- Reports modules with bad names.
- Reports nested iterators.
- Reports method and blocks that have more parameters than the threshold.
- Reports class variables.
- Reports global variables.
- Default Ruby on Rails specific checks:
- Reports ActiveRecord models that do not specify attr_accessible.
- Reports ActiveRecord models that specify attr_protected.
- Reports partials that use instance variables.
- Reports ActiveRecord models that don't validate anything.
- Reports ActiveRecord models that define a custom initialize method.
- Reports views (and partials) that access the params hash.
- Reports views (and partials) that access the session hash.
What is new in this release:
- Support for ~/.excellent.yml - default configuration for all excellent runs that the local config file will override.
- Support for .excellentignore file that can list paths to ignore.
What is new in version 2.0.0:
- Now supporting config file .excellent.yml in current working directory to configure which specs to run/ not to run with thresholds, patterns etc.
- Predefined globals will not be reported anymore ($!, $@, $&, $`, $', $+, $1, $2.., $~, $=, $/, $\, $,, $;, $., $<, $>, $_, $0, $*, $$, $?, $:, $", $DEBUG, $FILENAME, $LOAD_PATH, $stdin, $stdout, $stderr, $VERBOSE, $-0, $-a, $-d, $-F, $-i, $-I, $-l, $-p, $-v)
- Enabled previously disable checks again: AbcMetricMethodCheck, ControlCouplingCheck, CyclomaticComplexityBlockCheck, CyclomaticComplexityMethodCheck, ForLoopCheck, FlogBlockCheck, FlogClassCheck, FlogMethodCheck
- Testing now uses Rspec 2
- Internal cleanups/ simplifications
Comments not found