Skip to content

Commit 984b6b3

Browse files
committed
Added ruby critic rake task.
1 parent 1ca7374 commit 984b6b3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ rdoc/*
2020
*.REMOTE.*
2121
git_pull.txt
2222
coverage
23+
critic
2324
.DS_Store
2425
TAGS
2526
tmtags

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ end
1616

1717
group :documentation do
1818
gem 'countloc', '~> 0.4.0', :platforms => :mri, :require => false
19+
gem 'rubycritic', '~> 1.0.2', :platforms => :mri, require: false
1920
gem 'yard', '~> 0.8.7.4', :require => false
2021
gem 'inch', '~> 0.4.6', :platforms => :mri, :require => false
2122
gem 'redcarpet', '~> 3.1.2', platforms: :mri # understands github markdown

tasks/metrics.rake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ unless defined?(JRUBY_VERSION)
44
task :loc do
55
puts `countloc -r lib`
66
end
7+
8+
desc 'Display code quality analysis report'
9+
task :critic do
10+
sh 'rubycritic lib --path critic'
11+
end
712
end

0 commit comments

Comments
 (0)