lib/solargraph/diagnostics/rubocop_helpers.rb
# Generate command-line options for the specified filename and code.
#
# @param filename [String]
# @param code [String]
# @return [Array(Array<String>, Array<String>)]
Generate command-line options for the specified filename and code.
Generate command - line options for the specified filename and code .
def generate_options filename, code
        args = ['-f', 'j']
        rubocop_file = find_rubocop_file(filename)
        args.push('-c', fix_drive_letter(rubocop_file)) unless rubocop_file.nil?
        args.push filename
        options, paths = RuboCop::Options.new.parse(args)
        options[:stdin] = code
        [options, paths]
      end
def generate_options filename , code args = [ '-f' , 'j' ] rubocop_file = find_rubocop_file ( filename ) args . push ( '-c' , fix_drive_letter ( rubocop_file ) ) unless rubocop_file . nil? args . push filename options , paths = RuboCop :: Options . new . parse ( args ) options [ :stdin ] = code [ options , paths ] end
Generate command-line options for the specified filename and code.
Generate command - line options for the specified filename and code .
None
Array(Array<String>, Array<String>)
filename
<not_specific>
code
<not_specific>
<not_specific>
None