fuseraft / code-reference-finder

A source code analyzer to find targets and their references in very large solutions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code-reference-finder

A source code analyzer to find targets and their references in very large solutions.

You can find the gem here: https://rubygems.org/gems/code_reference_finder

installation

gem install code_reference_finder

example usage

require 'code_reference_finder'

# Search a directory for .java files containing [abc, = abc.] and ignore imports.
ref_finder = CodeReferenceFinder.new
refs = ref_finder.get_refs(
    dir: '/path/to/src/main/', 
    ext: '.java', 
    target: ['abc', '= abc.'],
    ignore: ['import com.', 'import org.']
)

puts ref_finder.get_pretty_json

About

A source code analyzer to find targets and their references in very large solutions.


Languages

Language:Ruby 100.0%