@abaplint/cli 2.119.11 → 2.119.13

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 +15 -4
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -11829,7 +11829,7 @@ class Convert {
11829
11829
  const invert = (0, combi_1.seq)("INTO INVERTED-DATE", expressions_1.Target);
11830
11830
  const date = (0, combi_1.seq)((0, combi_1.per)(dat, tim), (0, combi_1.per)(daylightSource, stamp, zone, invert, intoutc));
11831
11831
  const inv = (0, combi_1.seq)("INVERTED-DATE", expressions_1.Source, "INTO DATE", expressions_1.Target);
11832
- const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylightSource)));
11832
+ const utclong = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("UTCLONG", expressions_1.Source, (0, combi_1.per)(zone, into, daylightSource)), version_1.Version.OpenABAP);
11833
11833
  return (0, combi_1.seq)("CONVERT", (0, combi_1.alt)(time, date, inv, utclong));
11834
11834
  }
11835
11835
  }
@@ -16601,7 +16601,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
16601
16601
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
16602
16602
  class Return {
16603
16603
  getMatcher() {
16604
- return (0, combi_1.seq)((0, combi_1.str)("RETURN"), (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v758, expressions_1.Source)));
16604
+ return (0, combi_1.seq)((0, combi_1.str)("RETURN"), (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v758, expressions_1.Source, version_1.Version.OpenABAP)));
16605
16605
  }
16606
16606
  }
16607
16607
  exports.Return = Return;
@@ -56244,7 +56244,7 @@ class Registry {
56244
56244
  }
56245
56245
  static abaplintVersion() {
56246
56246
  // magic, see build script "version.sh"
56247
- return "2.119.11";
56247
+ return "2.119.13";
56248
56248
  }
56249
56249
  getDDICReferences() {
56250
56250
  return this.ddicReferences;
@@ -78313,10 +78313,14 @@ const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./
78313
78313
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
78314
78314
  const edit_helper_1 = __webpack_require__(/*! ../edit_helper */ "./node_modules/@abaplint/core/build/src/edit_helper.js");
78315
78315
  const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
78316
+ const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
78317
+ const ddic_1 = __webpack_require__(/*! ../ddic */ "./node_modules/@abaplint/core/build/src/ddic.js");
78316
78318
  class UnnecessaryChainingConf extends _basic_rule_config_1.BasicRuleConfig {
78317
78319
  constructor() {
78318
78320
  super(...arguments);
78319
78321
  this.maxIssuesPerFile = 10;
78322
+ /** Ignore global exception classes */
78323
+ this.ignoreExceptions = true;
78320
78324
  }
78321
78325
  }
78322
78326
  exports.UnnecessaryChainingConf = UnnecessaryChainingConf;
@@ -78342,8 +78346,15 @@ class UnnecessaryChaining extends _abap_rule_1.ABAPRule {
78342
78346
  setConfig(conf) {
78343
78347
  this.conf = conf;
78344
78348
  }
78345
- runParsed(file) {
78349
+ runParsed(file, obj) {
78346
78350
  const issues = [];
78351
+ if (obj instanceof objects_1.Class) {
78352
+ const definition = obj.getClassDefinition();
78353
+ const ddic = new ddic_1.DDIC(this.reg);
78354
+ if (this.conf.ignoreExceptions === true && ddic.isException(definition, obj)) {
78355
+ return issues;
78356
+ }
78357
+ }
78347
78358
  let max = this.getConfig().maxIssuesPerFile;
78348
78359
  if (max === undefined || max < 1) {
78349
78360
  max = 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.119.11",
3
+ "version": "2.119.13",
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.119.11",
41
+ "@abaplint/core": "^2.119.13",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",