Skip to content

Commit 1383616

Browse files
committed
emit all available actions into applied file, not just the filtered ones
1 parent ae9eda4 commit 1383616

8 files changed

+10
-1
lines changed

tests/build_tests/actions/expected/Actions_AssignToUnderscore_applied.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ switch 1 {
55

66
/* === AVAILABLE ACTIONS:
77
- AssignToUnderscore - Assign to let _ =
8+
- PipeToIgnore - Pipe to ignore()
89
*/

tests/build_tests/actions/expected/Actions_PipeToIgnore_applied.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ switch 1 {
44
}->ignore
55

66
/* === AVAILABLE ACTIONS:
7+
- AssignToUnderscore - Assign to let _ =
78
- PipeToIgnore - Pipe to ignore()
89
*/

tests/build_tests/actions/expected/Actions_PrefixUnusedVarUnderscore_applied.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ let f = () => {
55
}
66

77
/* === AVAILABLE ACTIONS:
8+
- RemoveUnusedVariable - Remove unused variable
89
- PrefixVariableWithUnderscore - Prefix with `_`
910
*/

tests/build_tests/actions/expected/Actions_RemoveRecFlag_applied.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ let fn = () => {
55
}
66

77
/* === AVAILABLE ACTIONS:
8+
- RemoveUnusedVariable - Remove unused variable
9+
- PrefixVariableWithUnderscore - Prefix with `_`
810
- RemoveRecFlag - Remove rec flag
911
- RemoveRecFlag - Remove rec flag
1012
*/

tests/build_tests/actions/expected/Actions_RemoveUnusedModule_applied.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ module M: {} = {}
33

44
/* === AVAILABLE ACTIONS:
55
- RemoveUnusedModule - Remove unused module
6+
- RemoveUnusedVariable - Remove unused variable
7+
- PrefixVariableWithUnderscore - Prefix with `_`
68
*/

tests/build_tests/actions/expected/Actions_RemoveUnusedValue_applied.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ module M: {} = {}
33

44
/* === AVAILABLE ACTIONS:
55
- RemoveUnusedVariable - Remove unused variable
6+
- PrefixVariableWithUnderscore - Prefix with `_`
67
*/

tests/build_tests/actions/expected/Actions_RemoveUnusedVar_applied.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ let f = () => {
55

66
/* === AVAILABLE ACTIONS:
77
- RemoveUnusedVariable - Remove unused variable
8+
- PrefixVariableWithUnderscore - Prefix with `_`
89
*/

tools/src/tools.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ module Actions = struct
17431743
| Ok applied ->
17441744
print_endline applied;
17451745
print_endline "/* === AVAILABLE ACTIONS:";
1746-
possible_actions
1746+
cmt_possible_actions
17471747
|> List.iter (fun (action : Cmt_utils.cmt_action) ->
17481748
Printf.printf "- %s - %s\n"
17491749
(Cmt_utils.action_to_string action.action)

0 commit comments

Comments
 (0)