aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2016-10-30 21:45:46 -0600
committerkballou <kballou@devnulllabs.io>2016-10-30 21:45:46 -0600
commit34ad7d93000824dd764a7297a91cda831aa9e89a (patch)
tree3b66791929baf6d06f7de66f620403988b878e71 /config
downloadoctochat-34ad7d93000824dd764a7297a91cda831aa9e89a.tar.gz
octochat-34ad7d93000824dd764a7297a91cda831aa9e89a.tar.xz
Octochat: Initial commit
Diffstat (limited to 'config')
-rw-r--r--config/.credo.exs66
-rw-r--r--config/config.exs1
2 files changed, 67 insertions, 0 deletions
diff --git a/config/.credo.exs b/config/.credo.exs
new file mode 100644
index 0000000..a9a53e4
--- /dev/null
+++ b/config/.credo.exs
@@ -0,0 +1,66 @@
+%{
+ configs: [
+ %{
+ name: "default",
+ files: %{
+ included: ["lib/", "src/", "web/", "apps/"],
+ excluded: [~r"/_build/", ~r"/deps/"]
+ },
+ requires: [],
+ check_for_updates: false,
+ checks: [
+ {Credo.Check.Consistency.ExceptionNames},
+ {Credo.Check.Consistency.LineEndings},
+ {Credo.Check.Consistency.SpaceAroundOperators},
+ {Credo.Check.Consistency.SpaceInParentheses},
+ {Credo.Check.Consistency.TabsOrSpaces},
+
+ {Credo.Check.Design.AliasUsage, priority: :low},
+
+ {Credo.Check.Design.DuplicatedCode, excluded_macros: []},
+
+ {Credo.Check.Design.TagTODO, exit_status: 2},
+ {Credo.Check.Design.TagFIXME},
+
+ {Credo.Check.Readability.FunctionNames},
+ {Credo.Check.Readability.LargeNumbers},
+ {Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 80},
+ {Credo.Check.Readability.ModuleAttributeNames},
+ {Credo.Check.Readability.ModuleDoc},
+ {Credo.Check.Readability.ModuleNames},
+ {Credo.Check.Readability.ParenthesesInCondition},
+ {Credo.Check.Readability.PredicateFunctionNames},
+ {Credo.Check.Readability.TrailingBlankLine},
+ {Credo.Check.Readability.TrailingWhiteSpace},
+ {Credo.Check.Readability.VariableNames},
+
+ {Credo.Check.Refactor.ABCSize},
+ {Credo.Check.Refactor.CondStatements},
+ {Credo.Check.Refactor.FunctionArity},
+ {Credo.Check.Refactor.MatchInCondition},
+ {Credo.Check.Refactor.PipeChainStart},
+ {Credo.Check.Refactor.CyclomaticComplexity},
+ {Credo.Check.Refactor.NegatedConditionsInUnless},
+ {Credo.Check.Refactor.NegatedConditionsWithElse},
+ {Credo.Check.Refactor.Nesting},
+ {Credo.Check.Refactor.UnlessWithElse},
+
+ {Credo.Check.Warning.IExPry},
+ {Credo.Check.Warning.IoInspect},
+ {Credo.Check.Warning.NameRedeclarationByAssignment},
+ {Credo.Check.Warning.NameRedeclarationByCase},
+ {Credo.Check.Warning.NameRedeclarationByDef},
+ {Credo.Check.Warning.NameRedeclarationByFn},
+ {Credo.Check.Warning.OperationOnSameValues},
+ {Credo.Check.Warning.BoolOperationOnSameValues},
+ {Credo.Check.Warning.UnusedEnumOperation},
+ {Credo.Check.Warning.UnusedKeywordOperation},
+ {Credo.Check.Warning.UnusedListOperation},
+ {Credo.Check.Warning.UnusedStringOperation},
+ {Credo.Check.Warning.UnusedTupleOperation},
+ {Credo.Check.Warning.OperationWithConstantResult},
+
+ ]
+ }
+ ]
+}
diff --git a/config/config.exs b/config/config.exs
new file mode 100644
index 0000000..d2d855e
--- /dev/null
+++ b/config/config.exs
@@ -0,0 +1 @@
+use Mix.Config