bonfire-app/.recode.exs

34 lines
1.4 KiB
Elixir
Raw Permalink Normal View History

2022-09-12 04:34:14 +00:00
[
2023-09-24 16:25:41 +00:00
version: "0.6.2",
# Can also be set/reset with `--autocorrect`/`--no-autocorrect`.
2022-09-12 04:34:14 +00:00
autocorrect: true,
# With "--dry" no changes will be written to the files.
2023-09-24 16:25:41 +00:00
# Can also be set/reset with `--dry`/`--no-dry`.
2022-09-12 04:34:14 +00:00
# If dry is true then verbose is also active.
dry: true,
2023-09-24 16:25:41 +00:00
# Can also be set/reset with `--verbose`/`--no-verbose`.
2022-09-12 04:34:14 +00:00
verbose: true,
2023-09-24 16:25:41 +00:00
# Can be overwritten by calling `mix recode "lib/**/*.ex"`.
inputs: ["{flavours,lib,test}/**/*.{ex,exs}", "forks/bonfire*/{config,lib,test}/**/*.{ex,exs}"],
2022-09-12 04:34:14 +00:00
formatter: {Recode.Formatter, []},
tasks: [
# Tasks could be added by a tuple of the tasks module name and an options
2023-09-24 16:25:41 +00:00
# keyword list. A task can be deactivated by `active: false`. The execution of
2022-09-12 04:34:14 +00:00
# a deactivated task can be forced by calling `mix recode --task ModuleName`.
2023-09-24 16:25:41 +00:00
{Recode.Task.AliasExpansion, []},
{Recode.Task.AliasOrder, [active: false]},
{Recode.Task.Dbg, [autocorrect: false]},
{Recode.Task.EnforceLineLength, [active: false]},
{Recode.Task.FilterCount, []},
{Recode.Task.IOInspect, [autocorrect: false]},
{Recode.Task.Nesting, []},
{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]}
2022-09-12 04:34:14 +00:00
]
2023-09-24 16:25:41 +00:00
]