repochecker/grammalecte: Allow redondances in resolution.md

This commit is contained in:
nemunaire 2022-12-02 15:27:43 +01:00
commit f079ecd9e3

View file

@ -15,12 +15,9 @@ func (c *CheckExceptions) GetExerciceExceptions(e *fic.Exercice) *CheckException
}
func (c *CheckExceptions) GetFileExceptions(paths ...string) *CheckExceptions {
if c == nil {
return nil
}
ret := CheckExceptions{}
if c != nil {
for k, v := range *c {
cols := strings.SplitN(k, ":", 2)
if len(cols) < 2 {
@ -43,6 +40,12 @@ func (c *CheckExceptions) GetFileExceptions(paths ...string) *CheckExceptions {
}
}
}
}
// Ignore redondances in resolution.md
if len(paths) > 0 && paths[0] == "resolution.md" {
ret["resolution.md:*:redondances_paragraphe"] = "automatic"
}
return &ret
}