Skip to content

Commit dc1bb00

Browse files
committed
Improve report to be most-helpful
1 parent 76d7674 commit dc1bb00

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/rdoc/stats.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,16 @@ def report
150150
when RDoc::NormalModule then 'module'
151151
end
152152

153-
# TODO RDoc::Context#empty?
154-
if cm.in_files.empty? or
153+
if cm.fully_documented? then
154+
next
155+
elsif cm.in_files.empty? or
155156
(cm.constants.empty? and cm.method_list.empty?) then
156-
report << "# #{type} #{cm.full_name} is referenced but not defined."
157+
report << "# #{type} #{cm.full_name} is referenced but empty."
157158
report << '#'
158159
report << '# It probably came from another project. ' \
159-
'I\'m sorry I\'m holding it against you'
160+
'I\'m sorry I\'m holding it against you.'
160161
report << nil
161162

162-
next
163-
elsif cm.fully_documented? then
164163
next
165164
elsif cm.documented? then
166165
report << "#{type} #{cm.full_name} # is documented"

0 commit comments

Comments
 (0)