JuliaEcosystem / PackageAnalyzer.jl

https://juliaecosystem.github.io/PackageAnalyzer.jl/dev/
MIT License
59 stars 5 forks source link

Function statistics #63

Open jtrakk opened 3 years ago

jtrakk commented 3 years ago

What fraction of parameters have type annotations?

What fraction of parameters are documented?

ericphanson commented 1 year ago

I think to do this one might need to add a pass with JuliaSyntax, to parse the code and count semantically-meaningful things. I think this would be really cool and it would not require actually loading/running any code, keeping it at a static analysis (which I think is the right fit for PackageAnalyzer at this stage). I think I spent an hour or two awhile ago giving this a try but did not get that far as I was mostly gaining familiarity with JuliaSyntax still.