Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rubocop and add rubocop-rspec #15

Merged
merged 7 commits into from Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions cw-style.gemspec
Expand Up @@ -28,10 +28,10 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "rubocop", "~> 0.89.1"
spec.add_dependency "rubocop-rspec-focused", "= 0.0.3"
spec.add_dependency "rubocop", "~> 1.18.3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Did that and also ignored a couple more cops that seemed pretty ignorable to me.

spec.add_dependency "rubocop-thread_safety"
spec.add_dependency "rubocop-rails"
spec.add_dependency "rubocop-rspec"
spec.add_development_dependency "bundler", "~> 2.2.4"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec"
Expand Down
25 changes: 20 additions & 5 deletions default.yml
@@ -1,8 +1,7 @@
require:
- rubocop/rspec/focused
- rubocop-thread_safety
- rubocop-rails
- ./lib/unless_with_multiple_conditions
- rubocop-rspec
- ./lib/private_attribute_accessors
- ./lib/update_not_update_attributes

Expand Down Expand Up @@ -37,6 +36,9 @@ Lint/RaiseException:
Lint/StructNewOverride:
Enabled: true

Lint/SymbolConversion:
Enabled: false

Style/ExponentialNotation:
Enabled: true

Expand All @@ -52,6 +54,10 @@ Style/HashTransformValues:
Style/SlicingWithRange:
Enabled: true

Style/UnlessLogicalOperators:
Enabled: true
EnforcedStyle: forbid_logical_operators

Metrics/AbcSize:
Enabled: false

Expand Down Expand Up @@ -92,9 +98,6 @@ Rails/Output:
Rails/TimeZone:
EnforcedStyle: 'flexible'

RSpec/Focused:
Enabled: true

Style/Documentation:
Enabled: false

Expand Down Expand Up @@ -150,6 +153,9 @@ Layout/HashAlignment:
Layout/HeredocIndentation:
Enabled: false

Layout/LineEndStringConcatenationIndentation:
Enabled: false

Layout/MultilineMethodCallIndentation:
Enabled: false

Expand Down Expand Up @@ -194,3 +200,12 @@ Style/TrailingCommaInHashLiteral:

Style/IfUnlessModifier:
Enabled: false

Naming/VariableNumber:
Enabled: false

RSpec:
Enabled: false

RSpec/Focus:
Enabled: true
2 changes: 1 addition & 1 deletion lib/charity_water/style/version.rb
@@ -1,5 +1,5 @@
module CharityWater
module Style
VERSION = '4.0.4'.freeze
VERSION = '4.1'.freeze
end
end
29 changes: 0 additions & 29 deletions lib/unless_with_multiple_conditions.rb

This file was deleted.

61 changes: 0 additions & 61 deletions spec/unless_with_multiple_conditions_spec.rb

This file was deleted.