Sha256: 50b4efb60e3e671b36211eb038f694ad40d7a3f766a9e7a71074e38de1affb9a
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# encoding: UTF-8 require 'rake_check/rbp_checker' require 'rake_check/rspec_checker' require 'rake_check/reek_checker' require 'rake_check/yard_checker' require 'rake_check/cane_checker' ## # Do exakt what it is called # # @param [String] string The string to print # @author dmasur def puts_unless_empty string puts string unless string.empty? end ## # Print the check results # # @param [Array / Hash] results Array of Results or Hashresult # @author dmasur def print_check_result results print_outputs results print_summary results end ## # Print Outputs of each result # # @author dmasur def print_outputs results results.each do |result| puts_unless_empty result[:check_output] end end ## # Print Summary of all Outputs # # @author dmasur def print_summary results results.each do |result| type_name = result[:type].to_s status = result[:status] puts "puts #{type_name}:\t#{status}" end end desc "Check Rails Best Practices and RSpec" task :check do rspec = RspecChecker.new.result rbp = RbpChecker.new.result yard = YardChecker.new.result reek = ReekChecker.new.result cane = CaneChecker.new.result print_check_result [rspec, rbp, yard, reek, cane] end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rake_check-0.1.1 | lib/rake_check/tasks/check.rake |
rake_check-0.1.0 | lib/rake_check/tasks/check.rake |
rake_check-0.0.1 | lib/rake_check/tasks/check.rake |