@abaplint/core 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.
@@ -5595,6 +5595,20 @@ declare class Skip implements IStatement {
5595
5595
  getMatcher(): IStatementRunnable;
5596
5596
  }
5597
5597
 
5598
+ export declare class SkipLogic {
5599
+ private readonly reg;
5600
+ /** TOBJ cache hashmap */
5601
+ private tobj;
5602
+ constructor(reg: IRegistry);
5603
+ skip(obj: IObject): boolean;
5604
+ private isGeneratedBOPFInterface;
5605
+ private isGeneratedProxyInterface;
5606
+ private isGeneratedProxyClass;
5607
+ private isGeneratedFunctionGroup;
5608
+ private isGeneratedGatewayClass;
5609
+ private isGeneratedPersistentClass;
5610
+ }
5611
+
5598
5612
  declare class SmartForm extends AbstractObject {
5599
5613
  getType(): string;
5600
5614
  getAllowedNaming(): {
@@ -29,7 +29,7 @@ class Assign {
29
29
  sourceType = new source_1.Source().runSyntax(theSource, scope, filename);
30
30
  }
31
31
  if ((assignSource === null || assignSource === void 0 ? void 0 : assignSource.getChildren().length) === 5
32
- && ((_a = assignSource === null || assignSource === void 0 ? void 0 : assignSource.getFirstChild()) === null || _a === void 0 ? void 0 : _a.concatTokens()) === "COMPONENT") {
32
+ && ((_a = assignSource === null || assignSource === void 0 ? void 0 : assignSource.getFirstChild()) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase()) === "COMPONENT") {
33
33
  const componentSource = sources[sources.length - 2];
34
34
  const componentType = new source_1.Source().runSyntax(componentSource, scope, filename);
35
35
  if (new _type_utils_1.TypeUtils(scope).isAssignable(componentType, new basic_1.CharacterType(30)) === false) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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;
4
- exports.RuleTag = void 0;
3
+ 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;
4
+ exports.RuleTag = exports.Severity = void 0;
5
5
  const issue_1 = require("./issue");
6
6
  Object.defineProperty(exports, "Issue", { enumerable: true, get: function () { return issue_1.Issue; } });
7
7
  const config_1 = require("./config");
@@ -100,4 +100,6 @@ const _irule_1 = require("./rules/_irule");
100
100
  Object.defineProperty(exports, "RuleTag", { enumerable: true, get: function () { return _irule_1.RuleTag; } });
101
101
  const cyclomatic_complexity_stats_1 = require("./utils/cyclomatic_complexity_stats");
102
102
  Object.defineProperty(exports, "CyclomaticComplexityStats", { enumerable: true, get: function () { return cyclomatic_complexity_stats_1.CyclomaticComplexityStats; } });
103
+ const skip_logic_1 = require("./skip_logic");
104
+ Object.defineProperty(exports, "SkipLogic", { enumerable: true, get: function () { return skip_logic_1.SkipLogic; } });
103
105
  //# sourceMappingURL=index.js.map
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.104.0";
68
+ return "2.104.2";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -25,8 +25,6 @@ class ReduceProceduralCode extends _abap_rule_1.ABAPRule {
25
25
  shortDescription: `Checks FORM and FUNCTION-MODULE have few statements`,
26
26
  extendedInformation: `Delegate logic to a class method instead of using FORM or FUNCTION-MODULE.
27
27
 
28
- Only one issue is reported per include/file.
29
-
30
28
  https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming`,
31
29
  tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Styleguide],
32
30
  badExample: `FORM foo.
@@ -147,6 +147,8 @@ DATA: BEGIN OF blah ##NEEDED,
147
147
  && !(statement.get() instanceof Statements.Parameter)
148
148
  && !(statement.get() instanceof Statements.Data)
149
149
  && !(statement.get() instanceof Statements.DataBegin)
150
+ && !(statement.get() instanceof Statements.ClassData)
151
+ && !(statement.get() instanceof Statements.ClassDataBegin)
150
152
  && !(statement.get() instanceof Statements.Type)
151
153
  && !(statement.get() instanceof Statements.Form)
152
154
  && !(statement.get() instanceof Statements.Tables)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.104.0",
3
+ "version": "2.104.2",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",