Skip to content

Module doc error when deriving protocols on modules you don't own #58

@tristantreb

Description

@tristantreb

Context: I implemented protocols to encode to JSON as advised here,
"""
If you don't own the struct you want to encode to JSON, you may use Protocol.derive/3 placed outside of any module:

Protocol.derive(Jason.Encoder, NameOfTheStruct, only: [...])
Protocol.derive(Jason.Encoder, NameOfTheStruct)

"""

Issue: mix doctor complains that there's no module doc when I derive a Protocol from a module I don't own.

Is it a bug?
The best workaround I found is to ignore the related modules from .doctor.exs

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