This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit cedf44a793a7f58006b97dc3a91281ab27a1c384
Author: kezhenxu94 <[email protected]>
AuthorDate: Thu Dec 24 21:52:25 2020 +0800

    Also add *.txt to ignore paths because plain text format can not have 
comments
---
 license-eye/pkg/header/config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/license-eye/pkg/header/config.go b/license-eye/pkg/header/config.go
index 5549a24..df2d630 100644
--- a/license-eye/pkg/header/config.go
+++ b/license-eye/pkg/header/config.go
@@ -100,7 +100,7 @@ func (config *ConfigHeader) Finalize() error {
                config.Paths = []string{"**"}
        }
 
-       config.PathsIgnore = append(config.PathsIgnore, ".git")
+       config.PathsIgnore = append(config.PathsIgnore, ".git", "**/*.txt")
 
        if file, err := os.Open(".gitignore"); err == nil {
                defer func() { _ = file.Close() }()

Reply via email to