Skip to content

tgvashworth/flight-static-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flight-static-analysis

Static analysis tool for event-driven JavaScript.

Operates on a stream of file paths, outputs a new-line delimited stream of JSON.

Plan

  • Group files by event
  • Map event usage (ie, on this event, what gets triggered?)
  • Graph dependencies and event interaction

Install

$ npm install -g flight-static-analysis

I'd recommend also installing json-stream-inspect and tree-watch globally.

Usage

cd to your project's folder.

tree-watch . "**/*.js" | flight-static-analysis | json-stream-inspect

For TweetDeck, it looks something like this:

tree-watch ./client/web/scripts/swift/app "**/*.js" | flight-static-analysis | json-stream-inspect

Trying it out

If you've cloned this project, try this:

$ cat test/files.txt | flight-static-analysis | json-stream-inspect

License

MIT

About

Static Analysis tool for Twitter's Flight.

Resources

Stars

Watchers

Forks

Packages