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 {
|
if params, _, err = parseExerciceParams(i, exercice.Path); err != nil {
|
||||||
errs = multierr.Append(errs, NewChallengeTxtError(exercice, 0, err))
|
errs = multierr.Append(errs, NewChallengeTxtError(exercice, 0, err))
|
||||||
} else if len(params.Flags) == 0 && len(params.FlagsUCQ) == 0 && len(params.FlagsMCQ) == 0 {
|
} else if len(params.Flags) == 0 && len(params.FlagsUCQ) == 0 && len(params.FlagsMCQ) == 0 {
|
||||||
errs = multierr.Append(errs, NewChallengeTxtError(exercice, 0, fmt.Errorf("has no flag")))
|
if !params.WIP {
|
||||||
|
errs = multierr.Append(errs, NewChallengeTxtError(exercice, 0, fmt.Errorf("has no flag")))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Treat legacy UCQ flags as ExerciceFlag
|
// Treat legacy UCQ flags as ExerciceFlag
|
||||||
for _, flag := range params.FlagsUCQ {
|
for _, flag := range params.FlagsUCQ {
|
||||||
|
Loading…
Reference in New Issue
Block a user