@abaplint/cli 2.114.10 → 2.115.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.
- package/build/cli.js +150 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -31175,6 +31175,11 @@ class Concatenate {
|
|
|
31175
31175
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
31176
31176
|
return;
|
|
31177
31177
|
}
|
|
31178
|
+
if (linesMode === true && byteMode === true && type instanceof basic_1.TableType && type.getRowType() instanceof basic_1.StructureType) {
|
|
31179
|
+
const message = "Source row type must not be a structure in BYTE mode";
|
|
31180
|
+
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
31181
|
+
return;
|
|
31182
|
+
}
|
|
31178
31183
|
}
|
|
31179
31184
|
}
|
|
31180
31185
|
for (const s of node.findDirectExpressions(Expressions.SimpleSource3)) {
|
|
@@ -53460,6 +53465,10 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
53460
53465
|
&& this.parsedData.dataClass === "USER3") {
|
|
53461
53466
|
return new Types.UnknownType("Data class = USER3 not allowed in cloud");
|
|
53462
53467
|
}
|
|
53468
|
+
if (this.getTableCategory() === TableCategory.Transparent
|
|
53469
|
+
&& this.listKeys(reg).length === 0) {
|
|
53470
|
+
return new Types.UnknownType("Table " + this.getName() + " has no key fields");
|
|
53471
|
+
}
|
|
53463
53472
|
if (this.parsedType) {
|
|
53464
53473
|
return this.parsedType;
|
|
53465
53474
|
}
|
|
@@ -55065,7 +55074,7 @@ class Registry {
|
|
|
55065
55074
|
}
|
|
55066
55075
|
static abaplintVersion() {
|
|
55067
55076
|
// magic, see build script "version.sh"
|
|
55068
|
-
return "2.
|
|
55077
|
+
return "2.115.1";
|
|
55069
55078
|
}
|
|
55070
55079
|
getDDICReferences() {
|
|
55071
55080
|
return this.ddicReferences;
|
|
@@ -65509,6 +65518,69 @@ exports.IdenticalFormNames = IdenticalFormNames;
|
|
|
65509
65518
|
|
|
65510
65519
|
/***/ }),
|
|
65511
65520
|
|
|
65521
|
+
/***/ "./node_modules/@abaplint/core/build/src/rules/identical_move.js":
|
|
65522
|
+
/*!***********************************************************************!*\
|
|
65523
|
+
!*** ./node_modules/@abaplint/core/build/src/rules/identical_move.js ***!
|
|
65524
|
+
\***********************************************************************/
|
|
65525
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
65526
|
+
|
|
65527
|
+
"use strict";
|
|
65528
|
+
|
|
65529
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
65530
|
+
exports.IdenticalMove = exports.IdenticalMoveConf = void 0;
|
|
65531
|
+
const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
65532
|
+
const Expressions = __webpack_require__(/*! ../abap/2_statements/expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
|
|
65533
|
+
const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
65534
|
+
const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@abaplint/core/build/src/rules/_abap_rule.js");
|
|
65535
|
+
const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./node_modules/@abaplint/core/build/src/rules/_basic_rule_config.js");
|
|
65536
|
+
const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
|
|
65537
|
+
class IdenticalMoveConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
65538
|
+
}
|
|
65539
|
+
exports.IdenticalMoveConf = IdenticalMoveConf;
|
|
65540
|
+
class IdenticalMove extends _abap_rule_1.ABAPRule {
|
|
65541
|
+
constructor() {
|
|
65542
|
+
super(...arguments);
|
|
65543
|
+
this.conf = new IdenticalMoveConf();
|
|
65544
|
+
}
|
|
65545
|
+
getMetadata() {
|
|
65546
|
+
return {
|
|
65547
|
+
key: "identical_move",
|
|
65548
|
+
title: "Identical move",
|
|
65549
|
+
shortDescription: `Moving the same value from left to right or right to left is redundant.`,
|
|
65550
|
+
tags: [_irule_1.RuleTag.SingleFile],
|
|
65551
|
+
badExample: `DATA lv_value TYPE i.
|
|
65552
|
+
lv_value = lv_value.`,
|
|
65553
|
+
goodExample: `DATA lv_value TYPE i.
|
|
65554
|
+
lv_value = 5.`,
|
|
65555
|
+
};
|
|
65556
|
+
}
|
|
65557
|
+
getConfig() {
|
|
65558
|
+
return this.conf;
|
|
65559
|
+
}
|
|
65560
|
+
setConfig(conf) {
|
|
65561
|
+
this.conf = conf;
|
|
65562
|
+
}
|
|
65563
|
+
runParsed(file, _obj) {
|
|
65564
|
+
var _a, _b;
|
|
65565
|
+
const issues = [];
|
|
65566
|
+
for (const statement of file.getStatements()) {
|
|
65567
|
+
const statementType = statement.get();
|
|
65568
|
+
if (statementType instanceof Statements.Move) {
|
|
65569
|
+
const source = (_a = statement.findDirectExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
|
|
65570
|
+
const target = (_b = statement.findDirectExpression(Expressions.Target)) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
|
|
65571
|
+
if (source === target && source !== undefined) {
|
|
65572
|
+
issues.push(issue_1.Issue.atStatement(file, statement, "Comment between methods in global class implementation", this.getMetadata().key, this.conf.severity));
|
|
65573
|
+
}
|
|
65574
|
+
}
|
|
65575
|
+
}
|
|
65576
|
+
return issues;
|
|
65577
|
+
}
|
|
65578
|
+
}
|
|
65579
|
+
exports.IdenticalMove = IdenticalMove;
|
|
65580
|
+
//# sourceMappingURL=identical_move.js.map
|
|
65581
|
+
|
|
65582
|
+
/***/ }),
|
|
65583
|
+
|
|
65512
65584
|
/***/ "./node_modules/@abaplint/core/build/src/rules/if_in_if.js":
|
|
65513
65585
|
/*!*****************************************************************!*\
|
|
65514
65586
|
!*** ./node_modules/@abaplint/core/build/src/rules/if_in_if.js ***!
|
|
@@ -66442,6 +66514,7 @@ __exportStar(__webpack_require__(/*! ./intf_referencing_clas */ "./node_modules/
|
|
|
66442
66514
|
__exportStar(__webpack_require__(/*! ./invalid_table_index */ "./node_modules/@abaplint/core/build/src/rules/invalid_table_index.js"), exports);
|
|
66443
66515
|
__exportStar(__webpack_require__(/*! ./keep_single_parameter_on_one_line */ "./node_modules/@abaplint/core/build/src/rules/keep_single_parameter_on_one_line.js"), exports);
|
|
66444
66516
|
__exportStar(__webpack_require__(/*! ./keyword_case */ "./node_modules/@abaplint/core/build/src/rules/keyword_case.js"), exports);
|
|
66517
|
+
__exportStar(__webpack_require__(/*! ./identical_move */ "./node_modules/@abaplint/core/build/src/rules/identical_move.js"), exports);
|
|
66445
66518
|
__exportStar(__webpack_require__(/*! ./line_break_multiple_parameters */ "./node_modules/@abaplint/core/build/src/rules/line_break_multiple_parameters.js"), exports);
|
|
66446
66519
|
__exportStar(__webpack_require__(/*! ./line_break_style */ "./node_modules/@abaplint/core/build/src/rules/line_break_style.js"), exports);
|
|
66447
66520
|
__exportStar(__webpack_require__(/*! ./line_length */ "./node_modules/@abaplint/core/build/src/rules/line_length.js"), exports);
|
|
@@ -66467,6 +66540,7 @@ __exportStar(__webpack_require__(/*! ./nesting */ "./node_modules/@abaplint/core
|
|
|
66467
66540
|
__exportStar(__webpack_require__(/*! ./newline_between_methods */ "./node_modules/@abaplint/core/build/src/rules/newline_between_methods.js"), exports);
|
|
66468
66541
|
__exportStar(__webpack_require__(/*! ./no_aliases */ "./node_modules/@abaplint/core/build/src/rules/no_aliases.js"), exports);
|
|
66469
66542
|
__exportStar(__webpack_require__(/*! ./no_chained_assignment */ "./node_modules/@abaplint/core/build/src/rules/no_chained_assignment.js"), exports);
|
|
66543
|
+
__exportStar(__webpack_require__(/*! ./no_comments_between_methods */ "./node_modules/@abaplint/core/build/src/rules/no_comments_between_methods.js"), exports);
|
|
66470
66544
|
__exportStar(__webpack_require__(/*! ./no_external_form_calls */ "./node_modules/@abaplint/core/build/src/rules/no_external_form_calls.js"), exports);
|
|
66471
66545
|
__exportStar(__webpack_require__(/*! ./no_inline_in_optional_branches */ "./node_modules/@abaplint/core/build/src/rules/no_inline_in_optional_branches.js"), exports);
|
|
66472
66546
|
__exportStar(__webpack_require__(/*! ./no_prefixes */ "./node_modules/@abaplint/core/build/src/rules/no_prefixes.js"), exports);
|
|
@@ -69796,6 +69870,81 @@ exports.NoChainedAssignment = NoChainedAssignment;
|
|
|
69796
69870
|
|
|
69797
69871
|
/***/ }),
|
|
69798
69872
|
|
|
69873
|
+
/***/ "./node_modules/@abaplint/core/build/src/rules/no_comments_between_methods.js":
|
|
69874
|
+
/*!************************************************************************************!*\
|
|
69875
|
+
!*** ./node_modules/@abaplint/core/build/src/rules/no_comments_between_methods.js ***!
|
|
69876
|
+
\************************************************************************************/
|
|
69877
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
69878
|
+
|
|
69879
|
+
"use strict";
|
|
69880
|
+
|
|
69881
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
69882
|
+
exports.NoCommentsBetweenMethods = exports.NoCommentsBetweenMethodsConf = void 0;
|
|
69883
|
+
const Statements = __webpack_require__(/*! ../abap/2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
69884
|
+
const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
69885
|
+
const _abap_rule_1 = __webpack_require__(/*! ./_abap_rule */ "./node_modules/@abaplint/core/build/src/rules/_abap_rule.js");
|
|
69886
|
+
const _basic_rule_config_1 = __webpack_require__(/*! ./_basic_rule_config */ "./node_modules/@abaplint/core/build/src/rules/_basic_rule_config.js");
|
|
69887
|
+
const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
|
|
69888
|
+
const objects_1 = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
|
|
69889
|
+
const _statement_1 = __webpack_require__(/*! ../abap/2_statements/statements/_statement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/_statement.js");
|
|
69890
|
+
class NoCommentsBetweenMethodsConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
69891
|
+
}
|
|
69892
|
+
exports.NoCommentsBetweenMethodsConf = NoCommentsBetweenMethodsConf;
|
|
69893
|
+
class NoCommentsBetweenMethods extends _abap_rule_1.ABAPRule {
|
|
69894
|
+
constructor() {
|
|
69895
|
+
super(...arguments);
|
|
69896
|
+
this.conf = new NoCommentsBetweenMethodsConf();
|
|
69897
|
+
}
|
|
69898
|
+
getMetadata() {
|
|
69899
|
+
return {
|
|
69900
|
+
key: "no_comments_between_methods",
|
|
69901
|
+
title: "No comments between methods in global classes",
|
|
69902
|
+
shortDescription: `Its not possible to have comments between methods in global classes.`,
|
|
69903
|
+
tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Syntax],
|
|
69904
|
+
};
|
|
69905
|
+
}
|
|
69906
|
+
getConfig() {
|
|
69907
|
+
return this.conf;
|
|
69908
|
+
}
|
|
69909
|
+
setConfig(conf) {
|
|
69910
|
+
this.conf = conf;
|
|
69911
|
+
}
|
|
69912
|
+
runParsed(file, obj) {
|
|
69913
|
+
const issues = [];
|
|
69914
|
+
if (!(obj instanceof objects_1.Class)) {
|
|
69915
|
+
return [];
|
|
69916
|
+
}
|
|
69917
|
+
else if (file !== obj.getMainABAPFile()) {
|
|
69918
|
+
return [];
|
|
69919
|
+
}
|
|
69920
|
+
let inMethod = false;
|
|
69921
|
+
let inClassImpl = false;
|
|
69922
|
+
for (const statement of file.getStatements()) {
|
|
69923
|
+
const statementType = statement.get();
|
|
69924
|
+
if (statementType instanceof Statements.ClassImplementation) {
|
|
69925
|
+
inClassImpl = true;
|
|
69926
|
+
}
|
|
69927
|
+
else if (statementType instanceof Statements.EndClass) {
|
|
69928
|
+
inClassImpl = false;
|
|
69929
|
+
}
|
|
69930
|
+
else if (statementType instanceof Statements.MethodImplementation) {
|
|
69931
|
+
inMethod = true;
|
|
69932
|
+
}
|
|
69933
|
+
else if (statementType instanceof Statements.EndMethod) {
|
|
69934
|
+
inMethod = false;
|
|
69935
|
+
}
|
|
69936
|
+
else if (inClassImpl === true && inMethod === false && statementType instanceof _statement_1.Comment) {
|
|
69937
|
+
issues.push(issue_1.Issue.atStatement(file, statement, "Comment between methods in global class implementation", this.getMetadata().key, this.conf.severity));
|
|
69938
|
+
}
|
|
69939
|
+
}
|
|
69940
|
+
return issues;
|
|
69941
|
+
}
|
|
69942
|
+
}
|
|
69943
|
+
exports.NoCommentsBetweenMethods = NoCommentsBetweenMethods;
|
|
69944
|
+
//# sourceMappingURL=no_comments_between_methods.js.map
|
|
69945
|
+
|
|
69946
|
+
/***/ }),
|
|
69947
|
+
|
|
69799
69948
|
/***/ "./node_modules/@abaplint/core/build/src/rules/no_external_form_calls.js":
|
|
69800
69949
|
/*!*******************************************************************************!*\
|
|
69801
69950
|
!*** ./node_modules/@abaplint/core/build/src/rules/no_external_form_calls.js ***!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.115.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.
|
|
41
|
+
"@abaplint/core": "^2.115.1",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|