@abaplint/cli 2.107.1 → 2.107.2

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 +72 -2
  2. package/package.json +5 -5
package/build/cli.js CHANGED
@@ -51462,7 +51462,7 @@ class Registry {
51462
51462
  }
51463
51463
  static abaplintVersion() {
51464
51464
  // magic, see build script "version.sh"
51465
- return "2.107.1";
51465
+ return "2.107.2";
51466
51466
  }
51467
51467
  getDDICReferences() {
51468
51468
  return this.ddicReferences;
@@ -53189,7 +53189,8 @@ STATICS BEGIN OF bar.
53189
53189
  INCLUDE STRUCTURE syst.
53190
53190
  STATICS END OF bar.`,
53191
53191
  goodExample: `DATA BEGIN OF foo.
53192
- INCLUDE STRUCTURE dselc.
53192
+ DATA field TYPE i.
53193
+ INCLUDE STRUCTURE dselc.
53193
53194
  DATA END OF foo.`,
53194
53195
  };
53195
53196
  }
@@ -55044,6 +55045,7 @@ class CommentedCode extends _abap_rule_1.ABAPRule {
55044
55045
  extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#delete-code-instead-of-commenting-it
55045
55046
  https://docs.abapopenchecks.org/checks/14/`,
55046
55047
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.SingleFile],
55048
+ badExample: `* WRITE 'hello world'.`,
55047
55049
  };
55048
55050
  }
55049
55051
  getMessage() {
@@ -55355,6 +55357,8 @@ class ContainsTab extends _abap_rule_1.ABAPRule {
55355
55357
  https://docs.abapopenchecks.org/checks/09/
55356
55358
  https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#indent-and-snap-to-tab`,
55357
55359
  tags: [_irule_1.RuleTag.Whitespace, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
55360
+ badExample: `\tWRITE 'hello world'.`,
55361
+ goodExample: ` WRITE 'hello world'.`,
55358
55362
  };
55359
55363
  }
55360
55364
  getMessage() {
@@ -59512,6 +59516,8 @@ class EmptyStatement extends _abap_rule_1.ABAPRule {
59512
59516
  title: "Remove empty statement",
59513
59517
  shortDescription: `Checks for empty statements (an empty statement is a single dot)`,
59514
59518
  tags: [_irule_1.RuleTag.Quickfix, _irule_1.RuleTag.SingleFile],
59519
+ badExample: `WRITE 'hello world'..`,
59520
+ goodExample: `WRITE 'hello world'.`,
59515
59521
  };
59516
59522
  }
59517
59523
  getConfig() {
@@ -61900,6 +61906,24 @@ class Indentation extends _abap_rule_1.ABAPRule {
61900
61906
  title: "Indentation",
61901
61907
  shortDescription: `Checks indentation`,
61902
61908
  tags: [_irule_1.RuleTag.Whitespace, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.SingleFile],
61909
+ badExample: `CLASS lcl DEFINITION.
61910
+ PRIVATE SECTION.
61911
+ METHODS constructor.
61912
+ ENDCLASS.
61913
+
61914
+ CLASS lcl IMPLEMENTATION.
61915
+ METHOD constructor.
61916
+ ENDMETHOD.
61917
+ ENDCLASS.`,
61918
+ goodExample: `CLASS lcl DEFINITION.
61919
+ PRIVATE SECTION.
61920
+ METHODS constructor.
61921
+ ENDCLASS.
61922
+
61923
+ CLASS lcl IMPLEMENTATION.
61924
+ METHOD constructor.
61925
+ ENDMETHOD.
61926
+ ENDCLASS.`,
61903
61927
  };
61904
61928
  }
61905
61929
  getConfig() {
@@ -62713,6 +62737,8 @@ class KeywordCase extends _abap_rule_1.ABAPRule {
62713
62737
  shortDescription: `Checks that keywords have the same case. Non-keywords must be lower case.`,
62714
62738
  extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-your-pretty-printer-team-settings`,
62715
62739
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Quickfix],
62740
+ badExample: `write 'hello world'.`,
62741
+ goodExample: `WRITE 'hello world'.`,
62716
62742
  };
62717
62743
  }
62718
62744
  getConfig() {
@@ -63374,6 +63400,12 @@ class LocalVariableNames extends _abap_rule_1.ABAPRule {
63374
63400
  Allows you to enforce a pattern, such as a prefix, for local variables, constants and field symbols.
63375
63401
  Regexes are case-insensitive.`,
63376
63402
  tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile],
63403
+ badExample: `FORM bar.
63404
+ DATA foo.
63405
+ ENDFORM.`,
63406
+ goodExample: `FORM bar.
63407
+ DATA lv_foo.
63408
+ ENDFORM.`,
63377
63409
  };
63378
63410
  }
