repochecker/grammalecte: Remove unwanted poncfin_règle1 for labels
This commit is contained in:
parent
a790ced236
commit
a4701af619
|
@ -7,7 +7,13 @@ import (
|
|||
|
||||
func GrammalecteCheckKeyFlag(flag *fic.FlagKey, raw string, exceptions *sync.CheckExceptions) (errs []error) {
|
||||
label, _, _, _ := flag.AnalyzeFlagLabel()
|
||||
errs = append(errs, grammalecte("label ", label, exceptions, &CommonOpts)...)
|
||||
for _, err := range grammalecte("label ", label, exceptions, &CommonOpts) {
|
||||
if e, ok := err.(GrammarError); ok && e.RuleId == "poncfin_règle1" {
|
||||
continue
|
||||
}
|
||||
|
||||
errs = append(errs, err)
|
||||
}
|
||||
|
||||
if len(flag.Help) > 0 {
|
||||
errs = append(errs, grammalecte("help ", flag.Help, exceptions, &CommonOpts)...)
|
||||
|
|
Loading…
Reference in New Issue