Post  |  Commenti

Post Meta

6th
SEP

Conta-codice

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Posted by RedSend | Filed under Varie

SlocCount, questo è il nome del programma che ti conta le righe di codice di un tuo progetto, ovviamente seguendo alcune euristiche, come togliere righe bianche e commenti, questo lo riesce a fare sui linguaggi supportati, che non sono pochi

1. Ada (.ada, .ads, .adb)
2. Assembly (.s, .S, .asm)
3. awk (.awk)
4. Bourne shell and variants (.sh)
5. C (.c)
6. C++ (.C, .cpp, .cxx, .cc)
7. C shell (.csh)
8. COBOL (.cob, .cbl) as of version 2.10
9. C# (.cs) as of version 2.11
10. Expect (.exp)
11. Fortran (.f)
12. Haskell (.hs) as of version 2.11
13. Java (.java)
14. lex/flex (.l)
15. LISP/Scheme (.el, .scm, .lsp, .jl)
16. Makefile (makefile) - not normally shown.
17. Modula-3 (.m3, .i3) as of version 2.07
18. Objective-C (.m)
19. Pascal (.p, .pas)
20. Perl (.pl, .pm, .perl)
21. PHP (.php, .php[3456], .inc) as of version 2.05
22. Python (.py)
23. Ruby (.rb) as of version 2.09
24. sed (.sed)
25. SQL (.sql) - not normally shown.
26. TCL (.tcl, .tk, .itk)
27. Yacc/Bison (.y)

eccoli, appunto…
Oltre a contare le righe di codice, fa anche alcuni approssimazioni di costi, tempo e varie statistiche, una interessante è il denaro da dare agli sviluppatori.
Ho cercato questo programma per contare quante righe era venuto il progetto che ho fatto per la tesi (che pubblicherò appena finita) e la cosa curiosa è che qualcuno, non si sà chi, deve darci $ 311,516 :-) , comunque il programma, che per ora è solo un prototipo, si aggira sulle 10200 righe.
La tesi è sull’analisi e sviluppo di un piccolo ma piccolo sistema di e-voting basato su web-services.

Alcuni link:
http://www.dwheeler.com/sloccount/

Tags:

Leave a Reply

Il contenuto di questo Blog è rilasciato sotto Licenza Creative Commons (Leggi)