lud

lud

A tool to check documentation of functions?

Hello,

I am looking for a tool to report all exported functions with missing @doc in a project.

So far I have found:

  • Inch - I have not been able to use it since several Elixir minor versions.
  • Credo - It is useful for many things and missing @spec but I am not sure if there is a way to report missing @doc attributes. Maybe that could be a proposal.
  • Doctor - It does not report what functions are missing, and reports functions even it there is @moduledoc false in the module, which does not work quite well with my workflow.

Does anyone knows another tool that could do what I want?

Bonus point if it reports missing @doc on @callback declarations!.

Otherwise I will see if a custom credo check is possible…

Most Liked

lud

lud

I updated the issue on the credo repo. If a macro-aware way was found for moduledocs it can be done for doc as well I guess.

slouchpie

slouchpie

I am AFK but 99% sure credo has this.

sbuttgereit

sbuttgereit

I’m looking at the docs now. I see it for moduledocs:

https://hexdocs.pm/credo/Credo.Check.Readability.ModuleDoc.html#content

But I don’t see it for other kinds of documentation. I could just be missing it or it could be under a name I’m not expecting.

slouchpie

slouchpie

D4no0

D4no0

I know that a lot of folk build their own custom credo checks, maybe you could do that too.

Here is a official guideline from credo repo on how to build your own custom check: credo/guides/custom_checks/adding_checks.md at master · rrrene/credo · GitHub

Where Next?

Popular in Questions Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New

Other popular topics Top

Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
sergio
I couldn’t find any guides that worked well with Phoenix 1.6.0 and esbuild. I hope this helps people test the waters and eases you into t...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New

We're in Beta

About us Mission Statement