Update .recode.exs

This commit is contained in:
Mayel de Borniol 2023-09-24 17:25:41 +01:00
parent 8d74f6cb9b
commit 0210eb0638

View file

@ -1,32 +1,34 @@
alias Recode.Task
[ [
version: "0.4.0", version: "0.6.2",
# Can also be set/reset with "--autocorrect"/"--no-autocorrect". # Can also be set/reset with `--autocorrect`/`--no-autocorrect`.
autocorrect: true, autocorrect: true,
# With "--dry" no changes will be written to the files. # With "--dry" no changes will be written to the files.
# Can also be set/reset with "--dry"/"--no-dry". # Can also be set/reset with `--dry`/`--no-dry`.
# If dry is true then verbose is also active. # If dry is true then verbose is also active.
dry: true, dry: true,
# Can also be set/reset with "--verbose"/"--no-verbose". # Can also be set/reset with `--verbose`/`--no-verbose`.
verbose: true, verbose: true,
# Can be overwriten by calling `mix recode "lib/**/*.ex"`. # Can be overwritten by calling `mix recode "lib/**/*.ex"`.
inputs: [ inputs: ["{flavours,lib,test}/**/*.{ex,exs}", "forks/bonfire*/{config,lib,test}/**/*.{ex,exs}"],
"{flavours,lib,test}/**/*.{ex,exs}",
"forks/bonfire*/{config,lib,test}/**/*.{ex,exs}"
],
formatter: {Recode.Formatter, []}, formatter: {Recode.Formatter, []},
tasks: [ tasks: [
# Tasks could be added by a tuple of the tasks module name and an options # Tasks could be added by a tuple of the tasks module name and an options
# keyword list. A task can be deactived by `active: false`. The execution of # keyword list. A task can be deactivated by `active: false`. The execution of
# a deactivated task can be forced by calling `mix recode --task ModuleName`. # a deactivated task can be forced by calling `mix recode --task ModuleName`.
{Task.AliasExpansion, []}, {Recode.Task.AliasExpansion, []},
{Task.AliasOrder, active: false}, {Recode.Task.AliasOrder, [active: false]},
{Task.EnforceLineLength, active: false}, {Recode.Task.Dbg, [autocorrect: false]},
{Task.PipeFunOne, []}, {Recode.Task.EnforceLineLength, [active: false]},
{Task.SinglePipe, active: false}, # Note: does not known how to handle `Arrows` {Recode.Task.FilterCount, []},
{Task.Specs, active: false, exclude: "{test}/**/*.{ex,exs}", config: [only: :visible]}, {Recode.Task.IOInspect, [autocorrect: false]},
{Task.TestFileExt, []}, {Recode.Task.Nesting, []},
{Task.UnusedVariable, active: false} {Recode.Task.PipeFunOne, []},
{Recode.Task.SinglePipe, [active: false]},
{Recode.Task.Specs,
[active: false, exclude: "{test}/**/*.{ex,exs}", config: [only: :visible]]},
{Recode.Task.TagFIXME, [exit_code: 2]},
{Recode.Task.TagTODO, [exit_code: 4]},
{Recode.Task.TestFileExt, []},
{Recode.Task.UnusedVariable, [active: false]}
] ]
] ]