sync: Don't warn about no flag if WIP
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e08dd2f2e8
commit
ea8ad1d6db
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user