mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
feat: add tools formitychecker
This commit is contained in:
parent
e748ffa67c
commit
aa135131a8
@ -61,7 +61,7 @@ func (c *Checker) checkPath(path string, info os.FileInfo, err error) error {
|
||||
c.Summary.Issues = append(c.Summary.Issues, Issue{
|
||||
Type: "ignoredDirectory",
|
||||
Path: path,
|
||||
Message: "此目录已被忽略",
|
||||
Message: "This directory has been ignored",
|
||||
})
|
||||
return filepath.SkipDir
|
||||
}
|
||||
@ -69,7 +69,7 @@ func (c *Checker) checkPath(path string, info os.FileInfo, err error) error {
|
||||
c.Summary.Issues = append(c.Summary.Issues, Issue{
|
||||
Type: "directoryNaming",
|
||||
Path: path,
|
||||
Message: "目录名称不符合规范",
|
||||
Message: "The directory name is invalid",
|
||||
})
|
||||
}
|
||||
} else {
|
||||
@ -81,7 +81,7 @@ func (c *Checker) checkPath(path string, info os.FileInfo, err error) error {
|
||||
c.Summary.Issues = append(c.Summary.Issues, Issue{
|
||||
Type: "fileNaming",
|
||||
Path: path,
|
||||
Message: "文件名称不符合规范",
|
||||
Message: "The file name does not comply with the specification",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user