From de2603abec8f6f8287032c6de8fa9a4c3cd60364 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Wed, 25 Aug 2021 10:47:27 -0600 Subject: [PATCH] expand what files script/rlint will look at * *.erb * *.rake * extensionless (i.e. scripts; rubocop itself will ensure they're ruby before actually inspecting them) Change-Id: I86409e7b68b1ea5ff09c080a947dac6572bfae98 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/272222 Tested-by: Service Cloud Jenkins QA-Review: Cody Cutrer Product-Review: Cody Cutrer Reviewed-by: Simon Williams --- script/rlint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/rlint b/script/rlint index 9435b9f7614..9959ba6c504 100755 --- a/script/rlint +++ b/script/rlint @@ -8,7 +8,7 @@ require 'optparse' linter_options = { linter_name: "Rubocop", - file_regex: /\.rb$/, + file_regex: %r{(?:\.e?rb|\.rake|\.gemspec|/[^./]+)$}, format: "rubocop", command: "bin/rubocop", campsite_mode: false,