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:
881 . ` unused ` : Identifies interfaces that are not used anywhere in the same package where the interface is defined.
992 . ` identical ` : Identifies interfaces in the same package with identical methods or constraints.
10103 . ` 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 .
1212
1313## Usage
1414
Original file line number Diff line number Diff line change 11// 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.
34package unexported
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func newAnalyzer() *analysis.Analyzer {
2020
2121 analyzer := & analysis.Analyzer {
2222 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 " ,
2424 URL : "https://pkg.go.dev/github.com/uudashr/iface/visibility" ,
2525 Requires : []* analysis.Analyzer {inspect .Analyzer },
2626 Run : r .run ,
You can’t perform that action at this time.
0 commit comments