123456789_123456789_123456789_123456789_123456789_

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

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