duplex
1.0.0
Duplex позволяет искать аналогичные кодовые блоки внутри вашего проекта Elixir.
Удаленно (без клонирования хранилища)
mix escript.install https://raw.githubusercontent.com/zirkonit/duplex/master/duplex
Локально
mix do escript.build, escript.install
cd /path/to/project
~/.mix/escripts/duplex
:duplex в deps в mix.exs def deps do
[ { :duplex , "~> 0.1.1" } ]
end mix deps.get
iex - S mix
Duplex . show_similar Вы можете изменить значения по умолчанию на config.exs , добавив следующие строки со своими собственными значениями
config :duplex , threshold: 7 # filter AST nodes with `node.length + node.depth >= threshold`
# Than lower threshold, than simpler nodes will be included.
# Optimal value is around 7-10. Default is 7.
config :duplex , dirs: [ "lib" , "config" , "web" ] # directories to search for Elixir source files
config :duplex , n_jobs: 4 # number of threads