crabatool 1.0.197 → 1.0.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tool/checkjs.js +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.197",
3
+ "version": "1.0.198",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tool/checkjs.js CHANGED
@@ -199,7 +199,7 @@ module.exports.start = async function() {
199
199
  info.push(`| gspx建议优化数 | ${warnGspxCount}个 |${calc(warnGspxCount, gspxData.count)}|`);
200
200
  }
201
201
  if (gspxData.errorList.length) {
202
- info.push(`| gspx语法错误数 | ${gspxData.errorList.length}个 |${calc(gspxData.errorList.length, gspxData.count)}|`);
202
+ info.push(`| gspx页面异常数 | ${gspxData.errorList.length}个 |${calc(gspxData.errorList.length, gspxData.count)}|`);
203
203
  }
204
204
 
205
205
 
@@ -214,12 +214,12 @@ module.exports.start = async function() {
214
214
  webhookList.push(`1. 共检测 ${gspxData.count}个 gspx文件 `);
215
215
 
216
216
  if (gspxData.errorList.length > 0) {
217
- webhookList.push(`1. gspx语法错误数:${gspxData.errorList.length}个,占比${calc(gspxData.errorList.length, gspxData.count)}`);
217
+ webhookList.push(`1. gspx页面异常数:${gspxData.errorList.length}个,占比${calc(gspxData.errorList.length, gspxData.count)}`);
218
218
  }
219
219
 
220
220
  // 输出到钉钉的简易报告
221
221
  //if (errKeys.length > 0) {
222
- webhookList.push(`1. js语法异常文件数Error:${errKeys.length}个,占比${calc(errKeys.length, jsFiles.length)}`);
222
+ webhookList.push(`1. js语法异常数Error:${errKeys.length}个,占比${calc(errKeys.length, jsFiles.length)}`);
223
223
 
224
224
  // 随机显示5个异常文件到钉钉消息
225
225
  var errCount = errKeys.length;
@@ -241,9 +241,9 @@ module.exports.start = async function() {
241
241
 
242
242
  //}
243
243
  //if (warnKeys.length > 0) {
244
- webhookList.push(`7. js语法警告文件数Warn:${warnKeys.length}个,占比${calc(warnKeys.length, jsFiles.length)}`);
244
+ webhookList.push(`7. js语法警告数Warn:${warnKeys.length}个,占比${calc(warnKeys.length, jsFiles.length)}`);
245
245
  //}
246
- webhookList.push(`8. js语法提示文件数Info:${infoKeys.length}个,占比${calc(infoKeys.length, jsFiles.length)}`);
246
+ webhookList.push(`8. js语法提示数Info:${infoKeys.length}个,占比${calc(infoKeys.length, jsFiles.length)}`);
247
247
 
248
248
  if (config.checkutf8 && notUtf8List.length > 0) {
249
249
  webhookList.push(`1. 非utf8文件数:${notUtf8List.length}个,占比${calc(notUtf8List.length, jsFiles.length)}`);
@@ -336,7 +336,7 @@ module.exports.start = async function() {
336
336
  }
337
337
 
338
338
  if (gspxData.errorList.length > 0) {
339
- detail.push(`# 出错gspx页面清单如下`);
339
+ detail.push(`# gspx页面异常清单如下`);
340
340
  gspxData.errorList.forEach((info, index) => {
341
341
  detail.push(`${index + 1}. ${info.fileName}`);
342
342
  detail.push(`> 错误标签: ${info.tag}`);
@@ -364,7 +364,7 @@ module.exports.start = async function() {
364
364
  });
365
365
  }
366
366
 
367
- detail.push('# 项目标签汇总');
367
+ detail.push('# 项目标签使用次数汇总');
368
368
  detail.push("| 标签名称 | 使用次数 | 标签使用建议");
369
369
  detail.push("| ----- | ------ | ---- |");
370
370
  gspxData.tagList.forEach((item, index) => {