在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):DmitryTsepelev/rubocop-graphql开源软件地址(OpenSource Url):https://github.com/DmitryTsepelev/rubocop-graphql开源编程语言(OpenSource Language):Ruby 99.9%开源软件介绍(OpenSource Introduction):RuboCop::GraphQLRubocop extension for enforcing graphql-ruby best practices. InstallationInstall the gem: gem install rubocop-graphql If you use bundler put this in your Gemfile: gem 'rubocop-graphql', require: false UsageYou need to tell RuboCop to load the GraphQL extension. There are three ways to do this: RuboCop configuration filePut this into your require: rubocop-graphql Alternatively, use the following array notation when specifying multiple extensions. require:
- rubocop-other-extension
- rubocop-graphql Now you can run Command linerubocop --require rubocop-graphql Rake taskRuboCop::RakeTask.new do |task|
task.requires << 'rubocop-graphql'
end The CopsAll cops are located under In your GraphQL/ResolverMethodLength:
Max: 3 ContributingBug reports and pull requests are welcome on GitHub at https://github.com/DmitryTsepelev/rubocop-graphql. LicenseThe gem is available as open source under the terms of the MIT License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论