From: shevegen@... Date: 2018-07-25T18:31:36+00:00 Subject: [ruby-core:88109] [Ruby trunk Feature#14938] Provide API to get same result as ruby -wc Issue #14938 has been updated by shevegen (Robert A. Heiler). This may also be useful for irb/pry add-ons, I think. Perhaps Koichi-san can comment on the issue if he has time. ---------------------------------------- Feature #14938: Provide API to get same result as ruby -wc https://bugs.ruby-lang.org/issues/14938#change-73132 * Author: mtsmfm (Fumiaki Matsushima) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- I'm the author of an implementation of Ruby Language Server. Currently, it uses `RubyVM::InstructionSequence.compile` to get the result of `ruby -wc` and parses message and location by regexp. https://github.com/mtsmfm/language_server-ruby/blob/v0.11.0/lib/language_server/linter/ruby_wc.rb#L30 Do you have any plan to provide API? -- https://bugs.ruby-lang.org/ Unsubscribe: