An open API service indexing awesome lists of open source software.

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

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.