CI: run Credo in strict mode
Exclude test files from AliasUsage check in .credo.exs. Use mix credo --strict in Justfile and .drone.yml.
This commit is contained in:
parent
81ce204502
commit
cfc8900c5c
3 changed files with 10 additions and 4 deletions
|
|
@ -82,8 +82,14 @@
|
|||
# You can customize the priority of any check
|
||||
# Priority values are: `low, normal, high, higher`
|
||||
#
|
||||
# AliasUsage only for lib and support; test files excluded (many nested module refs by design)
|
||||
{Credo.Check.Design.AliasUsage,
|
||||
[priority: :low, if_nested_deeper_than: 2, if_called_more_often_than: 0]},
|
||||
[
|
||||
priority: :low,
|
||||
if_nested_deeper_than: 2,
|
||||
if_called_more_often_than: 0,
|
||||
files: %{excluded: ["test/"]}
|
||||
]},
|
||||
{Credo.Check.Design.TagFIXME, []},
|
||||
# You can also customize the exit_status of each check.
|
||||
# If you don't want TODO comments to cause `mix credo` to fail, just
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue