From b7deafa08b32dfd2bca8c712e0d8a87f79b46716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Stankovic?= Date: Fri, 12 Jul 2024 10:05:21 +0200 Subject: [PATCH] Update Credo configuration in the README.md --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a51a0f2..936fef8 100644 --- a/README.md +++ b/README.md @@ -40,23 +40,32 @@ There are multiple ways to integrate with Excellent Migrations. Excellent Migrations provide custom, ready-to-use check for [Credo](https://github.com/rrrene/credo). -Add `ExcellentMigrations.CredoCheck.MigrationsSafety` to your `.credo` file: +Add `ExcellentMigrations.CredoCheck.MigrationsSafety` and include your migrations folder in your +`.credo.exs` file: ```elixir %{ configs: [ %{ + files: %{ + included: [ + "priv/repo/migrations", # <-- add this + # … + ] + } # … - checks: [ - # … - {ExcellentMigrations.CredoCheck.MigrationsSafety, []} - ] + checks: %{ + enabled: [ + {ExcellentMigrations.CredoCheck.MigrationsSafety, []}, # <-- and this + # … + ] + } } ] } - ``` + Example credo warnings: ```