@abaplint/cli 2.101.22 → 2.101.24

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.
Files changed (2) hide show
  1. package/build/cli.js +40 -59
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -48453,7 +48453,7 @@ class Registry {
48453
48453
  }
48454
48454
  static abaplintVersion() {
48455
48455
  // magic, see build script "version.sh"
48456
- return "2.101.22";
48456
+ return "2.101.24";
48457
48457
  }
48458
48458
  getDDICReferences() {
48459
48459
  return this.ddicReferences;
@@ -55205,6 +55205,9 @@ ${indentation} output = ${uniqueName}.\n`;
55205
55205
  indentation + `IF sy-subrc = 0.\n` +
55206
55206
  indentation + ` ${uniqueName} = ${rowName}${after}.\n` +
55207
55207
  indentation + `ENDIF.\n`;
55208
+ if (type.includes("LIKE DATA(")) {
55209
+ type = `LIKE LINE OF ${tabName}`;
55210
+ }
55208
55211
  }
55209
55212
  if (end !== "") {
55210
55213
  indentation = indentation.substring(2);
@@ -61900,7 +61903,6 @@ exports.ObjectNaming = exports.ObjectNamingConf = void 0;
61900
61903
  const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
61901
61904
  const _naming_rule_config_1 = __webpack_require__(/*! ./_naming_rule_config */ "./node_modules/@abaplint/core/build/src/rules/_naming_rule_config.js");
61902
61905
  const _irule_1 = __webpack_require__(/*! ./_irule */ "./node_modules/@abaplint/core/build/src/rules/_irule.js");
61903
- const Objects = __webpack_require__(/*! ../objects */ "./node_modules/@abaplint/core/build/src/objects/index.js");
61904
61906
  const name_validator_1 = __webpack_require__(/*! ../utils/name_validator */ "./node_modules/@abaplint/core/build/src/utils/name_validator.js");
61905
61907
  class ObjectNamingConf extends _naming_rule_config_1.NamingRuleConfig {
61906
61908
  constructor() {
@@ -61941,6 +61943,34 @@ class ObjectNamingConf extends _naming_rule_config_1.NamingRuleConfig {
61941
61943
  this.ssst = "^Z";
61942
61944
  /** The regex pattern for search helps */
61943
61945
  this.shlp = "^Z";
61946
+ /** The regex pattern for BADI Implementation */
61947
+ this.sxci = "^Z";
61948
+ /** The regex pattern for Enhancement Spot */
61949
+ this.enhs = "^Z";
61950
+ /** The regex pattern for Enhancement Implementation */
61951
+ this.enho = "^Z";
61952
+ /** The regex pattern for Customer enhancement projects */
61953
+ this.cmod = "^Z";
61954
+ /** The regex pattern for SAPscript form */
61955
+ this.form = "^Z";
61956
+ /** The regex pattern for Adobe Form Definition */
61957
+ this.sfpf = "^Z";
61958
+ /** The regex pattern for Adobe Interface Definition */
61959
+ this.sfpi = "^Z";
61960
+ /** The regex pattern for ABAP Query: Query */
61961
+ this.aqqu = "^Z";
61962
+ /** The regex pattern for ABAP Query: Functional area */
61963
+ this.aqsg = "^Z";
61964
+ /** The regex pattern for ABAP Query: User group */
61965
+ this.aqbg = "^Z";
61966
+ /** The regex pattern for Authorization Object */
61967
+ this.suso = "^Z";
61968
+ /** The regex pattern for Authorization Group */
61969
+ this.sucu = "^Z";
61970
+ /** The regex pattern for Web Dynpro Application */
61971
+ this.wdya = "^Z";
61972
+ /** The regex pattern for Web Dynpro Component */
61973
+ this.wdyn = "^Z";
61944
61974
  }
61945
61975
  }
61946
61976
  exports.ObjectNamingConf = ObjectNamingConf;
@@ -61962,6 +61992,9 @@ class ObjectNaming {
61962
61992
  "Object name must not match pattern " + expected + ": " + actual;
61963
61993
  }
61964
61994
  getConfig() {
61995
+ if (typeof this.conf === "boolean" && this.conf === true) {
61996
+ return new ObjectNamingConf();
61997
+ }
61965
61998
  return this.conf;
61966
61999
  }
61967
62000
  setConfig(conf) {
@@ -61972,66 +62005,14 @@ class ObjectNaming {
61972
62005
  }
61973
62006
  run(obj) {
61974
62007
  let message = undefined;
61975
- let pattern = "";
61976
62008
  if (this.conf.patternKind === undefined) {
61977
62009
  this.conf.patternKind = "required";
61978
62010
  }
61979
- const defaults = new ObjectNamingConf();
61980
- if (obj instanceof Objects.Class) {
61981
- pattern = this.getConfig().clas || defaults.clas;
61982
- }
61983
- else if (obj instanceof Objects.Interface) {
61984
- pattern = this.getConfig().intf || defaults.intf;
61985
- }
61986
- else if (obj instanceof Objects.Program) {
61987
- pattern = this.getConfig().prog || defaults.prog;
61988
- }
61989
- else if (obj instanceof Objects.FunctionGroup) {
61990
- pattern = this.getConfig().fugr || defaults.fugr;
61991
- }
61992
- else if (obj instanceof Objects.Table) {
61993
- pattern = this.getConfig().tabl || defaults.tabl;
61994
- }
61995
- else if (obj instanceof Objects.TableType) {
61996
- pattern = this.getConfig().ttyp || defaults.ttyp;
61997
- }
61998
- else if (obj instanceof Objects.DataElement) {
61999
- pattern = this.getConfig().dtel || defaults.dtel;
62000
- }
62001
- else if (obj instanceof Objects.Domain) {
62002
- pattern = this.getConfig().doma || defaults.doma;
62003
- }
62004
- else if (obj instanceof Objects.Transaction) {
62005
- pattern = this.getConfig().tran || defaults.tran;
62006
- }
62007
- else if (obj instanceof Objects.LockObject) {
62008
- pattern = this.getConfig().enqu || defaults.enqu;
62009
- }
62010
- else if (obj instanceof Objects.AuthorizationObject) {
62011
- pattern = this.getConfig().auth || defaults.auth;
62012
- }
62013
- else if (obj instanceof Objects.PackageInterface) {
62014
- pattern = this.getConfig().pinf || defaults.pinf;
62015
- }
62016
- else if (obj instanceof Objects.MessageClass) {
62017
- pattern = this.getConfig().msag || defaults.msag;
62018
- }
62019
- else if (obj instanceof Objects.Idoc) {
62020
- pattern = this.getConfig().idoc || defaults.idoc;
62021
- }
62022
- else if (obj instanceof Objects.Transformation) {
62023
- pattern = this.getConfig().xslt || defaults.xslt;
62024
- }
62025
- else if (obj instanceof Objects.SmartForm) {
62026
- pattern = this.getConfig().ssfo || defaults.ssfo;
62027
- }
62028
- else if (obj instanceof Objects.SmartStyle) {
62029
- pattern = this.getConfig().ssst || defaults.ssst;
62030
- }
62031
- else if (obj instanceof Objects.SearchHelp) {
62032
- pattern = this.getConfig().shlp || defaults.shlp;
62033
- }
62034
- if (pattern === "") {
62011
+ const abapType = obj.getType().toLowerCase();
62012
+ const config = this.getConfig();
62013
+ // @ts-ignore
62014
+ const pattern = config[abapType];
62015
+ if (pattern === undefined) {
62035
62016
  return [];
62036
62017
  }
62037
62018
  const regex = new RegExp(pattern, "i");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.22",
3
+ "version": "2.101.24",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.101.22",
41
+ "@abaplint/core": "^2.101.24",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",
@@ -55,7 +55,7 @@
55
55
  "mocha": "^10.2.0",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.1.3",
58
- "webpack": "^5.87.0",
58
+ "webpack": "^5.88.0",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"
61
61
  },