feat: added hash to models #101
499 new problems found by Qodana for Go
Qodana for Go
499 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unused exported function |
🔶 Warning | 119 |
Unused constant |
🔶 Warning | 107 |
Unused global variable |
🔶 Warning | 75 |
Unused parameter |
🔶 Warning | 43 |
Unhandled error |
🔶 Warning | 38 |
Deprecated element |
🔶 Warning | 22 |
Unused function |
🔶 Warning | 4 |
Redundant types in composite literals |
🔶 Warning | 3 |
Locks mistakenly passed by value |
🔶 Warning | 3 |
Imported package name as a name identifier |
🔶 Warning | 2 |
Missing 'case' statements for 'iota' consts in 'switch' |
🔶 Warning | 2 |
Direct comparison of errors |
◽️ Notice | 28 |
Redundant import alias |
◽️ Notice | 18 |
Incorrect usage of 'fmt.Printf' and 'fmt.Println' functions |
◽️ Notice | 12 |
Error string should not be capitalized or end with punctuation |
◽️ Notice | 6 |
Comment of exported element starts with the incorrect name |
◽️ Notice | 5 |
Name starts with a package name |
◽️ Notice | 4 |
Usage of Snake_Case |
◽️ Notice | 3 |
Assignment to a receiver |
◽️ Notice | 2 |
Type assertion on errors fails on wrapped errors |
◽️ Notice | 2 |
Malformed build tag |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report
Contact Qodana team
Contact us at [email protected]
- Or via our issue tracker: https://jb.gg/qodana-issue
- Or share your feedback: https://jb.gg/qodana-discussions
Details
This result was published with Qodana GitHub Action
Annotations
Check notice on line 70 in core/entity/result.go
github-actions / Qodana for Go
Assignment to a receiver
Assignment to the method receiver doesn't propagate to other calls
Check notice on line 59 in core/entity/result.go
github-actions / Qodana for Go
Assignment to a receiver
Assignment to the method receiver doesn't propagate to other calls
Check notice on line 2 in core/sys_exec/sys_exec_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 66 in fs/test/bindata.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Comment should have the following format 'ModTime ...' (with an optional leading article)
Check notice on line 5 in core/utils/rpc.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Comment should have the following format 'ObjectToString ...' (with an optional leading article)
Check notice on line 11 in core/utils/rpc.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Comment should have the following format 'GetRpcParam ...' (with an optional leading article)
Check notice on line 8 in core/constants/errors.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Comment should have the following format 'ErrAlreadyExists ...' (with an optional leading article)
Check notice on line 1 in fs/test/bindata.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Package comment should be of the form 'Package test ...'
Check warning on line 179 in fs/test/seaweedfs_test.go
github-actions / Qodana for Go
Deprecated element
`WriteFile` is deprecated
Check warning on line 99 in fs/test/utils.go
github-actions / Qodana for Go
Deprecated element
`WriteFile` is deprecated
Check warning on line 238 in fs/test/bindata.go
github-actions / Qodana for Go
Deprecated element
`WriteFile` is deprecated
Check warning on line 204 in fs/test/seaweedfs_test.go
github-actions / Qodana for Go
Deprecated element
`WriteFile` is deprecated
Check warning on line 236 in fs/test/seaweedfs_test.go
github-actions / Qodana for Go
Deprecated element
`ReadFile` is deprecated
Check warning on line 134 in db/mongo/client.go
github-actions / Qodana for Go
Deprecated element
`NewClient` is deprecated
Check warning on line 241 in core/grpc/client/client.go
github-actions / Qodana for Go
Deprecated element
`WithInsecure` is deprecated
Check warning on line 443 in fs/seaweedfs_manager.go
github-actions / Qodana for Go
Deprecated element
`WriteFile` is deprecated
Check warning on line 175 in core/grpc/client/client_v2.go
github-actions / Qodana for Go
Deprecated element
`DialContext` is deprecated
Check warning on line 30 in core/notification/mail_gmail.go
github-actions / Qodana for Go
Deprecated element
`New` is deprecated
Check warning on line 669 in fs/seaweedfs_manager.go
github-actions / Qodana for Go
Deprecated element
`WriteFile` is deprecated
Check warning on line 105 in fs/test/seaweedfs_test.go
github-actions / Qodana for Go
Deprecated element
`ReadFile` is deprecated
Check warning on line 172 in core/grpc/client/client_v2.go
github-actions / Qodana for Go
Deprecated element
`WithBlock` is deprecated
Check warning on line 245 in core/grpc/client/client.go
github-actions / Qodana for Go
Deprecated element
`DialContext` is deprecated
Check warning on line 139 in db/mongo/client.go
github-actions / Qodana for Go
Deprecated element
`Connect` is deprecated
Check warning on line 120 in fs/test/seaweedfs_test.go
github-actions / Qodana for Go
Deprecated element
`ReadFile` is deprecated
Check warning on line 250 in fs/test/seaweedfs_test.go
github-actions / Qodana for Go
Deprecated element
`ReadFile` is deprecated