Project

General

Profile

Patch #32531 » update-rubocop-rails.diff

Go MAEDA, 2019-11-29 08:56

View differences:

.rubocop_todo.yml (作業コピー)
578 578
    - 'app/models/member.rb'
579 579

  
580 580
# Cop supports --auto-correct.
581
Rails/ApplicationController:
582
  Exclude:
583
    - 'app/controllers/mail_handler_controller.rb'
584
    - 'app/controllers/sys_controller.rb'
585
    - 'test/unit/lib/redmine/hook_test.rb'
586

  
587
# Cop supports --auto-correct.
588
Rails/ApplicationMailer:
589
  Exclude:
590
    - 'app/models/mail_handler.rb'
591
    - 'app/models/mailer.rb'
592

  
593
# Cop supports --auto-correct.
581 594
Rails/ApplicationRecord:
582 595
  Enabled: false
583 596

  
......
650 663
# Configuration parameters: EnforcedStyle.
651 664
# SupportedStyles: slashes, arguments
652 665
Rails/FilePath:
653
  Enabled: false
666
  Exclude:
667
    - 'app/models/attachment.rb'
668
    - 'app/models/import.rb'
669
    - 'app/models/setting.rb'
670
    - 'config/environment.rb'
671
    - 'config/initializers/00-core_plugins.rb'
672
    - 'config/initializers/10-patches.rb'
673
    - 'lib/redmine/configuration.rb'
674
    - 'lib/redmine/export/pdf.rb'
675
    - 'lib/redmine/plugin.rb'
676
    - 'lib/redmine/version.rb'
677
    - 'test/application_system_test_case.rb'
678
    - 'test/functional/custom_fields_controller_test.rb'
679
    - 'test/functional/settings_controller_test.rb'
680
    - 'test/test_helper.rb'
681
    - 'test/unit/lib/redmine/configuration_test.rb'
682
    - 'test/unit/lib/redmine/i18n_test.rb'
683
    - 'test/unit/lib/redmine/plugin_test.rb'
654 684

  
655 685
# Cop supports --auto-correct.
656 686
# Configuration parameters: Include.
Gemfile (作業コピー)
86 86
  # RuboCop
87 87
  gem 'rubocop', '~> 0.77.0'
88 88
  gem 'rubocop-performance', '~> 1.5.0'
89
  gem 'rubocop-rails', '~> 2.3.0'
89
  gem 'rubocop-rails', '~> 2.4.0'
90 90
end
91 91

  
92 92
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
    (1-1/1)