lib/snuffle/cli.rb in snuffle-0.12.0 vs lib/snuffle/cli.rb in snuffle-0.12.1
- old
+ new
@@ -8,9 +8,10 @@
desc "snuffle check PATH_TO_FILES", "Example: snuffle app/models/"
def check(path="./")
summaries = []
file_list(path).each do |path_to_file|
puts "Checking #{path_to_file}..."
+ Snuffle::Node.delete_all
summary = Snuffle::SourceFile.new(path_to_file: path_to_file).summary
html_report(summary, summary.source)
summaries << summary
end
create_html_index(summaries, path)