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

The default formatter and the formatter bebaviour.

Link to this section Summary

Link to this section Callbacks

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

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

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

Link to this section Functions

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

format(atom, arg1, arg2, opts)

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