Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Rubocop Rails Suite is a comprehensive suite of RuboCop configurations tailored for Ruby on Rails applications. This gem enhances your Rails code quality by bundling essential RuboCop extensions for performance, testing, and best practices. It requires at least Ruby version 3.0.0 to function properly.
rubocop
- The base linter for Ruby.rubocop-rails
- Rails-specific linting rules.rubocop-performance
- Rules focused on optimizing Ruby performance.rubocop-rspec
- Linting rules for RSpec tests.rubocop-factory_bot
- Linting rules for factory_bot
usage.rubocop-faker
- Linting rules for faker
usage.Add this line to your application's Gemfile:
gem "rubocop-rails-suite", require: false, group: [:development]
Then execute:
bundle install
To enable the Rubocop Rails Suite in your project, create or update your .rubocop.yml file with the following:
inherit_gem:
rubocop-rails-suite: rubocop.yml
# Specify your Ruby version
AllCops:
TargetRubyVersion: 3.0
This will import the suite's recommended RuboCop rules for Rails projects, including rules for performance, RSpec, factory_bot, faker, and migration linting.
Run RuboCop to check your code:
bundle exec rubocop
Contributions are welcome! Feel free to report bugs or submit pull requests.
For questions or further information, feel free to reach out via LinkedIn.
FAQs
Unknown package
We found that rubocop-rails-suite 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.