Skip to content

Commit

Permalink
Merge pull request #18 from wundertax/rubocop-88
Browse files Browse the repository at this point in the history
Bump rubocop and friends
  • Loading branch information
mhenrixon authored Aug 6, 2020
2 parents a2e2610 + 8f586ef commit 21e5df7
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 3 deletions.
78 changes: 78 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,51 @@ Lint/AmbiguousBlockAssociation:
Exclude:
- spec/**/*_spec.rb

Lint/BinaryOperatorWithIdenticalOperands: # (0.89)
Enabled: true

Lint/DeprecatedOpenSSLConstant:
Enabled: true

Lint/DuplicateElsifCondition:
Enabled: true

Lint/DuplicateRescueException: # (0.89)
Enabled: true

Lint/EmptyConditionalBody: # (0.89)
Enabled: true

Lint/FloatComparison: # (0.89)
Enabled: true

Lint/MissingSuper: # (0.89)
Enabled: true

Lint/MixedRegexpCaptureTypes:
Enabled: true

Lint/OrderedMagicComments:
Enabled: true

Lint/OutOfRangeRegexpRef: # (0.89)
Enabled: true

Lint/RaiseException:
Enabled: true

Lint/SelfAssignment: # (0.89)
Enabled: true

Lint/StructNewOverride:
Enabled: true

Lint/TopLevelReturnWithArgument: # (0.89)
Enabled: true

Lint/UnreachableLoop: # (0.89)
Enabled: true

# TODO: Fix this one
Lint/UriEscapeUnescape:
Enabled: false
Expand Down Expand Up @@ -166,20 +193,56 @@ Rails/ActiveRecordAliases:
- lib/forms/**/*.rb
- spec/lib/forms/**/*.rb

Rails/ActiveRecordCallbacksOrder: # (2.7)
Enabled: true

Rails/FindById: # (2.7)
Enabled: true

Rails/Inquiry: # (2.7)
Enabled: true

Rails/HttpPositionalArguments:
Include:
- spec/**/*
- test/**/*

Rails/MailerName: # (2.7)
Enabled: true

Rails/MatchRoute: # (2.7)
Enabled: true

Rails/NegateInclude: # (2.7)
Enabled: true

Rails/OutputSafety:
Enabled: true

Rails/Pluck: # (2.7)
Enabled: true

Rails/PluckInWhere: # (2.7)
Enabled: true

Rails/RenderInline: # (2.7)
Enabled: true

Rails/RenderPlainText: # (2.7)
Enabled: true

Rails/ShortI18n: # (2.7)
Enabled: true

Rails/SkipsModelValidations:
Enabled: true
Exclude:
- lib/tasks/**/*.rake
- spec/**/*.rb

Rails/WhereExists: # (2.7)
Enabled: true

# ================ #
# RSpec Cops #
# ================ #
Expand Down Expand Up @@ -243,12 +306,18 @@ Style/CaseLikeIf:
Style/Documentation:
Enabled: false

Style/ExplicitBlockArgument: # (0.89)
Enabled: true

Style/ExponentialNotation:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false

Style/GlobalStdStream: # (0.89)
Enabled: true

Style/HashEachMethods:
Enabled: true

Expand All @@ -267,6 +336,9 @@ Style/HashTransformValues:
Style/ModuleFunction:
EnforcedStyle: extend_self

Style/OptionalBooleanParameter: # (0.89)
Enabled: true

Style/PercentLiteralDelimiters:
Enabled: true

Expand All @@ -285,9 +357,15 @@ Style/RedundantRegexpCharacterClass:
Style/RedundantRegexpEscape:
Enabled: true

Style/SingleArgumentDig: # (0.89)
Enabled: true

Style/SlicingWithRange:
Enabled: true

Style/StringConcatenation: # (0.89)
Enabled: true

Style/SymbolArray:
EnforcedStyle: percent

Expand Down
6 changes: 3 additions & 3 deletions rubocop-wundertax.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

Gem::Specification.new do |s|
s.name = 'rubocop-wundertax'
s.version = '2.1.0'
s.version = '2.1.1'
s.summary = 'RuboCop Wundertax'
s.description = 'Code style checking for Wundertax Ruby repositories'
s.homepage = 'https://github.com/wundertax/rubocop-wundertax'
s.license = 'MIT'

s.files = Dir['README.md', 'LICENSE', 'config/*.yml']

s.add_dependency 'rubocop', '~> 0.88'
s.add_dependency 'rubocop', '~> 0.89'
s.add_dependency 'rubocop-performance'
s.add_dependency 'rubocop-rails'
s.add_dependency 'rubocop-rspec'

s.add_development_dependency 'rake', '~> 12.0'
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'yamllint'

s.required_ruby_version = '>= 2.5.0'
Expand Down

0 comments on commit 21e5df7

Please sign in to comment.