Skip to content

Refactor SMF code for readability, conciseness, and modularity #382

Refactor SMF code for readability, conciseness, and modularity

Refactor SMF code for readability, conciseness, and modularity #382

Re-run triggered September 9, 2024 09:45
Status Failure
Total duration 59s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint (1.21): internal/context/datapath.go#L312
ifElseChain: rewrite if-else to switch statement (gocritic)
lint (1.21): internal/sbi/api_upi.go#L72
File is not `gofumpt`-ed (gofumpt)
lint (1.21): internal/sbi/processor/association.go#L263
S1023: redundant break statement (gosimple)
lint (1.21): internal/sbi/processor/pdu_session.go#L130
shadow: declaration of "err" shadows declaration at line 83 (govet)
lint (1.21): internal/sbi/processor/pdu_session.go#L152
shadow: declaration of "err" shadows declaration at line 83 (govet)
lint (1.21): internal/sbi/processor/pdu_session.go#L185
shadow: declaration of "err" shadows declaration at line 83 (govet)
lint (1.21): internal/sbi/processor/pdu_session_test.go#L648
shadow: declaration of "err" shadows declaration at line 593 (govet)
lint (1.21): internal/context/datapath.go#L50
line is 125 characters (lll)
lint (1.21): internal/context/sm_context.go#L541
line is 164 characters (lll)
lint (1.21): internal/context/sm_context.go#L572
line is 128 characters (lll)
lint (1.21)
Restore cache failed: Dependencies file is not found in /home/runner/work/smf/smf. Supported file pattern: go.sum