lint: fix most linter issues in ping_16.go, ping_14.go, ping_beta18.g… #6
Annotations
32 errors
Run GolangCI (1.22):
query.go#L272
slice `b` does not have non-zero initial length (makezero)
|
Run GolangCI (1.22):
query.go#L321
slice `b` does not have non-zero initial length (makezero)
|
Run GolangCI (1.22):
query.go#L469
slice `pb` does not have non-zero initial length (makezero)
|
Run GolangCI (1.22):
query.go#L483
slice `pb` does not have non-zero initial length (makezero)
|
Run GolangCI (1.22):
query.go#L635
slice `plugins` does not have non-zero initial length (makezero)
|
Run GolangCI (1.22):
net.go#L54
add-constant: string literal "failed to resolve UDP address: %w" appears, at least, 3 times, create a named constant for it (revive)
|
Run GolangCI (1.22):
ping_14.go#L108
add-constant: avoid magic numbers like '3', create a named constant for it (revive)
|
Run GolangCI (1.22):
net.go#L64
add-constant: string literal "failed to set connection deadline: %w" appears, at least, 3 times, create a named constant for it (revive)
|
Run GolangCI (1.22):
query.go#L407
add-constant: avoid magic numbers like '6', create a named constant for it (revive)
|
Run GolangCI (1.22):
ping_beta18.go#L121
add-constant: string literal "could not read response packet: %w" appears, at least, 3 times, create a named constant for it (revive)
|
Run GolangCI (1.13)
The job was canceled because "_1_22" failed.
|
Run GolangCI (1.13):
query.go#L272
slice `b` does not have non-zero initial length (makezero)
|
Run GolangCI (1.13):
query.go#L321
slice `b` does not have non-zero initial length (makezero)
|
Run GolangCI (1.13):
query.go#L469
slice `pb` does not have non-zero initial length (makezero)
|
Run GolangCI (1.13):
query.go#L483
slice `pb` does not have non-zero initial length (makezero)
|
Run GolangCI (1.13):
query.go#L635
slice `plugins` does not have non-zero initial length (makezero)
|
Run GolangCI (1.13):
ping_generic.go#L14
cognitive-complexity: function (*Pinger).pingGeneric has cognitive complexity 18 (> max enabled 10) (revive)
|
Run GolangCI (1.13):
ping_17.go#L1840
cognitive-complexity: function (*chat17).String has cognitive complexity 16 (> max enabled 10) (revive)
|
Run GolangCI (1.13):
ping_17.go#L2104
cognitive-complexity: function (*Pinger).ping17ParseStatusResponsePayload has cognitive complexity 19 (> max enabled 10) (revive)
|
Run GolangCI (1.13):
ping_beta18.go#L121
add-constant: string literal "could not read response packet: %w" appears, at least, 3 times, create a named constant for it (revive)
|
Run GolangCI (1.13):
net.go#L54
add-constant: string literal "failed to resolve UDP address: %w" appears, at least, 3 times, create a named constant for it (revive)
|
Run GolangCI (stable)
The job was canceled because "_1_22" failed.
|
Run GolangCI (stable):
query.go#L272
slice `b` does not have non-zero initial length (makezero)
|
Run GolangCI (stable):
query.go#L321
slice `b` does not have non-zero initial length (makezero)
|
Run GolangCI (stable):
query.go#L469
slice `pb` does not have non-zero initial length (makezero)
|
Run GolangCI (stable):
query.go#L483
slice `pb` does not have non-zero initial length (makezero)
|
Run GolangCI (stable):
query.go#L635
slice `plugins` does not have non-zero initial length (makezero)
|
Run GolangCI (stable):
ping_14.go#L49
confusing-naming: Method 'ping14' differs only by capitalization to method 'Ping14' in the same source file (revive)
|
Run GolangCI (stable):
ping_14.go#L78
unused-receiver: method receiver 'p' is not referenced in method's body, consider removing or renaming it as _ (revive)
|
Run GolangCI (stable):
query.go#L455
function-length: maximum number of statements per function exceeded; max 40 but got 61 (revive)
|
Run GolangCI (stable):
query.go#L253
unused-receiver: method receiver 'p' is not referenced in method's body, consider removing or renaming it as _ (revive)
|
Run GolangCI (stable):
query.go#L269
unused-receiver: method receiver 'p' is not referenced in method's body, consider removing or renaming it as _ (revive)
|