@abaplint/cli 2.113.239 → 2.113.241

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 +9 -6
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -48537,6 +48537,7 @@ class DataElement extends _abstract_object_1.AbstractObject {
48537
48537
  var _a;
48538
48538
  const references = [];
48539
48539
  let lookup = undefined;
48540
+ this.parse();
48540
48541
  if (this.parsedXML === undefined) {
48541
48542
  lookup = { type: new Types.UnknownType("Data Element " + this.getName() + ", parser error") };
48542
48543
  }
@@ -54882,7 +54883,7 @@ class Registry {
54882
54883
  }
54883
54884
  static abaplintVersion() {
54884
54885
  // magic, see build script "version.sh"
54885
- return "2.113.239";
54886
+ return "2.113.241";
54886
54887
  }
54887
54888
  getDDICReferences() {
54888
54889
  return this.ddicReferences;
@@ -57793,6 +57794,7 @@ const _abap_object_1 = __webpack_require__(/*! ../objects/_abap_object */ "./nod
57793
57794
  const include_graph_1 = __webpack_require__(/*! ../utils/include_graph */ "./node_modules/@abaplint/core/build/src/utils/include_graph.js");
57794
57795
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
57795
57796
  const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
57797
+ const severity_1 = __webpack_require__(/*! ../severity */ "./node_modules/@abaplint/core/build/src/severity.js");
57796
57798
  class CheckIncludeConf extends _basic_rule_config_1.BasicRuleConfig {
57797
57799
  }
57798
57800
  exports.CheckIncludeConf = CheckIncludeConf;
@@ -57821,7 +57823,7 @@ class CheckInclude {
57821
57823
  }
57822
57824
  initialize(reg) {
57823
57825
  this.reg = reg;
57824
- this.graph = new include_graph_1.IncludeGraph(this.reg);
57826
+ this.graph = new include_graph_1.IncludeGraph(this.reg, this.getConfig().severity || severity_1.Severity.Error);
57825
57827
  return this;
57826
57828
  }
57827
57829
  run(obj) {
@@ -78519,10 +78521,11 @@ class Graph {
78519
78521
  }
78520
78522
  }
78521
78523
  class IncludeGraph {
78522
- constructor(reg) {
78524
+ constructor(reg, severity = severity_1.Severity.Error) {
78523
78525
  this.reg = reg;
78524
78526
  this.issues = [];
78525
78527
  this.graph = new Graph();
78528
+ this.severity = severity;
78526
78529
  this.build();
78527
78530
  }
78528
78531
  listMainForInclude(filename) {
@@ -78552,7 +78555,7 @@ class IncludeGraph {
78552
78555
  if (f === undefined) {
78553
78556
  throw new Error("findUnusedIncludes internal error");
78554
78557
  }
78555
- const issue = issue_1.Issue.atPosition(f, new position_1.Position(1, 1), "INCLUDE not used anywhere", new check_include_1.CheckInclude().getMetadata().key, severity_1.Severity.Error);
78558
+ const issue = issue_1.Issue.atPosition(f, new position_1.Position(1, 1), "INCLUDE not used anywhere", new check_include_1.CheckInclude().getMetadata().key, this.severity);
78556
78559
  ret.push(issue);
78557
78560
  }
78558
78561
  return ret;
@@ -78580,12 +78583,12 @@ class IncludeGraph {
78580
78583
  if (found === undefined) {
78581
78584
  const ifFound = s.concatTokens().toUpperCase().includes("IF FOUND");
78582
78585
  if (ifFound === false) {
78583
- const issue = issue_1.Issue.atStatement(f, s, "Include " + name + " not found", new check_include_1.CheckInclude().getMetadata().key, severity_1.Severity.Error);
78586
+ const issue = issue_1.Issue.atStatement(f, s, "Include " + name + " not found", new check_include_1.CheckInclude().getMetadata().key, this.severity);
78584
78587
  this.issues.push(issue);
78585
78588
  }
78586
78589
  }
78587
78590
  else if (found.include === false) {
78588
- const issue = issue_1.Issue.atStatement(f, s, "Not possible to INCLUDE a main program, " + name, new check_include_1.CheckInclude().getMetadata().key, severity_1.Severity.Error);
78591
+ const issue = issue_1.Issue.atStatement(f, s, "Not possible to INCLUDE a main program, " + name, new check_include_1.CheckInclude().getMetadata().key, this.severity);
78589
78592
  this.issues.push(issue);
78590
78593
  }
78591
78594
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.239",
3
+ "version": "2.113.241",
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.113.239",
41
+ "@abaplint/core": "^2.113.241",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",