Skip to content

vertexai: import go-sentencepiece to internal #17851

vertexai: import go-sentencepiece to internal

vertexai: import go-sentencepiece to internal #17851

Triggered via pull request August 15, 2024 14:03
Status Failure
Total duration 1m 58s
Artifacts

vet.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
vet: vertexai/internal/sentencepiece/encoder.go#L33
exported type Encoder should have comment or be unexported
vet: vertexai/internal/sentencepiece/encoder.go#L40
struct field unknownId should be unknownID
vet: vertexai/internal/sentencepiece/encoder.go#L84
var unkId should be unkID
vet: vertexai/internal/sentencepiece/encoder.go#L212
if block ends with a return statement, so drop this else and outdent its block
vet: vertexai/internal/sentencepiece/encoder.go#L301
if block ends with a return statement, so drop this else and outdent its block
vet: vertexai/internal/sentencepiece/internal/prefixmatcher/prefixmatcher.go#L21
exported type PrefixMatcher should have comment or be unexported
vet: vertexai/internal/sentencepiece/internal/prefixmatcher/prefixmatcher.go#L30
exported function NewFromSet should have comment or be unexported
vet: vertexai/internal/sentencepiece/internal/priorityqueue/priorityqueue.go#L15
package comment should be of the form "Package priorityqueue ..."
vet: vertexai/internal/sentencepiece/internal/priorityqueue/priorityqueue.go#L19
exported type PriorityQueue should have comment or be unexported
vet
Process completed with exit code 1.