@abaplint/core 2.101.21 → 2.101.22

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.
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.101.21";
68
+ return "2.101.22";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -26,6 +26,10 @@ class AvoidUseConf extends _basic_rule_config_1.BasicRuleConfig {
26
26
  this.testSeams = true;
27
27
  /** Detects DESCRIBE TABLE LINES, use lines() instead */
28
28
  this.describeLines = true;
29
+ /** Detects EXPORT TO MEMORY */
30
+ this.exportToMemory = true;
31
+ /** Detects EXPORT TO DATABASE */
32
+ this.exportToDatabase = true;
29
33
  }
30
34
  }
31
35
  exports.AvoidUseConf = AvoidUseConf;
@@ -85,6 +89,12 @@ TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md
85
89
  else if (this.conf.statics && statement instanceof Statements.StaticEnd) {
86
90
  isStaticsBlock = false;
87
91
  }
92
+ else if (this.conf.exportToMemory && statement instanceof Statements.Export && statementNode.concatTokens().includes("TO MEMORY ")) {
93
+ message = "EXPORT TO MEMORY";
94
+ }
95
+ else if (this.conf.exportToDatabase && statement instanceof Statements.Export && statementNode.concatTokens().includes("TO DATABASE ")) {
96
+ message = "EXPORT TO DATABASE";
97
+ }
88
98
  else if (this.conf.testSeams && statement instanceof Statements.TestSeam) {
89
99
  message = "TEST-SEAM";
90
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.101.21",
3
+ "version": "2.101.22",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",