░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/rubocop-graphql-1.1.1
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: README.md
# RuboCop::GraphQL  [Rubocop](https://github.com/rubocop-hq/rubocop) extension for enforcing [graphql-ruby](https://github.com/rmosolgo/graphql-ruby) best practices. ## Installation Install the gem: ```bash gem install rubocop-graphql ``` If you use bundler put this in your Gemfile: ```ruby gem 'rubocop-graphql', require: false ``` ## 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`. ```yaml require: rubocop-graphql ``` Alternatively, use the following array notation when specifying multiple extensions. ```yaml require: - rubocop-other-extension - rubocop-graphql ``` Now you can run `rubocop` and it will automatically load the RuboCop GraphQL cops together with the standard cops. ### Command line ```sh rubocop --require rubocop-graphql ``` ### Rake task ```ruby RuboCop::RakeTask.new do |task| task.requires << 'rubocop-graphql' end ``` ## The Cops All cops are located under [`lib/rubocop/cop/graphql`](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: ```yaml GraphQL/ResolverMethodLength: Max: 3 ``` ## Credits Initially sponsored by [Evil Martians](http://evilmartians.com). ## 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](https://opensource.org/licenses/MIT).
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 config/
DIR
—
2023-09-24 03:48
📁 lib/
DIR
—
2023-09-24 03:48
📄 LICENSE.txt
TXT
1.1 KB
2023-09-24 03:48
EDIT
📄 README.md
MD
1.6 KB
2023-09-24 03:48
EDIT