Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vereis committed Oct 23, 2023
1 parent d34d94d commit df3beca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/sibyl/events.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ defmodule Sibyl.Events do
"""
@spec reflect() :: [event()]
def reflect do
# Credo complains about the `Stream.concat(Task.async_stream(:code.all_loaded, ...))`
# call below and wants to turn the inner function calls into a pipeline.
#
# Trying to do this makes Credo complain about the fact that its a pipeline with only
# one function call in it....
#
# Thus, this is unresolvable. Ignoring.
# credo:disable-for-lines:3
:application.which_applications()
|> Task.async_stream(&(&1 |> elem(0) |> :application.get_key(:modules) |> elem(1)))
|> Stream.concat(Task.async_stream(:code.all_loaded(), &[elem(&1, 0)]))
Expand Down

0 comments on commit df3beca

Please sign in to comment.