63379
63411
  getDescription(expected, actual) {
@@ -64347,6 +64379,15 @@ https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-obscu
64347
64379
 
64348
64380
  Interface method names are ignored`,
64349
64381
  tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
64382
+ badExample: `CLASS lcl DEFINITION.
64383
+ PUBLIC SECTION.
64384
+ METHODS matches.
64385
+ ENDCLASS.
64386
+
64387
+ CLASS lcl IMPLEMENTATION.
64388
+ METHOD matches.
64389
+ ENDMETHOD.
64390
+ ENDCLASS.`,
64350
64391
  };
64351
64392
  }
64352
64393
  getConfig() {
@@ -64536,6 +64577,13 @@ class MixReturning extends _abap_rule_1.ABAPRule {
64536
64577
  // eslint-disable-next-line max-len
64537
64578
  extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-either-returning-or-exporting-or-changing-but-not-a-combination`,
64538
64579
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
64580
+ badExample: `CLASS lcl DEFINITION.
64581
+ PUBLIC SECTION.
64582
+ METHODS
64583
+ foobar
64584
+ EXPORTING foo TYPE i
64585
+ RETURNING VALUE(rv_string) TYPE string.
64586
+ ENDCLASS.`,
64539
64587
  };
64540
64588
  }
64541
64589
  getMessage() {
@@ -67832,6 +67880,10 @@ class PreferReturningToExporting extends _abap_rule_1.ABAPRule {
67832
67880
  extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-returning-to-exporting
67833
67881
  https://docs.abapopenchecks.org/checks/44/`,
67834
67882
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
67883
+ badExample: `CLASS lcl DEFINITION.
67884
+ PUBLIC SECTION.
67885
+ METHODS test EXPORTING ev_foo TYPE i.
67886
+ ENDCLASS.`,
67835
67887
  };
67836
67888
  }
67837
67889
  getConfig() {
@@ -67999,6 +68051,10 @@ class PreferredCompareOperator extends _abap_rule_1.ABAPRule {
67999
68051
  title: "Preferred compare operator",
68000
68052
  shortDescription: `Configure undesired operator variants`,
68001
68053
  tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Quickfix],
68054
+ badExample: `IF foo EQ bar.
68055
+ ENDIF.`,
68056
+ goodExample: `IF foo = bar.
68057
+ ENDIF.`,
68002
68058
  };
68003
68059
  }
68004
68060
  getDescription(operator) {
@@ -68712,6 +68768,8 @@ add ORDER BY PRIMARY KEY if in doubt
68712
68768
 
68713
68769
  If the target is a sorted/hashed table, no issue is reported`,
68714
68770
  tags: [_irule_1.RuleTag.SingleFile],
68771
+ badExample: `SELECT * FROM db INTO TABLE @DATA(tab).`,
68772
+ goodExample: `SELECT * FROM db INTO TABLE @DATA(tab) ORDER BY PRIMARY KEY.`,
68715
68773
  };
68716
68774
  }
68717
68775
  getConfig() {
@@ -70729,6 +70787,8 @@ class TypesNaming extends _abap_rule_1.ABAPRule {
70729
70787
  shortDescription: `Allows you to enforce a pattern for TYPES definitions`,
70730
70788
  extendedInformation: `Does not run for TYPE POOLS`,
70731
70789
  tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.SingleFile],
70790
+ badExample: `TYPES foo TYPE i.`,
70791
+ goodExample: `TYPES ty_foo TYPE i.`,
70732
70792
  };
70733
70793
  }
70734
70794
  getConfig() {
@@ -72704,6 +72764,16 @@ class UseClassBasedExceptions extends _abap_rule_1.ABAPRule {
72704
72764
  shortDescription: `Use class based exceptions, checks interface and class definitions`,
72705
72765
  extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-class-based-exceptions`,
72706
72766
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
72767
+ badExample: `INTERFACE lif.
72768
+ METHODS load_data
72769
+ EXCEPTIONS
72770
+ invalid_parameter.
72771
+ ENDINTERFACE.`,
72772
+ goodExample: `INTERFACE lif.
72773
+ METHODS load_data
72774
+ RAISING
72775
+ cx_something.
72776
+ ENDINTERFACE.`,
72707
72777
  };
72708
72778
  }
72709
72779
  getMessage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.107.1",
3
+ "version": "2.107.2",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,19 +38,19 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.107.1",
42
- "@types/chai": "^4.3.14",
41
+ "@abaplint/core": "^2.107.2",
42
+ "@types/chai": "^4.3.15",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.12.7",
46
+ "@types/node": "^20.12.8",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
50
50
  "eslint": "^8.57.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.8.2",
53
+ "memfs": "^4.9.2",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^10.4.0",
56
56
  "progress": "^2.0.3",