File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ It consists of several analyzers:
8
8
1 . ` unused ` : Identifies interfaces that are not used anywhere in the same package where the interface is defined.
9
9
2 . ` identical ` : Identifies interfaces in the same package with identical methods or constraints.
10
10
3 . ` opaque ` : Identifies functions that return interfaces, but the actual returned value is always a single concrete implementation.
11
- 4 . ` unexported ` : Identifies interfaces that are not exported but are used in exported functions or methods.
11
+ 4 . ` unexported ` : Identifies interfaces that are not exported but are used in exported functions or methods as parameters or return values .
12
12
13
13
## Usage
14
14
Original file line number Diff line number Diff line change 1
1
// Package unexported defines an Analyzer that identifies interfaces that are
2
- // not exported but are used in exported functions or methods.
2
+ // not exported but are used in exported functions or methods as parameters or
3
+ // return values.
3
4
package unexported
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func newAnalyzer() *analysis.Analyzer {
20
20
21
21
analyzer := & analysis.Analyzer {
22
22
Name : "unexported" ,
23
- Doc : "Identifies interfaces that are not exported but are used in exported functions or methods" ,
23
+ Doc : "Identifies interfaces that are not exported but are used in exported functions or methods as parameters or return values " ,
24
24
URL : "https://pkg.go.dev/github.com/uudashr/iface/visibility" ,
25
25
Requires : []* analysis.Analyzer {inspect .Analyzer },
26
26
Run : r .run ,
You can’t perform that action at this time.
0 commit comments