Skip to content

Commit

Permalink
chore: ignore a few linters
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Nov 3, 2023
1 parent e702494 commit c810ddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/graphql/connections/keyset/asc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def has_next_page
false
end
end
# rubocop:enable Naming/PredicateName, Metrics/AbcSize, Metrics/MethodLength

private

# standard:disable Metrics/AbcSize, Metrics/MethodLength
def limited_relation
scope = sliced_relation
nodes = []
Expand Down Expand Up @@ -78,6 +78,7 @@ def sliced_relation_before(relation)
.where(arel_table[primary_key].lt(before_cursor_primary_key))
.or(relation.where(arel_table[field_key].lt(before_cursor_date)))
end
# standard:enable Metrics/AbcSize, Metrics/MethodLength
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion lib/graphql/connections/keyset/desc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def has_next_page
false
end
end
# rubocop:enable Naming/PredicateName, Metrics/AbcSize, Metrics/MethodLength

# standard:disable Metrics/AbcSize, Metrics/MethodLength
def cursor_for(item)
cursor = [item[field_key], item[primary_key]].map { |value| serialize(value) }.join(@separator)
cursor = encode(cursor) if opaque_cursor
Expand Down Expand Up @@ -85,6 +85,7 @@ def sliced_relation_before(relation)
.where(arel_table[primary_key].gt(before_cursor_primary_key))
.or(relation.where(arel_table[field_key].gt(before_cursor_date)))
end
# standard:disable Metrics/AbcSize, Metrics/MethodLength
end
end
end
Expand Down

0 comments on commit c810ddd

Please sign in to comment.