repochecker/grammalecte: Check for forbidden strings (raw flags) in resolution.md

This commit is contained in:
nemunaire 2022-11-24 13:11:21 +01:00
commit 3421286c9b
4 changed files with 38 additions and 3 deletions

View file

@ -289,7 +289,7 @@ func BuildExercice(i Importer, theme *fic.Theme, epath string, dmap *map[int64]*
} else {
// Call checks hooks
for _, h := range hooks.mdTextHooks {
for _, err := range h(e.Resolution, exceptions.GetFileExceptions("resolution.md")) {
for _, err := range h(e.Resolution, exceptions.GetFileExceptions("resolution.md"), p.GetRawFlags()...) {
errs = append(errs, NewExerciceError(e, fmt.Errorf("resolution.md: %w", err)))
}
}