An IndieWeb engine for a self-hostable website. https://koype.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.credo.exs 3.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %{
  2. configs: [
  3. %{
  4. name: "default",
  5. files: %{
  6. included: ["lib/", "src/", "test/", "web/", "apps/"],
  7. excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
  8. },
  9. requires: [],
  10. strict: true,
  11. color: true,
  12. checks: [
  13. {Credo.Check.Consistency.ExceptionNames, []},
  14. {Credo.Check.Consistency.LineEndings, []},
  15. {Credo.Check.Consistency.ParameterPatternMatching, []},
  16. {Credo.Check.Consistency.SpaceAroundOperators, []},
  17. {Credo.Check.Consistency.SpaceInParentheses, []},
  18. {Credo.Check.Consistency.TabsOrSpaces, []},
  19. {Credo.Check.Design.AliasUsage, [priority: :medium]},
  20. {Credo.Check.Design.DuplicatedCode, [excluded_macros: []]},
  21. {Credo.Check.Design.TagTODO, [exit_status: 0]},
  22. {Credo.Check.Design.TagFIXME, [exit_status: 0]},
  23. {Credo.Check.Readability.AliasOrder, []},
  24. {Credo.Check.Readability.FunctionNames, []},
  25. {Credo.Check.Readability.LargeNumbers, []},
  26. {Credo.Check.Readability.MaxLineLength, [priority: :high, max_length: 100]},
  27. {Credo.Check.Readability.ModuleAttributeNames, []},
  28. {Credo.Check.Readability.ModuleDoc, []},
  29. {Credo.Check.Readability.ModuleNames, []},
  30. {Credo.Check.Readability.ParenthesesOnZeroArityDefs, []},
  31. {Credo.Check.Readability.ParenthesesInCondition, []},
  32. {Credo.Check.Readability.PredicateFunctionNames, []},
  33. {Credo.Check.Readability.PreferImplicitTry, []},
  34. {Credo.Check.Readability.RedundantBlankLines, []},
  35. {Credo.Check.Readability.StringSigils, []},
  36. {Credo.Check.Readability.TrailingBlankLine, []},
  37. {Credo.Check.Readability.TrailingWhiteSpace, []},
  38. {Credo.Check.Readability.VariableNames, []},
  39. {Credo.Check.Readability.Semicolons, []},
  40. {Credo.Check.Readability.SpaceAfterCommas, []},
  41. {Credo.Check.Refactor.DoubleBooleanNegation, []},
  42. {Credo.Check.Refactor.CondStatements, []},
  43. {Credo.Check.Refactor.CyclomaticComplexity, []},
  44. {Credo.Check.Refactor.FunctionArity, []},
  45. {Credo.Check.Refactor.LongQuoteBlocks, []},
  46. {Credo.Check.Refactor.MapInto, []},
  47. {Credo.Check.Refactor.MatchInCondition, []},
  48. {Credo.Check.Refactor.NegatedConditionsInUnless, []},
  49. {Credo.Check.Refactor.NegatedConditionsWithElse, []},
  50. {Credo.Check.Refactor.Nesting, []},
  51. {Credo.Check.Refactor.PipeChainStart,
  52. [excluded_argument_types: [:atom, :binary, :fn, :keyword], excluded_functions: []]},
  53. {Credo.Check.Refactor.UnlessWithElse, []},
  54. {Credo.Check.Warning.BoolOperationOnSameValues, []},
  55. {Credo.Check.Warning.ExpensiveEmptyEnumCheck, []},
  56. {Credo.Check.Warning.IExPry, []},
  57. {Credo.Check.Warning.IoInspect, []},
  58. {Credo.Check.Warning.LazyLogging, []},
  59. {Credo.Check.Warning.OperationOnSameValues, []},
  60. {Credo.Check.Warning.OperationWithConstantResult, []},
  61. {Credo.Check.Warning.UnusedEnumOperation, []},
  62. {Credo.Check.Warning.UnusedFileOperation, []},
  63. {Credo.Check.Warning.UnusedKeywordOperation, []},
  64. {Credo.Check.Warning.UnusedListOperation, []},
  65. {Credo.Check.Warning.UnusedPathOperation, []},
  66. {Credo.Check.Warning.UnusedRegexOperation, []},
  67. {Credo.Check.Warning.UnusedStringOperation, []},
  68. {Credo.Check.Warning.UnusedTupleOperation, []},
  69. {Credo.Check.Warning.RaiseInsideRescue, []},
  70. {Credo.Check.Refactor.ABCSize, true},
  71. {Credo.Check.Refactor.AppendSingleItem, true},
  72. {Credo.Check.Refactor.VariableRebinding, true},
  73. {Credo.Check.Warning.MapGetUnsafePass, false},
  74. {Credo.Check.Consistency.MultiAliasImportRequireUse, true},
  75. {Credo.Check.Readability.Specs, false}
  76. ]
  77. }
  78. ]
  79. }