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

Suppress RuboCop offenses #229

Merged
merged 1 commit into from
Apr 20, 2022
Merged

Commits on Apr 20, 2022

  1. Suppress RuboCop offenses

    This PR suppresses the following RuboCop offenses.
    
    ```console
    % bundle exec rake
    (snip)
    
    Offenses:
    
    Gemfile:21:4: C: [Correctable] Style/FetchEnvVar:
    Use ENV.fetch('RUBOCOP_VERSION') or ENV.fetch('RUBOCOP_VERSION', nil) instead of ENV['RUBOCOP_VERSION'].
    if ENV['RUBOCOP_VERSION'] == 'none'
       ^^^^^^^^^^^^^^^^^^^^^^
    Gemfile:28:9: C: [Correctable] Style/FetchEnvVar:
    Use ENV.fetch('RUBOCOP_VERSION') or ENV.fetch('RUBOCOP_VERSION', nil) instead of ENV['RUBOCOP_VERSION'].
      elsif ENV['RUBOCOP_VERSION'] == 'master'
            ^^^^^^^^^^^^^^^^^^^^^^
    lib/rubocop/ast/traversal.rb:37:39: C: [Correctable] Style/FetchEnvVar:
    Use ENV.fetch('RUBOCOP_DEBUG') or ENV.fetch('RUBOCOP_DEBUG', nil) instead of ENV['RUBOCOP_DEBUG'].
                             arity_check: ENV['RUBOCOP_DEBUG'] && self.arity_check(arity),
                                          ^^^^^^^^^^^^^^^^^^^^
    
    162 files inspected, 3 offenses detected, 3 offenses auto-correctable
    ```
    koic committed Apr 20, 2022
    Configuration menu
    Copy the full SHA
    ac1486c View commit details
    Browse the repository at this point in the history