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

Generate package code statistics on submission #42

Closed
noamross opened this issue Apr 2, 2018 · 5 comments
Closed

Generate package code statistics on submission #42

noamross opened this issue Apr 2, 2018 · 5 comments

Comments

@noamross
Copy link
Contributor

noamross commented Apr 2, 2018

It would be useful to get package code statistics via cloc on submission. A bonus would be if cloc could distinguish between raw comments (often indicators of "ghost code") and roxygen comments (which may indicate well-developed documentation).

@maelle
Copy link
Member

maelle commented Apr 2, 2018

  • Using previous submissions/CRAN pkgs as comparison
  • Also look at frequency of raw comments vs code (would show unreadable bc unexplained code?)
  • Also generate statistics about no of exported classes&functions

@maelle
Copy link
Member

maelle commented Apr 2, 2018

We'd also need to decide what to do with the info. If a pkg is gigantic, suggest splitting +warn potential reviewers?

Oh and looking for code duplication cf ropensci-review-tools/goodpractice#78

@maelle
Copy link
Member

maelle commented Jun 6, 2018

Does launchboat handle this @noamross ?

@noamross
Copy link
Contributor Author

noamross commented Jun 6, 2018

Yes, it has a cloc report, though launchboat needs some work. Also I had discussed another idea for a package with Bob at the unconf, cranstats, that would hold pre-generated cloc and other data for all packages on CRAN, and then when run on a local package would show where it falls in the distribution.

@maelle
Copy link
Member

maelle commented Apr 23, 2021

Handled via pkgreport cc @mpadge

@maelle maelle closed this as completed Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants