Skip to content

Commit

Permalink
Added ruby critic rake task.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdantonio committed Jul 25, 2014
1 parent 1ca7374 commit 984b6b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rdoc/*
*.REMOTE.*
git_pull.txt
coverage
critic
.DS_Store
TAGS
tmtags
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ end

group :documentation do
gem 'countloc', '~> 0.4.0', :platforms => :mri, :require => false
gem 'rubycritic', '~> 1.0.2', :platforms => :mri, require: false
gem 'yard', '~> 0.8.7.4', :require => false
gem 'inch', '~> 0.4.6', :platforms => :mri, :require => false
gem 'redcarpet', '~> 3.1.2', platforms: :mri # understands github markdown
Expand Down
5 changes: 5 additions & 0 deletions tasks/metrics.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ unless defined?(JRUBY_VERSION)
task :loc do
puts `countloc -r lib`
end

desc 'Display code quality analysis report'
task :critic do
sh 'rubycritic lib --path critic'
end
end

0 comments on commit 984b6b3

Please sign in to comment.