Should anyone want to tackle this for some repo, here's some of the "tools" 
I've been using:

List of Q instance methods:
```
passByCopy
join
tap
thenResolve
thenReject
isPending
isFulfilled
isRejected
spread
dispatch
get
set
del
mapply
post
send
mcall
invoke
fapply
fcall
fbind
keys
any
allResolved
allSettled
fail
progress
fin
done
timeout
delay
nfapply
nfcall
nfbind
denodeify
nbind
nmapply
npost
nsend
nmcall
ninvoke
nodeify
```

bash scripts that read from above list and search usage of these methods (uses 
[ripgrep](https://github.com/BurntSushi/ripgrep)):
```bash
# List all matches
while read -u 10 m; do
    rg "\.${m}\(";
done 10< q-methods.txt

# Print statistics on the usage count of the different methods
while read -u 10 m; do
    printf "$m: ";
    (rg -c "\.${m}\(" || echo 'x:0') | cut -d: -f2 | paste -s -d+ | bc;
done 10< q-methods.txt | grep -v ' 0$'| sort -n -k2
```

Naturally this nowhere near 100% as Regex isn't powerful to parse JS and the 
code probably has a lot of `.join(` that has nothing to do with `Q` :wink: 

[ Full content available at: https://github.com/apache/cordova/issues/7 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to