Method: Solargraph::Diagnostics::RubocopHelpers.generate_options
- Defined in:
- lib/solargraph/diagnostics/rubocop_helpers.rb
.generate_options(filename, code) ⇒ Array(Array<String>, Array<String>)
Generate command-line options for the specified filename and code.
35 36 37 38 39 40 41 |
# File 'lib/solargraph/diagnostics/rubocop_helpers.rb', line 35 def filename, code args = ['-f', 'j', '--force-exclusion', filename] = RuboCop::Options.new , paths = .parse(args) [:stdin] = code [, paths] end |