{"repo":"DmitryTsepelev/rubocop-graphql","free":true,"listed":false,"github":"https://github.com/DmitryTsepelev/rubocop-graphql","clone":"git clone https://github.com/DmitryTsepelev/rubocop-graphql.git","description":"Rubocop extension for enforcing graphql-ruby best practices","language":"Ruby","stars":245,"topics":["ruby","rubocop","graphql","linter","static-code-analysis","rubocop-graphql","best-practices"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"RuboCop::GraphQL Rubocop extension for enforcing graphql-ruby best practices. Professional Support Need help with your GraphQL API architecture, schema design, or performance? I'm available for consulting — get in touch. Installation Install the gem: If you use bundler put this in your Gemfile: Usage You need to tell RuboCop to load the GraphQL extension. There are three ways to do this: RuboCop configuration file Put this into your .rubocop.yml . Alternatively, use the following array notation when specifying multiple extensions. Now you can run rubocop and it will automatically load the RuboCop GraphQL cops together with the standard cops. [!NOTE] The plugin system is supported in RuboCop 1.72+. In earlier versions, use require instead of plugins . Command line Rake task The Cops All cops are located under lib/rubocop/cop/graphql , and contain examples and documentation. In your .rubocop.yml , you may treat the GraphQL cops just like any other cop. For example: Credits Initially sponsored by Evil Martians. Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/DmitryTsepelev/rubocop-graphql. License The gem is available as open source under the terms of the MIT License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/DmitryTsepelev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DmitryTsepelev/rubocop-graphql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}