Skip to content

Fixes ExDoc reference warnings - #33

Merged
johnnyt merged 1 commit into
mainfrom
enc-docs-reference-warnings
Aug 28, 2026
Merged

Fixes ExDoc reference warnings#33
johnnyt merged 1 commit into
mainfrom
enc-docs-reference-warnings

Conversation

@johnnyt

@johnnyt johnnyt commented Aug 28, 2026

Copy link
Copy Markdown
Member

Fixes every mix docs reference warning in lib/ ahead of the 0.2.0 docs build.

  • Qualifies the c:init/1, c:encryption_key/2 and c:decryption_keys/2 references in Encryptor.Provider.Conformance as c:Encryptor.Provider.* - ExDoc only resolves a short c: reference inside the module that defines the callback.
  • Rephrases prose references to the hidden internal path modules (Vault.Encrypt, Vault.Decrypt, Vault.Rekey, Vault.Derive, Vault.Keyring) to name the source file instead. The modules stay hidden: unhiding them would widen the documented surface, which is an ADR decision rather than a warnings fix. Every sentence carrying recorded rationale is kept, reworded rather than deleted.
  • Same treatment for the engine's hidden compute_encryption_cache_id/3 reference in Vault.Partition.

With #32 (README ADR links) also applied, mix docs completes with zero warnings - verified locally with both changes combined. Full mix quality green: 419/419 tests, 98.2% coverage.

If the operator would rather unhide some of the Vault.* path modules and give them real moduledocs, that supersedes the rephrasings here and should be decided as its own change.

mix docs warned on every doc reference to a hidden module or an
unqualified callback:

- Qualifies the c:init/1, c:encryption_key/2 and c:decryption_keys/2
  references in Provider.Conformance as c:Encryptor.Provider.* - ExDoc
  resolves a short c: reference only inside the module that defines
  the callback.
- Rephrases prose references to the hidden internal path modules
  (Vault.Encrypt, Vault.Decrypt, Vault.Rekey, Vault.Derive,
  Vault.Keyring) to name the source file instead. The modules stay
  hidden: they are internal pipeline modules, and unhiding them would
  widen the documented surface, which is an ADR decision, not a
  warnings fix. The recorded rationale in each sentence is kept.
- Rephrases the reference to the engine's hidden
  compute_encryption_cache_id/3 the same way.

The remaining docs warnings (README ADR file links) are fixed by
PR #32.
@johnnyt
johnnyt merged commit e3285cd into main Aug 28, 2026
1 check passed
@johnnyt
johnnyt deleted the enc-docs-reference-warnings branch August 28, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant