diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9667387e6..29ac885a1 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 0.77.0. +# using RuboCop version 0.78.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 @@ -252,7 +252,8 @@ Layout/SpaceAroundEqualsInParameterDefault: Enabled: false # Cop supports --auto-correct. -# Configuration parameters: AllowForAlignment. +# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. +# SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Enabled: false @@ -386,6 +387,11 @@ Lint/Loop: Exclude: - 'lib/redmine/helpers/gantt.rb' +# Cop supports --auto-correct. +Lint/NonDeterministicRequireOrder: + Exclude: + - 'lib/redmine/core_ext.rb' + Lint/ParenthesesAsGroupedExpression: Exclude: - 'test/functional/my_controller_test.rb' @@ -1605,8 +1611,8 @@ Style/TernaryParentheses: Enabled: false # Cop supports --auto-correct. -# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethod. -# AllowedMethod: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym +# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods. +# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym Style/TrivialAccessors: Exclude: - 'app/models/issue.rb' @@ -1651,3 +1657,9 @@ Style/ZeroLengthPredicate: - 'test/object_helpers.rb' - 'test/unit/activity_test.rb' - 'test/unit/custom_field_test.rb' + +# Cop supports --auto-correct. +# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. +# URISchemes: http, https +Layout/LineLength: + Max: 461 diff --git a/Gemfile b/Gemfile index a84968474..354adc747 100644 --- a/Gemfile +++ b/Gemfile @@ -84,7 +84,7 @@ group :test do gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.29.0") gem "selenium-webdriver" # RuboCop - gem 'rubocop', '~> 0.77.0' + gem 'rubocop', '~> 0.78.0' gem 'rubocop-performance', '~> 1.5.0' gem 'rubocop-rails', '~> 2.4.0' end