Flog Results
Flog measures code complexity.

Total Flog score for all methods: 53.7
Average Flog score for all methods: 4.1
File | Total score | Methods | Average score | Highest score |
---|---|---|---|---|
/lib/kerryb/kerryb.rb | 54 | 13 | 4 | 9 |
/lib/kerryb/kerryb.rb
Kerryb#guess
Total Score: 8.6
Score | Operator |
---|---|
1.7 | join |
1.5 | gsub |
1.4 | length |
1.3 | guess_by_frequency |
1.3 | guess_by_pattern |
1.2 | assignment |
1.2 | branch |
1.2 | words_of_length |
Kerryb#score
Total Score: 8.1
Score | Operator |
---|---|
1.8 | words_with |
1.6 | occurrences_of |
1.6 | * |
1.4 | + |
1.2 | new |
0.5 | lit_fixnum |
Kerryb#choose_letter
Total Score: 6.3
Score | Operator |
---|---|
1.7 | score |
1.7 | assignment |
1.6 | branch |
1.6 | map |
1.4 | max |
1.2 | letter |
Kerryb#words_with
Total Score: 4.6
Score | Operator |
---|---|
1.5 | include? |
1.5 | assignment |
1.4 | select |
1.4 | branch |
1.2 | size |
Kerryb#none
Total Score: 4.5
Score | Operator |
---|---|
2.2 | alias |
1.1 | branch |
1.1 | private |
1.1 | new |
Kerryb#words_of_length
Total Score: 4.4
Score | Operator |
---|---|
1.5 | length |
1.3 | == |
1.3 | assignment |
1.2 | reject |
1.2 | branch |
Kerryb#<=>
Total Score: 4.3
Score | Operator |
---|---|
3.0 | score |
1.3 | <=> |
Kerryb#guess_by_pattern
Total Score: 4.1
Score | Operator |
---|---|
1.3 | assignment |
1.3 | =~ |
1.2 | choose_letter |
1.2 | branch |
1.2 | reject! |
Kerryb#new_game
Total Score: 2.7
Score | Operator |
---|---|
2.4 | assignment |
1.2 | split |
Kerryb#occurrences_of
Total Score: 2.6
Score | Operator |
---|---|
1.4 | join |
1.2 | count |
Kerryb#incorrect_guess
Total Score: 1.2
Score | Operator |
---|---|
1.2 | delete |
Kerryb#guess_by_frequency
Total Score: 1.2
Score | Operator |
---|---|
1.2 | first |
Kerryb#word_list=
Total Score: 1.2
Score | Operator |
---|---|
1.2 | assignment |
Generated on Tue Sep 29 22:20:53 +0100 2009