KogenCredo.Check.Refactor.DomainSize (KogenCredo v0.1.0)
View SourceBasics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of low and works with any version of Elixir.
Explanation
A domain over its ceiling does too much. Re-slice it into smaller domains instead of raising the
limit. Configure each domain's paths and optional max_lines.
Check-Specific Parameters
Use the following parameters to configure this check:
:domains
List of [name:, paths:, max_lines: n]. Empty disables the check.
This parameter defaults to [].
:max_lines
Default maximum lines per domain.
This parameter defaults to 3000.
:count_blank_and_comment_lines
When false only lines with code are counted.
This parameter defaults to true.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.