Skip to content

Commit

Permalink
Fix elixir warning and typo in stdout (#64)
Browse files Browse the repository at this point in the history
* fixes

* changelog
  • Loading branch information
inoas-nbw authored Oct 30, 2024
1 parent 4f41822 commit a36af38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Fix deprecated Elixir `Logger.warn()` to `Logger.warning()`.

## [0.21.0] - 2022-11-19

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ defmodule Doctor.Config do
end

defp warn_deprecation(_bool, val) do
Logger.warn("""
Logger.warning("""
:moduledoc_required in #{Config.config_file()} is a deprecated option. \
Now running with the equivalent :min_overall_moduledoc_coverage #{val} \
but you should replace the deprecated option with the new one to avoid \
Expand Down
2 changes: 1 addition & 1 deletion lib/reporters/full.ex
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defmodule Doctor.Reporters.Full do
"""
#{ANSI.red()}Doctor validation has failed because:
* #{Enum.map_join(errs, ".\n * ", &String.capitalize(&1))}.\
#{ANSI.reset()})")
#{ANSI.reset()}
"""
end

Expand Down

0 comments on commit a36af38

Please sign in to comment.