Skip to content

Commit

Permalink
Base files and framework
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Sep 14, 2015
0 parents commit ea4c781
Show file tree
Hide file tree
Showing 25 changed files with 82,603 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

gem 'cane'
gem 'reek'
gem 'rake'
gem 'minitest'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Sales Engine
22 changes: 22 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace :sanitation do
desc "Check line lengths & whitespace with Cane"
task :lines do
puts ""
puts "== using cane to check line length =="
system("cane --no-abc --style-glob 'lib/**/*.rb' --no-doc")
puts "== done checking line length =="
puts ""
end

desc "Check method length with Reek"
task :methods do
puts ""
puts "== using reek to check method length =="
system("reek -n lib/*.rb 2>&1 | grep -v ' 0 warnings'")
puts "== done checking method length =="
puts ""
end

desc "Check both line length and method length"
task :all => [:lines, :methods]
end
Loading

0 comments on commit ea4c781

Please sign in to comment.