Skip to content

YARD/MeaninglessTag: Allow @param on Data/Struct defintions #36

@lekemula

Description

@lekemula

Hi,

The following Data/Struct annotations, are not meaningless anymore from solargraph's perspective (see castwide/solargraph#970 and castwide/solargraph#939):

# @param required_gems [Array<String>]
# @param helper_modules [Array<String>]
GemHelpers = Struct.new(:required_gems, :helper_modules, keyword_init: true)

Would it make sense to exclude such Struct/Data definitions via const assignments or at least add a configuration option to the YARD/MeaninglessTag cop?

I can draft a PR if you find this acceptable.

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