In the past I used sloccount, but it does not even know of Julia, it thinks it is lisp (ok, not totally wrong).
I would like to know:
- number of source code files
- lines of source code
- dito without comments and blank lines
- number modules and functions
- average and max number of lines per function; this might give
a hint where refactoring is needed
- code for tests should be counted separately from code in the src folder
- in addition the lines in the .md files should be counted separately
- files in .CondaPkg should be ignored
Any idea which tool I could use?
2 Likes
scc
with the parameter -x toml
is already pretty nice:
ufechner@tuxedi:~/repos/WindTurbines$ scc -x toml .
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Language Files Lines Blanks Comments Code Complexity
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Julia 32 2190 240 146 1804 120
YAML 5 213 4 1 208 0
BASH 2 44 8 2 34 9
Markdown 2 288 56 0 232 0
Plain Text 1 20 4 0 16 0
gitignore 1 14 0 0 14 0
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Total 43 2769 312 149 2308 129
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Estimated Cost to Develop (organic) $65.011
Estimated Schedule Effort (organic) 4,87 months
Estimated People Required (organic) 1,19
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Processed 101294 bytes, 0.101 megabytes (SI)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Without this parameter it counts the pretty long Manifest.toml file which I did not write myselfโฆ
I wrote this code in two months, so I guess my performance is goodโฆ
2 Likes