Skip to content

Commit

Permalink
Configure linting for config files
Browse files Browse the repository at this point in the history
  • Loading branch information
mneudert committed May 6, 2019
1 parent 9d0a921 commit 7f9578e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .credo.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%{
configs: [
%{
name: "default",
files: %{
included: ["config/", "lib/", "test/"]
}
}
]
}
2 changes: 1 addition & 1 deletion .formatter.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7f9578e

Please sign in to comment.