{"id":13879597,"url":"https://github.com/DmitryTsepelev/rubocop-graphql","last_synced_at":"2025-07-16T15:32:39.091Z","repository":{"id":37566137,"uuid":"264972968","full_name":"DmitryTsepelev/rubocop-graphql","owner":"DmitryTsepelev","description":"Rubocop extension for enforcing graphql-ruby best practices","archived":false,"fork":false,"pushed_at":"2024-08-26T15:08:44.000Z","size":345,"stargazers_count":226,"open_issues_count":6,"forks_count":50,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-20T16:50:31.449Z","etag":null,"topics":["best-practices","graphql","linter","rubocop","rubocop-graphql","ruby","static-code-analysis"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DmitryTsepelev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-18T14:57:41.000Z","updated_at":"2024-10-31T02:02:23.000Z","dependencies_parsed_at":"2024-05-03T16:28:00.559Z","dependency_job_id":"e906922f-50f9-4c83-9613-351c9c155f9d","html_url":"https://github.com/DmitryTsepelev/rubocop-graphql","commit_stats":null,"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitryTsepelev%2Frubocop-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitryTsepelev%2Frubocop-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitryTsepelev%2Frubocop-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitryTsepelev%2Frubocop-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DmitryTsepelev","download_url":"https://codeload.github.com/DmitryTsepelev/rubocop-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226143895,"owners_count":17580245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["best-practices","graphql","linter","rubocop","rubocop-graphql","ruby","static-code-analysis"],"created_at":"2024-08-06T08:02:26.241Z","updated_at":"2025-07-16T15:32:39.079Z","avatar_url":"https://github.com/DmitryTsepelev.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# RuboCop::GraphQL ![](https://ruby-gem-downloads-badge.herokuapp.com/rubocop-graphql?type=total)\n\n[Rubocop](https://github.com/rubocop-hq/rubocop) extension for enforcing [graphql-ruby](https://github.com/rmosolgo/graphql-ruby) best practices.\n\nYou can support my open–source work [here](https://boosty.to/dmitry_tsepelev).\n\n## Installation\n\nInstall the gem:\n\n```bash\ngem install rubocop-graphql\n```\n\nIf you use bundler put this in your Gemfile:\n\n```ruby\ngem 'rubocop-graphql', require: false\n```\n\n## Usage\n\nYou need to tell RuboCop to load the GraphQL extension. There are three ways to do this:\n\n### RuboCop configuration file\n\nPut this into your `.rubocop.yml`.\n\n```yaml\nplugins: rubocop-graphql\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-other-extension\n  - rubocop-graphql\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop GraphQL cops together with the standard cops.\n\n\u003e [!NOTE]\n\u003e The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.\n\n### Command line\n\n```sh\nrubocop --plugins rubocop-graphql\n```\n\n### Rake task\n\n```ruby\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-graphql'\nend\n```\n\n## The Cops\n\nAll cops are located under [`lib/rubocop/cop/graphql`](lib/rubocop/cop/graphql), and contain examples and documentation.\n\nIn your `.rubocop.yml`, you may treat the GraphQL cops just like any other cop. For example:\n\n```yaml\nGraphQL/ResolverMethodLength:\n  Max: 3\n```\n\n## Credits\n\nInitially sponsored by [Evil Martians](http://evilmartians.com).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/DmitryTsepelev/rubocop-graphql.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDmitryTsepelev%2Frubocop-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDmitryTsepelev%2Frubocop-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDmitryTsepelev%2Frubocop-graphql/lists"}