# Analyzing Elixir Source Code - what tools exist for analyzing code metrics, etc

**URL:** <https://forum.elixirforum.com/t/analyzing-elixir-source-code-what-tools-exist-for-analyzing-code-metrics-etc/17344>\
**Category:** Questions\
**Tags:** code-review, code-style\
**Created:** [October 17, 2018, 2:06pm UTC](https://forum.elixirforum.com/t/analyzing-elixir-source-code-what-tools-exist-for-analyzing-code-metrics-etc/17344 "2018-10-17T14:06:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dc0d](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dc0d/32/27791_2.png) [@dc0d](https://forum.elixirforum.com/u/dc0d)\
**Post date:** [October 17, 2018, 2:06pm UTC](https://forum.elixirforum.com/t/analyzing-elixir-source-code-what-tools-exist-for-analyzing-code-metrics-etc/17344/1 "2018-10-17T14:06:01Z")

</div>

What tools do exist for analyzing code metrics? Which/How-many modules depend on this module? Which/How-much code does this piece of code depends on? And that sort of questions.

---

<div class="post-metadata">

**Author:** ![david\_ex](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/david_ex/32/9498_2.png) [@david\_ex](https://forum.elixirforum.com/u/david_ex)\
**Post date:** [October 17, 2018, 2:17pm UTC](https://forum.elixirforum.com/t/analyzing-elixir-source-code-what-tools-exist-for-analyzing-code-metrics-etc/17344/2 "2018-10-17T14:17:12Z")

</div>

[mix xref — Mix v1.20.2](https://hexdocs.pm/mix/Mix.Tasks.Xref.html#content) might be (part of) what you’re looking for, especially with the `graph` option

---

<div class="post-metadata">

**Author:** ![dc0d](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dc0d/32/27791_2.png) [@dc0d](https://forum.elixirforum.com/u/dc0d)\
**Post date:** [October 17, 2018, 5:18pm UTC](https://forum.elixirforum.com/t/analyzing-elixir-source-code-what-tools-exist-for-analyzing-code-metrics-etc/17344/3 "2018-10-17T17:18:23Z")

</div>

Thanks! `mix xref` is great! It should be used/introduced more often!

---

<div class="post-metadata">

**Author:** ![roehst](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/roehst/32/10745_2.png) [@roehst](https://forum.elixirforum.com/u/roehst)\
**Post date:** [October 17, 2018, 6:15pm UTC](https://forum.elixirforum.com/t/analyzing-elixir-source-code-what-tools-exist-for-analyzing-code-metrics-etc/17344/4 "2018-10-17T18:15:49Z")

</div>

There is credo ([GitHub - rrrene/credo: A static code analysis tool for the Elixir language with a focus on code consistency and teaching. · GitHub](https://github.com/rrrene/credo)) which is close to Rubocop I think.

I have been playing a bit with analyzing Elixir code but still just learning to do it.
