Bylaw.Credo.Plugin.HEExSources (bylaw_credo v0.1.0)

Copy Markdown View Source

Loads standalone .html.heex templates into Credo source files.

Credo only parses Elixir source files during its normal source-loading step. Enable this plugin when checks need to run against standalone Phoenix HEEx templates.

Credo discovers embedded ~H templates in .ex and .exs files by default. This plugin adds standalone Phoenix .html.heex templates to the source files passed to Credo checks.

plugins: [
  {Bylaw.Credo.Plugin.HEExSources, []}
]