# frozen_string_literal: true module RuboCop module Cop module Ezcater # This cop makes sure that GraphQL fields & arguments match the supported style # https://git.io/JeofW # # The cop also ignores when users provide a :camelize option, because # the user is manually requesting to override the value # # @example # # bad # field :fooBar, ID, null: false # argument :barBaz, ID, required: true # # # good # field :foo_bar, ID, null: true # field :foo_bar, ID, null: true do # argument :bar_baz, ID, required: true # end # # field :fooBar, ID, null: true, camelize: true # class GraphqlFieldsNaming < Cop include ConfigurableNaming MSG = "Use %