Skip to content

Commit a59d15e

Browse files
make credo happy
1 parent 78fbb37 commit a59d15e

File tree

7 files changed

+23
-5
lines changed

7 files changed

+23
-5
lines changed

lib/radiator/accounts.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ defmodule Radiator.Accounts do
66
import Ecto.Query, warn: false
77
alias Radiator.Repo
88

9-
alias Radiator.Accounts.{User, UserToken, UserNotifier}
9+
alias Radiator.Accounts.User
10+
alias Radiator.Accounts.UserNotifier
11+
alias Radiator.Accounts.UserToken
1012

1113
## Database getters
1214

lib/radiator/accounts/user.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
defmodule Radiator.Accounts.User do
2+
@moduledoc """
3+
TODO
4+
"""
25
use Ecto.Schema
36
import Ecto.Changeset
47

lib/radiator/accounts/user_notifier.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
defmodule Radiator.Accounts.UserNotifier do
2+
@moduledoc """
3+
TODO
4+
"""
25
import Swoosh.Email
36

4-
alias Radiator.Mailer
57
alias Radiator.Accounts.User
8+
alias Radiator.Mailer
69

710
# Delivers the email using the application mailer.
811
defp deliver(recipient, subject, body) do

lib/radiator/accounts/user_token.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
defmodule Radiator.Accounts.UserToken do
2+
@moduledoc """
3+
TODO
4+
"""
25
use Ecto.Schema
36
import Ecto.Query
47
alias Radiator.Accounts.UserToken

lib/radiator_web/components/message_components.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
defmodule RadiatorWeb.MessageComponents do
2+
@moduledoc """
3+
TODO
4+
"""
25
use Phoenix.Component
36
use Gettext, backend: RadiatorWeb.Gettext
47

lib/radiator_web/user_auth.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
defmodule RadiatorWeb.UserAuth do
2+
@moduledoc """
3+
TODO
4+
"""
25
use RadiatorWeb, :verified_routes
36

47
import Plug.Conn

test/support/fixtures/accounts_fixtures.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ defmodule Radiator.AccountsFixtures do
44
entities via the `Radiator.Accounts` context.
55
"""
66
alias Radiator.Accounts
7-
alias Radiator.Accounts.Scope
87
alias Radiator.Accounts.Raindrop
8+
alias Radiator.Accounts.Scope
99
alias Radiator.Accounts.WebService
1010
alias Radiator.Repo
11-
12-
import Ecto.Query
11+
12+
import Ecto.Query
1313

1414
def unique_user_email, do: "user#{System.unique_integer()}@example.com"
1515
def valid_user_password, do: "hello world!"
@@ -64,6 +64,7 @@ defmodule Radiator.AccountsFixtures do
6464
[_, token | _] = String.split(captured_email.text_body, "[TOKEN]")
6565
token
6666
end
67+
6768
def override_token_authenticated_at(token, authenticated_at) when is_binary(token) do
6869
Radiator.Repo.update_all(
6970
from(t in Accounts.UserToken,

0 commit comments

Comments
 (0)