Sha256: c79fe59c5149734ee48c16663e96a87e2f1182ce21114539f8635814bd043a86

Contents?: true

Size: 1.87 KB

Versions: 19

Compression:

Stored size: 1.87 KB

Contents

# rubocop-packs

A collection of Rubocop rules for modularizing ruby applications that conform to the `packs` standard.

## Installation

Just install the `rubocop-packs` gem

```sh
gem install rubocop-packs
```
or, if you use `Bundler`, add this line your application's `Gemfile`:

```ruby
gem 'rubocop-packs', require: false
```

## Usage

You need to tell RuboCop to load the Packs extension. There are three ways to do this:

### RuboCop configuration file

Put this into your `.rubocop.yml`:

```yaml
require:
  - rubocop-packs
```

Now you can run `rubocop` and it will automatically load the RuboCop Packs cops together with the standard cops.

## The Cops
All cops are located under [`lib/rubocop/cop/packs`](lib/rubocop/cop/packs), and contain examples/documentation.

In your `.rubocop.yml`, you may treat the Packs cops just like any other cop. For example:

```yaml
Packs/RootNamespaceIsPackName:
  Exclude:
    - lib/example.rb
```

## Pack-Level `package_rubocop.yml` and `package_rubocop_todo.yml` files
See [ADVANCED_USAGE.md](ADVANCED_USAGE.md)

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rubyatscale/rubocop-packs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Code Of Conduct](CODE_OF_CONDUCT.MD).

To contribute a new cop, please use the supplied generator like this:

```sh
bundle exec rake new_cop[Packs/NewCopName]
```

which will create a skeleton cop, a skeleton spec, an entry in the default config file and will require the new cop so that it is properly exported from the gem.

Don't forget to update the documentation with:

```sh
VERIFYING_DOCUMENTATION=1 bundle exec rake generate_cops_documentation
```

## License

The gem is available as open source under the terms of the [MIT License](https://github.com/Shopify/rubocop-packs/blob/main/LICENSE.txt).

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rubocop-packs-0.0.39 README.md
rubocop-packs-0.0.38 README.md
rubocop-packs-0.0.37 README.md
rubocop-packs-0.0.35 README.md
rubocop-packs-0.0.34 README.md
rubocop-packs-0.0.33 README.md
rubocop-packs-0.0.32 README.md
rubocop-packs-0.0.31 README.md
rubocop-packs-0.0.30 README.md
rubocop-packs-0.0.29 README.md
rubocop-packs-0.0.28 README.md
rubocop-packs-0.0.27 README.md
rubocop-packs-0.0.26 README.md
rubocop-packs-0.0.25 README.md
rubocop-packs-0.0.24 README.md
rubocop-packs-0.0.23 README.md
rubocop-packs-0.0.22 README.md
rubocop-packs-0.0.21 README.md
rubocop-packs-0.0.20 README.md