repochecker/grammalecte: Allow redondances in resolution.md
This commit is contained in:
parent
f087213f0a
commit
f079ecd9e3
1 changed files with 23 additions and 20 deletions
|
|
@ -15,12 +15,9 @@ func (c *CheckExceptions) GetExerciceExceptions(e *fic.Exercice) *CheckException
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CheckExceptions) GetFileExceptions(paths ...string) *CheckExceptions {
|
func (c *CheckExceptions) GetFileExceptions(paths ...string) *CheckExceptions {
|
||||||
if c == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
ret := CheckExceptions{}
|
ret := CheckExceptions{}
|
||||||
|
|
||||||
|
if c != nil {
|
||||||
for k, v := range *c {
|
for k, v := range *c {
|
||||||
cols := strings.SplitN(k, ":", 2)
|
cols := strings.SplitN(k, ":", 2)
|
||||||
if len(cols) < 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
|
return &ret
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue