@abaplint/cli 2.105.2 → 2.105.4

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 +79 -30
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -11662,7 +11662,8 @@ class DeleteMemory {
11662
11662
  getMatcher() {
11663
11663
  const memory = (0, combi_1.seq)("MEMORY ID", expressions_1.Source);
11664
11664
  const id = (0, combi_1.seq)("ID", expressions_1.Source);
11665
- const shared = (0, combi_1.seq)("SHARED MEMORY", expressions_1.Field, "(", expressions_1.Field, ")", id);
11665
+ const client = (0, combi_1.seq)("CLIENT", expressions_1.Source);
11666
+ const shared = (0, combi_1.seq)("SHARED MEMORY", expressions_1.Field, "(", expressions_1.Field, ")", (0, combi_1.optPrio)(client), id);
11666
11667
  const ret = (0, combi_1.seq)("DELETE FROM", (0, combi_1.alt)(memory, shared));
11667
11668
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
11668
11669
  }
@@ -22548,6 +22549,9 @@ class TypeUtils {
22548
22549
  }
22549
22550
  return true;
22550
22551
  }
22552
+ else if (target instanceof basic_1.CLikeType) {
22553
+ return this.isCharLikeStrict(source);
22554
+ }
22551
22555
  else if (target instanceof basic_1.VoidType || target instanceof basic_1.AnyType) {
22552
22556
  return true;
22553
22557
  }
