From a36af3867c6f60d24d0830f872b0ff562b563d96 Mon Sep 17 00:00:00 2001 From: "Johnny (Jonas)" <122370877+inoas-nbw@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:08:34 +0100 Subject: [PATCH] Fix elixir warning and typo in stdout (#64) * fixes * changelog --- CHANGELOG.md | 2 ++ lib/config.ex | 2 +- lib/reporters/full.ex | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a3c965..8f1e04d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/config.ex b/lib/config.ex index 773ddc8..4754c48 100644 --- a/lib/config.ex +++ b/lib/config.ex @@ -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 \ diff --git a/lib/reporters/full.ex b/lib/reporters/full.ex index acf2c4e..98875c0 100644 --- a/lib/reporters/full.ex +++ b/lib/reporters/full.ex @@ -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