Skip to content

Allow to exclude the structure object if all fields are not filled in #38

@Raneddo

Description

@Raneddo

Go often uses the return-from-function approach of the form: (Type, bool) instead of (*Type)

Now linter knows how to detect when an empty object is returned along with a non-empty error, but the same doesn't work for returning a bool second parameter return

I propose to add two exception parameters:

  1. exclude-type-bool to return an empty value from a function in the format (Type, bool)
  2. exclude-empty-value for any return of an empty value (all fields of the structure are not filled)

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