From bbd8e5a08a94bfb2447cba535b6fc1f03eb8a1cf Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 2 Jan 2023 06:32:18 +0000 Subject: [PATCH] Update RuboCop to 1.42 (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22021 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 2 +- Gemfile | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 89cdc8d73..d411d2a9a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -254,3 +254,6 @@ Style/TrailingCommaInArrayLiteral: Style/TrailingCommaInHashLiteral: Enabled: false + +Style/YodaExpression: + Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 06504d77b..6e7c678bf 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.41.1. +# using RuboCop version 1.42.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new diff --git a/Gemfile b/Gemfile index 372e57d65..949f401a1 100644 --- a/Gemfile +++ b/Gemfile @@ -103,7 +103,7 @@ group :test do gem "selenium-webdriver", "~> 3.142.7" gem 'webdrivers', '4.6.1', require: false # RuboCop - gem 'rubocop', '~> 1.41.1' + gem 'rubocop', '~> 1.42.0' gem 'rubocop-performance', '~> 1.15.0' gem 'rubocop-rails', '~> 2.17.2' end