Skip to content

feat: skip unknown demo commands messages #1150

feat: skip unknown demo commands messages

feat: skip unknown demo commands messages #1150

GitHub Actions / golangci-lint failed Apr 28, 2024 in 0s

reviewdog [golangci-lint] report

reported by reviewdog 🐶

Findings (5)

pkg/demoinfocs/stringtables.go|380 col 3| if hasValue has complex nested blocks (complexity: 10) (nestif)
pkg/demoinfocs/stringtables.go|415 col 62| unused-parameter: parameter 'br' seems to be unused, consider removing or renaming it as _ (revive)
pkg/demoinfocs/stringtables.go|383 col 4| only one cuddle assignment allowed before if statement (wsl)
pkg/demoinfocs/stringtables.go|396 col 4| assignments should only be cuddled with other assignments (wsl)
pkg/demoinfocs/stringtables.go|403 col 5| assignments should only be cuddled with other assignments (wsl)

Filtered Findings (0)

Annotations

Check failure on line 380 in pkg/demoinfocs/stringtables.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] pkg/demoinfocs/stringtables.go#L380

`if hasValue` has complex nested blocks (complexity: 10) (nestif)
Raw output
pkg/demoinfocs/stringtables.go:380:3: `if hasValue` has complex nested blocks (complexity: 10) (nestif)
		if hasValue {
		^

Check failure on line 415 in pkg/demoinfocs/stringtables.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] pkg/demoinfocs/stringtables.go#L415

unused-parameter: parameter 'br' seems to be unused, consider removing or renaming it as _ (revive)
Raw output
pkg/demoinfocs/stringtables.go:415:62: unused-parameter: parameter 'br' seems to be unused, consider removing or renaming it as _ (revive)
func (p *parser) processStringTableS2(tab createStringTable, br *bit.BitReader) {
                                                             ^

Check failure on line 383 in pkg/demoinfocs/stringtables.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] pkg/demoinfocs/stringtables.go#L383

only one cuddle assignment allowed before if statement (wsl)
Raw output
pkg/demoinfocs/stringtables.go:383:4: only one cuddle assignment allowed before if statement (wsl)
			if userDataFixed {
			^

Check failure on line 396 in pkg/demoinfocs/stringtables.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] pkg/demoinfocs/stringtables.go#L396

assignments should only be cuddled with other assignments (wsl)
Raw output
pkg/demoinfocs/stringtables.go:396:4: assignments should only be cuddled with other assignments (wsl)
			value = r.ReadBits(int(bitSize))
			^

Check failure on line 403 in pkg/demoinfocs/stringtables.go

See this annotation in the file changed.

@github-actions github-actions / golangci-lint

[golangci-lint] pkg/demoinfocs/stringtables.go#L403

assignments should only be cuddled with other assignments (wsl)
Raw output
pkg/demoinfocs/stringtables.go:403:5: assignments should only be cuddled with other assignments (wsl)
				value = tmp
				^