@@ -22582,6 +22586,8 @@ class TypeUtils {
22582
22586
  else if (source instanceof basic_1.ObjectReferenceType) {
22583
22587
  if (target instanceof basic_1.XSequenceType
22584
22588
  || target instanceof basic_1.IntegerType
22589
+ || target instanceof basic_1.StructureType
22590
+ || target instanceof basic_1.TableType
22585
22591
  || target instanceof basic_1.XStringType) {
22586
22592
  return false;
22587
22593
  }
@@ -46695,6 +46701,29 @@ __exportStar(__webpack_require__(/*! ./message_class */ "./node_modules/@abaplin
46695
46701
  __exportStar(__webpack_require__(/*! ./messaging_channel */ "./node_modules/@abaplint/core/build/src/objects/messaging_channel.js"), exports);
46696
46702
  __exportStar(__webpack_require__(/*! ./mime_object */ "./node_modules/@abaplint/core/build/src/objects/mime_object.js"), exports);
46697
46703
  __exportStar(__webpack_require__(/*! ./namespace */ "./node_modules/@abaplint/core/build/src/objects/namespace.js"), exports);
46704
+ __exportStar(__webpack_require__(/*! ./neptune_api */ "./node_modules/@abaplint/core/build/src/objects/neptune_api.js"), exports);
46705
+ __exportStar(__webpack_require__(/*! ./neptune_app */ "./node_modules/@abaplint/core/build/src/objects/neptune_app.js"), exports);
46706
+ __exportStar(__webpack_require__(/*! ./neptune_custom_color */ "./node_modules/@abaplint/core/build/src/objects/neptune_custom_color.js"), exports);
46707
+ __exportStar(__webpack_require__(/*! ./neptune_custom_js_helper */ "./node_modules/@abaplint/core/build/src/objects/neptune_custom_js_helper.js"), exports);
46708
+ __exportStar(__webpack_require__(/*! ./neptune_documentation */ "./node_modules/@abaplint/core/build/src/objects/neptune_documentation.js"), exports);
46709
+ __exportStar(__webpack_require__(/*! ./neptune_enhancement */ "./node_modules/@abaplint/core/build/src/objects/neptune_enhancement.js"), exports);
46710
+ __exportStar(__webpack_require__(/*! ./neptune_launchpad_layout */ "./node_modules/@abaplint/core/build/src/objects/neptune_launchpad_layout.js"), exports);
46711
+ __exportStar(__webpack_require__(/*! ./neptune_launchpad */ "./node_modules/@abaplint/core/build/src/objects/neptune_launchpad.js"), exports);
46712
+ __exportStar(__webpack_require__(/*! ./neptune_login_page */ "./node_modules/@abaplint/core/build/src/objects/neptune_login_page.js"), exports);
46713
+ __exportStar(__webpack_require__(/*! ./neptune_media_library */ "./node_modules/@abaplint/core/build/src/objects/neptune_media_library.js"), exports);
46714
+ __exportStar(__webpack_require__(/*! ./neptune_media_pack */ "./node_modules/@abaplint/core/build/src/objects/neptune_media_pack.js"), exports);
46715
+ __exportStar(__webpack_require__(/*! ./neptune_metadata */ "./node_modules/@abaplint/core/build/src/objects/neptune_metadata.js"), exports);
46716
+ __exportStar(__webpack_require__(/*! ./neptune_mobile_client */ "./node_modules/@abaplint/core/build/src/objects/neptune_mobile_client.js"), exports);
46717
+ __exportStar(__webpack_require__(/*! ./neptune_odata */ "./node_modules/@abaplint/core/build/src/objects/neptune_odata.js"), exports);
46718
+ __exportStar(__webpack_require__(/*! ./neptune_policy */ "./node_modules/@abaplint/core/build/src/objects/neptune_policy.js"), exports);
46719
+ __exportStar(__webpack_require__(/*! ./neptune_rfc_mapping */ "./node_modules/@abaplint/core/build/src/objects/neptune_rfc_mapping.js"), exports);
46720
+ __exportStar(__webpack_require__(/*! ./neptune_rich_text_template */ "./node_modules/@abaplint/core/build/src/objects/neptune_rich_text_template.js"), exports);
46721
+ __exportStar(__webpack_require__(/*! ./neptune_splash_screen */ "./node_modules/@abaplint/core/build/src/objects/neptune_splash_screen.js"), exports);
46722
+ __exportStar(__webpack_require__(/*! ./neptune_sticky_banner */ "./node_modules/@abaplint/core/build/src/objects/neptune_sticky_banner.js"), exports);
46723
+ __exportStar(__webpack_require__(/*! ./neptune_tile_group */ "./node_modules/@abaplint/core/build/src/objects/neptune_tile_group.js"), exports);
46724
+ __exportStar(__webpack_require__(/*! ./neptune_tile_layout */ "./node_modules/@abaplint/core/build/src/objects/neptune_tile_layout.js"), exports);
46725
+ __exportStar(__webpack_require__(/*! ./neptune_tile */ "./node_modules/@abaplint/core/build/src/objects/neptune_tile.js"), exports);
46726
+ __exportStar(__webpack_require__(/*! ./neptune_url_alias */ "./node_modules/@abaplint/core/build/src/objects/neptune_url_alias.js"), exports);
46698
46727
  __exportStar(__webpack_require__(/*! ./number_range */ "./node_modules/@abaplint/core/build/src/objects/number_range.js"), exports);
46699
46728
  __exportStar(__webpack_require__(/*! ./oauth2_profile */ "./node_modules/@abaplint/core/build/src/objects/oauth2_profile.js"), exports);
46700
46729
  __exportStar(__webpack_require__(/*! ./object_characteristic */ "./node_modules/@abaplint/core/build/src/objects/object_characteristic.js"), exports);
@@ -46719,6 +46748,7 @@ __exportStar(__webpack_require__(/*! ./service_definition */ "./node_modules/@ab
46719
46748
  __exportStar(__webpack_require__(/*! ./shared_memory */ "./node_modules/@abaplint/core/build/src/objects/shared_memory.js"), exports);
46720
46749
  __exportStar(__webpack_require__(/*! ./smart_form */ "./node_modules/@abaplint/core/build/src/objects/smart_form.js"), exports);
46721
46750
  __exportStar(__webpack_require__(/*! ./smart_style */ "./node_modules/@abaplint/core/build/src/objects/smart_style.js"), exports);
46751
+ __exportStar(__webpack_require__(/*! ./standard_task */ "./node_modules/@abaplint/core/build/src/objects/standard_task.js"), exports);
46722
46752
  __exportStar(__webpack_require__(/*! ./switch_assignment_hierarchy */ "./node_modules/@abaplint/core/build/src/objects/switch_assignment_hierarchy.js"), exports);
46723
46753
  __exportStar(__webpack_require__(/*! ./switch_assignments */ "./node_modules/@abaplint/core/build/src/objects/switch_assignments.js"), exports);
46724
46754
  __exportStar(__webpack_require__(/*! ./table_type */ "./node_modules/@abaplint/core/build/src/objects/table_type.js"), exports);
@@ -46736,29 +46766,6 @@ __exportStar(__webpack_require__(/*! ./web_dynpro_application */ "./node_modules
46736
46766
  __exportStar(__webpack_require__(/*! ./web_dynpro_component_configuration */ "./node_modules/@abaplint/core/build/src/objects/web_dynpro_component_configuration.js"), exports);
46737
46767
  __exportStar(__webpack_require__(/*! ./web_dynpro_component */ "./node_modules/@abaplint/core/build/src/objects/web_dynpro_component.js"), exports);
46738
46768
  __exportStar(__webpack_require__(/*! ./web_mime */ "./node_modules/@abaplint/core/build/src/objects/web_mime.js"), exports);
46739
- __exportStar(__webpack_require__(/*! ./neptune_metadata */ "./node_modules/@abaplint/core/build/src/objects/neptune_metadata.js"), exports);
46740
- __exportStar(__webpack_require__(/*! ./neptune_app */ "./node_modules/@abaplint/core/build/src/objects/neptune_app.js"), exports);
46741
- __exportStar(__webpack_require__(/*! ./neptune_api */ "./node_modules/@abaplint/core/build/src/objects/neptune_api.js"), exports);
46742
- __exportStar(__webpack_require__(/*! ./neptune_launchpad */ "./node_modules/@abaplint/core/build/src/objects/neptune_launchpad.js"), exports);
46743
- __exportStar(__webpack_require__(/*! ./neptune_tile_group */ "./node_modules/@abaplint/core/build/src/objects/neptune_tile_group.js"), exports);
46744
- __exportStar(__webpack_require__(/*! ./neptune_tile */ "./node_modules/@abaplint/core/build/src/objects/neptune_tile.js"), exports);
46745
- __exportStar(__webpack_require__(/*! ./neptune_policy */ "./node_modules/@abaplint/core/build/src/objects/neptune_policy.js"), exports);
46746
- __exportStar(__webpack_require__(/*! ./neptune_launchpad_layout */ "./node_modules/@abaplint/core/build/src/objects/neptune_launchpad_layout.js"), exports);
46747
- __exportStar(__webpack_require__(/*! ./neptune_tile_layout */ "./node_modules/@abaplint/core/build/src/objects/neptune_tile_layout.js"), exports);
46748
- __exportStar(__webpack_require__(/*! ./neptune_enhancement */ "./node_modules/@abaplint/core/build/src/objects/neptune_enhancement.js"), exports);
46749
- __exportStar(__webpack_require__(/*! ./neptune_login_page */ "./node_modules/@abaplint/core/build/src/objects/neptune_login_page.js"), exports);
46750
- __exportStar(__webpack_require__(/*! ./neptune_sticky_banner */ "./node_modules/@abaplint/core/build/src/objects/neptune_sticky_banner.js"), exports);
46751
- __exportStar(__webpack_require__(/*! ./neptune_splash_screen */ "./node_modules/@abaplint/core/build/src/objects/neptune_splash_screen.js"), exports);
46752
- __exportStar(__webpack_require__(/*! ./neptune_custom_color */ "./node_modules/@abaplint/core/build/src/objects/neptune_custom_color.js"), exports);
46753
- __exportStar(__webpack_require__(/*! ./neptune_rich_text_template */ "./node_modules/@abaplint/core/build/src/objects/neptune_rich_text_template.js"), exports);
46754
- __exportStar(__webpack_require__(/*! ./neptune_custom_js_helper */ "./node_modules/@abaplint/core/build/src/objects/neptune_custom_js_helper.js"), exports);
46755
- __exportStar(__webpack_require__(/*! ./neptune_documentation */ "./node_modules/@abaplint/core/build/src/objects/neptune_documentation.js"), exports);
46756
- __exportStar(__webpack_require__(/*! ./neptune_rfc_mapping */ "./node_modules/@abaplint/core/build/src/objects/neptune_rfc_mapping.js"), exports);
46757
- __exportStar(__webpack_require__(/*! ./neptune_media_library */ "./node_modules/@abaplint/core/build/src/objects/neptune_media_library.js"), exports);
46758
- __exportStar(__webpack_require__(/*! ./neptune_media_pack */ "./node_modules/@abaplint/core/build/src/objects/neptune_media_pack.js"), exports);
46759
- __exportStar(__webpack_require__(/*! ./neptune_url_alias */ "./node_modules/@abaplint/core/build/src/objects/neptune_url_alias.js"), exports);
46760
- __exportStar(__webpack_require__(/*! ./neptune_odata */ "./node_modules/@abaplint/core/build/src/objects/neptune_odata.js"), exports);
46761
- __exportStar(__webpack_require__(/*! ./neptune_mobile_client */ "./node_modules/@abaplint/core/build/src/objects/neptune_mobile_client.js"), exports);
46762
46769
  //# sourceMappingURL=index.js.map
46763
46770
 
46764
46771
  /***/ }),
@@ -49463,6 +49470,37 @@ exports.SmartStyle = SmartStyle;
49463
49470
 
49464
49471
  /***/ }),
49465
49472
 
49473
+ /***/ "./node_modules/@abaplint/core/build/src/objects/standard_task.js":
49474
+ /*!************************************************************************!*\
49475
+ !*** ./node_modules/@abaplint/core/build/src/objects/standard_task.js ***!
49476
+ \************************************************************************/
49477
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
49478
+
49479
+ "use strict";
49480
+
49481
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
49482
+ exports.StandardTask = void 0;
49483
+ const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
49484
+ class StandardTask extends _abstract_object_1.AbstractObject {
49485
+ getType() {
49486
+ return "PDTS";
49487
+ }
49488
+ getAllowedNaming() {
49489
+ return {
49490
+ maxLength: 30,
49491
+ allowNamespace: true,
49492
+ };
49493
+ }
49494
+ getDescription() {
49495
+ // todo
49496
+ return undefined;
49497
+ }
49498
+ }
49499
+ exports.StandardTask = StandardTask;
49500
+ //# sourceMappingURL=standard_task.js.map
49501
+
49502
+ /***/ }),
49503
+
49466
49504
  /***/ "./node_modules/@abaplint/core/build/src/objects/switch_assignment_hierarchy.js":
49467
49505
  /*!**************************************************************************************!*\
49468
49506
  !*** ./node_modules/@abaplint/core/build/src/objects/switch_assignment_hierarchy.js ***!
@@ -51042,7 +51080,7 @@ class Registry {
51042
51080
  }
51043
51081
  static abaplintVersion() {
51044
51082
  // magic, see build script "version.sh"
51045
- return "2.105.2";
51083
+ return "2.105.4";
51046
51084
  }
51047
51085
  getDDICReferences() {
51048
51086
  return this.ddicReferences;
@@ -52338,7 +52376,9 @@ STATICS: use CLASS-DATA instead
52338
52376
 
52339
52377
  DESCRIBE TABLE LINES: use lines() instead (quickfix exists)
52340
52378
 
52341
- TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-test-seams-as-temporary-workaround`,
52379
+ TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-test-seams-as-temporary-workaround
52380
+
52381
+ BREAK points`,
52342
52382
  tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
52343
52383
  };
52344
52384
  }
@@ -64593,17 +64633,17 @@ class NoPrefixesConf extends _basic_rule_config_1.BasicRuleConfig {
64593
64633
  constructor() {
64594
64634
  super(...arguments);
64595
64635
  /** DATA, CLASS-DATA, DATA BEGIN OF, CLASS-DATA BEGIN OF, FINAL(), DATA(), case insensitive regex */
64596
- this.data = "^[lg]._";
64636
+ this.data = "^[lg].?_";
64597
64637
  /** STATICS, STATICS BEGIN OF, case insensitive regex */
64598
64638
  this.statics = "";
64599
64639
  /** FIELD-SYMBOLS and inline FIELD-SYMBOLS(), case insensitive regex */
64600
- this.fieldSymbols = "^<l._";
64640
+ this.fieldSymbols = "^<l.?_";
64601
64641
  /** CONSTANTS, CONSTANTS BEGIN OF, case insensitive regex */
64602
64642
  this.constants = "^[lg]c_";
64603
64643
  /** TYPES, ENUM, MESH, case insensitive regex */
64604
64644
  this.types = "^ty_";
64605
64645
  /** importing, exporting, returning and changing parameters, case insensitive regex */
64606
- this.methodParameters = "^[ierc]._";
64646
+ this.methodParameters = "^[ierc].?_";
64607
64647
  // todo, public localClass: string = "";
64608
64648
  // todo, public localInterface: string = "";
64609
64649
  // todo, public functionModuleParameters: string = "";
@@ -64625,6 +64665,9 @@ class NoPrefixes extends _abap_rule_1.ABAPRule {
64625
64665
  title: "No Prefixes",
64626
64666
  shortDescription: `Dont use hungarian notation`,
64627
64667
  extendedInformation: `
64668
+ Note: not prefixing TYPES will require changing the errorNamespace in the abaplint configuration,
64669
+ allowing all types to become voided, abaplint will then provide less precise syntax errors.
64670
+
64628
64671
  https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-encodings-esp-hungarian-notation-and-prefixes
64629
64672
 
64630
64673
  https://github.com/SAP/styleguides/blob/main/clean-abap/sub-sections/AvoidEncodings.md`,
@@ -67430,6 +67473,7 @@ const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@ab
67430
67473
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
67431
67474
  const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
67432
67475
  const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
67476
+ const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
67433
67477
  class ReduceProceduralCodeConf extends _basic_rule_config_1.BasicRuleConfig {
67434
67478
  constructor() {
67435
67479
  super(...arguments);
@@ -67449,7 +67493,9 @@ class ReduceProceduralCode extends _abap_rule_1.ABAPRule {
67449
67493
  shortDescription: `Checks FORM and FUNCTION-MODULE have few statements`,
67450
67494
  extendedInformation: `Delegate logic to a class method instead of using FORM or FUNCTION-MODULE.
67451
67495
 
67452
- https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming`,
67496
+ https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming
67497
+
67498
+ Comments are not counted as statements.`,
67453
67499
  tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
67454
67500
  badExample: `FORM foo.
67455
67501
  DATA lv_bar TYPE i.
@@ -67495,6 +67541,9 @@ ENDFORM.`,
67495
67541
  }
67496
67542
  doCount = undefined;
67497
67543
  }
67544
+ else if (statement.get() instanceof _statement_1.Comment) {
67545
+ continue;
67546
+ }
67498
67547
  else if (doCount !== undefined) {
67499
67548
  count = count + 1;
67500
67549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.2",
3
+ "version": "2.105.4",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,16 +38,16 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.105.2",
41
+ "@abaplint/core": "^2.105.4",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.10.4",
46
+ "@types/node": "^20.10.5",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.3.10",
49
49
  "chalk": "^5.3.0",
50
- "eslint": "^8.55.0",
50
+ "eslint": "^8.56.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.6.0",