@abaplint/cli 2.101.33 → 2.101.35

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/build/cli.js +6 -2
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -48465,7 +48465,7 @@ class Registry {
48465
48465
  }
48466
48466
  static abaplintVersion() {
48467
48467
  // magic, see build script "version.sh"
48468
- return "2.101.33";
48468
+ return "2.101.35";
48469
48469
  }
48470
48470
  getDDICReferences() {
48471
48471
  return this.ddicReferences;
@@ -53696,7 +53696,7 @@ Make sure to test the downported code, it might not always be completely correct
53696
53696
  const fix1 = edit_helper_1.EditHelper.replaceRange(lowFile, fieldList.getFirstToken().getStart(), fieldList.getLastToken().getEnd(), fieldName);
53697
53697
  const fix2 = edit_helper_1.EditHelper.replaceRange(lowFile, into === null || into === void 0 ? void 0 : into.getFirstToken().getStart(), into === null || into === void 0 ? void 0 : into.getLastToken().getEnd(), `INTO @DATA(${uniqueName})`);
53698
53698
  let fix = edit_helper_1.EditHelper.merge(fix2, fix1);
53699
- const fix3 = edit_helper_1.EditHelper.insertAt(lowFile, high.getLastToken().getEnd(), `\nCLEAR ${intoName}.\nIF sy-subrc = 0.\n ${intoName} = abap_true\nENDIF.`);
53699
+ const fix3 = edit_helper_1.EditHelper.insertAt(lowFile, high.getLastToken().getEnd(), `\nCLEAR ${intoName}.\nIF sy-subrc = 0.\n ${intoName} = abap_true.\nENDIF.`);
53700
53700
  fix = edit_helper_1.EditHelper.merge(fix, fix3);
53701
53701
  return issue_1.Issue.atToken(lowFile, low.getFirstToken(), "SQL, refactor existence check", this.getMetadata().key, this.conf.severity, fix);
53702
53702
  }
@@ -55143,6 +55143,9 @@ ${indentation} output = ${uniqueName}.\n`;
55143
55143
  continue;
55144
55144
  }
55145
55145
  const correspondingBody = s.findDirectExpression(Expressions.CorrespondingBody);
55146
+ if ((correspondingBody === null || correspondingBody === void 0 ? void 0 : correspondingBody.getFirstToken().getStr().toUpperCase()) === "BASE") {
55147
+ continue;
55148
+ }
55146
55149
  const uniqueName = this.uniqueName(firstToken.getStart(), lowFile.getFilename(), highSyntax);
55147
55150
  const indentation = " ".repeat(high.getFirstToken().getStart().getCol() - 1);
55148
55151
  let type = this.findType(s, lowFile, highSyntax);
@@ -67399,6 +67402,7 @@ const edit_helper_1 = __webpack_require__(/*! ../edit_helper */ "./node_modules/
67399
67402
  class UnnecessaryReturnConf extends _basic_rule_config_1.BasicRuleConfig {
67400
67403
  }
67401
67404
  exports.UnnecessaryReturnConf = UnnecessaryReturnConf;
67405
+ // todo: make this rule more intelligent, eg RETURN. ENDTRY. ENDMETHOD.
67402
67406
  class UnnecessaryReturn extends _abap_rule_1.ABAPRule {
67403
67407
  constructor() {
67404
67408
  super(...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.33",
3
+ "version": "2.101.35",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.101.33",
41
+ "@abaplint/core": "^2.101.35",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",