Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference to rubocop-rails so we can use the Rails cops #10

Merged
merged 1 commit into from
Jan 29, 2020

Commits on Jan 19, 2020

  1. Add reference to rubocop-rails so we can use the Rails cops

    Problem
    -----------
    
    We had specified some Rails cop rules at the bottom of `rubocop.yml` but we
    did not include the `rubocop-rails` rules at the top so `rubocop` was complaining:
    
    ```
    Error: unrecognized cop Rails/ApplicationRecord found in .rubocop.yml, unrecognized cop Rails/HasAndBelongsToMany found in .rubocop.yml, unrecognized cop Rails/RakeEnvironment found in .rubocop.yml
    ```
    
    Solution
    -----------
    Add to the `require` line `rubocop-rails` so those cops will be defined before we read the rubocop.yml file.
    
    Note:  this means projects that include this file *may* need to add `rubocop-rails` to their Gemfiles
    Jon Rogers committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    fb728ea View commit details
    Browse the repository at this point in the history