From d22b72beadfa136710af8694da1e0d24ab8c54d5 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Mon, 24 Aug 2020 19:34:33 +0900 Subject: [PATCH] Use `Cop::Base` API for `Lint/TopLevelReturnWithArgument` Follow #7868, #8377, and #8395 This PR uses `Cop::Base` API for `Lint/TopLevelReturnWithArgument`. --- lib/rubocop/cop/lint/top_level_return_with_argument.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubocop/cop/lint/top_level_return_with_argument.rb b/lib/rubocop/cop/lint/top_level_return_with_argument.rb index 822956689b2..1c710b60f70 100644 --- a/lib/rubocop/cop/lint/top_level_return_with_argument.rb +++ b/lib/rubocop/cop/lint/top_level_return_with_argument.rb @@ -13,7 +13,7 @@ module Lint # return 1 # 1 is always ignored. # # @api private - class TopLevelReturnWithArgument < Cop + class TopLevelReturnWithArgument < Base # This cop works by validating the ancestors of the return node. A # top-level return node's ancestors should not be of block, def, or # defs type.