Class: RuboCop::ArgumentsFile Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/rubocop/arguments_file.rb |
Overview
This is a class that reads optional command line arguments to rubocop from .rubocop file.
Class Method Summary
- .read_as_arguments Internal use only
Class Method Details
.read_as_arguments
[ GitHub ]# File 'lib/rubocop/arguments_file.rb', line 7
def self.read_as_arguments if File.exist?('.rubocop') && !File.directory?('.rubocop') require 'shellwords' File.read('.rubocop').shellsplit else [] end end