Skip to content

Commit 1ccd934

Browse files
committed
credo updates
1 parent 322cbe9 commit 1ccd934

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

lib/sentry.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Sentry do
22
use Application
33
import Supervisor.Spec
4-
alias Sentry.{Event, Config}
4+
alias Sentry.{Config, Event}
55
require Logger
66

77
@moduledoc """

lib/sentry/client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule Sentry.Client do
3636
end
3737
"""
3838

39-
alias Sentry.{Event, Util, Config}
39+
alias Sentry.{Config, Event, Util}
4040

4141
require Logger
4242

lib/sentry/event.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ defmodule Sentry.Event do
33
Provides an Event Struct as well as transformation of Logger
44
entries into Sentry Events.
55
6-
76
### Configuration
87
98
* `:in_app_module_whitelist` - Expects a list of modules that is used to distinguish among stacktrace frames that belong to your app and ones that are part of libraries or core Elixir. This is used to better display the significant part of stacktraces. The logic is greedy, so if your app's root module is `MyApp` and your setting is `[MyApp]`, that module as well as any submodules like `MyApp.Submodule` would be considered part of your app. Defaults to `[]`.
@@ -34,7 +33,7 @@ defmodule Sentry.Event do
3433

3534
@type t :: %__MODULE__{}
3635

37-
alias Sentry.{Event, Util, Config}
36+
alias Sentry.{Config, Event, Util}
3837
@source_code_context_enabled Config.enable_source_code_context()
3938
@source_files if(@source_code_context_enabled, do: Sentry.Sources.load_files(), else: nil)
4039

lib/sentry/logger_backend.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ defmodule Sentry.LoggerBackend do
2525
{:ok, _} = Logger.add_backend(Sentry.LoggerBackend)
2626
Logger.configure_backend(Sentry.LoggerBackend, include_logger_metadata: true)
2727
28-
2928
It is important to be aware of whether this will include sensitive information
3029
in Sentry events before enabling it.
3130

lib/sentry/phoenix_endpoint.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ defmodule Sentry.Phoenix.Endpoint do
66
77
For more information, see https://github.com/getsentry/sentry-elixir/issues/229 and https://github.com/phoenixframework/phoenix/issues/2791.
88
9-
109
#### Usage
1110
1211
Add the following to your endpoint.ex, below `use Phoenix.Endpoint, otp_app: :my_app`

lib/sentry/util.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule Sentry.Util do
2626
end
2727

2828
@spec mix_deps() :: list(atom())
29-
def mix_deps() do
29+
def mix_deps do
3030
Mix.Project.deps_paths()
3131
|> Map.keys()
3232
end
@@ -42,7 +42,7 @@ defmodule Sentry.Util do
4242
Per http://www.ietf.org/rfc/rfc4122.txt
4343
"""
4444
@spec uuid4_hex() :: String.t()
45-
def uuid4_hex() do
45+
def uuid4_hex do
4646
<<time_low_mid::48, _version::4, time_high::12, _reserved::2, rest::62>> =
4747
:crypto.strong_rand_bytes(16)
4848

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"certifi": {:hex, :certifi, "2.5.1", "867ce347f7c7d78563450a18a6a28a8090331e77fa02380b4a21962a65d36ee5", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"},
55
"cowboy": {:hex, :cowboy, "2.6.1", "f2e06f757c337b3b311f9437e6e072b678fcd71545a7b2865bdaa154d078593f", [:rebar3], [{:cowlib, "~> 2.7.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "~> 1.7.1", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm"},
66
"cowlib": {:hex, :cowlib, "2.7.0", "3ef16e77562f9855a2605900cedb15c1462d76fb1be6a32fc3ae91973ee543d2", [:rebar3], [], "hexpm"},
7-
"credo": {:hex, :credo, "1.0.0", "aaa40fdd0543a0cf8080e8c5949d8c25f0a24e4fc8c1d83d06c388f5e5e0ea42", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
7+
"credo": {:hex, :credo, "1.1.0", "e0c07b2fd7e2109495f582430a1bc96b2c71b7d94c59dfad120529f65f19872f", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
88
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"},
99
"earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"},
1010
"ex_doc": {:hex, :ex_doc, "0.20.2", "1bd0dfb0304bade58beb77f20f21ee3558cc3c753743ae0ddbb0fd7ba2912331", [:mix], [{:earmark, "~> 1.3", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},

0 commit comments

Comments
 (0)