diff --git a/lib/basket/mailer.ex b/lib/basket/mailer.ex index bf32085..5c0127c 100644 --- a/lib/basket/mailer.ex +++ b/lib/basket/mailer.ex @@ -1,3 +1,4 @@ +@moduledoc false defmodule Basket.Mailer do use Swoosh.Mailer, otp_app: :basket end diff --git a/lib/basket_web/components/core_components.ex b/lib/basket_web/components/core_components.ex index 3bc0bf9..ceac4c4 100644 --- a/lib/basket_web/components/core_components.ex +++ b/lib/basket_web/components/core_components.ex @@ -17,6 +17,7 @@ defmodule BasketWeb.CoreComponents do use Phoenix.Component alias Phoenix.LiveView.JS + alias Phoenix.HTML.Form import BasketWeb.Gettext @doc """ @@ -303,7 +304,7 @@ defmodule BasketWeb.CoreComponents do def input(%{type: "checkbox"} = assigns) do assigns = assign_new(assigns, :checked, fn -> - Phoenix.HTML.Form.normalize_value("checkbox", assigns[:value]) + Form.normalize_value("checkbox", assigns[:value]) end) ~H""" diff --git a/lib/basket_web/components/layouts.ex b/lib/basket_web/components/layouts.ex index 1f3548b..1e6b4d6 100644 --- a/lib/basket_web/components/layouts.ex +++ b/lib/basket_web/components/layouts.ex @@ -1,3 +1,4 @@ +@moduledoc false defmodule BasketWeb.Layouts do use BasketWeb, :html diff --git a/lib/basket_web/live/demo.ex b/lib/basket_web/live/demo.ex index bebb548..776a5b2 100644 --- a/lib/basket_web/live/demo.ex +++ b/lib/basket_web/live/demo.ex @@ -1,3 +1,4 @@ +@moduledoc false defmodule BasketWeb.Demo do use BasketWeb, :surface_live_view diff --git a/lib/basket_web/telemetry.ex b/lib/basket_web/telemetry.ex index 61b1845..0bb4ea9 100644 --- a/lib/basket_web/telemetry.ex +++ b/lib/basket_web/telemetry.ex @@ -1,3 +1,6 @@ +@moduledoc """ +Telemetry configuration +""" defmodule BasketWeb.Telemetry do use Supervisor import Telemetry.Metrics diff --git a/test/support/data_case.ex b/test/support/data_case.ex index a2ba597..096952c 100644 --- a/test/support/data_case.ex +++ b/test/support/data_case.ex @@ -16,6 +16,8 @@ defmodule Basket.DataCase do use ExUnit.CaseTemplate + alias Ecto.Adapters.SQL.Sandbox + using do quote do alias Basket.Repo @@ -36,8 +38,8 @@ defmodule Basket.DataCase do Sets up the sandbox based on the test tags. """ def setup_sandbox(tags) do - pid = Ecto.Adapters.SQL.Sandbox.start_owner!(Basket.Repo, shared: not tags[:async]) - on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end) + pid = Sandbox.start_owner!(Basket.Repo, shared: not tags[:async]) + on_exit(fn -> Sandbox.stop_owner(pid) end) end @doc """