-
- 下载
Merge branch 'rubocop/enable-identical-conditional-branches-cop' into 'master'
Enable Style/IdenticalConditionalBranches Rubocop cop ## What does this MR do? This MR enables Rubocop cop that checks for identical lines at the end of each branch of a conditional statement. Examples: ```ruby @bad if condition do_x do_z else do_y do_z end @good if condition do_x else do_y end do_z ``` ## What are the relevant issue numbers? #17478 See merge request !5011
显示
- .rubocop.yml 1 个添加, 1 个删除.rubocop.yml
- app/controllers/projects_controller.rb 2 个添加, 2 个删除app/controllers/projects_controller.rb
- app/models/project_services/irker_service.rb 1 个添加, 9 个删除app/models/project_services/irker_service.rb
- app/services/merge_requests/refresh_service.rb 3 个添加, 8 个删除app/services/merge_requests/refresh_service.rb
- lib/rouge/formatters/html_gitlab.rb 6 个添加, 10 个删除lib/rouge/formatters/html_gitlab.rb
加载中
想要评论请 注册 或 登录