Do you have special settings for Credo for Ash projects?

I just added Credo to a project that is getting big, the amount of fixes are huge, a good part of it due to automatic code generations. The gepeto suggest:
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "test/", "config/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/priv/repo/migrations/"]
},
plugins: [],
requires: [],
strict: true,
color: true,
checks: [
# == Desativando checagens ==
{Credo.Check.Readability.AliasOrder, false},
{Credo.Check.Warning.UnusedEnumOperation, false},

# == Configurações de checagens específicas ==
{Credo.Check.Design.TagTODO, exit_status: 0},

{Credo.Check.Readability.LargeNumbers, only_greater_than: 12},

{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120},

{Credo.Check.Readability.ModuleDoc,
ignore_names: [~r/\.Resource$/]},
]
}
]
}
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "test/", "config/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/priv/repo/migrations/"]
},
plugins: [],
requires: [],
strict: true,
color: true,
checks: [
# == Desativando checagens ==
{Credo.Check.Readability.AliasOrder, false},
{Credo.Check.Warning.UnusedEnumOperation, false},

# == Configurações de checagens específicas ==
{Credo.Check.Design.TagTODO, exit_status: 0},

{Credo.Check.Readability.LargeNumbers, only_greater_than: 12},

{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120},

{Credo.Check.Readability.ModuleDoc,
ignore_names: [~r/\.Resource$/]},
]
}
]
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?