Skip to content

Public API lacks @doc/@spec and has a placeholder @moduledoc #11

Description

@ausimian

Problem

For a package published to Hex with ex_doc configured, the documentation surface is empty:

  • @moduledoc "Documentation for Castle." in lib/castle.ex is the mix new placeholder.
  • None of the public functions (make_releases/0, generate/1, unpack/1, install/1, commit/1, remove/1, releases/0) carry @doc or @spec.

Impact

The generated HexDocs page (README is main, but the module reference is still published) shows undocumented, un-spec'd functions. No Dialyzer coverage of the public contracts.

Suggested fix

  • Replace the placeholder @moduledoc with a real description of the runtime API.
  • Add @doc and @spec to the public functions. Several are intended only as release-command entry points rather than a general API — mark those @doc false (or document the distinction) so the published docs reflect actual intended usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions