Skip to content

Instantly share code, notes, and snippets.

@andytill
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andytill/c91f8ca109502bf97a5e to your computer and use it in GitHub Desktop.
Save andytill/c91f8ca109502bf97a5e to your computer and use it in GitHub Desktop.
xref riak_object usage
xref:start(lol).
[xref:add_directory(lol, Dir) || Dir <- code:get_path()].
Exports = riak_object:module_info(exports).
Analyze_fn = fun({F,A}) -> {ok, Use} = xref:analyze(lol, {use, {riak_object, F, A}}), Use end.
[{{riak_object,F,A}, Analyze_fn(FA)} || {F,A} = FA <- Exports, F =/= module_info].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment