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
mix.exsのdepsへの:duplex 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