Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eapache/starscope
Smart code search for Ruby, Go, and JavaScript
https://github.com/eapache/starscope
cscope ctags javascript ruby
Last synced: 5 days ago
JSON representation
Smart code search for Ruby, Go, and JavaScript
- Host: GitHub
- URL: https://github.com/eapache/starscope
- Owner: eapache
- License: mit
- Created: 2013-06-06T13:59:00.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-12-22T22:00:30.000Z (11 months ago)
- Last Synced: 2024-10-14T12:48:26.395Z (24 days ago)
- Topics: cscope, ctags, javascript, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/starscope
- Size: 576 KB
- Stars: 266
- Watchers: 9
- Forks: 18
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Starscope
=========[![Gem Version](https://img.shields.io/gem/v/starscope.svg)](https://rubygems.org/gems/starscope)
[![Ruby CI](https://github.com/eapache/starscope/actions/workflows/ruby-ci.yml/badge.svg)](https://github.com/eapache/starscope/actions/workflows/ruby-ci.yml)
[![Code of Conduct](https://img.shields.io/badge/code%20of%20conduct-active-blue.svg)](https://eapache.github.io/conduct.html)Starscope is a code indexer, search and navigation tool for
[Ruby](https://www.ruby-lang.org/), [Golang](https://golang.org/), and
[JavaScript](https://en.wikipedia.org/wiki/JavaScript) with a design intended
to make it easy to add [support for other languages](doc/LANGUAGE_SUPPORT.md).Inspired by the extremely popular [Ctags](https://en.wikipedia.org/wiki/Ctags)
and [Cscope](http://cscope.sourceforge.net/) utilities, Starscope can answer a
lot of questions about your code. It can tell you:
- where methods are defined
- where methods are called
- where variables are assigned
- where symbols are used
- where files and libraries are imported or requiredWhile Ctags already supports many languages, it can only tell you where things
are defined. Cscope can answer a lot more of your questions, but it is limited
to just the C language family. Starscope was written to combine the power of
Cscope with the flexibility of Ctags, bringing full code indexing to as many
developers as possible.Quick Start
-----------Install it as a gem:
```
$ gem install starscope
```Build your database by just running it in the project directory:
```
$ cd ~/my-project
$ starscope
```Ask it things directly:
```
$ starscope -q calls,new # Lists all callers of new
```Export it to various existing formats for automatic integration with your editor:
```
$ starscope -e ctags
$ starscope -e cscope
```More Documentation
------------------* [User Guide](doc/USER_GUIDE.md)
* [Version History](CHANGELOG.md)
* [Language Support](doc/LANGUAGE_SUPPORT.md)
* [Database Format](doc/DB_FORMAT.md)Other Uses
----------- Starscope is a supported backend for
[CodeQuery](https://github.com/ruben2020/codequery).