Skip to content

Commit

Permalink
Set up rubocop-minitest and rubocop-rake
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Dec 31, 2020
1 parent 37c2e83 commit 7ab5c24
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-minitest
- rubocop-rake

Layout/SpaceBeforeBrackets: # (new in 1.7)
Enabled: true
Lint/AmbiguousAssignment: # (new in 1.7)
Expand Down Expand Up @@ -36,6 +40,32 @@ Style/RedundantArgument: # (new in 1.4)
Enabled: true
Style/SwapValues: # (new in 1.1)
Enabled: true
Minitest/AssertInDelta: # (new in 0.10)
Enabled: true
Minitest/AssertionInLifecycleHook: # (new in 0.10)
Enabled: true
Minitest/AssertKindOf: # (new in 0.10)
Enabled: true
Minitest/AssertOutput: # (new in 0.10)
Enabled: true
Minitest/AssertPathExists: # (new in 0.10)
Enabled: true
Minitest/AssertSilent: # (new in 0.10)
Enabled: true
Minitest/LiteralAsActualArgument: # (new in 0.10)
Enabled: true
Minitest/MultipleAssertions: # (new in 0.10)
Enabled: true
Minitest/RefuteInDelta: # (new in 0.10)
Enabled: true
Minitest/RefuteKindOf: # (new in 0.10)
Enabled: true
Minitest/RefutePathExists: # (new in 0.10)
Enabled: true
Minitest/TestMethodName: # (new in 0.10)
Enabled: true
Minitest/UnspecifiedException: # (new in 0.10)
Enabled: true

AllCops:
TargetRubyVersion: 2.5
Expand Down
13 changes: 12 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 300`
# on 2020-12-31 10:05:59 UTC using RuboCop version 1.7.0.
# on 2020-12-31 10:07:43 UTC using RuboCop version 1.7.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
Expand All @@ -26,6 +26,17 @@ Lint/UselessTimes:
Exclude:
- 'adsf-live/test/test_watcher.rb'

# Offense count: 1
# Cop supports --auto-correct.
Minitest/TestMethodName:
Exclude:
- 'adsf-live/test/test_watcher.rb'

# Offense count: 6
Rake/Desc:
Exclude:
- 'Rakefile'

# Offense count: 3
# Cop supports --auto-correct.
Style/ExplicitBlockArgument:
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ group :development do
gem 'rack-test'
gem 'rake'
gem 'rubocop', '~> 1.7'
gem 'rubocop-minitest', '~> 0.10.2'
gem 'rubocop-rake', '~> 0.5.1'
gem 'webrick', '~> 1.7'
end

0 comments on commit 7ab5c24

Please sign in to comment.