MCPcopy Create free account
hub / github.com/exercism/cli / submissionNotEmpty

Method submissionNotEmpty

cmd/submit.go:419–429  ·  view source on GitHub ↗

submissionNotEmpty checks that there is at least one file to submit.

(docs []workspace.Document)

Source from the content-addressed store, hash-verified

417
418// submissionNotEmpty checks that there is at least one file to submit.
419func (s submitValidator) submissionNotEmpty(docs []workspace.Document) error {
420 if len(docs) == 0 {
421 msg := `
422
423 No files found to submit.
424
425 `
426 return errors.New(msg)
427 }
428 return nil
429}
430
431// metadataMatchesExercise checks that the metadata refers to the exercise being submitted.
432func (s submitValidator) metadataMatchesExercise(metadata *workspace.ExerciseMetadata, exercise workspace.Exercise) error {

Callers 1

runSubmitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected