@abaplint/cli 2.113.0 → 2.113.1

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 +19 -11
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -35224,6 +35224,8 @@ exports.DECLARATION_STUFF = [
35224
35224
  Statements.Data,
35225
35225
  Statements.DataBegin,
35226
35226
  Statements.Constant,
35227
+ Statements.Tables,
35228
+ Statements.Include, // this is not super correct, but anyhow
35227
35229
  Statements.Parameter,
35228
35230
  Statements.SelectionScreen,
35229
35231
  Statements.ConstantBegin,
@@ -52640,7 +52642,7 @@ class Registry {
52640
52642
  }
52641
52643
  static abaplintVersion() {
52642
52644
  // magic, see build script "version.sh"
52643
- return "2.113.0";
52645
+ return "2.113.1";
52644
52646
  }
52645
52647
  getDDICReferences() {
52646
52648
  return this.ddicReferences;
@@ -53308,25 +53310,25 @@ class AddTestAttributes extends _abap_rule_1.ABAPRule {
53308
53310
  title: "Add test attributes for tests classes with test methods",
53309
53311
  shortDescription: `Add test attributes DURATION and RISK LEVEL for tests classes with test methods`,
53310
53312
  tags: [_irule_1.RuleTag.SingleFile],
53311
- badExample: `CLASS ltcl_test DEFINITION FINAL FOR TESTING.
53313
+ badExample: `CLASS ltcl_test1 DEFINITION FINAL FOR TESTING.
53312
53314
  PUBLIC SECTION.
53313
53315
  PROTECTED SECTION.
53314
53316
  PRIVATE SECTION.
53315
53317
  METHODS test FOR TESTING RAISING cx_static_check.
53316
53318
  ENDCLASS.
53317
53319
 
53318
- CLASS ltcl_test IMPLEMENTATION.
53320
+ CLASS ltcl_test1 IMPLEMENTATION.
53319
53321
  METHOD test.
53320
53322
  ENDMETHOD.
53321
53323
  ENDCLASS.`,
53322
- goodExample: `CLASS ltcl_test DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS.
53324
+ goodExample: `CLASS ltcl_test2 DEFINITION FINAL FOR TESTING DURATION SHORT RISK LEVEL HARMLESS.
53323
53325
  PUBLIC SECTION.
53324
53326
  PROTECTED SECTION.
53325
53327
  PRIVATE SECTION.
53326
53328
  METHODS test FOR TESTING RAISING cx_static_check.
53327
53329
  ENDCLASS.
53328
53330
 
53329
- CLASS ltcl_test IMPLEMENTATION.
53331
+ CLASS ltcl_test2 IMPLEMENTATION.
53330
53332
  METHOD test.
53331
53333
  ENDMETHOD.
53332
53334
  ENDCLASS.`,
@@ -60838,12 +60840,11 @@ class EmptyEvent extends _abap_rule_1.ABAPRule {
60838
60840
  shortDescription: `Empty selection screen or list processing event block`,
60839
60841
  extendedInformation: ``,
60840
60842
  tags: [_irule_1.RuleTag.SingleFile],
60841
- badExample: `REPORT zfoo.
60842
- START-OF-SELECTION.
60843
- PERFORM sdf.
60844
- COMMIT WORK.
60843
+ badExample: `
60844
+ INITIALIZATION.
60845
+ WRITE 'hello'.
60845
60846
  END-OF-SELECTION.`,
60846
- goodExample: `REPORT zfoo.
60847
+ goodExample: `
60847
60848
  START-OF-SELECTION.
60848
60849
  PERFORM sdf.
60849
60850
  COMMIT WORK.`,
@@ -60868,6 +60869,9 @@ START-OF-SELECTION.
60868
60869
  let children = [];
60869
60870
  for (const s of stru.getChildren() || []) {
60870
60871
  if (selection_events_1.SELECTION_EVENTS.some(f => s.get() instanceof f)) {
60872
+ if (currentEvent !== undefined && children.length === 0) {
60873
+ issues.push(issue_1.Issue.atStatement(file, currentEvent, "Empty event", this.getMetadata().key, this.getConfig().severity));
60874
+ }
60871
60875
  children = [];
60872
60876
  currentEvent = s;
60873
60877
  }
@@ -60880,7 +60884,11 @@ START-OF-SELECTION.
60880
60884
  children.push(s);
60881
60885
  }
60882
60886
  else {
60887
+ if (currentEvent !== undefined && children.length === 0) {
60888
+ issues.push(issue_1.Issue.atStatement(file, currentEvent, "Empty event", this.getMetadata().key, this.getConfig().severity));
60889
+ }
60883
60890
  children = [];
60891
+ currentEvent = undefined;
60884
60892
  }
60885
60893
  }
60886
60894
  if (currentEvent !== undefined && children.length === 0) {
@@ -63297,7 +63305,7 @@ https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abapstart-of-selectio
63297
63305
  tags: [_irule_1.RuleTag.SingleFile],
63298
63306
  badExample: `REPORT zfoo.
63299
63307
  WRITE 'hello'.`,
63300
- goodExample: `REPORT zfoo.
63308
+ goodExample: `
63301
63309
  START-OF-SELECTION.
63302
63310
  WRITE 'hello'.`,
63303
63311
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.0",
3
+ "version": "2.113.1",
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.0",
41
+ "@abaplint/core": "^2.113.1",
42
42
  "@types/chai": "^4.3.19",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",