Skip to content

Commit

Permalink
Add rubocop-rake and rubocop-minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Dec 30, 2020
1 parent ba65863 commit dbaa25f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .rubocop.yml
@@ -1,5 +1,9 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-minitest
- rubocop-rake

AllCops:
TargetRubyVersion: 2.5
DisplayCopNames: true
Expand Down Expand Up @@ -40,6 +44,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

# Trailing commas in a multiline context makes diffs nicer.
Style/TrailingCommaInArrayLiteral:
Expand Down
50 changes: 49 additions & 1 deletion .rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 300`
# on 2020-12-30 22:10:08 UTC using RuboCop version 1.7.0.
# on 2020-12-30 22:12:01 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 @@ -27,6 +27,54 @@ Lint/MissingSuper:
- 'lib/cri/command_dsl.rb'
- 'lib/cri/parser.rb'

# Offense count: 2
# Cop supports --auto-correct.
Minitest/AssertEmpty:
Exclude:
- 'test/test_argument_list.rb'

# Offense count: 6
# Cop supports --auto-correct.
Minitest/AssertIncludes:
Exclude:
- 'test/test_command.rb'

# Offense count: 5
# Cop supports --auto-correct.
Minitest/AssertNil:
Exclude:
- 'test/test_argument_list.rb'
- 'test/test_command.rb'

# Offense count: 1
# Cop supports --auto-correct.
Minitest/RefuteEmpty:
Exclude:
- 'test/test_argument_list.rb'

# Offense count: 1
# Cop supports --auto-correct.
Minitest/RefuteFalse:
Exclude:
- 'test/test_parser.rb'

# Offense count: 9
# Cop supports --auto-correct.
Minitest/RefuteIncludes:
Exclude:
- 'test/test_command.rb'

# Offense count: 1
# Cop supports --auto-correct.
Minitest/RefuteRespondTo:
Exclude:
- 'test/test_argument_list.rb'

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

# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -9,4 +9,6 @@ gem 'm', '~> 1.5'
gem 'minitest'
gem 'rake'
gem 'rubocop'
gem 'rubocop-minitest', '~> 0.10.2'
gem 'rubocop-rake', '~> 0.5.1'
gem 'yard'

0 comments on commit dbaa25f

Please sign in to comment.