Skip to content

Commit a36af38

Browse files
authored
Fix elixir warning and typo in stdout (#64)
* fixes * changelog
1 parent 4f41822 commit a36af38

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- Fix deprecated Elixir `Logger.warn()` to `Logger.warning()`.
11+
1012
## [0.21.0] - 2022-11-19
1113

1214
### Fixed

lib/config.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ defmodule Doctor.Config do
110110
end
111111

112112
defp warn_deprecation(_bool, val) do
113-
Logger.warn("""
113+
Logger.warning("""
114114
:moduledoc_required in #{Config.config_file()} is a deprecated option. \
115115
Now running with the equivalent :min_overall_moduledoc_coverage #{val} \
116116
but you should replace the deprecated option with the new one to avoid \

lib/reporters/full.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ defmodule Doctor.Reporters.Full do
122122
"""
123123
#{ANSI.red()}Doctor validation has failed because:
124124
* #{Enum.map_join(errs, ".\n * ", &String.capitalize(&1))}.\
125-
#{ANSI.reset()})")
125+
#{ANSI.reset()}
126126
"""
127127
end
128128

0 commit comments

Comments
 (0)