@abaplint/core 2.85.40 → 2.85.41

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.
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.85.40";
71
+ return "2.85.41";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
@@ -13,6 +13,8 @@ class NoPublicAttributesConf extends _basic_rule_config_1.BasicRuleConfig {
13
13
  super(...arguments);
14
14
  /** Allows public attributes, if they are declared as READ-ONLY. */
15
15
  this.allowReadOnly = false;
16
+ /** Option to ignore test classes for this check. */
17
+ this.ignoreTestClasses = false;
16
18
  }
17
19
  }
18
20
  exports.NoPublicAttributesConf = NoPublicAttributesConf;
@@ -78,6 +80,10 @@ Exceptions are excluded from this rule.`,
78
80
  else if (attr.level === _abap_file_information_1.AttributeLevel.Constant) {
79
81
  continue;
80
82
  }
83
+ else if ((this.conf.ignoreTestClasses === true)
84
+ && this.file.getFilename().includes(".testclasses.")) {
85
+ continue;
86
+ }
81
87
  const issue = issue_1.Issue.atIdentifier(attr.identifier, this.getDescription(attr.name), this.getMetadata().key, this.conf.severity);
82
88
  issues.push(issue);
83
89
  }
@@ -156,6 +156,16 @@ class IncludeGraph {
156
156
  });
157
157
  }
158
158
  }
159
+ else if (o instanceof objects_1.TypePool) {
160
+ const file = o.getMainABAPFile();
161
+ if (file) {
162
+ this.graph.addVertex({
163
+ filename: file.getFilename(),
164
+ includeName: o.getName(),
165
+ include: false
166
+ });
167
+ }
168
+ }
159
169
  else if (o instanceof objects_1.Class) {
160
170
  for (const f of o.getSequencedFiles()) {
161
171
  this.graph.addVertex({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.85.40",
3
+ "version": "2.85.41",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -58,7 +58,7 @@
58
58
  "typescript": "^4.6.2"
59
59
  },
60
60
  "dependencies": {
61
- "fast-xml-parser": "^4.0.5",
61
+ "fast-xml-parser": "^4.0.6",
62
62
  "json5": "^2.2.0",
63
63
  "vscode-languageserver-protocol": "^3.16.0",
64
64
  "vscode-languageserver-types": "^3.16.0"