Comments (8)
A how-to wiki page would make a lot of sense to me.
from phan.
I hope we will not need the whole wiki page to scan a single project :)
from phan.
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.
from phan.
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.
from phan.
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.
from phan.
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.
from phan.
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.
from phan.
@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)
from phan.
Related Issues (20)
- Support for GitHub Workflow Commands
- `@param 'AND'|'OR'` interpreted as `'AND'|'OR'|string`, but `'AND'|'OR'` when in `@method` definition.
- PhanUnreferencedUseNormal reported in constructor promotion
- PhanImpossibleCondition: testing for initialized static variable
- __CLASS__ no longer has the MAGIC_CLASS flag in PHP 8.3's native AST
- Symlink loops prevent finding all files, but phan still exits with a successful exit code
- Generic abstract classes don't respect type annotations
- False positive that xml_parser_create() can not take null as parameter.
- Phan reports an error for trait methods that have a return type hint of static and a return value of $this
- if($var) should not modify the type of $var.
- Question: PhanPossiblyUndeclaredVariable HOT 2
- PhanUndeclaredThis when newThis assigned to closure HOT 1
- `static` return type loses information about intersection types
- False positive PhanTypePossiblyInvalidDimOffset after array_key_exists
- Odd `PhanEmptyFQSENInClasslike` error when an intersection type is the object in an array callable
- Incorrect line number for PhanPluginMixedKeyNoKey and nested arrays
- `@return mixed` annotation suppressed errors about nulls being used even with `allow_overriding_vague_return_types` set to true
- Type condition lost when intermediary variable is used (PhanUndeclaredMethod)
- PhanUndeclaredConstant when constant is loaded late
- Variable detected as non-empty-list<…> fails some array shape checks that list<…> passes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phan.