Skip to content

Required by default, granular opt-in/out #4

@abhinav

Description

@abhinav

There are frequent cases where "field is required" is the default, and optional is the exception.
e.g. there are a fair number of instances of // optional [desc] in the Go source itself.

There should be a way to opt into "required by default" at a package level.
This wouldn't be a global default for this because it would have far too many false positives.

With package-level opt-in, we'll inevitably need struct-level opt-out, so this issue is also for granular required/optional opt-in for structs or packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions