@abaplint/core 2.104.0 → 2.104.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/abaplint.d.ts
CHANGED
|
@@ -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(): {
|
package/build/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
|
package/build/src/registry.js
CHANGED
|
@@ -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)
|