Skip to content

Instantly share code, notes, and snippets.

View SameedAtif's full-sized avatar
🎯
Focusing

SameedAtif SameedAtif

🎯
Focusing
View GitHub Profile
@SameedAtif
SameedAtif / gist:596a93520f1c1d08026d273b97bf4a7e
Created September 30, 2025 09:32
Custom RuboCop to check `unscoped` positioning
RuboCop:
```
# lib/rubocop/cop/style
# frozen_string_literal: true
module RuboCop
module Cop
module Style
# `Client.unscoped.where(...)` is better than `Client.where(...).unscoped`