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

The behaviour for a recode task.

Link to this section Summary

Callbacks

Returns the configuration for the given key.

Applies a task with the given source and opts.

Link to this section Callbacks

@callback config(key :: :check | :correct | :refactor) :: boolean()

Returns the configuration for the given key.

@callback run(source :: Rewrite.Source.t(), opts :: Keyword.t()) :: Rewrite.Source.t()

Applies a task with the given source and opts.