Skip to content

linter: expanded deprecated for calling const, property and instances of classes #130

linter: expanded deprecated for calling const, property and instances of classes

linter: expanded deprecated for calling const, property and instances of classes #130

Triggered via pull request February 26, 2025 13:38
Status Failure
Total duration 55s
Artifacts

linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
linter: src/linter/root.go#L987
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
linter: src/linttest/golden_linttest.go#L172
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
linter
Process completed with exit code 2.