class RuboCop::ArgumentsEnv
This is a class that reads optional command line arguments to rubocop from environment variable. @api private
Public Class Methods
Source
# File lib/rubocop/arguments_env.rb, line 7 def self.read_as_arguments if (arguments = ENV.fetch('RUBOCOP_OPTS', '')).empty? [] else require 'shellwords' Shellwords.split(arguments) end end