From 5c9e56896e1ec7480940e4e97204e13388caa6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20F=C3=B6hring?= Date: Sat, 4 Feb 2023 21:26:46 +0100 Subject: [PATCH] Bump version to 1.7.0-rc.2 --- CHANGELOG.md | 18 +++++++++++++++++- mix.exs | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d47118ecb..bfb501238 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,14 @@ # Changelog -## 1.7.0-rc.1 +## 1.7.0-rc.2 - `Credo.Check.Readability.ModuleDoc` works for Phoenix 1.7+ views - `Credo.Check.Readability.FunctionNames` now ignores custom operators - `Credo.Check.Refactor.Apply` now works in pipes - `Credo.Check.Consistency.ExceptionNames` does no longer yield an issue if there is only one match - `Credo.Check.Readability.ModuleNames` now supports an `:ignore` parameter +- `Credo.Check.Design.AliasUsage` now supports an `:if_referenced` parameter +- `Credo.Check.Readability.FunctionNames` now works for acronyms in predicate functions ### Add SARIF support @@ -65,6 +67,20 @@ This means that you can extend Credo with all while adhering to Credo's own scheme (and of course, you can simply invent a completely different naming scheme for your checks). +### Allow passing of multiple files to Mix task + +It is now possible to pass a list of files to `mix credo`. + +``` +mix credo lib/foo.ex lib/foo/bar.ex lib/foo/baz.ex +``` + +This means that you can now use the output of commands to determine which files to analyse, e.g.: + +``` +mix credo $(git diff --name-only) +``` + ### Ensure stable ordering of analysis results Continuing our quest to remove ambiguity and reduce undocumented behaviour, Credo now orders its results by default. diff --git a/mix.exs b/mix.exs index 0fa56323b..70c137db4 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Credo.Mixfile do use Mix.Project - @version "1.7.0-rc.1" + @version "1.7.0-rc.2" def project do [