forked from turingschool-examples/headcount
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ea4c781
Showing
25 changed files
with
82,603 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Sales Engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.