Skip to content

Commit

Permalink
Address RuboCop suggestions
Browse files Browse the repository at this point in the history
- Add rubocop-rake plugin
- Style/NegatedIfElseCondition
  • Loading branch information
jlduran committed Dec 24, 2020
1 parent 0946117 commit 8b15083
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require:
- rubocop-performance
- rubocop-rake
- rubocop-rspec

AllCops:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ group :test do
gem 'rspec', '~> 3'
gem 'rubocop', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rake', require: false
gem 'rubocop-rspec', require: false
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Ordinal < Base::Ordinal

def result(type)
@type = type
MEGS_TYPE != type ? check_simple_numbers : check_megs_numbers
MEGS_TYPE == type ? check_megs_numbers : check_simple_numbers
end

private
Expand Down
File renamed without changes.

0 comments on commit 8b15083

Please sign in to comment.