Project

General

Profile

Feature #31128 » 0002-Update-TargetRubyVersion-of-RuboCop-to-2.5.patch

Go MAEDA, 2021-03-29 05:49

View differences:

.rubocop.yml
1 1
inherit_from: .rubocop_todo.yml
2 2

  
3 3
AllCops:
4
  TargetRubyVersion: 2.4
4
  TargetRubyVersion: 2.5
5 5
  TargetRailsVersion: 5.2
6 6

  
7 7
  NewCops: enable
.rubocop_todo.yml
529 529
    - 'test/integration/api_test/issues_test.rb'
530 530
    - 'test/integration/attachments_test.rb'
531 531

  
532
# Cop supports --auto-correct.
533
Performance/RedundantEqualityComparisonBlock:
534
  Exclude:
535
    - 'app/models/query.rb'
536
    - 'app/models/setting.rb'
537
    - 'lib/redmine/field_format.rb'
538
    - 'test/integration/api_test/issues_test.rb'
539

  
532 540
# Cop supports --auto-correct.
533 541
Performance/RedundantMatch:
534 542
  Exclude:
......
1544 1552
# Cop supports --auto-correct.
1545 1553
Style/RedundantBegin:
1546 1554
  Exclude:
1555
    - 'app/controllers/issues_controller.rb'
1556
    - 'app/models/auth_source.rb'
1547 1557
    - 'app/models/member.rb'
1558
    - 'app/models/repository.rb'
1559
    - 'app/models/setting.rb'
1560
    - 'lib/redmine/codeset_util.rb'
1561
    - 'lib/redmine/plugin.rb'
1562
    - 'test/unit/issue_nested_set_concurrency_test.rb'
1563
    - 'test/unit/project_nested_set_concurrency_test.rb'
1564
    - 'test/unit/query_test.rb'
1548 1565

  
1549 1566
# Cop supports --auto-correct.
1550 1567
Style/RedundantCondition:
......
1706 1723
    - 'app/models/project.rb'
1707 1724
    - 'app/models/query.rb'
1708 1725
    - 'app/models/time_entry.rb'
1709
    - 'app/models/token.rb'
1710 1726
    - 'app/models/user_import.rb'
1711 1727
    - 'app/models/version.rb'
1712 1728
    - 'app/models/watcher.rb'
(2-2/2)