Sha256: 33e43644777f3fc2478a0b5d2ecc367325c60a4cf9f40ca750997568efc94fb1

Contents?: true

Size: 1.36 KB

Versions: 12

Compression:

Stored size: 1.36 KB

Contents

# Rubocul

RuboCop defaults for Columbia University Libraries projects.

## Installation & Usage

Add this line to your Gemfile:

```ruby
gem 'rubocul', '~> 4.0'
```

And then execute:

    $ bundle

In your .rubocop.yml:

```yml
inherit_gem:
  rubocul: rubocul_default.yml

AllCops:
  TargetRubyVersion: 3.1.0  # Update to your version of ruby
  TargetRailsVersion: 7.0.1 # Update to your version of rails
```

## .rubocop_todo.yml
Understandably, it can be difficult to address all rubocop issues when adding rubocop to a current project. If you want to delay fixing these issues, creating a `.rubocop_todo.yml` creates a list of exclusions for your rubocop configuration. Using the following command creates a rubocop_todo configuration that only excludes files from cops instead of enabling/disabling cops and changing configuration values.

```
rubocop --auto-gen-config  --auto-gen-only-exclude --exclude-limit 10000
```

## Configuration Suggestion

If you'd like to propose a change to our configuration, please open a github pull request with the change (in rubocop_default, or the appropriate rubocup_rules_* file) with an explanation of why it would be useful.

## Testing

Note that testing of custom rubocop rules is not currently set up for this gem, but is planned for the future.  We have a test in the spec directory that we'll eventually want to run once tests are ready to go.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rubocul-4.0.12 README.md
rubocul-4.0.11 README.md
rubocul-4.0.10 README.md
rubocul-4.0.9 README.md
rubocul-4.0.8 README.md
rubocul-4.0.6 README.md
rubocul-4.0.5 README.md
rubocul-4.0.4 README.md
rubocul-4.0.3 README.md
rubocul-4.0.2 README.md
rubocul-4.0.1 README.md
rubocul-4.0.0 README.md