Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an example of usage on real project #41

Closed
scaytrase opened this issue Dec 11, 2015 · 8 comments
Closed

Provide an example of usage on real project #41

scaytrase opened this issue Dec 11, 2015 · 8 comments
Labels
enhancement This improves the quality of Phan's analysis of a codebase
Milestone

Comments

@scaytrase
Copy link
Contributor

Given a single library, say... Symfony Console component, how phan should be used to perform code analysis correctly?

Analysing a single or a plain list of files is quiet easy to understand but when a huge project with autoloader managed by things like compose - it is hard to manually prepare file list with correct analys order

@morria morria added this to the 1.0 milestone Dec 14, 2015
@morria morria added the enhancement This improves the quality of Phan's analysis of a codebase label Dec 14, 2015
@morria
Copy link
Member

morria commented Dec 14, 2015

A how-to wiki page would make a lot of sense to me.

@scaytrase
Copy link
Contributor Author

I hope we will not need the whole wiki page to scan a single project :)

@morria
Copy link
Member

morria commented Jan 6, 2016

I just added the wiki article https://github.com/etsy/phan/wiki/Tutorial-for-Analyzing-a-Large-Sloppy-Code-Base - I'm hoping it'll mature over time as more folks start doing real-world analyses.

@morria morria closed this as completed Jan 6, 2016
@morria
Copy link
Member

morria commented Jan 6, 2016

Also, despite this being closed, it'd still be great to see an example of an actual project rather than tips for running on any project.

@stanistan
Copy link

Would a good way of doing this be something like, linking to a pull request (or just a patch on a fork), and having that patch have all of the things needed to do to get phan up and running? And then link to these patches from that wiki page as concrete examples of what people are doing and how it works.

@scaytrase
Copy link
Contributor Author

I hope we'll finish in running phan just like phan analyze -r src/ -r other_src/ -e vendor/ -p -o phan.out (and some other options for tune). I've already started some works on it using symfony console and other components to handle file aggregation process not involving bash.

@morria
Copy link
Member

morria commented Jan 7, 2016

I just added the -l CLI option for recursively scanning a directory for PHP files. 5ac1893

Let me know if I can help with the Symfony console stuff.

@scaytrase
Copy link
Contributor Author

@morria I can open a PR to get your thoughts on it. There is many things to do, as currently Cli is statically called among many classes (alongside the Log class)

@scaytrase scaytrase mentioned this issue Jan 7, 2016
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This improves the quality of Phan's analysis of a codebase
Projects
None yet
Development

No branches or pull requests

3 participants