Skip to content

Commit

Permalink
Enable a few pending cops
Browse files Browse the repository at this point in the history
- Lint/AmbiguousOperatorPrecedence
- Lint/NonAtomicFileOperation
- Style/ReturnNilInPredicateMethodDefinition
- RSpec/ReceiveMessages (not sure now we missed that one)
  • Loading branch information
bquorning committed Nov 20, 2023
1 parent 42aa902 commit e3776ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,18 @@ Layout/LineContinuationSpacing:
Enabled: true
Layout/LineEndStringConcatenationIndentation:
Enabled: true
Lint/AmbiguousOperatorPrecedence:
Enabled: true
Lint/NonAtomicFileOperation:
Enabled: true
Style/EmptyHeredoc:
Enabled: true
Style/RedundantHeredocDelimiterQuotes:
Enabled: true
Style/RedundantStringEscape:
Enabled: true
Style/ReturnNilInPredicateMethodDefinition:
Enabled: true

# Enable our own pending cops.

Expand Down Expand Up @@ -167,6 +173,8 @@ RSpec/NoExpectationExample:
Enabled: true
RSpec/PendingWithoutReason:
Enabled: true
RSpec/ReceiveMessages:
Enabled: true
RSpec/RedundantAround:
Enabled: true
RSpec/SkipBlockInsideExample:
Expand Down
2 changes: 1 addition & 1 deletion spec/support/file_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def create_file(file_path, content)

def create_dir(file_path)
dir_path = File.dirname(file_path)
FileUtils.makedirs dir_path unless File.exist?(dir_path)
FileUtils.makedirs dir_path
end
end

0 comments on commit e3776ec

Please sign in to comment.