repochecker/grammalecte: Don't harass on mc_mot_composé already flag as spelling exception

This commit is contained in:
nemunaire 2022-11-03 18:30:17 +01:00
parent f9e9bfcb75
commit 5b47d1c250

View File

@ -187,6 +187,10 @@ func grammalecte(name string, text string, exceptions *sync.CheckExceptions, opt
continue
}
if gerror.RuleId == "mc_mot_composé" && exceptions.HasException(fmt.Sprintf(":spelling:%s", data.Text[gerror.Start+1:gerror.End+1])) {
continue
}
if exceptions.HasException(fmt.Sprintf(":%d:%s", data.Paragraph, gerror.RuleId)) {
continue
}