Skip to content

Commit

Permalink
update yardoc analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfaller committed Feb 7, 2018
1 parent 852143c commit b96cf61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/analysis/yard_dup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run
insert_to_map(tag_tokens.join(' '), doc_hash, obj)
end
end
write_doc_hash(File.join(out_dir, "duplications.txt"), doc_hash)
write_duplications(File.join(out_dir, "duplications.txt"), doc_hash)
write_near_miss(File.join(out_dir, "near-miss.txt"), doc_hash)
end

Expand All @@ -55,7 +55,7 @@ def similarity(s1, s2)
1 - d_norm
end

def write_doc_hash(file, doc_hash)
def write_duplications(file, doc_hash)
File.open(file, 'w') do |f|
doc_hash.each { |key, value| f.write "#{key} (#{value.size}) #{value}\n" if value.size > 1 }
end
Expand Down

0 comments on commit b96cf61

Please sign in to comment.