scancscode 1.0.20 → 1.0.22

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.
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- require("../dist/index.js")
3
+ require("../dist/RunConvert.js")
@@ -233,7 +233,7 @@ class CSCodeScanner {
233
233
  let stringEndIndex = stringStartIndex + stringLine.length;
234
234
  let prefix = bodyLine.substring(stringStartIndex - 2, stringStartIndex);
235
235
  let suffix = bodyLine.substring(stringEndIndex, stringEndIndex + trmethodcall.length);
236
- if ((stringStartIndex == 0 || prefix == "+ ") && suffix != trmethodcall) {
236
+ if ((stringStartIndex == 0 || prefix == "+ " || prefix == ": ") && suffix != trmethodcall) {
237
237
  formattedStringLine = formattedStringLine + trmethodcall;
238
238
  }
239
239
  return formattedStringLine;
@@ -46,8 +46,8 @@ class LiteralCollector {
46
46
  return;
47
47
  }
48
48
  let files = glob_1.glob.sync("**/*.cs", { cwd: folder });
49
- // let testFullPath = "@";
50
- let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/Functional/Rune/Model/RuneExt.cs";
49
+ let testFullPath = "@";
50
+ // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/SutraUI_Detail/MainSutraDetailDialog.cs";
51
51
  for (const filePath of files) {
52
52
  let fullPath = folder + filePath;
53
53
  if (testFullPath != "@") {
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const CmdExecutor_1 = require("./CmdExecutor");
4
+ CmdExecutor_1.CmdExecutor.runConvertWithCmdOptions();
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const CmdExecutor_1 = require("./CmdExecutor");
4
- // CmdExecutor.runConvertWithCmdOptions()
5
4
  CmdExecutor_1.CmdExecutor.testConvert();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scancscode",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -243,7 +243,7 @@ export class CSCodeScanner {
243
243
  let stringEndIndex = stringStartIndex + stringLine.length;
244
244
  let prefix = bodyLine.substring(stringStartIndex - 2, stringStartIndex);
245
245
  let suffix = bodyLine.substring(stringEndIndex, stringEndIndex + trmethodcall.length);
246
- if ((stringStartIndex == 0 || prefix == "+ ") && suffix != trmethodcall) {
246
+ if ((stringStartIndex == 0 || prefix == "+ " || prefix == ": ") && suffix != trmethodcall) {
247
247
  formattedStringLine = formattedStringLine + trmethodcall;
248
248
  }
249
249
  return formattedStringLine;
@@ -14,8 +14,8 @@ export class LiteralCollector {
14
14
  }
15
15
 
16
16
  let files = glob.sync("**/*.cs", { cwd: folder });
17
- // let testFullPath = "@";
18
- let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/Functional/Rune/Model/RuneExt.cs";
17
+ let testFullPath = "@";
18
+ // let testFullPath = "E:/DATA/Projects/ZhiYou/ProjectFClient/GameClient/Assets/Bundles/FGUI/SutraUI_Detail/MainSutraDetailDialog.cs";
19
19
  for (const filePath of files) {
20
20
  let fullPath = folder + filePath;
21
21
  if (testFullPath != "@") {
@@ -0,0 +1,3 @@
1
+ import { CmdExecutor } from "./CmdExecutor";
2
+
3
+ CmdExecutor.runConvertWithCmdOptions()
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import { CmdExecutor } from "./CmdExecutor";
2
2
 
3
- // CmdExecutor.runConvertWithCmdOptions()
4
3
  CmdExecutor.testConvert()