lib/tapioca/helpers/rbi_files_helper.rb in tapioca-0.10.3 vs lib/tapioca/helpers/rbi_files_helper.rb in tapioca-0.10.4
- old
+ new
@@ -159,10 +159,11 @@
next if Spoom::Sorbet::Sigils.file_strictness(file) == "ignore"
RBI::Parser.parse_file(file)
rescue RBI::ParseError => e
say_error("\nWarning: #{e} (#{e.location})", :yellow)
- end
+ nil
+ end.compact
index.visit_all(trees)
end
sig { params(nodes: T::Array[RBI::Node], shim_rbi_dir: String, todo_rbi_file: String).returns(T::Boolean) }