View Source API Reference Recode v0.6.5
Modules
A linter with autocorrection and a refactoring tool.
This module provides functions to get informations from the AST and to manipulate the AST.
Functions to read and merge the Recode
configuration.
This module provides functions to traverse an AST with a %Context{}
.
The default formatter and the formatter bebaviour.
Defines Recode formatter plugin for mix format
.
An Issue
struct to track findings by the chechers.
A stopwatch to measure times in milliseconds.
The behaviour for a recode
task.
Multi aliases makes module uses harder to search for in large code bases.
Alphabetically sorted lists are easier to read.
Calls to dbg/2
should only appear in debug sessions.
The EnforceLineLength
task writes multiline expressions into one line if
they do not exceed the maximum line length.
Enum.count/2
is more efficient than Enum.filter/2 |> Enum.count/1
.
This task runs the Elixir formatter.
Calls to IO.inspect/2
should only appear in debug sessions.
Code should be not nested to deep in functions and macros.
Add parentheses to one-arity functions.
Pipes (|>
) should only be used when piping data through multiple calls.
Function, macros and callbacks should have typespecs.
Checks if there are FIXME tags in the sources.
Checks if there are TODO tags in the sources.
Tests must be in a file with the extension *_test.exs
.
Prepend unused variables with _
.
Mix Tasks
Runs the linter.
Generates a new config for Recode. Writes the file .recode.exs
in the root directory of the mix
project.
Lists all availbale recode tasks with a short description or prints the documentation for a given recode task.
Updates an existing config for Recode.