Method: RuboCop::ArgumentsFile.read_as_arguments
- Defined in:
- lib/rubocop/arguments_file.rb
.read_as_arguments ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 15 |
# 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 |