Skip to content

Commit

Permalink
Merge pull request #138 from sul-dlss/upgrade-rubocop
Browse files Browse the repository at this point in the history
Upgrade rubocop
  • Loading branch information
peetucket authored Aug 19, 2020
2 parents 28b8b82 + 2ffecfa commit 296c634
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
64 changes: 63 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.5

Layout/LineLength:
Max: 114
Exclude:
Expand Down Expand Up @@ -80,4 +83,63 @@ Style/RedundantRegexpEscape:

Style/SlicingWithRange:
Enabled: true


Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true

Lint/DuplicateElsifCondition:
Enabled: true

Lint/DuplicateRescueException:
Enabled: true

Lint/EmptyConditionalBody:
Enabled: true

Lint/FloatComparison:
Enabled: true

Lint/MissingSuper:
Enabled: true

Lint/OutOfRangeRegexpRef:
Enabled: true

Lint/SelfAssignment:
Enabled: true

Lint/TopLevelReturnWithArgument:
Enabled: true

Lint/UnreachableLoop:
Enabled: true

Style/ArrayCoercion:
Enabled: true

Style/CaseLikeIf:
Enabled: true

Style/ExplicitBlockArgument:
Enabled: true

Style/GlobalStdStream:
Enabled: true

Style/HashAsLastArrayItem:
Enabled: true

Style/HashLikeCase:
Enabled: true

Style/OptionalBooleanParameter:
Enabled: false

Style/RedundantFileExtensionInRequire:
Enabled: true

Style/SingleArgumentDig:
Enabled: true

Style/StringConcatenation:
Enabled: true
1 change: 1 addition & 0 deletions cocina-models.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.required_ruby_version = '~> 2.5'

spec.add_dependency 'activesupport'
spec.add_dependency 'dry-struct', '~> 1.0'
Expand Down

0 comments on commit 296c634

Please sign in to comment.