-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.refactor.exs
More file actions
36 lines (34 loc) · 1.66 KB
/
Copy path.refactor.exs
File metadata and controls
36 lines (34 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%{
inputs: ["lib/**/*.ex", "test/**/*.exs"],
configured_modules: [],
skipped_modules: [
# Re-renames identifiers without scope-awareness: collapses two distinct
# variables in the same scope (e.g. base_val + head_val) into a single
# shadowed name, silently breaking semantics. Also fights manual rename
# decisions on each rerun (avg_us → microseconds → microseconds collision).
# Track upstream issue before re-enabling.
Number42.Refactors.Ex.ExpandShortFormBindings,
# Loses guard conditions in transit. Example: rewrites
# if next == nil do
# if total > 0 and ratio > 0.6, do: vote, else: nothing
# else
# nothing
# end
# to a cond block whose first arm is `compute_total.() -> vote`
# (i.e. just "any positive total casts a vote") — the original
# guard `ratio > 0.6` and the outer `next == nil` precondition
# are simply dropped. Produced 2 test failures in
# data_signal_test.exs on first try.
Number42.Refactors.Ex.IfElseToCond,
# Sorts def/defp groups alphabetically across the entire module.
# On this codebase that touches 121 files at once, deletes
# `# --- GenServer callbacks ---` / `# --- Private helpers ---`
# section comments, mixes public-API/impl-callbacks/private helpers
# into one alphabetical block, and splits some same-name clauses
# apart (compile warning: "clauses ... should be grouped together").
# Tests still pass but the resulting diff is unreviewable and the
# imposed order disagrees with the project's prior structural
# organisation (public first, then impl callbacks, then private).
Number42.Refactors.Ex.SortFunctions
]
}