Libre et RoR

Par echarp
(Emmanuel Charpentier)

médialab Sciences Po

https://medialab.github.io/communautes-libres-graph/

echarp

Développeur, chef de projet, architecte depuis 1998

Java - Ruby on Rails - sites web statiques

Logo april

https://framagit.org/agenda-libre/agenda-libre-ruby

Name             | Lines | LOC | Classes | Methods | M/C | LOC/M
Controllers      |   619 | 458 |      11 |      68 |   6 |     4
Helpers          |   216 | 169 |       0 |      21 |   0 |     6
Models           |   492 | 354 |      12 |      42 |   3 |     6
Mailers          |   249 | 195 |       6 |      23 |   3 |     6
JavaScripts      |   742 | 619 |       0 |      54 |   0 |     9
Libraries        |   116 |  98 |       7 |      11 |   1 |     6
Controller tests |   507 | 388 |       8 |      47 |   5 |     6
Helper tests     |    83 |  64 |       9 |       3 |   0 |    19
Model tests      |   385 | 298 |      11 |      26 |   2 |     9
Mailer tests     |   334 | 245 |       9 |      32 |   3 |     5
Total            |  3743 |2888 |      73 |     327 |   4 |     6

Code to Test Ratio: 1:0.5

https://github.com/linuxfrorg/linuxfr.org/

Name             | Lines |   LOC | Classes | Methods | M/C | LOC/M
Controllers      |  2847 |  2346 |      60 |     350 |   5 |     4
Helpers          |   527 |   434 |       0 |      57 |   0 |     5
Models           |  4232 |  2807 |      49 |     450 |   9 |     4
Mailers          |    74 |    58 |       2 |       9 |   4 |     4
Views            |   224 |   156 |       0 |       0 |   0 |     0
JavaScripts      |  1258 |  1135 |       0 |      35 |   0 |    30
Stylesheets      | 34938 | 31378 |       0 |       0 |   0 |     0
Libraries        |   130 |   105 |       2 |      10 |   5 |     8
Controller tests |  3124 |  2362 |      49 |     312 |   6 |     5
Helper tests     |   179 |   135 |      35 |       9 |   0 |    13
Model tests      |   761 |   358 |      30 |      56 |   1 |     4
Mailer tests     |    59 |    41 |       2 |       7 |   3 |     3
Total            | 48353 | 41315 |     229 |    1295 |   5 |    29

Code to Test Ratio: 1:0.1

Points communs

MPA

AGPL

MySQL

ex PHP

Ruby on Rails, 7… et 5.

Qualité

AdL

Inspecting 138 files
..........................................................................................................................................

138 files inspected, no offenses detected

DaLFP

Inspecting 320 files
C..CCCCCCCCCCCCCCCCCCCCCCCCCCWCCCCCCCCCCCCCCCCCCCCCCC.CCCCCCCCCCCCCWCCCCCWCCCCC.CW.CCWCWWCCCCCWCCCCCCWCCCCCCCCCCCCWCCCCCWCCWCWCWCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC....C.C..WWWW...CC..CCCCC...CC.CCC.CWWCWCC.......................................................................................C.WCCCCCCCCC..CCCCCCCCCCCCCCC.CC.
320 files inspected, 2657 offenses detected, 1815 offenses autocorrectable

Je mets la pression :-)

Conclusion

Il y a du libre dans rails.

Et du rails dans le libre.

http://libre-et-ror.echarp.org