https://github.com/rubocop/rubocop-sequel
Code style checking for Sequel
https://github.com/rubocop/rubocop-sequel
linting rubocop rubocop-sequel ruby sequel
Last synced: about 1 year ago
JSON representation
Code style checking for Sequel
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-sequel
- Owner: rubocop
- License: mit
- Created: 2016-12-17T22:54:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T23:45:47.000Z (over 1 year ago)
- Last Synced: 2024-10-24T13:16:57.169Z (over 1 year ago)
- Topics: linting, rubocop, rubocop-sequel, ruby, sequel
- Language: Ruby
- Size: 66.4 KB
- Stars: 28
- Watchers: 8
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# RuboCop Sequel
Code style checking for [Sequel](https://sequel.jeremyevans.net/).
## Installation
Using the `rubocop-sequel` gem
```bash
gem install rubocop-sequel
```
or using bundler by adding in your `Gemfile`
```
gem 'rubocop-sequel'
```
## Usage
### RuboCop configuration file
Add to your `.rubocop.yml`.
```
plugins: rubocop-sequel
```
`rubocop` will now automatically load RuboCop Sequel
cops alongside with the standard cops.
> [!NOTE]
> The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.
### Command line
```bash
rubocop --plugin rubocop-sequel
```
### Rake task
```ruby
RuboCop::RakeTask.new do |task|
task.plugins << 'rubocop-sequel'
end
```