mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-12-17 18:54:26 +08:00
删除所有“少许”
This commit is contained in:
3
.github/manual_lint.js
vendored
3
.github/manual_lint.js
vendored
@@ -32,6 +32,9 @@ async function main() {
|
||||
if (dataLines.filter(line => line.includes('左右')).length > 0) {
|
||||
errors.push(`文件 ${filePath} 不符合仓库的规范!左右 不是一个能够明确定量的标准! 如果是在描述一个模糊物体的特征,请使用 '大约'。例如:鸡(大约1kg)`);
|
||||
}
|
||||
if (dataLines.filter(line => line.includes('少许')).length > 0) {
|
||||
errors.push(`文件 ${filePath} 不符合仓库的规范!少许 不是一个精准的描述!请给出克 g 或毫升 ml。`);
|
||||
}
|
||||
if (dataLines.filter(line => line.includes('你')).length > 0) {
|
||||
errors.push(`文件 ${filePath} 不符合仓库的规范!请不要出现人称代词。`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user