Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gocognit output when a function has generic receiver type
recvString func in gocognit returns BADRECV when the function's receiver is a generic type. Update go version in go.mod to 1.18 because the project won't build for older versions (*ast.IndexListExpr was added in 1.18).
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
module github.com/uudashr/gocognit | ||
|
||
go 1.16 | ||
go 1.18 | ||
|
||
require golang.org/x/tools v0.1.4 | ||
|
||
require ( | ||
golang.org/x/mod v0.4.2 // indirect | ||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters