repochecker/grammalecte: Check for forbidden strings (raw flags) in resolution.md
This commit is contained in:
parent
80422daffb
commit
3421286c9b
4 changed files with 38 additions and 3 deletions
|
|
@ -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)))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue