@abaplint/cli 2.104.0 → 2.104.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 +8 -6
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -28235,7 +28235,7 @@ class Assign {
28235
28235
  sourceType = new source_1.Source().runSyntax(theSource, scope, filename);
28236
28236
  }
28237
28237
  if ((assignSource === null || assignSource === void 0 ? void 0 : assignSource.getChildren().length) === 5
28238
- && ((_a = assignSource === null || assignSource === void 0 ? void 0 : assignSource.getFirstChild()) === null || _a === void 0 ? void 0 : _a.concatTokens()) === "COMPONENT") {
28238
+ && ((_a = assignSource === null || assignSource === void 0 ? void 0 : assignSource.getFirstChild()) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase()) === "COMPONENT") {
28239
28239
  const componentSource = sources[sources.length - 2];
28240
28240
  const componentType = new source_1.Source().runSyntax(componentSource, scope, filename);
28241
28241
  if (new _type_utils_1.TypeUtils(scope).isAssignable(componentType, new basic_1.CharacterType(30)) === false) {
@@ -40873,8 +40873,8 @@ exports.MemoryFile = MemoryFile;
40873
40873
  "use strict";
40874
40874
 
40875
40875
  Object.defineProperty(exports, "__esModule", ({ value: true }));
40876
- exports.Severity = exports.Visibility = exports.Info = exports.Rename = exports.PrettyPrinter = exports.Position = exports.CurrentScope = exports.ABAPFile = exports.RulesRunner = exports.SpaghettiScope = exports.SyntaxLogic = exports.ABAPObject = exports.Tokens = exports.ExpressionsCDS = exports.CDSParser = exports.LanguageServerTypes = exports.DDLParser = exports.applyEditList = exports.applyEditSingle = exports.SpaghettiScopeNode = exports.AbstractFile = exports.Token = exports.ScopeType = exports.BasicTypes = exports.TypedIdentifier = exports.AbstractType = exports.VirtualPosition = exports.Comment = exports.Unknown = exports.Empty = exports.Identifier = exports.Nodes = exports.Types = exports.Expressions = exports.Statements = exports.Structures = exports.Objects = exports.ArtifactsRules = exports.ArtifactsObjects = exports.ArtifactsABAP = exports.BuiltIn = exports.MethodLengthStats = exports.LanguageServer = exports.Registry = exports.CyclomaticComplexityStats = exports.ReferenceType = exports.Version = exports.Config = exports.Issue = exports.MemoryFile = void 0;
40877
- exports.RuleTag = void 0;
40876
+ exports.Visibility = exports.Info = exports.Rename = exports.PrettyPrinter = exports.Position = exports.CurrentScope = exports.ABAPFile = exports.RulesRunner = exports.SpaghettiScope = exports.SyntaxLogic = exports.ABAPObject = exports.Tokens = exports.ExpressionsCDS = exports.CDSParser = exports.LanguageServerTypes = exports.DDLParser = exports.applyEditList = exports.applyEditSingle = exports.SpaghettiScopeNode = exports.AbstractFile = exports.Token = exports.ScopeType = exports.BasicTypes = exports.TypedIdentifier = exports.AbstractType = exports.VirtualPosition = exports.Comment = exports.Unknown = exports.Empty = exports.Identifier = exports.Nodes = exports.Types = exports.Expressions = exports.Statements = exports.Structures = exports.SkipLogic = exports.Objects = exports.ArtifactsRules = exports.ArtifactsObjects = exports.ArtifactsABAP = exports.BuiltIn = exports.MethodLengthStats = exports.LanguageServer = exports.Registry = exports.CyclomaticComplexityStats = exports.ReferenceType = exports.Version = exports.Config = exports.Issue = exports.MemoryFile = void 0;
40877
+ exports.RuleTag = exports.Severity = void 0;
40878
40878
  const issue_1 = __webpack_require__(/*! ./issue */ "./node_modules/@abaplint/core/build/src/issue.js");
40879
40879
  Object.defineProperty(exports, "Issue", ({ enumerable: true, get: function () { return issue_1.Issue; } }));
40880
40880
  const config_1 = __webpack_require__(/*! ./config */ "./node_modules/@abaplint/core/build/src/config.js");
@@ -40973,6 +40973,8 @@ const _irule_1 = __webpack_require__(/*! ./rules/_irule */ "./node_modules/@abap
40973
40973
  Object.defineProperty(exports, "RuleTag", ({ enumerable: true, get: function () { return _irule_1.RuleTag; } }));
40974
40974
  const cyclomatic_complexity_stats_1 = __webpack_require__(/*! ./utils/cyclomatic_complexity_stats */ "./node_modules/@abaplint/core/build/src/utils/cyclomatic_complexity_stats.js");
40975
40975
  Object.defineProperty(exports, "CyclomaticComplexityStats", ({ enumerable: true, get: function () { return cyclomatic_complexity_stats_1.CyclomaticComplexityStats; } }));
40976
+ const skip_logic_1 = __webpack_require__(/*! ./skip_logic */ "./node_modules/@abaplint/core/build/src/skip_logic.js");
40977
+ Object.defineProperty(exports, "SkipLogic", ({ enumerable: true, get: function () { return skip_logic_1.SkipLogic; } }));
40976
40978
  //# sourceMappingURL=index.js.map
40977
40979
 
40978
40980
  /***/ }),
@@ -51033,7 +51035,7 @@ class Registry {
51033
51035
  }
51034
51036
  static abaplintVersion() {
51035
51037
  // magic, see build script "version.sh"
51036
- return "2.104.0";
51038
+ return "2.104.2";
51037
51039
  }
51038
51040
  getDDICReferences() {
51039
51041
  return this.ddicReferences;
@@ -67223,8 +67225,6 @@ class ReduceProceduralCode extends _abap_rule_1.ABAPRule {
67223
67225
  shortDescription: `Checks FORM and FUNCTION-MODULE have few statements`,
67224
67226
  extendedInformation: `Delegate logic to a class method instead of using FORM or FUNCTION-MODULE.
67225
67227
 
67226
- Only one issue is reported per include/file.
67227
-
67228
67228
  https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming`,
67229
67229
  tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
67230
67230
  badExample: `FORM foo.
@@ -70420,6 +70420,8 @@ DATA: BEGIN OF blah ##NEEDED,
70420
70420
  && !(statement.get() instanceof Statements.Parameter)
70421
70421
  && !(statement.get() instanceof Statements.Data)
70422
70422
  && !(statement.get() instanceof Statements.DataBegin)
70423
+ && !(statement.get() instanceof Statements.ClassData)
70424
+ && !(statement.get() instanceof Statements.ClassDataBegin)
70423
70425
  && !(statement.get() instanceof Statements.Type)
70424
70426
  && !(statement.get() instanceof Statements.Form)
70425
70427
  && !(statement.get() instanceof Statements.Tables)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.104.0",
3
+ "version": "2.104.2",
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.104.0",
41
+ "@abaplint/core": "^2.104.2",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.5",