Skip to content

Commit

Permalink
Fix internal affair of edge-rubocop
Browse files Browse the repository at this point in the history
https://app.circleci.com/pipelines/github/rubocop/rubocop-rspec/997/workflows/2bdf0dff-c7d0-47fe-9180-545ae81ffb0a/jobs/21952

```
Offenses:

lib/rubocop/rspec/align_let_brace.rb:37:30: C: [Correctable] InternalAffairs/LocationLineEqualityComparison: Use same_line?(member, let).
            member == let && member.loc.line == let.loc.line
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

224 files inspected, 1 offense detected, 1 offense auto-correctable
```
  • Loading branch information
pirj committed Oct 5, 2021
1 parent 8ca86f6 commit b9636b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rubocop/rspec/align_let_brace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module RSpec
# Shared behavior for aligning braces for single line lets
class AlignLetBrace
include RuboCop::RSpec::Language
include RuboCop::Cop::Util

def initialize(root, token)
@root = root
Expand Down Expand Up @@ -34,7 +35,7 @@ def target_column_for(let)
def let_group_for(let)
adjacent_let_chunks.detect do |chunk|
chunk.any? do |member|
member == let && member.loc.line == let.loc.line
member == let && same_line?(member, let)
end
end
end
Expand Down

0 comments on commit b9636b2

Please sign in to comment.