crabatool 1.0.326 → 1.0.330

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.
package/index.js CHANGED
@@ -38,6 +38,7 @@ function checkFast(args) {
38
38
  config.progress = 0; // 通过命令行启动,默认不显示进度条
39
39
 
40
40
  if (args.includes('-checkjs')) {
41
+ start.bindConfigByArgv('-ignoreFiles','array');
41
42
  start.checkAllJs();
42
43
  return false;
43
44
  }
package/lib/config.js CHANGED
@@ -4,8 +4,14 @@ var pg = require('../package.json');
4
4
 
5
5
  class Config {
6
6
  constructor() {
7
- this.reportHost = "http://crabadoc.ca.com"; // 用于接收检测报告的服务器,可配置的。由于产品没有提供服务,目前统一放到平台的文档服务器
7
+ //this.reportHost = "http://crabadoc.ca.com"; // 用于接收检测报告的服务器,可配置的。由于产品没有提供服务,目前统一放到平台的文档服务器
8
8
  //this.reportHost = "http://127.0.0.1:9998";
9
+ this.reportHost = 'http://172.17.0.201:9998';
10
+
11
+ //this.SourceHost = "http://crabadoc.mygjp.com.cn";
12
+ //this.SourceHost = "http://crabadoc.ca.com";
13
+ this.SourceHost = 'http://172.17.0.201:9998';
14
+
9
15
  this.webhooks = "https://oapi.dingtalk.com/robot/send?access_token=ce27b1b1540881540d44c0bd05ba738d865363758892ede137dc1020bd36bd5a";
10
16
  this.crabaHooks = "https://oapi.dingtalk.com/robot/send?access_token=ce27b1b1540881540d44c0bd05ba738d865363758892ede137dc1020bd36bd5a";
11
17
  //this.webhooks = "https://oapi.dingtalk.com/robot/send?access_token=37279df60e03ebf25e8eb71230ddb93fe74de99951a8d635d0458e60bfcd44d8";
@@ -15,9 +21,7 @@ class Config {
15
21
  this.Version = pg.version;
16
22
  this.Debug = false;
17
23
  this.version = 'master';
18
- //this.SourceHost = "http://crabadoc.mygjp.com.cn";
19
- this.SourceHost = "http://crabadoc.ca.com";
20
- //this.SourceHost = "http://127.0.0.1:9998";
24
+
21
25
  this.TempPath = path.join(os.tmpdir(), '_crabatemp');
22
26
  this.ImageCache = path.join(this.TempPath, "_img");
23
27
  this.JsonFile = path.join(this.TempPath, "craba.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.326",
3
+ "version": "1.0.330",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -32,6 +32,7 @@ module.exports.start = async function() {
32
32
  });
33
33
  }
34
34
  }
35
+ // 用项目名+分支名确定唯一性
35
36
 
36
37
  var reportData = {
37
38
  webPath: config.webPath,
@@ -39,12 +40,12 @@ module.exports.start = async function() {
39
40
  branchName: getBranchName(),
40
41
  list: list,
41
42
  counts: counts
42
- }
43
+ };
44
+ var id = utils.getHashCode(reportData.projectName + reportData.branchName);
45
+ reportData.id = id;
43
46
 
44
- //console.log(reportData);
45
47
 
46
- // 用项目名+分支名确定唯一性
47
- var id = utils.getHashCode(reportData.projectName + reportData.branchName);
48
+ //console.log(reportData);
48
49
 
49
50
  var data = {
50
51
  id: id,