Skip to content

Commit

Permalink
chore(cleanup): cleanup debug and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoch-cars committed Aug 4, 2022
1 parent b4ec350 commit 9b2f5a1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -28,17 +28,19 @@ Use at your peril, _for now._

## Roadmap TODO

- [] Option to only change the module name throughout the project
- [] find dead functions
- [] find module attrs and also move them?
- [] find types referenced in the moved specs
- [] find private functions references in refactored fn bodies.
- [] git stage all changes?
- [] Add test for one file containing more than one `defmodule`
- [] Add test for nested defmodules.
- [] How does this work with macro code? Does that even make sense as a case to handle?
- [] Update .exs files too?
- [] update test file refs by CLI option
- [] Write tests to ensure we can find modules across umbrella apps.
- [] Add configuration hooks?
- [] find dead functions
- [] find module attrs and also move them?
- [] find types referenced in the moved specs
- [] find private functions references in refactored fn bodies.
- [] ElixirLS integration for VSCode?
- [] Write the module code to rename usages of the refactored function

Expand Down
3 changes: 1 addition & 2 deletions test/ex_factor/cli_test.exs
Expand Up @@ -88,11 +88,10 @@ defmodule ExFactor.CLITest do
]

argv = OptionParser.to_argv(opts)
|> IO.inspect(label: "")

{_cli_output, exit_status} = System.cmd("mix", ["ex_factor" | argv])
assert exit_status == 0
file = File.read!(target_path) |> IO.inspect(label: "")
file = File.read!(target_path)
assert file =~ "\n@spec pub1(term()) :: term()\ndef pub1(arg1) do\n :pub1_ok\nend\nend"
end
end
1 change: 1 addition & 0 deletions test/ex_factor/evaluater_test.exs
Expand Up @@ -3,6 +3,7 @@ defmodule ExFactor.EvaluaterTest do
alias ExFactor.Evaluater

describe "modules_to_refactor/1" do
@tag :skip
test "it should report callers of a module function" do
assert ["test/support/support.ex" | _] =
Evaluater.modules_to_refactor(ExFactor.Parser, :all_functions, 1)
Expand Down

0 comments on commit 9b2f5a1

Please sign in to comment.