Pattern: Unnecessary argument camelize
Issue: -
Checks if each argument has an unnecessary camelize.
# good
class UserType < BaseType
field :name, String, "Name of the user", null: true do
argument :filter, String, required: false, camelize: false
end
end
# good
class UserType < BaseType
argument :filter, String, required: false, camelize: false
end
# bad
class UserType < BaseType
argument :filter, String, required: false, camelize: false
end
# bad
class UserType < BaseType
field :name, String, "Name of the user", null: true do
argument :filter, String, required: false, camelize: true
end
end