
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Rubocop extension for enforcing graphql-ruby best practices.
You can support my open–source work here.
Install the gem:
gem install rubocop-graphql
If you use bundler put this in your Gemfile:
gem 'rubocop-graphql', require: false
You need to tell RuboCop to load the GraphQL extension. There are three ways to do this:
Put this into your .rubocop.yml
.
plugins: rubocop-graphql
Alternatively, use the following array notation when specifying multiple extensions.
plugins:
- rubocop-other-extension
- rubocop-graphql
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 ofplugins
.
rubocop --plugins rubocop-graphql
RuboCop::RakeTask.new do |task|
task.plugins << 'rubocop-graphql'
end
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:
GraphQL/ResolverMethodLength:
Max: 3
Initially sponsored by Evil Martians.
Bug reports and pull requests are welcome on GitHub at https://github.com/DmitryTsepelev/rubocop-graphql.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that rubocop-graphql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.