Skip to content

testing qodana

testing qodana #1

GitHub Actions / Qodana for Go completed Dec 21, 2023 in 0s

1333 new problems found by Qodana for Go

Qodana for Go

1333 new problems were found

Inspection name Severity Problems
Unused parameter 🔶 Warning 570
Imported package name as a name identifier 🔶 Warning 171
Unhandled error 🔶 Warning 139
Unused exported function 🔶 Warning 93
Redundant types in composite literals 🔶 Warning 31
Deprecated element 🔶 Warning 30
Unused constant 🔶 Warning 27
Unused global variable 🔶 Warning 17
Reserved word used as name 🔶 Warning 8
Unexported return type of the exported function 🔶 Warning 5
Unused function 🔶 Warning 5
Missing 'case' statements for 'iota' consts in 'switch' 🔶 Warning 3
Bool condition 🔶 Warning 2
Leading whitespace in directive comment 🔶 Warning 1
Unused type 🔶 Warning 1
Receiver has a generic name ◽️ Notice 98
Mixed value and pointer receivers ◽️ Notice 63
Comment of exported element starts with the incorrect name ◽️ Notice 25
Usage of Snake_Case ◽️ Notice 19
Redundant type conversion ◽️ Notice 7
Error string should not be capitalized or end with punctuation ◽️ Notice 6
Redundant parentheses ◽️ Notice 5
Empty slice declared using a literal ◽️ Notice 4
Name starts with a package name ◽️ Notice 1
Redundant import alias ◽️ Notice 1
Type can be omitted ◽️ 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]

Details

This result was published with Qodana GitHub Action

Annotations

Check warning on line 95 in cmd/thor/utils.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Bool condition

Condition `runtime.GOOS == "darwin"` is always `false`

Check warning on line 97 in cmd/thor/utils.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Bool condition

Condition `runtime.GOOS == "windows"` is always `false`

Check notice on line 18 in vm/logger.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'CaptureStart ...' (with an optional leading article)

Check notice on line 26 in blake2b/blake2b.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'BlockSize ...' (with an optional leading article)

Check notice on line 16 in blake2b/blake2x.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Writer ...' (with an optional leading article)

Check notice on line 235 in genesis/customnet.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'HexOrDecimal256 ...' (with an optional leading article)

Check notice on line 72 in vm/interface.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'CallCode ...' (with an optional leading article)

Check notice on line 70 in vm/memory.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'GetCopy ...' (with an optional leading article)

Check notice on line 168 in vm/bn256/google/bn256.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'RandomG2 ...' (with an optional leading article)

Check notice on line 3 in bft/engine.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Package comment should be of the form 'Package bft ...'

Check notice on line 19 in vm/bn256/google/constants.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'P ...' (with an optional leading article)

Check notice on line 15 in vm/logger.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'CaptureClauseStart ...' (with an optional leading article)

Check notice on line 30 in blake2b/blake2b.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Size384 ...' (with an optional leading article)

Check notice on line 21 in vm/logger.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'CaptureEnter ...' (with an optional leading article)

Check notice on line 20 in blake2b/blake2x.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Reader ...' (with an optional leading article)

Check notice on line 3 in bft/justifier.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Package comment should be of the form 'Package bft ...'

Check notice on line 28 in blake2b/blake2b.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Size ...' (with an optional leading article)

Check notice on line 32 in blake2b/blake2b.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Size256 ...' (with an optional leading article)

Check notice on line 74 in vm/interface.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'DelegateCall ...' (with an optional leading article)

Check notice on line 94 in builtin/gen/bindata.go

See this annotation in the file changed.

@github-actions 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 76 in vm/bn256/cloudflare/gfp2.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Mul ...' (with an optional leading article)

Check notice on line 3 in api/subscriptions/pending_tx.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Package comment should be of the form 'Package subscriptions ...'

Check notice on line 127 in vm/bn256/google/gfp2.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'Mul ...' (with an optional leading article)

Check notice on line 3 in bft/casts.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Package comment should be of the form 'Package bft ...'

Check notice on line 70 in api/utils/http.go

See this annotation in the file changed.

@github-actions github-actions / Qodana for Go

Comment of exported element starts with the incorrect name

Comment should have the following format 'JSONContentType ...' (with an optional leading article)