AshCredo.Check.Refactor.LargeResource (ash_credo v0.5.2)

Copy Markdown View Source

Basics

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

Large resource files are hard to navigate. Consider splitting with Spark.Dsl.Fragment or extracting changes/validations into separate modules.

Check-Specific Parameters

Use the following parameters to configure this check:

:max_lines

Maximum line count before triggering this check.

This parameter defaults to 400.

General Parameters

Like with all checks, general params can be applied.

Parameters can be configured via the .credo.exs config file.