From 7f9578eddd36612e4bc90a8bd2ddbc0bef613a15 Mon Sep 17 00:00:00 2001 From: Marc Neudert Date: Mon, 6 May 2019 16:39:17 +0200 Subject: [PATCH] Configure linting for config files --- .credo.exs | 10 ++++++++++ .formatter.exs | 2 +- config/config.exs | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .credo.exs diff --git a/.credo.exs b/.credo.exs new file mode 100644 index 00000000..9b37259d --- /dev/null +++ b/.credo.exs @@ -0,0 +1,10 @@ +%{ + configs: [ + %{ + name: "default", + files: %{ + included: ["config/", "lib/", "test/"] + } + } + ] +} diff --git a/.formatter.exs b/.formatter.exs index 3eaa2826..be7c1d91 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -10,7 +10,7 @@ export_locals_without_parens = [ [ inputs: [ "{config,lib,test}/**/*.{ex,exs}", - "{.formatter,mix}.exs" + "{.credo,.formatter,mix}.exs" ], locals_without_parens: export_locals_without_parens, export: [locals_without_parens: export_locals_without_parens] diff --git a/config/config.exs b/config/config.exs index 549b1382..71e09504 100644 --- a/config/config.exs +++ b/config/config.exs @@ -40,6 +40,7 @@ if Mix.env() == :test do auth: [username: "instream_guest", password: "instream_guest"] # port will be set properly during test setup + # credo:disable-for-next-line Credo.Check.Readability.LargeNumbers config :instream, TestHelpers.Connections.InetsConnection, port: 99999 config :instream, TestHelpers.Connections.InvalidConnection,