176 new problems found by Qodana for Go
Qodana for Go
176 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Unused constant |
🔶 Warning | 21 |
Unused parameter |
🔶 Warning | 16 |
Unhandled error |
🔶 Warning | 12 |
Bool condition |
🔶 Warning | 4 |
Unused exported function |
🔶 Warning | 3 |
Imported package name as a name identifier |
🔶 Warning | 1 |
Single character alternation |
🔶 Warning | 1 |
Comment of exported element starts with the incorrect name |
◽️ Notice | 21 |
Error string should not be capitalized or end with punctuation |
◽️ Notice | 20 |
Malformed build tag |
◽️ Notice | 18 |
Name starts with a package name |
◽️ Notice | 14 |
Mixed value and pointer receivers |
◽️ Notice | 10 |
Redundant type conversion |
◽️ Notice | 10 |
Receiver has a generic name |
◽️ Notice | 8 |
Usage of Snake_Case |
◽️ Notice | 7 |
Redundant parentheses |
◽️ Notice | 5 |
Direct comparison of errors |
◽️ Notice | 2 |
'defer' in the loop |
◽️ Notice | 1 |
Empty slice declared using a literal |
◽️ Notice | 1 |
Struct initialization without field names |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report
Detected 82 dependencies
Third-party software list
This page lists the third-party software dependencies used in project
Contact Qodana team
Contact us at qodana-support@jetbrains.com
- 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 warning on line 111 in user/event/event_nspr.go
github-actions / Qodana for Go
Bool condition
Condition `false && strings.TrimSpace(string(ne.Comm[:13])) != "Socket Thread"` is always `false`
Check warning on line 52 in user/module/probe_openssl_pcap.go
github-actions / Qodana for Go
Bool condition
Expression `skipLoopback` is always `true`
Check warning on line 83 in user/event/event_nspr.go
github-actions / Qodana for Go
Bool condition
Condition `false && strings.Compare(fire_thread, "Socket Thread") != 0` is always `false`
Check warning on line 49 in user/module/probe_gotls_pcap.go
github-actions / Qodana for Go
Bool condition
Expression `skipLoopback` is always `true`
Check notice on line 2 in user/config/config_gnutls_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/event/event_mysqld.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/config/config_postgres.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/config/common_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in cli/cmd/nss.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/module/probe_postgres.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/event/event_postgres.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in cli/cmd/postgres.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in pkg/util/kernel/kernel_version.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/config/config_nspr_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/module/probe_mysqld.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in cli/http/server_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in cli/cmd/gnutls.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in pkg/util/kernel/version.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/config/config_mysqld.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in user/config/config_openssl_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in cli/cmd/mysqld.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 2 in pkg/util/ebpf/bpf_linux.go
github-actions / Qodana for Go
Malformed build tag
//+build comments can be removed
Check notice on line 27 in pkg/event_processor/http_response.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Comment should have the following format 'HTTP_NEW_LINE_LENGTH ...' (with an optional leading article)
Check notice on line 1 in user/config/config_gotls.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Package comment should be of the form 'Package config ...'
Check notice on line 40 in user/config/config_mysqld.go
github-actions / Qodana for Go
Comment of exported element starts with the incorrect name
Comment should have the following format 'MysqldConfig ...' (with an optional leading article)