Skip to content

Commit

Permalink
docs: generic interfaces support for ireturn linter
Browse files Browse the repository at this point in the history
Updated yaml config to show supported feature of `ireturn` linter
  • Loading branch information
butuzov committed Apr 25, 2023
1 parent 181ba2f commit 980b6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1159,13 +1159,14 @@ linters-settings:
max: 5

ireturn:
# ireturn allows using `allow` and `reject` settings at the same time.
# ireturn does not allow using `allow` and `reject` settings at the same time.
# Both settings are lists of the keywords and regular expressions matched to interface or package names.
# keywords:
# - `empty` for `interface{}`
# - `error` for errors
# - `stdlib` for standard library
# - `anon` for anonymous interfaces
# - `generic` for generic interfaces added in go 1.18

# By default, it allows using errors, empty interfaces, anonymous interfaces,
# and interfaces provided by the standard library.
Expand Down

0 comments on commit 980b6ec

Please sign in to comment.