Skip to content

Commit

Permalink
Update RuboCop to new Gem Version
Browse files Browse the repository at this point in the history
Update RuboCop to new gem version (0.23.0).
Include New RuboCop file layout specified in [this](rubocop/rubocop#1050) issue.

Update Rakefile to use new RuboCop class definition.
From Rubocop to RuboCop.

Add new .rubocop_todo.yml file following new RuboCop file structure.

Signed-off-by: "Jake Champlin" <jake.champlin.27@gmail.com>
  • Loading branch information
grubernaut committed Jun 19, 2014
1 parent 0a74b34 commit 4b83f37
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inherit_from: rubocop-todo.yml
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- Berksfile
Expand Down
27 changes: 27 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2014-06-19 11:08:17 -0400 using RuboCop version 0.23.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Cop supports --auto-correct.
Lint/DeprecatedClassMethods:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
Style/PerlBackrefs:
Enabled: false

# Offense count: 5
# Cop supports --auto-correct.
Style/SingleSpaceBeforeFirstArg:
Enabled: false
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gem 'berkshelf', '~> 3.0.0.beta'
group :development do
gem 'foodcritic', '~> 3.0'
gem 'license_finder', '~> 0.9.5.1'
gem 'rubocop', '~> 0.18.0'
gem 'rubocop', '~> 0.23.0'
end

group :test do
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'rspec/core/rake_task'
require 'rubocop/rake_task'

desc 'Run RuboCop style and lint checks'
Rubocop::RakeTask.new(:rubocop)
RuboCop::RakeTask.new(:rubocop)

desc 'Run Foodcritic lint checks'
FoodCritic::Rake::LintTask.new(:foodcritic) do |t|
Expand Down
2 changes: 0 additions & 2 deletions rubocop-todo.yml

This file was deleted.

0 comments on commit 4b83f37

Please sign in to comment.