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 Jan 1, 2021
1 parent f0b86e3 commit bd0d3a8
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
inherit_from: .rubocop_todo.yml

# ----- CONFIGURED -----

AllCops:
TargetRubyVersion: 2.5
Exclude:
- scripts/release

require:
- rubocop-rake
- rubocop-minitest

Layout/SpaceBeforeBrackets: # (new in 1.7)
Enabled: true
Lint/AmbiguousAssignment: # (new in 1.7)
Expand Down Expand Up @@ -41,6 +47,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

Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Expand Down
11 changes: 11 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 300`
# on 2021-01-01 18:35:28 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
Minitest/MultipleAssertions:
Max: 6
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ gem 'coveralls', require: false
gem 'minitest'
gem 'rake'
gem 'rubocop'
gem 'rubocop-minitest', '~> 0.10.2'
gem 'rubocop-rake', '~> 0.5.1'

0 comments on commit bd0d3a8

Please sign in to comment.