From 5ba0ef144b3c47b3d4b04e4f90e3c198a79081e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20T=C3=B3th?= Date: Sun, 25 Feb 2018 17:00:58 +0100 Subject: [PATCH] Comment includes only line number of the offense Request in #406 to remove addition "column" information about the offence --- .../rubocop_checker/message_builder.rb | 13 +- .../rubocop_checker/rubocop_results_filter.rb | 2 +- app/workers/concerns/code_analysis_mixin.rb | 6 +- .../results.json | 4 +- .../with_lines_not_in_the_diff/results.json | 30 +- .../results.json | 2920 ++--------------- .../with_results_with_offenses/results.json | 40 +- .../results.json | 4 +- .../results.json | 30 +- .../rubocop_checker/message_builder_spec.rb | 8 +- .../rubocop_results_filter_spec.rb | 4 +- .../concerns/code_analysis_mixin_spec.rb | 20 +- 12 files changed, 318 insertions(+), 2763 deletions(-) diff --git a/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb b/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb index 3e9d043b..b1951f53 100644 --- a/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb +++ b/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder.rb @@ -78,7 +78,7 @@ def offenses SEVERITY_MAP[o["severity"]], format_message(o), f["path"], - format_locator(f, o) + format_line(f, o) ) end end.flatten @@ -96,22 +96,13 @@ def format_cop_name(cop_name) COP_URIS[cop_name] || cop_name end - def format_locator(file, offense) - [format_line(file, offense), format_column(offense)].compact.join(", ").presence - end - def format_line(file, offense) - line = offense.fetch_path("location", "line") + line = offense.fetch_path("line") return nil unless line uri = File.join(line_uri, "blob", commits.last, file["path"]) << "#L#{line}" "[Line #{line}](#{uri})" end - def format_column(offense) - column = offense.fetch_path("location", "column") - column && "Col #{column}" - end - # TODO: Don't reuse the commit_uri. This should probably be its own URI. def line_uri branch.commit_uri.chomp("commit/$commit") diff --git a/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter.rb b/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter.rb index 98a660cf..1b9218ad 100644 --- a/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter.rb +++ b/app/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter.rb @@ -26,7 +26,7 @@ def filter_on_diff @results["files"].each do |f| f["offenses"].select! do |o| o["severity"].in?(%w(error fatal)) || - @diff_details[f["path"]].include?(o["location"]["line"]) + @diff_details[f["path"]].include?(o["line"]) end end end diff --git a/app/workers/concerns/code_analysis_mixin.rb b/app/workers/concerns/code_analysis_mixin.rb index cd0611e1..a55915bf 100644 --- a/app/workers/concerns/code_analysis_mixin.rb +++ b/app/workers/concerns/code_analysis_mixin.rb @@ -72,11 +72,7 @@ def run_all_linters "message" => msg.msg, "cop_name" => msg.runner, "corrected" => false, - "location" => { - "line" => msg.line.position, - "column" => 0, # TODO: value cannot be obtained from Pronto::Message - "length" => msg.line.length, - } + "line" => msg.line.position } end } diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_haml_file_using_haml-lint/results.json b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_haml_file_using_haml-lint/results.json index f788e646..01e81976 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_haml_file_using_haml-lint/results.json +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_haml_file_using_haml-lint/results.json @@ -13,9 +13,7 @@ { "severity": "error", "message": "You don't need to use \"- end\" in Haml. Un-indent to close a block:\n- if foo?\n %strong Foo!\n- else\n Not foo.\n%p This line is un-indented, so it isn't part of the \"if\" block", - "location": { - "line": 3 - } + "line": 3 } ] } diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_lines_not_in_the_diff/results.json b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_lines_not_in_the_diff/results.json index 8594d9d5..95c2e2a7 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_lines_not_in_the_diff/results.json +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_lines_not_in_the_diff/results.json @@ -15,45 +15,21 @@ "message": "Freeze mutable objects assigned to constants.", "cop_name": "Style/MutableConstant", "corrected": false, - "location": { - "start_line": 2, - "start_column": 10, - "last_line": 6, - "last_column": 3, - "length": 78, - "line": 2, - "column": 10 - } + "line": 2 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 3, - "start_column": 5, - "last_line": 3, - "last_column": 20, - "length": 16, - "line": 3, - "column": 5 - } + "line": 3 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 4, - "start_column": 5, - "last_line": 4, - "last_column": 22, - "length": 18, - "line": 4, - "column": 5 - } + "line": 4 } ] } diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_generating_multiple_comments/results.json b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_generating_multiple_comments/results.json index f1dad9d8..b93f7ef9 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_generating_multiple_comments/results.json +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_generating_multiple_comments/results.json @@ -15,4380 +15,2044 @@ "message": "Freeze mutable objects assigned to constants.", "cop_name": "Style/MutableConstant", "corrected": false, - "location": { - "start_line": 2, - "start_column": 10, - "last_line": 197, - "last_column": 3, - "length": 4456, - "line": 2, - "column": 10 - } + "line": 2 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 3, - "start_column": 5, - "last_line": 3, - "last_column": 20, - "length": 16, - "line": 3, - "column": 5 - } + "line": 3 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 4, - "start_column": 5, - "last_line": 4, - "last_column": 18, - "length": 14, - "line": 4, - "column": 5 - } + "line": 4 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 5, - "start_column": 5, - "last_line": 5, - "last_column": 18, - "length": 14, - "line": 5, - "column": 5 - } + "line": 5 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 6, - "start_column": 5, - "last_line": 6, - "last_column": 15, - "length": 11, - "line": 6, - "column": 5 - } + "line": 6 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 7, - "start_column": 5, - "last_line": 7, - "last_column": 25, - "length": 21, - "line": 7, - "column": 5 - } + "line": 7 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 8, - "start_column": 5, - "last_line": 8, - "last_column": 31, - "length": 27, - "line": 8, - "column": 5 - } + "line": 8 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 9, - "start_column": 5, - "last_line": 9, - "last_column": 24, - "length": 20, - "line": 9, - "column": 5 - } + "line": 9 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 10, - "start_column": 5, - "last_line": 10, - "last_column": 17, - "length": 13, - "line": 10, - "column": 5 - } + "line": 10 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 11, - "start_column": 5, - "last_line": 11, - "last_column": 18, - "length": 14, - "line": 11, - "column": 5 - } + "line": 11 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 12, - "start_column": 5, - "last_line": 12, - "last_column": 18, - "length": 14, - "line": 12, - "column": 5 - } + "line": 12 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 13, - "start_column": 5, - "last_line": 13, - "last_column": 26, - "length": 22, - "line": 13, - "column": 5 - } + "line": 13 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 14, - "start_column": 5, - "last_line": 14, - "last_column": 20, - "length": 16, - "line": 14, - "column": 5 - } + "line": 14 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 15, - "start_column": 5, - "last_line": 15, - "last_column": 15, - "length": 11, - "line": 15, - "column": 5 - } + "line": 15 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 16, - "start_column": 5, - "last_line": 16, - "last_column": 16, - "length": 12, - "line": 16, - "column": 5 - } + "line": 16 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 17, - "start_column": 5, - "last_line": 17, - "last_column": 25, - "length": 21, - "line": 17, - "column": 5 - } + "line": 17 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 18, - "start_column": 5, - "last_line": 18, - "last_column": 19, - "length": 15, - "line": 18, - "column": 5 - } + "line": 18 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 19, - "start_column": 5, - "last_line": 19, - "last_column": 22, - "length": 18, - "line": 19, - "column": 5 - } + "line": 19 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 20, - "start_column": 5, - "last_line": 20, - "last_column": 22, - "length": 18, - "line": 20, - "column": 5 - } + "line": 20 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 21, - "start_column": 5, - "last_line": 21, - "last_column": 20, - "length": 16, - "line": 21, - "column": 5 - } + "line": 21 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 22, - "start_column": 5, - "last_line": 22, - "last_column": 22, - "length": 18, - "line": 22, - "column": 5 - } + "line": 22 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 23, - "start_column": 5, - "last_line": 23, - "last_column": 17, - "length": 13, - "line": 23, - "column": 5 - } + "line": 23 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 24, - "start_column": 5, - "last_line": 24, - "last_column": 20, - "length": 16, - "line": 24, - "column": 5 - } + "line": 24 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 25, - "start_column": 5, - "last_line": 25, - "last_column": 21, - "length": 17, - "line": 25, - "column": 5 - } + "line": 25 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 26, - "start_column": 5, - "last_line": 26, - "last_column": 18, - "length": 14, - "line": 26, - "column": 5 - } + "line": 26 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 27, - "start_column": 5, - "last_line": 27, - "last_column": 17, - "length": 13, - "line": 27, - "column": 5 - } + "line": 27 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 28, - "start_column": 5, - "last_line": 28, - "last_column": 16, - "length": 12, - "line": 28, - "column": 5 - } + "line": 28 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 29, - "start_column": 5, - "last_line": 29, - "last_column": 30, - "length": 26, - "line": 29, - "column": 5 - } + "line": 29 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 30, - "start_column": 5, - "last_line": 30, - "last_column": 29, - "length": 25, - "line": 30, - "column": 5 - } + "line": 30 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 31, - "start_column": 5, - "last_line": 31, - "last_column": 29, - "length": 25, - "line": 31, - "column": 5 - } + "line": 31 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 32, - "start_column": 5, - "last_line": 32, - "last_column": 26, - "length": 22, - "line": 32, - "column": 5 - } + "line": 32 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 33, - "start_column": 5, - "last_line": 33, - "last_column": 20, - "length": 16, - "line": 33, - "column": 5 - } + "line": 33 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 34, - "start_column": 5, - "last_line": 34, - "last_column": 17, - "length": 13, - "line": 34, - "column": 5 - } + "line": 34 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 35, - "start_column": 5, - "last_line": 35, - "last_column": 21, - "length": 17, - "line": 35, - "column": 5 - } + "line": 35 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 36, - "start_column": 5, - "last_line": 36, - "last_column": 23, - "length": 19, - "line": 36, - "column": 5 - } + "line": 36 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 37, - "start_column": 5, - "last_line": 37, - "last_column": 21, - "length": 17, - "line": 37, - "column": 5 - } + "line": 37 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 38, - "start_column": 5, - "last_line": 38, - "last_column": 25, - "length": 21, - "line": 38, - "column": 5 - } + "line": 38 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 39, - "start_column": 5, - "last_line": 39, - "last_column": 21, - "length": 17, - "line": 39, - "column": 5 - } + "line": 39 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 40, - "start_column": 5, - "last_line": 40, - "last_column": 18, - "length": 14, - "line": 40, - "column": 5 - } + "line": 40 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 41, - "start_column": 5, - "last_line": 41, - "last_column": 21, - "length": 17, - "line": 41, - "column": 5 - } + "line": 41 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 42, - "start_column": 5, - "last_line": 42, - "last_column": 19, - "length": 15, - "line": 42, - "column": 5 - } + "line": 42 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 43, - "start_column": 5, - "last_line": 43, - "last_column": 17, - "length": 13, - "line": 43, - "column": 5 - } + "line": 43 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 44, - "start_column": 5, - "last_line": 44, - "last_column": 25, - "length": 21, - "line": 44, - "column": 5 - } + "line": 44 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 45, - "start_column": 5, - "last_line": 45, - "last_column": 21, - "length": 17, - "line": 45, - "column": 5 - } + "line": 45 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 46, - "start_column": 5, - "last_line": 46, - "last_column": 21, - "length": 17, - "line": 46, - "column": 5 - } + "line": 46 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 47, - "start_column": 5, - "last_line": 47, - "last_column": 22, - "length": 18, - "line": 47, - "column": 5 - } + "line": 47 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 48, - "start_column": 5, - "last_line": 48, - "last_column": 17, - "length": 13, - "line": 48, - "column": 5 - } + "line": 48 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 49, - "start_column": 5, - "last_line": 49, - "last_column": 22, - "length": 18, - "line": 49, - "column": 5 - } + "line": 49 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 50, - "start_column": 5, - "last_line": 50, - "last_column": 24, - "length": 20, - "line": 50, - "column": 5 - } + "line": 50 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 51, - "start_column": 5, - "last_line": 51, - "last_column": 24, - "length": 20, - "line": 51, - "column": 5 - } + "line": 51 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 52, - "start_column": 5, - "last_line": 52, - "last_column": 22, - "length": 18, - "line": 52, - "column": 5 - } + "line": 52 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 53, - "start_column": 5, - "last_line": 53, - "last_column": 26, - "length": 22, - "line": 53, - "column": 5 - } + "line": 53 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 54, - "start_column": 5, - "last_line": 54, - "last_column": 21, - "length": 17, - "line": 54, - "column": 5 - } + "line": 54 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 55, - "start_column": 5, - "last_line": 55, - "last_column": 15, - "length": 11, - "line": 55, - "column": 5 - } + "line": 55 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 56, - "start_column": 5, - "last_line": 56, - "last_column": 14, - "length": 10, - "line": 56, - "column": 5 - } + "line": 56 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 57, - "start_column": 5, - "last_line": 57, - "last_column": 18, - "length": 14, - "line": 57, - "column": 5 - } + "line": 57 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 58, - "start_column": 5, - "last_line": 58, - "last_column": 16, - "length": 12, - "line": 58, - "column": 5 - } + "line": 58 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 59, - "start_column": 5, - "last_line": 59, - "last_column": 20, - "length": 16, - "line": 59, - "column": 5 - } + "line": 59 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 60, - "start_column": 5, - "last_line": 60, - "last_column": 21, - "length": 17, - "line": 60, - "column": 5 - } + "line": 60 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 61, - "start_column": 5, - "last_line": 61, - "last_column": 18, - "length": 14, - "line": 61, - "column": 5 - } + "line": 61 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 62, - "start_column": 5, - "last_line": 62, - "last_column": 19, - "length": 15, - "line": 62, - "column": 5 - } + "line": 62 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 63, - "start_column": 5, - "last_line": 63, - "last_column": 23, - "length": 19, - "line": 63, - "column": 5 - } + "line": 63 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 64, - "start_column": 5, - "last_line": 64, - "last_column": 16, - "length": 12, - "line": 64, - "column": 5 - } + "line": 64 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 65, - "start_column": 5, - "last_line": 65, - "last_column": 23, - "length": 19, - "line": 65, - "column": 5 - } + "line": 65 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 66, - "start_column": 5, - "last_line": 66, - "last_column": 33, - "length": 29, - "line": 66, - "column": 5 - } + "line": 66 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 67, - "start_column": 5, - "last_line": 67, - "last_column": 24, - "length": 20, - "line": 67, - "column": 5 - } + "line": 67 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 68, - "start_column": 5, - "last_line": 68, - "last_column": 19, - "length": 15, - "line": 68, - "column": 5 - } + "line": 68 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 69, - "start_column": 5, - "last_line": 69, - "last_column": 16, - "length": 12, - "line": 69, - "column": 5 - } + "line": 69 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 70, - "start_column": 5, - "last_line": 70, - "last_column": 16, - "length": 12, - "line": 70, - "column": 5 - } + "line": 70 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 71, - "start_column": 5, - "last_line": 71, - "last_column": 16, - "length": 12, - "line": 71, - "column": 5 - } + "line": 71 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 72, - "start_column": 5, - "last_line": 72, - "last_column": 24, - "length": 20, - "line": 72, - "column": 5 - } + "line": 72 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 73, - "start_column": 5, - "last_line": 73, - "last_column": 17, - "length": 13, - "line": 73, - "column": 5 - } + "line": 73 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 74, - "start_column": 5, - "last_line": 74, - "last_column": 16, - "length": 12, - "line": 74, - "column": 5 - } + "line": 74 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 75, - "start_column": 5, - "last_line": 75, - "last_column": 16, - "length": 12, - "line": 75, - "column": 5 - } + "line": 75 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 76, - "start_column": 5, - "last_line": 76, - "last_column": 24, - "length": 20, - "line": 76, - "column": 5 - } + "line": 76 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 77, - "start_column": 5, - "last_line": 77, - "last_column": 26, - "length": 22, - "line": 77, - "column": 5 - } + "line": 77 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 78, - "start_column": 5, - "last_line": 78, - "last_column": 23, - "length": 19, - "line": 78, - "column": 5 - } + "line": 78 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 79, - "start_column": 5, - "last_line": 79, - "last_column": 27, - "length": 23, - "line": 79, - "column": 5 - } + "line": 79 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 80, - "start_column": 5, - "last_line": 80, - "last_column": 22, - "length": 18, - "line": 80, - "column": 5 - } + "line": 80 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 81, - "start_column": 5, - "last_line": 81, - "last_column": 22, - "length": 18, - "line": 81, - "column": 5 - } + "line": 81 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 82, - "start_column": 5, - "last_line": 82, - "last_column": 31, - "length": 27, - "line": 82, - "column": 5 - } + "line": 82 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 83, - "start_column": 5, - "last_line": 83, - "last_column": 24, - "length": 20, - "line": 83, - "column": 5 - } + "line": 83 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 84, - "start_column": 5, - "last_line": 84, - "last_column": 15, - "length": 11, - "line": 84, - "column": 5 - } + "line": 84 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 85, - "start_column": 5, - "last_line": 85, - "last_column": 15, - "length": 11, - "line": 85, - "column": 5 - } + "line": 85 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 86, - "start_column": 5, - "last_line": 86, - "last_column": 22, - "length": 18, - "line": 86, - "column": 5 - } + "line": 86 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 87, - "start_column": 5, - "last_line": 87, - "last_column": 23, - "length": 19, - "line": 87, - "column": 5 - } + "line": 87 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 88, - "start_column": 5, - "last_line": 88, - "last_column": 20, - "length": 16, - "line": 88, - "column": 5 - } + "line": 88 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 89, - "start_column": 5, - "last_line": 89, - "last_column": 17, - "length": 13, - "line": 89, - "column": 5 - } + "line": 89 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 90, - "start_column": 5, - "last_line": 90, - "last_column": 23, - "length": 19, - "line": 90, - "column": 5 - } + "line": 90 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 91, - "start_column": 5, - "last_line": 91, - "last_column": 17, - "length": 13, - "line": 91, - "column": 5 - } + "line": 91 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 92, - "start_column": 5, - "last_line": 92, - "last_column": 22, - "length": 18, - "line": 92, - "column": 5 - } + "line": 92 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 93, - "start_column": 5, - "last_line": 93, - "last_column": 22, - "length": 18, - "line": 93, - "column": 5 - } + "line": 93 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 94, - "start_column": 5, - "last_line": 94, - "last_column": 22, - "length": 18, - "line": 94, - "column": 5 - } + "line": 94 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 95, - "start_column": 5, - "last_line": 95, - "last_column": 18, - "length": 14, - "line": 95, - "column": 5 - } + "line": 95 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 96, - "start_column": 5, - "last_line": 96, - "last_column": 26, - "length": 22, - "line": 96, - "column": 5 - } + "line": 96 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 97, - "start_column": 5, - "last_line": 97, - "last_column": 30, - "length": 26, - "line": 97, - "column": 5 - } + "line": 97 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 98, - "start_column": 5, - "last_line": 98, - "last_column": 21, - "length": 17, - "line": 98, - "column": 5 - } + "line": 98 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 99, - "start_column": 5, - "last_line": 99, - "last_column": 18, - "length": 14, - "line": 99, - "column": 5 - } + "line": 99 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 100, - "start_column": 5, - "last_line": 100, - "last_column": 20, - "length": 16, - "line": 100, - "column": 5 - } + "line": 100 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 100, - "start_column": 5, - "last_line": 100, - "last_column": 11, - "length": 7, - "line": 100, - "column": 5 - } + "line": 100 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 101, - "start_column": 5, - "last_line": 101, - "last_column": 18, - "length": 14, - "line": 101, - "column": 5 - } + "line": 101 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 101, - "start_column": 5, - "last_line": 101, - "last_column": 11, - "length": 7, - "line": 101, - "column": 5 - } + "line": 101 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 102, - "start_column": 5, - "last_line": 102, - "last_column": 18, - "length": 14, - "line": 102, - "column": 5 - } + "line": 102 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 102, - "start_column": 5, - "last_line": 102, - "last_column": 11, - "length": 7, - "line": 102, - "column": 5 - } + "line": 102 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 103, - "start_column": 5, - "last_line": 103, - "last_column": 15, - "length": 11, - "line": 103, - "column": 5 - } + "line": 103 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 103, - "start_column": 5, - "last_line": 103, - "last_column": 9, - "length": 5, - "line": 103, - "column": 5 - } + "line": 103 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 104, - "start_column": 5, - "last_line": 104, - "last_column": 25, - "length": 21, - "line": 104, - "column": 5 - } + "line": 104 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 104, - "start_column": 5, - "last_line": 104, - "last_column": 10, - "length": 6, - "line": 104, - "column": 5 - } + "line": 104 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 105, - "start_column": 5, - "last_line": 105, - "last_column": 31, - "length": 27, - "line": 105, - "column": 5 - } + "line": 105 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 105, - "start_column": 5, - "last_line": 105, - "last_column": 17, - "length": 13, - "line": 105, - "column": 5 - } + "line": 105 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 106, - "start_column": 5, - "last_line": 106, - "last_column": 24, - "length": 20, - "line": 106, - "column": 5 - } + "line": 106 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 106, - "start_column": 5, - "last_line": 106, - "last_column": 16, - "length": 12, - "line": 106, - "column": 5 - } + "line": 106 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 107, - "start_column": 5, - "last_line": 107, - "last_column": 17, - "length": 13, - "line": 107, - "column": 5 - } + "line": 107 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 107, - "start_column": 5, - "last_line": 107, - "last_column": 10, - "length": 6, - "line": 107, - "column": 5 - } + "line": 107 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 108, - "start_column": 5, - "last_line": 108, - "last_column": 18, - "length": 14, - "line": 108, - "column": 5 - } + "line": 108 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 108, - "start_column": 5, - "last_line": 108, - "last_column": 9, - "length": 5, - "line": 108, - "column": 5 - } + "line": 108 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 109, - "start_column": 5, - "last_line": 109, - "last_column": 18, - "length": 14, - "line": 109, - "column": 5 - } + "line": 109 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 109, - "start_column": 5, - "last_line": 109, - "last_column": 11, - "length": 7, - "line": 109, - "column": 5 - } + "line": 109 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 110, - "start_column": 5, - "last_line": 110, - "last_column": 26, - "length": 22, - "line": 110, - "column": 5 - } + "line": 110 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 110, - "start_column": 5, - "last_line": 110, - "last_column": 15, - "length": 11, - "line": 110, - "column": 5 - } + "line": 110 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 111, - "start_column": 5, - "last_line": 111, - "last_column": 20, - "length": 16, - "line": 111, - "column": 5 - } + "line": 111 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 111, - "start_column": 5, - "last_line": 111, - "last_column": 13, - "length": 9, - "line": 111, - "column": 5 - } + "line": 111 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 112, - "start_column": 5, - "last_line": 112, - "last_column": 15, - "length": 11, - "line": 112, - "column": 5 - } + "line": 112 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 112, - "start_column": 5, - "last_line": 112, - "last_column": 9, - "length": 5, - "line": 112, - "column": 5 - } + "line": 112 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 113, - "start_column": 5, - "last_line": 113, - "last_column": 16, - "length": 12, - "line": 113, - "column": 5 - } + "line": 113 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 113, - "start_column": 5, - "last_line": 113, - "last_column": 8, - "length": 4, - "line": 113, - "column": 5 - } + "line": 113 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 114, - "start_column": 5, - "last_line": 114, - "last_column": 25, - "length": 21, - "line": 114, - "column": 5 - } + "line": 114 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 114, - "start_column": 5, - "last_line": 114, - "last_column": 10, - "length": 6, - "line": 114, - "column": 5 - } + "line": 114 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 115, - "start_column": 5, - "last_line": 115, - "last_column": 19, - "length": 15, - "line": 115, - "column": 5 - } + "line": 115 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 115, - "start_column": 5, - "last_line": 115, - "last_column": 9, - "length": 5, - "line": 115, - "column": 5 - } + "line": 115 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 116, - "start_column": 5, - "last_line": 116, - "last_column": 22, - "length": 18, - "line": 116, - "column": 5 - } + "line": 116 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 116, - "start_column": 5, - "last_line": 116, - "last_column": 12, - "length": 8, - "line": 116, - "column": 5 - } + "line": 116 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 117, - "start_column": 5, - "last_line": 117, - "last_column": 22, - "length": 18, - "line": 117, - "column": 5 - } + "line": 117 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 117, - "start_column": 5, - "last_line": 117, - "last_column": 12, - "length": 8, - "line": 117, - "column": 5 - } + "line": 117 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 118, - "start_column": 5, - "last_line": 118, - "last_column": 20, - "length": 16, - "line": 118, - "column": 5 - } + "line": 118 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 118, - "start_column": 5, - "last_line": 118, - "last_column": 12, - "length": 8, - "line": 118, - "column": 5 - } + "line": 118 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 119, - "start_column": 5, - "last_line": 119, - "last_column": 22, - "length": 18, - "line": 119, - "column": 5 - } + "line": 119 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 119, - "start_column": 5, - "last_line": 119, - "last_column": 10, - "length": 6, - "line": 119, - "column": 5 - } + "line": 119 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 120, - "start_column": 5, - "last_line": 120, - "last_column": 17, - "length": 13, - "line": 120, - "column": 5 - } + "line": 120 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 120, - "start_column": 5, - "last_line": 120, - "last_column": 9, - "length": 5, - "line": 120, - "column": 5 - } + "line": 120 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 121, - "start_column": 5, - "last_line": 121, - "last_column": 20, - "length": 16, - "line": 121, - "column": 5 - } + "line": 121 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 121, - "start_column": 5, - "last_line": 121, - "last_column": 10, - "length": 6, - "line": 121, - "column": 5 - } + "line": 121 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 122, - "start_column": 5, - "last_line": 122, - "last_column": 21, - "length": 17, - "line": 122, - "column": 5 - } + "line": 122 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 122, - "start_column": 5, - "last_line": 122, - "last_column": 8, - "length": 4, - "line": 122, - "column": 5 - } + "line": 122 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 123, - "start_column": 5, - "last_line": 123, - "last_column": 18, - "length": 14, - "line": 123, - "column": 5 - } + "line": 123 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 123, - "start_column": 5, - "last_line": 123, - "last_column": 9, - "length": 5, - "line": 123, - "column": 5 - } + "line": 123 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 124, - "start_column": 5, - "last_line": 124, - "last_column": 17, - "length": 13, - "line": 124, - "column": 5 - } + "line": 124 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 124, - "start_column": 5, - "last_line": 124, - "last_column": 11, - "length": 7, - "line": 124, - "column": 5 - } + "line": 124 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 125, - "start_column": 5, - "last_line": 125, - "last_column": 16, - "length": 12, - "line": 125, - "column": 5 - } + "line": 125 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 125, - "start_column": 5, - "last_line": 125, - "last_column": 8, - "length": 4, - "line": 125, - "column": 5 - } + "line": 125 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 126, - "start_column": 5, - "last_line": 126, - "last_column": 30, - "length": 26, - "line": 126, - "column": 5 - } + "line": 126 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 126, - "start_column": 5, - "last_line": 126, - "last_column": 16, - "length": 12, - "line": 126, - "column": 5 - } + "line": 126 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 127, - "start_column": 5, - "last_line": 127, - "last_column": 29, - "length": 25, - "line": 127, - "column": 5 - } + "line": 127 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 127, - "start_column": 5, - "last_line": 127, - "last_column": 16, - "length": 12, - "line": 127, - "column": 5 - } + "line": 127 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 128, - "start_column": 5, - "last_line": 128, - "last_column": 29, - "length": 25, - "line": 128, - "column": 5 - } + "line": 128 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 128, - "start_column": 5, - "last_line": 128, - "last_column": 15, - "length": 11, - "line": 128, - "column": 5 - } + "line": 128 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 129, - "start_column": 5, - "last_line": 129, - "last_column": 26, - "length": 22, - "line": 129, - "column": 5 - } + "line": 129 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 129, - "start_column": 5, - "last_line": 129, - "last_column": 16, - "length": 12, - "line": 129, - "column": 5 - } + "line": 129 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 130, - "start_column": 5, - "last_line": 130, - "last_column": 20, - "length": 16, - "line": 130, - "column": 5 - } + "line": 130 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 130, - "start_column": 5, - "last_line": 130, - "last_column": 12, - "length": 8, - "line": 130, - "column": 5 - } + "line": 130 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 131, - "start_column": 5, - "last_line": 131, - "last_column": 17, - "length": 13, - "line": 131, - "column": 5 - } + "line": 131 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 131, - "start_column": 5, - "last_line": 131, - "last_column": 10, - "length": 6, - "line": 131, - "column": 5 - } + "line": 131 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 132, - "start_column": 5, - "last_line": 132, - "last_column": 21, - "length": 17, - "line": 132, - "column": 5 - } + "line": 132 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 132, - "start_column": 5, - "last_line": 132, - "last_column": 9, - "length": 5, - "line": 132, - "column": 5 - } + "line": 132 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 133, - "start_column": 5, - "last_line": 133, - "last_column": 23, - "length": 19, - "line": 133, - "column": 5 - } + "line": 133 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 133, - "start_column": 5, - "last_line": 133, - "last_column": 14, - "length": 10, - "line": 133, - "column": 5 - } + "line": 133 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 134, - "start_column": 5, - "last_line": 134, - "last_column": 21, - "length": 17, - "line": 134, - "column": 5 - } + "line": 134 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 134, - "start_column": 5, - "last_line": 134, - "last_column": 11, - "length": 7, - "line": 134, - "column": 5 - } + "line": 134 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 135, - "start_column": 5, - "last_line": 135, - "last_column": 25, - "length": 21, - "line": 135, - "column": 5 - } + "line": 135 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 135, - "start_column": 5, - "last_line": 135, - "last_column": 12, - "length": 8, - "line": 135, - "column": 5 - } + "line": 135 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 136, - "start_column": 5, - "last_line": 136, - "last_column": 21, - "length": 17, - "line": 136, - "column": 5 - } + "line": 136 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 136, - "start_column": 5, - "last_line": 136, - "last_column": 15, - "length": 11, - "line": 136, - "column": 5 - } + "line": 136 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 137, - "start_column": 5, - "last_line": 137, - "last_column": 18, - "length": 14, - "line": 137, - "column": 5 - } + "line": 137 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 137, - "start_column": 5, - "last_line": 137, - "last_column": 10, - "length": 6, - "line": 137, - "column": 5 - } + "line": 137 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 138, - "start_column": 5, - "last_line": 138, - "last_column": 21, - "length": 17, - "line": 138, - "column": 5 - } + "line": 138 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 138, - "start_column": 5, - "last_line": 138, - "last_column": 10, - "length": 6, - "line": 138, - "column": 5 - } + "line": 138 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 139, - "start_column": 5, - "last_line": 139, - "last_column": 19, - "length": 15, - "line": 139, - "column": 5 - } + "line": 139 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 139, - "start_column": 5, - "last_line": 139, - "last_column": 13, - "length": 9, - "line": 139, - "column": 5 - } + "line": 139 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 140, - "start_column": 5, - "last_line": 140, - "last_column": 17, - "length": 13, - "line": 140, - "column": 5 - } + "line": 140 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 140, - "start_column": 5, - "last_line": 140, - "last_column": 8, - "length": 4, - "line": 140, - "column": 5 - } + "line": 140 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 141, - "start_column": 5, - "last_line": 141, - "last_column": 25, - "length": 21, - "line": 141, - "column": 5 - } + "line": 141 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 141, - "start_column": 5, - "last_line": 141, - "last_column": 14, - "length": 10, - "line": 141, - "column": 5 - } + "line": 141 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 142, - "start_column": 5, - "last_line": 142, - "last_column": 21, - "length": 17, - "line": 142, - "column": 5 - } + "line": 142 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 142, - "start_column": 5, - "last_line": 142, - "last_column": 13, - "length": 9, - "line": 142, - "column": 5 - } + "line": 142 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 143, - "start_column": 5, - "last_line": 143, - "last_column": 21, - "length": 17, - "line": 143, - "column": 5 - } + "line": 143 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 143, - "start_column": 5, - "last_line": 143, - "last_column": 10, - "length": 6, - "line": 143, - "column": 5 - } + "line": 143 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 144, - "start_column": 5, - "last_line": 144, - "last_column": 22, - "length": 18, - "line": 144, - "column": 5 - } + "line": 144 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 144, - "start_column": 5, - "last_line": 144, - "last_column": 13, - "length": 9, - "line": 144, - "column": 5 - } + "line": 144 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 145, - "start_column": 5, - "last_line": 145, - "last_column": 17, - "length": 13, - "line": 145, - "column": 5 - } + "line": 145 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 145, - "start_column": 5, - "last_line": 145, - "last_column": 11, - "length": 7, - "line": 145, - "column": 5 - } + "line": 145 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 146, - "start_column": 5, - "last_line": 146, - "last_column": 22, - "length": 18, - "line": 146, - "column": 5 - } + "line": 146 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 146, - "start_column": 5, - "last_line": 146, - "last_column": 14, - "length": 10, - "line": 146, - "column": 5 - } + "line": 146 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 147, - "start_column": 5, - "last_line": 147, - "last_column": 24, - "length": 20, - "line": 147, - "column": 5 - } + "line": 147 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 147, - "start_column": 5, - "last_line": 147, - "last_column": 10, - "length": 6, - "line": 147, - "column": 5 - } + "line": 147 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 148, - "start_column": 5, - "last_line": 148, - "last_column": 24, - "length": 20, - "line": 148, - "column": 5 - } + "line": 148 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 148, - "start_column": 5, - "last_line": 148, - "last_column": 16, - "length": 12, - "line": 148, - "column": 5 - } + "line": 148 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 149, - "start_column": 5, - "last_line": 149, - "last_column": 22, - "length": 18, - "line": 149, - "column": 5 - } + "line": 149 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 149, - "start_column": 5, - "last_line": 149, - "last_column": 10, - "length": 6, - "line": 149, - "column": 5 - } + "line": 149 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 150, - "start_column": 5, - "last_line": 150, - "last_column": 26, - "length": 22, - "line": 150, - "column": 5 - } + "line": 150 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 150, - "start_column": 5, - "last_line": 150, - "last_column": 14, - "length": 10, - "line": 150, - "column": 5 - } + "line": 150 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 151, - "start_column": 5, - "last_line": 151, - "last_column": 21, - "length": 17, - "line": 151, - "column": 5 - } + "line": 151 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 151, - "start_column": 5, - "last_line": 151, - "last_column": 14, - "length": 10, - "line": 151, - "column": 5 - } + "line": 151 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 152, - "start_column": 5, - "last_line": 152, - "last_column": 15, - "length": 11, - "line": 152, - "column": 5 - } + "line": 152 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 152, - "start_column": 5, - "last_line": 152, - "last_column": 9, - "length": 5, - "line": 152, - "column": 5 - } + "line": 152 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 153, - "start_column": 5, - "last_line": 153, - "last_column": 14, - "length": 10, - "line": 153, - "column": 5 - } + "line": 153 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 153, - "start_column": 5, - "last_line": 153, - "last_column": 8, - "length": 4, - "line": 153, - "column": 5 - } + "line": 153 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 154, - "start_column": 5, - "last_line": 154, - "last_column": 18, - "length": 14, - "line": 154, - "column": 5 - } + "line": 154 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 154, - "start_column": 5, - "last_line": 154, - "last_column": 12, - "length": 8, - "line": 154, - "column": 5 - } + "line": 154 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 155, - "start_column": 5, - "last_line": 155, - "last_column": 16, - "length": 12, - "line": 155, - "column": 5 - } + "line": 155 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 155, - "start_column": 5, - "last_line": 155, - "last_column": 8, - "length": 4, - "line": 155, - "column": 5 - } + "line": 155 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 156, - "start_column": 5, - "last_line": 156, - "last_column": 20, - "length": 16, - "line": 156, - "column": 5 - } + "line": 156 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 156, - "start_column": 5, - "last_line": 156, - "last_column": 10, - "length": 6, - "line": 156, - "column": 5 - } + "line": 156 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 157, - "start_column": 5, - "last_line": 157, - "last_column": 21, - "length": 17, - "line": 157, - "column": 5 - } + "line": 157 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 157, - "start_column": 5, - "last_line": 157, - "last_column": 12, - "length": 8, - "line": 157, - "column": 5 - } + "line": 157 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 158, - "start_column": 5, - "last_line": 158, - "last_column": 18, - "length": 14, - "line": 158, - "column": 5 - } + "line": 158 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 158, - "start_column": 5, - "last_line": 158, - "last_column": 11, - "length": 7, - "line": 158, - "column": 5 - } + "line": 158 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 159, - "start_column": 5, - "last_line": 159, - "last_column": 19, - "length": 15, - "line": 159, - "column": 5 - } + "line": 159 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 159, - "start_column": 5, - "last_line": 159, - "last_column": 9, - "length": 5, - "line": 159, - "column": 5 - } + "line": 159 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 160, - "start_column": 5, - "last_line": 160, - "last_column": 23, - "length": 19, - "line": 160, - "column": 5 - } + "line": 160 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 160, - "start_column": 5, - "last_line": 160, - "last_column": 14, - "length": 10, - "line": 160, - "column": 5 - } + "line": 160 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 161, - "start_column": 5, - "last_line": 161, - "last_column": 16, - "length": 12, - "line": 161, - "column": 5 - } + "line": 161 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 161, - "start_column": 5, - "last_line": 161, - "last_column": 8, - "length": 4, - "line": 161, - "column": 5 - } + "line": 161 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 162, - "start_column": 5, - "last_line": 162, - "last_column": 23, - "length": 19, - "line": 162, - "column": 5 - } + "line": 162 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 162, - "start_column": 5, - "last_line": 162, - "last_column": 10, - "length": 6, - "line": 162, - "column": 5 - } + "line": 162 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 163, - "start_column": 5, - "last_line": 163, - "last_column": 33, - "length": 29, - "line": 163, - "column": 5 - } + "line": 163 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 163, - "start_column": 5, - "last_line": 163, - "last_column": 21, - "length": 17, - "line": 163, - "column": 5 - } + "line": 163 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 164, - "start_column": 5, - "last_line": 164, - "last_column": 24, - "length": 20, - "line": 164, - "column": 5 - } + "line": 164 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 164, - "start_column": 5, - "last_line": 164, - "last_column": 14, - "length": 10, - "line": 164, - "column": 5 - } + "line": 164 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 165, - "start_column": 5, - "last_line": 165, - "last_column": 19, - "length": 15, - "line": 165, - "column": 5 - } + "line": 165 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 165, - "start_column": 5, - "last_line": 165, - "last_column": 12, - "length": 8, - "line": 165, - "column": 5 - } + "line": 165 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 166, - "start_column": 5, - "last_line": 166, - "last_column": 16, - "length": 12, - "line": 166, - "column": 5 - } + "line": 166 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 166, - "start_column": 5, - "last_line": 166, - "last_column": 9, - "length": 5, - "line": 166, - "column": 5 - } + "line": 166 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 167, - "start_column": 5, - "last_line": 167, - "last_column": 16, - "length": 12, - "line": 167, - "column": 5 - } + "line": 167 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 167, - "start_column": 5, - "last_line": 167, - "last_column": 9, - "length": 5, - "line": 167, - "column": 5 - } + "line": 167 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 168, - "start_column": 5, - "last_line": 168, - "last_column": 16, - "length": 12, - "line": 168, - "column": 5 - } + "line": 168 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 168, - "start_column": 5, - "last_line": 168, - "last_column": 9, - "length": 5, - "line": 168, - "column": 5 - } + "line": 168 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 169, - "start_column": 5, - "last_line": 169, - "last_column": 24, - "length": 20, - "line": 169, - "column": 5 - } + "line": 169 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 169, - "start_column": 5, - "last_line": 169, - "last_column": 16, - "length": 12, - "line": 169, - "column": 5 - } + "line": 169 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 170, - "start_column": 5, - "last_line": 170, - "last_column": 17, - "length": 13, - "line": 170, - "column": 5 - } + "line": 170 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 170, - "start_column": 5, - "last_line": 170, - "last_column": 10, - "length": 6, - "line": 170, - "column": 5 - } + "line": 170 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 171, - "start_column": 5, - "last_line": 171, - "last_column": 16, - "length": 12, - "line": 171, - "column": 5 - } + "line": 171 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 171, - "start_column": 5, - "last_line": 171, - "last_column": 9, - "length": 5, - "line": 171, - "column": 5 - } + "line": 171 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 172, - "start_column": 5, - "last_line": 172, - "last_column": 16, - "length": 12, - "line": 172, - "column": 5 - } + "line": 172 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 172, - "start_column": 5, - "last_line": 172, - "last_column": 9, - "length": 5, - "line": 172, - "column": 5 - } + "line": 172 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 173, - "start_column": 5, - "last_line": 173, - "last_column": 24, - "length": 20, - "line": 173, - "column": 5 - } + "line": 173 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 173, - "start_column": 5, - "last_line": 173, - "last_column": 7, - "length": 3, - "line": 173, - "column": 5 - } + "line": 173 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 174, - "start_column": 5, - "last_line": 174, - "last_column": 26, - "length": 22, - "line": 174, - "column": 5 - } + "line": 174 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 174, - "start_column": 5, - "last_line": 174, - "last_column": 19, - "length": 15, - "line": 174, - "column": 5 - } + "line": 174 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 175, - "start_column": 5, - "last_line": 175, - "last_column": 23, - "length": 19, - "line": 175, - "column": 5 - } + "line": 175 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 175, - "start_column": 5, - "last_line": 175, - "last_column": 11, - "length": 7, - "line": 175, - "column": 5 - } + "line": 175 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 176, - "start_column": 5, - "last_line": 176, - "last_column": 27, - "length": 23, - "line": 176, - "column": 5 - } + "line": 176 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 176, - "start_column": 5, - "last_line": 176, - "last_column": 14, - "length": 10, - "line": 176, - "column": 5 - } + "line": 176 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 177, - "start_column": 5, - "last_line": 177, - "last_column": 22, - "length": 18, - "line": 177, - "column": 5 - } + "line": 177 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 177, - "start_column": 5, - "last_line": 177, - "last_column": 15, - "length": 11, - "line": 177, - "column": 5 - } + "line": 177 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 178, - "start_column": 5, - "last_line": 178, - "last_column": 22, - "length": 18, - "line": 178, - "column": 5 - } + "line": 178 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 178, - "start_column": 5, - "last_line": 178, - "last_column": 9, - "length": 5, - "line": 178, - "column": 5 - } + "line": 178 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 179, - "start_column": 5, - "last_line": 179, - "last_column": 31, - "length": 27, - "line": 179, - "column": 5 - } + "line": 179 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 179, - "start_column": 5, - "last_line": 179, - "last_column": 15, - "length": 11, - "line": 179, - "column": 5 - } + "line": 179 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 180, - "start_column": 5, - "last_line": 180, - "last_column": 24, - "length": 20, - "line": 180, - "column": 5 - } + "line": 180 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 180, - "start_column": 5, - "last_line": 180, - "last_column": 18, - "length": 14, - "line": 180, - "column": 5 - } + "line": 180 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 181, - "start_column": 5, - "last_line": 181, - "last_column": 15, - "length": 11, - "line": 181, - "column": 5 - } + "line": 181 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 181, - "start_column": 5, - "last_line": 181, - "last_column": 8, - "length": 4, - "line": 181, - "column": 5 - } + "line": 181 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 182, - "start_column": 5, - "last_line": 182, - "last_column": 15, - "length": 11, - "line": 182, - "column": 5 - } + "line": 182 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 182, - "start_column": 5, - "last_line": 182, - "last_column": 9, - "length": 5, - "line": 182, - "column": 5 - } + "line": 182 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 183, - "start_column": 5, - "last_line": 183, - "last_column": 22, - "length": 18, - "line": 183, - "column": 5 - } + "line": 183 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 183, - "start_column": 5, - "last_line": 183, - "last_column": 8, - "length": 4, - "line": 183, - "column": 5 - } + "line": 183 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 184, - "start_column": 5, - "last_line": 184, - "last_column": 23, - "length": 19, - "line": 184, - "column": 5 - } + "line": 184 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 184, - "start_column": 5, - "last_line": 184, - "last_column": 12, - "length": 8, - "line": 184, - "column": 5 - } + "line": 184 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 185, - "start_column": 5, - "last_line": 185, - "last_column": 20, - "length": 16, - "line": 185, - "column": 5 - } + "line": 185 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 185, - "start_column": 5, - "last_line": 185, - "last_column": 13, - "length": 9, - "line": 185, - "column": 5 - } + "line": 185 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 186, - "start_column": 5, - "last_line": 186, - "last_column": 17, - "length": 13, - "line": 186, - "column": 5 - } + "line": 186 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 186, - "start_column": 5, - "last_line": 186, - "last_column": 8, - "length": 4, - "line": 186, - "column": 5 - } + "line": 186 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 187, - "start_column": 5, - "last_line": 187, - "last_column": 23, - "length": 19, - "line": 187, - "column": 5 - } + "line": 187 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 187, - "start_column": 5, - "last_line": 187, - "last_column": 16, - "length": 12, - "line": 187, - "column": 5 - } + "line": 187 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 188, - "start_column": 5, - "last_line": 188, - "last_column": 17, - "length": 13, - "line": 188, - "column": 5 - } + "line": 188 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 188, - "start_column": 5, - "last_line": 188, - "last_column": 9, - "length": 5, - "line": 188, - "column": 5 - } + "line": 188 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 189, - "start_column": 5, - "last_line": 189, - "last_column": 22, - "length": 18, - "line": 189, - "column": 5 - } + "line": 189 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 189, - "start_column": 5, - "last_line": 189, - "last_column": 10, - "length": 6, - "line": 189, - "column": 5 - } + "line": 189 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 190, - "start_column": 5, - "last_line": 190, - "last_column": 22, - "length": 18, - "line": 190, - "column": 5 - } + "line": 190 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 190, - "start_column": 5, - "last_line": 190, - "last_column": 14, - "length": 10, - "line": 190, - "column": 5 - } + "line": 190 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 191, - "start_column": 5, - "last_line": 191, - "last_column": 22, - "length": 18, - "line": 191, - "column": 5 - } + "line": 191 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 191, - "start_column": 5, - "last_line": 191, - "last_column": 15, - "length": 11, - "line": 191, - "column": 5 - } + "line": 191 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 192, - "start_column": 5, - "last_line": 192, - "last_column": 18, - "length": 14, - "line": 192, - "column": 5 - } + "line": 192 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 192, - "start_column": 5, - "last_line": 192, - "last_column": 9, - "length": 5, - "line": 192, - "column": 5 - } + "line": 192 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 193, - "start_column": 5, - "last_line": 193, - "last_column": 26, - "length": 22, - "line": 193, - "column": 5 - } + "line": 193 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 193, - "start_column": 5, - "last_line": 193, - "last_column": 11, - "length": 7, - "line": 193, - "column": 5 - } + "line": 193 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 194, - "start_column": 5, - "last_line": 194, - "last_column": 30, - "length": 26, - "line": 194, - "column": 5 - } + "line": 194 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 194, - "start_column": 5, - "last_line": 194, - "last_column": 17, - "length": 13, - "line": 194, - "column": 5 - } + "line": 194 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 195, - "start_column": 5, - "last_line": 195, - "last_column": 21, - "length": 17, - "line": 195, - "column": 5 - } + "line": 195 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 195, - "start_column": 5, - "last_line": 195, - "last_column": 15, - "length": 11, - "line": 195, - "column": 5 - } + "line": 195 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 196, - "start_column": 5, - "last_line": 196, - "last_column": 18, - "length": 14, - "line": 196, - "column": 5 - } + "line": 196 }, { "severity": "warning", "message": "Duplicated key in hash literal.", "cop_name": "Lint/DuplicatedKey", "corrected": false, - "location": { - "start_line": 196, - "start_column": 5, - "last_line": 196, - "last_column": 8, - "length": 4, - "line": 196, - "column": 5 - } + "line": 196 } ] } diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_with_offenses/results.json b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_with_offenses/results.json index bb7c3aae..476ee69b 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_with_offenses/results.json +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_with_offenses/results.json @@ -15,30 +15,14 @@ "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 3, - "start_column": 5, - "last_line": 3, - "last_column": 20, - "length": 16, - "line": 3, - "column": 5 - } + "line": 3 }, { "severity": "convention", "message": "Align the elements of a hash literal if they span more than one line.", "cop_name": "Layout/AlignHash", "corrected": false, - "location": { - "start_line": 4, - "start_column": 5, - "last_line": 4, - "last_column": 22, - "length": 18, - "line": 4, - "column": 5 - } + "line": 4 } ] }, @@ -56,15 +40,7 @@ "message": "unexpected token kEND\n(Using Ruby 2.3 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", "cop_name": "Lint/Syntax", "corrected": false, - "location": { - "start_line": 3, - "start_column": 1, - "last_line": 3, - "last_column": 3, - "length": 3, - "line": 3, - "column": 1 - } + "line": 3 } ] }, @@ -76,15 +52,7 @@ "message": "Useless assignment to variable - `unused_variable`.", "cop_name": "Lint/UselessAssignment", "corrected": false, - "location": { - "start_line": 3, - "start_column": 5, - "last_line": 3, - "last_column": 19, - "length": 15, - "line": 3, - "column": 5 - } + "line": 3 } ] } diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_without_column_numbers_and_cop_names/results.json b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_without_column_numbers_and_cop_names/results.json index 52f829ee..3783e264 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_without_column_numbers_and_cop_names/results.json +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_results_without_column_numbers_and_cop_names/results.json @@ -13,9 +13,7 @@ { "severity": "warning", "message": "The - symbol should have one space separating it from code", - "location": { - "line": 2 - }, + "line": 2, "linter_name": "SpaceBeforeScript" } ] diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_void_warnings_in_spec_files/results.json b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_void_warnings_in_spec_files/results.json index ac6b5858..b41587b9 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_void_warnings_in_spec_files/results.json +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/with_void_warnings_in_spec_files/results.json @@ -15,15 +15,7 @@ "message": "Operator `==` used in void context.", "cop_name": "Lint/Void", "corrected": false, - "location": { - "start_line": 2, - "start_column": 13, - "last_line": 2, - "last_column": 14, - "length": 2, - "line": 2, - "column": 13 - } + "line": 2 } ] }, @@ -35,15 +27,7 @@ "message": "Operator `==` used in void context.", "cop_name": "Lint/Void", "corrected": false, - "location": { - "start_line": 2, - "start_column": 13, - "last_line": 2, - "last_column": 14, - "length": 2, - "line": 2, - "column": 13 - } + "line": 2 } ] }, @@ -55,15 +39,7 @@ "message": "Operator `==` used in void context.", "cop_name": "Lint/Void", "corrected": false, - "location": { - "start_line": 3, - "start_column": 14, - "last_line": 3, - "last_column": 15, - "length": 2, - "line": 3, - "column": 14 - } + "line": 3 } ] } diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder_spec.rb b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder_spec.rb index 1d0b2a07..e0db3bed 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder_spec.rb +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/message_builder_spec.rb @@ -24,15 +24,15 @@ 4 files checked, 4 offenses detected **spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/coding_convention.rb** -- [ ] :exclamation: - [Line 3](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/coding_convention.rb#L3), Col 5 - [Layout/AlignHash](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Layout/AlignHash) - Align the elements of a hash literal if they span more than one line. -- [ ] :exclamation: - [Line 4](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/coding_convention.rb#L4), Col 5 - [Layout/AlignHash](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Layout/AlignHash) - Align the elements of a hash literal if they span more than one line. +- [ ] :exclamation: - [Line 3](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/coding_convention.rb#L3) - [Layout/AlignHash](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Layout/AlignHash) - Align the elements of a hash literal if they span more than one line. +- [ ] :exclamation: - [Line 4](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/coding_convention.rb#L4) - [Layout/AlignHash](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Layout/AlignHash) - Align the elements of a hash literal if they span more than one line. **spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/ruby_syntax_error.rb** -- [ ] :bomb: :boom: :fire: :fire_engine: - [Line 3](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/ruby_syntax_error.rb#L3), Col 1 - [Lint/Syntax](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Lint/Syntax) - unexpected token kEND +- [ ] :bomb: :boom: :fire: :fire_engine: - [Line 3](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/ruby_syntax_error.rb#L3) - [Lint/Syntax](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Lint/Syntax) - unexpected token kEND (Using Ruby 2.3 parser; configure using `TargetRubyVersion` parameter, under `AllCops`) **spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/ruby_warning.rb** -- [ ] :warning: - [Line 3](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/ruby_warning.rb#L3), Col 5 - [Lint/UselessAssignment](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Lint/UselessAssignment) - Useless assignment to variable - `unused_variable`. +- [ ] :warning: - [Line 3](https://github.com/some_user/some_repo/blob/8942a195a0bfa69ceb82c020c60565408cb46d3e/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/data/#{rubocop_check_directory}/ruby_warning.rb#L3) - [Lint/UselessAssignment](http://rubydoc.info/gems/rubocop/#{rubocop_version}/RuboCop/Cop/Lint/UselessAssignment) - Useless assignment to variable - `unused_variable`. EOMSG end diff --git a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter_spec.rb b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter_spec.rb index a9108496..d4043709 100644 --- a/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter_spec.rb +++ b/spec/workers/commit_monitor_handlers/commit_range/rubocop_checker/rubocop_results_filter_spec.rb @@ -15,7 +15,7 @@ expect(filtered["files"].length).to eq(1) expect(filtered["files"][0]["offenses"].length).to eq(1) - expect(filtered["files"][0]["offenses"][0]["location"]["line"]).to eq(4) + expect(filtered["files"][0]["offenses"][0]["line"]).to eq(4) expect(filtered["summary"]["offense_count"]).to eq(1) end @@ -47,7 +47,7 @@ expect(filtered["files"].length).to eq(1) expect(filtered["files"][0]["offenses"].length).to eq(1) - expect(filtered["files"][0]["offenses"][0]["location"]["line"]).to eq(3) + expect(filtered["files"][0]["offenses"][0]["line"]).to eq(3) expect(filtered["summary"]["offense_count"]).to eq(1) end diff --git a/spec/workers/concerns/code_analysis_mixin_spec.rb b/spec/workers/concerns/code_analysis_mixin_spec.rb index 92ff1def..c8bc0036 100644 --- a/spec/workers/concerns/code_analysis_mixin_spec.rb +++ b/spec/workers/concerns/code_analysis_mixin_spec.rb @@ -24,7 +24,7 @@ let(:item_runner_yaml) { double("runner object", :name => "Pronto::Yaml") } let(:item_msg) { double("msg object", :msg => "message-text", :line => item_line) } - let(:item_line) { double("line object", :position => 1, :length => 2) } + let(:item_line) { double("line object", :position => 1) } before do allow(subject).to receive(:pronto_result).and_return(input) @@ -56,11 +56,7 @@ "message" => item_rubocop.msg, "cop_name" => item_rubocop.runner, "corrected" => false, - "location" => { - "line" => item_msg.line.position, - "column" => 0, - "length" => item_msg.line.length, - } + "line" => item_msg.line.position }, ] } @@ -84,11 +80,7 @@ "message" => item_haml.msg, "cop_name" => item_haml.runner, "corrected" => false, - "location" => { - "line" => item_msg.line.position, - "column" => 0, - "length" => item_msg.line.length, - } + "line" => item_msg.line.position }, ] } @@ -112,11 +104,7 @@ "message" => item_yaml.msg, "cop_name" => item_yaml.runner, "corrected" => false, - "location" => { - "line" => item_msg.line.position, - "column" => 0, - "length" => item_msg.line.length, - } + "line" => item_msg.line.position }, ] }