Open nimylian opened 6 years ago
After some spelunking, I discovered that the original total_coverage
includes many Objects and Modules in Ruby. These are the first 5 lines, after my repo's code, from my latest doc/•yardstick_report.txt
:
array.c:659: Array.try_convert: The method summary should not end in a period
array.c:659: Array.try_convert: The @return tag should be specified
array.c:721: Array#initialize: The method summary should not end in a period
array.c:721: Array#initialize: The @return tag should be specified
array.c:786: Array.[]: The method summary should not end in a period
array.c:786: Array.[]: The @return tag should be specified
array.c:904: Array#<<: The method summary should not end in a period
array.c:904: Array#<<: The @return tag should be specified
array.c:942: Array#push: The method summary should not end in a period
array.c:942: Array#push: The @return tag should be specified
array.c:984: Array#pop: The method summary should not end in a period
array.c:984: Array#pop: The @return tag should be specified
array.c:1053: Array#shift: The method summary should not end in a period
array.c:1053: Array#shift: The @return tag should be specified
array.c:1160: Array#unshift: The method summary should not end in a period
array.c:1160: Array#unshift: The @return tag should be specified
array.c:1258: Array#[]: The method summary should not end in a period
array.c:1258: Array#[]: The @return tag should be specified
array.c:1258: Array#slice: The method summary should not end in a period
$ yard stats
Files: 259
Modules: 13 ( 11 undocumented)
Classes: 261 ( 254 undocumented)
Constants: 26 ( 20 undocumented)
Attributes: 22 ( 0 undocumented)
Methods: 1104 ( 868 undocumented)
19.14% documented
I have encountered an issue with the
Yardstick::Rake::Verify
. When I run my rake task, the output is as follows:After the first time
#total_coverage
is called, inYardstick::Rake::Verify#verify_measurements
LOC:54, themeasurements.coverage
is a much larger set than in subsequent calls.I've added some debugger to demonstrate:
config/yardstick.yml:
Rakefile