Skip to content

Commit

Permalink
Make code more consistent with more credo
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Nov 19, 2021
1 parent 4014f17 commit fb15b45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .credo.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# config/.credo.exs
# .credo.exs
%{
configs: [
%{
Expand All @@ -7,7 +7,9 @@
{Credo.Check.Refactor.MapInto, false},
{Credo.Check.Warning.LazyLogging, false},
{Credo.Check.Readability.LargeNumbers, only_greater_than: 86400},
{Credo.Check.Readability.ParenthesesOnZeroArityDefs, parens: true}
{Credo.Check.Readability.ParenthesesOnZeroArityDefs, parens: true},
# {Credo.Check.Readability.Specs, []},
{Credo.Check.Readability.StrictModuleLayout, tags: []}
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
inputs: ["{mix,.credo,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]

0 comments on commit fb15b45

Please sign in to comment.