Sha256: ee666c8c962dd1b16c2d30ba35427aedf7115e1dec203a036ebd237e1c6a4b8a
Contents?: true
Size: 1.57 KB
Versions: 2
Compression:
Stored size: 1.57 KB
Contents
# Quality -- code quality ratchet for Ruby ##Overview Quality is a tool that runs quality checks on Ruby code using cane, reek, flog and flay, and makes sure your numbers don't get any worse over time. ```bash $ gem install quality ``` and add it to your Rakefile like this: ```ruby require 'quality/rake/task' Quality::Rake::Task.new ``` Then run: ```bash $ rake quality ``` If you want to ratchet up the quality and force yourself to improve code, run: ```bash $ rake ratchet ``` ## Configuration options ```ruby Quality::Rake::Task.new { |t| # Name of quality task. # Defaults to :quality. t.quality_name = "quality" # Name of ratchet task. # Defaults to :ratchet. t.ratchet_name = "ratchet" # Array of strings describing tools to be skipped--e.g., ["cane"] # # Defaults to [] t.skip_tools = [] # Array of directory names which contain ruby files to analyze. # # Defaults to %w{lib test spec feature}, which translates to *.rb in the base directory, as well as lib, test, spec, and feature. t.ruby_dirs = %w{lib test spec feature} # Relative path to output directory where *_high_water_mark # files will be read/written # # Defaults to . t.output_dir = '.' } ``` ## Contributing * Fork the repo * Create a feature branch * Submit a pull request ### Dependencies Quality makes use of the following other gems, which do the actual checking: * reek * cane * flog * flay * rubocop ### Learn More * Browse the code or install the latest development version from [https://github.com/apiology/quality/tree](https://github.com/apiology/quality/tree)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quality-1.3.0 | README.md |
quality-1.2.0 | README.md |