Skip to content

uploaded code

uploaded code #6

Triggered via pull request October 31, 2023 08:42
Status Failure
Total duration 32s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 6 warnings
lint: parser.go#L58
Consider pre-allocating `parts` (prealloc)
lint: parser.go#L27
return statements should not be cuddled if block has more than two lines (wsl)
lint: parser.go#L64
ranges should only be cuddled with assignments used in the iteration (wsl)
lint: f.go#L4
pass []any as any to func FormatSafe func(template string, data ...any) (string, error) (asasalint)
lint
issues found
lint: f.go#L3
exported: exported function Format should have comment or be unexported (revive)
lint: f.go#L8
exported: exported function FormatSafe should have comment or be unexported (revive)
lint: parser.go#L10
exported: exported type Parsed should have comment or be unexported (revive)
lint: parser.go#L15
exported: exported function Parse should have comment or be unexported (revive)
lint: parser.go#L30
exported: exported method Parsed.Eval should have comment or be unexported (revive)
lint: parser.go#L52
exported: exported type Part should have comment or be unexported (revive)