Pattern: Duplicate field definition within the same type
Issue: -
Detects duplicate field definitions within the same type.
# good
class UserType < BaseType
field :name, String, null: true
field :phone, String, null: true do
argument :something, String, required: false
end
end
# bad
class UserType < BaseType
field :name, String, null: true
field :phone, String, null: true
field :phone, String, null: true do
argument :something, String, required: false
end
end