@abaplint/cli 2.101.34 → 2.101.36

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 +10 -3
  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.34";
48468
+ return "2.101.36";
48469
48469
  }
48470
48470
  getDDICReferences() {
48471
48471
  return this.ddicReferences;
@@ -51649,7 +51649,7 @@ class CloudTypes {
51649
51649
  key: "cloud_types",
51650
51650
  title: "Check cloud types",
51651
51651
  shortDescription: `Checks that the package does not contain any object types unsupported in cloud ABAP.`,
51652
- tags: [_irule_1.RuleTag.SingleFile],
51652
+ tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Syntax],
51653
51653
  };
51654
51654
  }
51655
51655
  getDescription(objectType) {
@@ -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);
@@ -67238,7 +67241,9 @@ class UnnecessaryPragma extends _abap_rule_1.ABAPRule {
67238
67241
 
67239
67242
  * NO_TEXT without texts
67240
67243
 
67241
- * SUBRC_OK where sy-subrc is checked`,
67244
+ * SUBRC_OK where sy-subrc is checked
67245
+
67246
+ NO_HANDLER inside macros are not checked`,
67242
67247
  tags: [_irule_1.RuleTag.SingleFile],
67243
67248
  badExample: `TRY.
67244
67249
  ...
@@ -67369,6 +67374,7 @@ ENDIF.`,
67369
67374
  }
67370
67375
  if (next
67371
67376
  && next.get() instanceof _statement_1.Comment
67377
+ && !(statement.get() instanceof _statement_1.MacroContent)
67372
67378
  && next.concatTokens().toUpperCase().includes("#EC NO_HANDLER")) {
67373
67379
  return true;
67374
67380
  }
@@ -67399,6 +67405,7 @@ const edit_helper_1 = __webpack_require__(/*! ../edit_helper */ "./node_modules/
67399
67405
  class UnnecessaryReturnConf extends _basic_rule_config_1.BasicRuleConfig {
67400
67406
  }
67401
67407
  exports.UnnecessaryReturnConf = UnnecessaryReturnConf;
67408
+ // todo: make this rule more intelligent, eg RETURN. ENDTRY. ENDMETHOD.
67402
67409
  class UnnecessaryReturn extends _abap_rule_1.ABAPRule {
67403
67410
  constructor() {
67404
67411
  super(...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.34",
3
+ "version": "2.101.36",
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.34",
41
+ "@abaplint/core": "^2.101.36",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",