sync: Don't warn about no flag if WIP
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2024-10-11 14:55:49 +02:00
parent e08dd2f2e8
commit ea8ad1d6db

View File

@ -173,7 +173,9 @@ func getExerciceParams(i Importer, exercice *fic.Exercice) (params ExerciceParam
if params, _, err = parseExerciceParams(i, exercice.Path); err != nil {
errs = multierr.Append(errs, NewChallengeTxtError(exercice, 0, err))
} else if len(params.Flags) == 0 && len(params.FlagsUCQ) == 0 && len(params.FlagsMCQ) == 0 {
if !params.WIP {
errs = multierr.Append(errs, NewChallengeTxtError(exercice, 0, fmt.Errorf("has no flag")))
}
} else {
// Treat legacy UCQ flags as ExerciceFlag
for _, flag := range params.FlagsUCQ {