Credence.Pattern (credence v0.4.1)

Copy Markdown

Pattern phase — detects and fixes anti-patterns in Elixir code.

Delegates to the 80+ rules implementing Credence.Pattern.Rule behaviour. Rules are discovered automatically and run in priority order (lower first), with module name as tiebreaker for determinism.

Summary

Functions

analyze(code_string, opts \\ [])

@spec analyze(
  String.t(),
  keyword()
) :: [Credence.Issue.t()]

fix(code_string, opts \\ [])

@spec fix(
  String.t(),
  keyword()
) :: String.t()