You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
exclude-type-bool to return an empty value from a function in the format (Type, bool)
exclude-empty-value for any return of an empty value (all fields of the structure are not filled)
The text was updated successfully, but these errors were encountered:
Hi @Raneddo
Sorry for my slow response. I am not sure I can follow your proposal. Can you please give a code example with a description what you expect to see and what you see instead. Thanks.
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:
exclude-type-bool
to return an empty value from a function in the format (Type, bool)exclude-empty-value
for any return of an empty value (all fields of the structure are not filled)The text was updated successfully, but these errors were encountered: