https://github.com/thinkhr-code/hrsc_style
Shared rubocop config for Mammoth ruby apps
https://github.com/thinkhr-code/hrsc_style
addon mammothhr nodejs
Last synced: 11 months ago
JSON representation
Shared rubocop config for Mammoth ruby apps
- Host: GitHub
- URL: https://github.com/thinkhr-code/hrsc_style
- Owner: thinkhr-code
- License: mit
- Created: 2017-09-26T17:53:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-09T02:37:04.000Z (over 6 years ago)
- Last Synced: 2025-01-28T14:23:34.757Z (about 1 year ago)
- Topics: addon, mammothhr, nodejs
- Language: Ruby
- Size: 39.1 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# hrsc-style
HRSC shared style configs.
## Installation
Add this line to your application's Gemfile:
```ruby
group :test, :development do
gem 'hrsc-style'
end
```
Or, for a Ruby library, add this to your gemspec:
```ruby
spec.add_development_dependency 'hrsc-style'
```
And then run:
```bash
$ bundle install
```
## Usage
Create a `.rubocop.yml` with the following directives:
```yaml
inherit_gem:
hrsc-style:
- default.yml
```
Now, run:
```bash
$ bundle exec rubocop
```
You do not need to include rubocop directly in your application's dependences. HRSC-style will include a specific version of `rubocop` that is shared across all projects.