repochecker/grammalecte: Don't harass on mc_mot_composé already flag as spelling exception
This commit is contained in:
parent
f9e9bfcb75
commit
5b47d1c250
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,10 @@ func grammalecte(name string, text string, exceptions *sync.CheckExceptions, opt
|
||||||
continue
|
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)) {
|
if exceptions.HasException(fmt.Sprintf(":%d:%s", data.Paragraph, gerror.RuleId)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue