Sha256: f06c6bc36cdfdc06bcf3bc5c2d351fd6756155069f37cb74e5851401325dceda
Contents?: true
Size: 704 Bytes
Versions: 7
Compression:
Stored size: 704 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift(File.expand_path("../lib", __dir__)) require "ruby_lsp/internal" if File.exist?(".index.yml") begin config = YAML.parse_file(".index.yml").to_ruby rescue => e abort("Error parsing config: #{e.message}") end RubyIndexer.configuration.apply_config(config) end index = RubyIndexer::Index.new puts "Globbing for indexable files" RubyIndexer.configuration.indexables.each do |indexable| puts "indexing: #{indexable.full_path}" content = File.read(indexable.full_path) result = Prism.parse(content) collector = RubyIndexer::Collector.new(index, result, indexable.full_path) collector.collect(result.value) end
Version data entries
7 entries across 7 versions & 1 rubygems