lib/yard/docstring_parser.rb in yard-0.8.7.4 vs lib/yard/docstring_parser.rb in yard-0.8.7.5

- old
+ new

@@ -294,12 +294,9 @@ # Define a callback to check that @param tags are properly named after_parse do |parser| next unless parser.object next unless parser.object.is_a?(CodeObjects::MethodObject) - next if parser.object.parameters.empty? # method has no params or - # YARD couldn't detect any. - # but don't warn user (?) names = parser.object.parameters.map {|l| l.first.gsub(/\W/, '') } seen_names = [] infile_info = "\n in file `#{parser.object.file}' " + "near line #{parser.object.line}" parser.tags.each do |tag|