Rubocop::Trailblazer
Rubocop::Trailblazer is a Ruby gem that provides additional RuboCop rules that are specifically useful for enforcing best practices and coding styles within projects using the Trailblazer architecture.
Installation
Install rubocop-trailblazer gem via the following command:
$ gem install rubocop-trailblazerIf you are using this gem within a project, add the following line in your Gemfile or gems.rb under the development and test groups:
group :development, :test do
gem 'rubocop-trailblazer', require: false
endThen run bundle install to install the gem.
Usage
Instruct RuboCop to load the Rubocop::Trailblazer extension. Specify this in your .rubocop.yml:
require:
rubocop-other-extension
rubocop-trailblazerAlternatively, you can specify this in the command line:
$ rubocop --require rubocop-trailblazerOr in a Rake task:
require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-trailblazer'
endContributing
We welcome contributions! For bug reports, feature requests, and pull requests, please feel free to visit our GitHub at https://github.com/seuros/rubocop-trailblazer.
When submitting a pull request, please ensure your changes are on a separate branch specific to the feature or issue. All updates should include tests.
License
This gem is open-source, available under the terms of the MIT License.