@abaplint/core 2.91.39 → 2.92.0

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.
@@ -2782,9 +2782,12 @@ declare interface IFunctionModuleParameter {
2782
2782
  declare interface IGlobalConfig {
2783
2783
  /** input files, glob format */
2784
2784
  files: string;
2785
+ skipGeneratedBOPFInterfaces?: boolean;
2786
+ skipGeneratedFunctionGroups?: boolean;
2785
2787
  skipGeneratedGatewayClasses?: boolean;
2786
2788
  skipGeneratedPersistentClasses?: boolean;
2787
- skipGeneratedFunctionGroups?: boolean;
2789
+ skipGeneratedProxyClasses?: boolean;
2790
+ skipGeneratedProxyInterfaces?: boolean;
2788
2791
  /** Clone and parse dependencies specified in .apack-manifest.xml if it is present */
2789
2792
  useApackDependencies?: boolean;
2790
2793
  /** Do not report any issues for includes without main programs */
@@ -74,7 +74,8 @@ class FunctionModuleDefinition {
74
74
  this.parameters.push({
75
75
  name: param.PARAMETER,
76
76
  direction: FunctionModuleParameterDirection.tables,
77
- type: param.DBSTRUCT,
77
+ // table types are stored in TYP
78
+ type: param.DBSTRUCT || param.TYP,
78
79
  });
79
80
  }
80
81
  }
@@ -42,14 +42,19 @@ class Config {
42
42
  if (ver) {
43
43
  version = ver;
44
44
  }
45
+ // defaults: dont skip anything, report everything. The user can decide to skip stuff
46
+ // its difficult to debug errors not being reported
45
47
  const config = {
46
48
  global: {
47
49
  files: "/src/**/*.*",
48
50
  exclude: [],
49
51
  noIssues: [],
50
- skipGeneratedGatewayClasses: true,
51
- skipGeneratedPersistentClasses: true,
52
- skipGeneratedFunctionGroups: true,
52
+ skipGeneratedBOPFInterfaces: false,
53
+ skipGeneratedFunctionGroups: false,
54
+ skipGeneratedGatewayClasses: false,
55
+ skipGeneratedPersistentClasses: false,
56
+ skipGeneratedProxyClasses: false,
57
+ skipGeneratedProxyInterfaces: false,
53
58
  useApackDependencies: false,
54
59
  skipIncludesWithoutMain: false,
55
60
  },
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.91.39";
70
+ return "2.92.0";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.references;
@@ -10,7 +10,7 @@ class SkipLogic {
10
10
  }
11
11
  skip(obj) {
12
12
  const global = this.reg.getConfig().getGlobal();
13
- if (global.skipGeneratedGatewayClasses
13
+ if (global.skipGeneratedGatewayClasses === true
14
14
  && obj instanceof objects_1.Class
15
15
  && this.isGeneratedGatewayClass(obj)) {
16
16
  return true;
@@ -24,23 +24,29 @@ class SkipLogic {
24
24
  return true;
25
25
  }
26
26
  }
27
- else if (global.skipGeneratedPersistentClasses
27
+ else if (global.skipGeneratedPersistentClasses === true
28
28
  && obj instanceof objects_1.Class
29
29
  && this.isGeneratedPersistentClass(obj)) {
30
30
  return true;
31
31
  }
32
- else if (global.skipGeneratedFunctionGroups
32
+ else if (global.skipGeneratedFunctionGroups === true
33
33
  && obj instanceof objects_1.FunctionGroup
34
34
  && this.isGeneratedFunctionGroup(obj)) {
35
35
  return true;
36
36
  }
37
- else if (obj instanceof objects_1.Class && this.isGeneratedProxyClass(obj)) {
37
+ else if (global.skipGeneratedProxyClasses === true
38
+ && obj instanceof objects_1.Class
39
+ && this.isGeneratedProxyClass(obj)) {
38
40
  return true;
39
41
  }
40
- else if (obj instanceof objects_1.Interface && this.isGeneratedProxyInterface(obj)) {
42
+ else if (global.skipGeneratedProxyInterfaces === true
43
+ && obj instanceof objects_1.Interface
44
+ && this.isGeneratedProxyInterface(obj)) {
41
45
  return true;
42
46
  }
43
- else if (obj instanceof objects_1.Interface && this.isGeneratedBOPFInterface(obj)) {
47
+ else if (global.skipGeneratedBOPFInterfaces === true
48
+ && obj instanceof objects_1.Interface
49
+ && this.isGeneratedBOPFInterface(obj)) {
44
50
  return true;
45
51
  }
46
52
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.91.39",
3
+ "version": "2.92.0",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",