https://github.com/netlify/rubocop-netlify
Code style checking for Netlify Ruby repositories
https://github.com/netlify/rubocop-netlify
Last synced: about 2 months ago
JSON representation
Code style checking for Netlify Ruby repositories
- Host: GitHub
- URL: https://github.com/netlify/rubocop-netlify
- Owner: netlify
- License: mit
- Created: 2020-04-09T18:34:07.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-27T22:14:16.000Z (about 2 years ago)
- Last Synced: 2025-04-26T16:59:28.024Z (about 2 months ago)
- Language: Ruby
- Size: 48.8 KB
- Stars: 0
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# RuboCop::Netlify
This repository provides additional RuboCops Cops for use on Netlify open source and internal Ruby projects.
TODO: Add recommended RuboCop configuration to inherit from
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'rubocop-netlify'
```And then this to `.rubocop.yml`
```yml
require:
- rubocop-netlify
```## Testing
```
bundle install
bundle exec rake test
```## The Cops
All cops are located under [lib/rubocop/cop/netlify](lib/rubocop/cop/netlify), and contain examples/documentation.## Release
1. Make sure you have an account in https://rubygems.org/ and be a part of https://rubygems.org/gems/rubocop-netlify owners
2. Update a version in [lib/rubocop/netlify/version.rb](lib/rubocop/netlify/version.rb)
3. Tag it (also maybe make a new release in GitHub)
4. Run `gem build rubocop-netlify.gemspec` to build a gem
5. Run `gem push` with a newly created gem file
6. Done done!