From 04e340ab0f4698baa0cedd337401c64b279fdfd0 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Wed, 30 Sep 2020 15:19:04 +0000 Subject: [PATCH] Fix rubocop lint tests Summary: Fix tests to work with rubocop 0.92.0 released on September 25, 2020 Test Plan: Unit tests pass Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D21474 --- src/lint/linter/__tests__/rubocop/convention.lint-test | 4 +++- src/lint/linter/__tests__/rubocop/no_errors.lint-test | 2 ++ src/lint/linter/__tests__/rubocop/warning.lint-test | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lint/linter/__tests__/rubocop/convention.lint-test b/src/lint/linter/__tests__/rubocop/convention.lint-test index b924ae29..776af758 100644 --- a/src/lint/linter/__tests__/rubocop/convention.lint-test +++ b/src/lint/linter/__tests__/rubocop/convention.lint-test @@ -1,4 +1,6 @@ def hello() end ~~~~~~~~~~ -warning:1:10:- +warning:1:1 +warning:1:1 +warning:1:10 diff --git a/src/lint/linter/__tests__/rubocop/no_errors.lint-test b/src/lint/linter/__tests__/rubocop/no_errors.lint-test index 46226a85..b157cfa6 100644 --- a/src/lint/linter/__tests__/rubocop/no_errors.lint-test +++ b/src/lint/linter/__tests__/rubocop/no_errors.lint-test @@ -1,3 +1,5 @@ +# frozen_string_literal: true + def hello puts 'hello world' end diff --git a/src/lint/linter/__tests__/rubocop/warning.lint-test b/src/lint/linter/__tests__/rubocop/warning.lint-test index 8cec4c72..f9d16f70 100644 --- a/src/lint/linter/__tests__/rubocop/warning.lint-test +++ b/src/lint/linter/__tests__/rubocop/warning.lint-test @@ -1,5 +1,7 @@ +# frozen_string_literal: true + def hello(unused) puts 'hi' end ~~~~~~~~~ -warning:1:11 +warning:3:11