diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 034e371..057da87 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -220,11 +220,6 @@ Style/Proc: - 'app/models/notice.rb' - 'app/models/problem.rb' -# Offense count: 2 -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/RaiseArgs: - Enabled: false - # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. diff --git a/app/controllers/notices_controller.rb b/app/controllers/notices_controller.rb index 0b79a0d..e66a1b6 100644 --- a/app/controllers/notices_controller.rb +++ b/app/controllers/notices_controller.rb @@ -39,7 +39,7 @@ private return @notice_params if @notice_params @notice_params = params[:data] || request.raw_post if @notice_params.blank? - fail ParamsError.new('Need a data params in GET or raw post data') + fail ParamsError, 'Need a data params in GET or raw post data' end @notice_params end diff --git a/app/interactors/problem_merge.rb b/app/interactors/problem_merge.rb index 33d9e20..d3dc85e 100644 --- a/app/interactors/problem_merge.rb +++ b/app/interactors/problem_merge.rb @@ -5,7 +5,7 @@ class ProblemMerge problems = problems.flatten.uniq @merged_problem = problems[0] @child_problems = problems[1..-1] - fail ArgumentError.new("need almost 2 uniq different problems") if @child_problems.empty? + fail ArgumentError, "need almost 2 uniq different problems" if @child_problems.empty? end attr_reader :merged_problem, :child_problems -- libgit2 0.21.2