Skip to content
  • Koichi ITO's avatar
    c6379fd2
    Bump RuboCop to 0.67.2 · c6379fd2
    Koichi ITO authored
    Performance cops will be extracted from RuboCop to RuboCop Performance
    when next RuboCop 0.68 will be released.
    https://github.com/rubocop-hq/rubocop/issues/5977
    
    RuboCop 0.67 is its transition period.
    
    Since rails/rails repository uses Performance cops, This PR added
    rubocop-performance gem to Gemfile.
    
    And this PR fixes some offenses using the following auto-correct.
    
    ```console
    % bundle exec rubocop -a
    
    Offenses:
    
    activerecord/test/cases/connection_adapters/connection_handlers_multi_db_test.rb:212:26:
    C: [Corrected] Layout/SpaceAroundOperators: Operator =
    > should be surrounded by a single space.
                  "primary"  => { adapter: "sqlite3", database: "db/primary.sqlite3" }
                             ^^
    activerecord/test/cases/connection_adapters/connection_handlers_multi_db_test.rb:239:26:
    C: [Corrected] Layout/SpaceAroundOperators: Operator => should be
    surrounded by a single space.
                  "primary"  => { adapter: "sqlite3", database: "db/primary.sqlite3" }
               ...
    c6379fd2
    Bump RuboCop to 0.67.2
    Koichi ITO authored
    Performance cops will be extracted from RuboCop to RuboCop Performance
    when next RuboCop 0.68 will be released.
    https://github.com/rubocop-hq/rubocop/issues/5977
    
    RuboCop 0.67 is its transition period.
    
    Since rails/rails repository uses Performance cops, This PR added
    rubocop-performance gem to Gemfile.
    
    And this PR fixes some offenses using the following auto-correct.
    
    ```console
    % bundle exec rubocop -a
    
    Offenses:
    
    activerecord/test/cases/connection_adapters/connection_handlers_multi_db_test.rb:212:26:
    C: [Corrected] Layout/SpaceAroundOperators: Operator =
    > should be surrounded by a single space.
                  "primary"  => { adapter: "sqlite3", database: "db/primary.sqlite3" }
                             ^^
    activerecord/test/cases/connection_adapters/connection_handlers_multi_db_test.rb:239:26:
    C: [Corrected] Layout/SpaceAroundOperators: Operator => should be
    surrounded by a single space.
                  "primary"  => { adapter: "sqlite3", database: "db/primary.sqlite3" }
               ...
Loading