View Source Recode.Formatter behaviour (Recode v0.6.5)

The default formatter and the formatter bebaviour.

Summary

Callbacks

@callback format(
  type :: :project | :results | :tasks_ready,
  {Rewrite.t(), config :: keyword()},
  opts :: keyword()
) :: any()
Link to this callback

format(type, {}, {}, opts)

View Source
@callback format(
  type :: :task,
  {Rewrite.t(), config :: keyword()},
  {Rewrite.Source.t(), module(), keyword()},
  opts :: keyword()
) :: any()

Functions

@spec format(
  type :: :project | :results | :tasks_ready,
  {Rewrite.t(), config :: keyword()},
  opts :: keyword()
) :: any()
Link to this function

format(atom, arg1, arg2, opts)

View Source
@spec format(
  type :: :task,
  {Rewrite.t(), config :: keyword()},
  {Rewrite.Source.t(), module(), keyword()},
  opts :: keyword()
) :: any()