Credence.Semantic (credence v0.4.4)

Copy Markdown

Semantic phase — fixes compiler warnings.

Uses Code.with_diagnostics/1 to compile the source and capture warnings without permanently loading modules. Delegates to rules implementing Credence.Semantic.Rule behaviour.

Summary

Functions

analyze(source, opts \\ [])

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

fix(source, opts \\ [])

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