Skip to content

Commit f0e87fa

Browse files
committed
Add iface linter
1 parent 7d7aee8 commit f0e87fa

File tree

9 files changed

+577
-49
lines changed

9 files changed

+577
-49
lines changed

.golangci.next.reference.yml

+7-9
Original file line numberDiff line numberDiff line change
@@ -1223,15 +1223,13 @@ linters-settings:
12231223
var-require-grouping: true
12241224

12251225
iface:
1226-
# Identifies interfaces that are not used anywhere in the same package where the interface is defined.
1227-
# Default: false
1228-
unused: true
1229-
# Identifies interfaces in the same package with identical methods or constraints.
1230-
# Default: false
1231-
identical: true
1232-
# Identifies functions that return interfaces, but the actual returned value is always a single concrete implementation.
1233-
# Default: false
1234-
opaque: true
1226+
# By default set to empty. Leave it empty means all analyzers are enabled.
1227+
# Default: []
1228+
enable:
1229+
- unused
1230+
- empty
1231+
- duplicate
1232+
- opaque
12351233

12361234
importas:
12371235
# Do not allow unaliased imports of aliased packages.

0 commit comments

Comments
 (0)