diff --git a/README.md b/README.md index 9a1a959..0137666 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ linters-settings: no-cyrillic-file-excludes: - user-authz:/rbac.yaml - documentation:/images/web/site/_data/topnav.yml + - other-module:/external/**/*.txt license: copyright-excludes: - upmeter:/images/upmeter/stress.sh diff --git a/pkg/linters/no-cyrillic/no-cyrillic.go b/pkg/linters/no-cyrillic/no-cyrillic.go index ff57763..3ce38f7 100644 --- a/pkg/linters/no-cyrillic/no-cyrillic.go +++ b/pkg/linters/no-cyrillic/no-cyrillic.go @@ -66,7 +66,7 @@ func (o *NoCyrillic) Run(m *module.Module) (errors.LintRuleErrorsList, error) { for _, fileName := range files { name, _ := strings.CutPrefix(fileName, m.GetPath()) name = m.GetName() + ":" + name - if slices.Contains(o.cfg.NoCyrillicFileExcludes, name) { + if fsutils.FileNameMatchAnyMask(name, o.cfg.NoCyrillicFileExcludes) { continue } if o.skipDocRe.MatchString(fileName) {