@abaplint/cli 2.105.2 → 2.105.3
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.
- package/build/cli.js +20 -6
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -22548,6 +22548,9 @@ class TypeUtils {
|
|
|
22548
22548
|
}
|
|
22549
22549
|
return true;
|
|
22550
22550
|
}
|
|
22551
|
+
else if (target instanceof basic_1.CLikeType) {
|
|
22552
|
+
return this.isCharLikeStrict(source);
|
|
22553
|
+
}
|
|
22551
22554
|
else if (target instanceof basic_1.VoidType || target instanceof basic_1.AnyType) {
|
|
22552
22555
|
return true;
|
|
22553
22556
|
}
|
|
@@ -51042,7 +51045,7 @@ class Registry {
|
|
|
51042
51045
|
}
|
|
51043
51046
|
static abaplintVersion() {
|
|
51044
51047
|
// magic, see build script "version.sh"
|
|
51045
|
-
return "2.105.
|
|
51048
|
+
return "2.105.3";
|
|
51046
51049
|
}
|
|
51047
51050
|
getDDICReferences() {
|
|
51048
51051
|
return this.ddicReferences;
|
|
@@ -52338,7 +52341,9 @@ STATICS: use CLASS-DATA instead
|
|
|
52338
52341
|
|
|
52339
52342
|
DESCRIBE TABLE LINES: use lines() instead (quickfix exists)
|
|
52340
52343
|
|
|
52341
|
-
TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-test-seams-as-temporary-workaround
|
|
52344
|
+
TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-test-seams-as-temporary-workaround
|
|
52345
|
+
|
|
52346
|
+
BREAK points`,
|
|
52342
52347
|
tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
|
|
52343
52348
|
};
|
|
52344
52349
|
}
|
|
@@ -64593,17 +64598,17 @@ class NoPrefixesConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
|
64593
64598
|
constructor() {
|
|
64594
64599
|
super(...arguments);
|
|
64595
64600
|
/** DATA, CLASS-DATA, DATA BEGIN OF, CLASS-DATA BEGIN OF, FINAL(), DATA(), case insensitive regex */
|
|
64596
|
-
this.data = "^[lg]
|
|
64601
|
+
this.data = "^[lg].?_";
|
|
64597
64602
|
/** STATICS, STATICS BEGIN OF, case insensitive regex */
|
|
64598
64603
|
this.statics = "";
|
|
64599
64604
|
/** FIELD-SYMBOLS and inline FIELD-SYMBOLS(), case insensitive regex */
|
|
64600
|
-
this.fieldSymbols = "^<l
|
|
64605
|
+
this.fieldSymbols = "^<l.?_";
|
|
64601
64606
|
/** CONSTANTS, CONSTANTS BEGIN OF, case insensitive regex */
|
|
64602
64607
|
this.constants = "^[lg]c_";
|
|
64603
64608
|
/** TYPES, ENUM, MESH, case insensitive regex */
|
|
64604
64609
|
this.types = "^ty_";
|
|
64605
64610
|
/** importing, exporting, returning and changing parameters, case insensitive regex */
|
|
64606
|
-
this.methodParameters = "^[ierc]
|
|
64611
|
+
this.methodParameters = "^[ierc].?_";
|
|
64607
64612
|
// todo, public localClass: string = "";
|
|
64608
64613
|
// todo, public localInterface: string = "";
|
|
64609
64614
|
// todo, public functionModuleParameters: string = "";
|
|
@@ -64625,6 +64630,9 @@ class NoPrefixes extends _abap_rule_1.ABAPRule {
|
|
|
64625
64630
|
title: "No Prefixes",
|
|
64626
64631
|
shortDescription: `Dont use hungarian notation`,
|
|
64627
64632
|
extendedInformation: `
|
|
64633
|
+
Note: not prefixing TYPES will require changing the errorNamespace in the abaplint configuration,
|
|
64634
|
+
allowing all types to become voided, abaplint will then provide less precise syntax errors.
|
|
64635
|
+
|
|
64628
64636
|
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#avoid-encodings-esp-hungarian-notation-and-prefixes
|
|
64629
64637
|
|
|
64630
64638
|
https://github.com/SAP/styleguides/blob/main/clean-abap/sub-sections/AvoidEncodings.md`,
|
|
@@ -67430,6 +67438,7 @@ const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@ab
|
|
|
67430
67438
|
const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
|
|
67431
67439
|
const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
67432
67440
|
const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
67441
|
+
const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
|
|
67433
67442
|
class ReduceProceduralCodeConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
67434
67443
|
constructor() {
|
|
67435
67444
|
super(...arguments);
|
|
@@ -67449,7 +67458,9 @@ class ReduceProceduralCode extends _abap_rule_1.ABAPRule {
|
|
|
67449
67458
|
shortDescription: `Checks FORM and FUNCTION-MODULE have few statements`,
|
|
67450
67459
|
extendedInformation: `Delegate logic to a class method instead of using FORM or FUNCTION-MODULE.
|
|
67451
67460
|
|
|
67452
|
-
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming
|
|
67461
|
+
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming
|
|
67462
|
+
|
|
67463
|
+
Comments are not counted as statements.`,
|
|
67453
67464
|
tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
|
|
67454
67465
|
badExample: `FORM foo.
|
|
67455
67466
|
DATA lv_bar TYPE i.
|
|
@@ -67495,6 +67506,9 @@ ENDFORM.`,
|
|
|
67495
67506
|
}
|
|
67496
67507
|
doCount = undefined;
|
|
67497
67508
|
}
|
|
67509
|
+
else if (statement.get() instanceof _statement_1.Comment) {
|
|
67510
|
+
continue;
|
|
67511
|
+
}
|
|
67498
67512
|
else if (doCount !== undefined) {
|
|
67499
67513
|
count = count + 1;
|
|
67500
67514
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.105.
|
|
3
|
+
"version": "2.105.3",
|
|
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.105.
|
|
41
|
+
"@abaplint/core": "^2.105.3",
|
|
42
42
|
"@types/chai": "^4.3.11",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|