@abaplint/cli 2.101.22 → 2.101.23
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/cli.js +37 -59
- package/package.json +2 -2
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.
|
|
48456
|
+
return "2.101.23";
|
|
48457
48457
|
}
|
|
48458
48458
|
getDDICReferences() {
|
|
48459
48459
|
return this.ddicReferences;
|
|
@@ -61900,7 +61900,6 @@ exports.ObjectNaming = exports.ObjectNamingConf = void 0;
|
|
|
61900
61900
|
const issue_1 = __webpack_require__(/*! ../issue */ "./node_modules/@abaplint/core/build/src/issue.js");
|
|
61901
61901
|
const _naming_rule_config_1 = __webpack_require__(/*! ./_naming_rule_config */ "./node_modules/@abaplint/core/build/src/rules/_naming_rule_config.js");
|
|
61902
61902
|
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
61903
|
const name_validator_1 = __webpack_require__(/*! ../utils/name_validator */ "./node_modules/@abaplint/core/build/src/utils/name_validator.js");
|
|
61905
61904
|
class ObjectNamingConf extends _naming_rule_config_1.NamingRuleConfig {
|
|
61906
61905
|
constructor() {
|
|
@@ -61941,6 +61940,34 @@ class ObjectNamingConf extends _naming_rule_config_1.NamingRuleConfig {
|
|
|
61941
61940
|
this.ssst = "^Z";
|
|
61942
61941
|
/** The regex pattern for search helps */
|
|
61943
61942
|
this.shlp = "^Z";
|
|
61943
|
+
/** The regex pattern for BADI Implementation */
|
|
61944
|
+
this.sxci = "^Z";
|
|
61945
|
+
/** The regex pattern for Enhancement Spot */
|
|
61946
|
+
this.enhs = "^Z";
|
|
61947
|
+
/** The regex pattern for Enhancement Implementation */
|
|
61948
|
+
this.enho = "^Z";
|
|
61949
|
+
/** The regex pattern for Customer enhancement projects */
|
|
61950
|
+
this.cmod = "^Z";
|
|
61951
|
+
/** The regex pattern for SAPscript form */
|
|
61952
|
+
this.form = "^Z";
|
|
61953
|
+
/** The regex pattern for Adobe Form Definition */
|
|
61954
|
+
this.sfpf = "^Z";
|
|
61955
|
+
/** The regex pattern for Adobe Interface Definition */
|
|
61956
|
+
this.sfpi = "^Z";
|
|
61957
|
+
/** The regex pattern for ABAP Query: Query */
|
|
61958
|
+
this.aqqu = "^Z";
|
|
61959
|
+
/** The regex pattern for ABAP Query: Functional area */
|
|
61960
|
+
this.aqsg = "^Z";
|
|
61961
|
+
/** The regex pattern for ABAP Query: User group */
|
|
61962
|
+
this.aqbg = "^Z";
|
|
61963
|
+
/** The regex pattern for Authorization Object */
|
|
61964
|
+
this.suso = "^Z";
|
|
61965
|
+
/** The regex pattern for Authorization Group */
|
|
61966
|
+
this.sucu = "^Z";
|
|
61967
|
+
/** The regex pattern for Web Dynpro Application */
|
|
61968
|
+
this.wdya = "^Z";
|
|
61969
|
+
/** The regex pattern for Web Dynpro Component */
|
|
61970
|
+
this.wdyn = "^Z";
|
|
61944
61971
|
}
|
|
61945
61972
|
}
|
|
61946
61973
|
exports.ObjectNamingConf = ObjectNamingConf;
|
|
@@ -61962,6 +61989,9 @@ class ObjectNaming {
|
|
|
61962
61989
|
"Object name must not match pattern " + expected + ": " + actual;
|
|
61963
61990
|
}
|
|
61964
61991
|
getConfig() {
|
|
61992
|
+
if (typeof this.conf === "boolean" && this.conf === true) {
|
|
61993
|
+
return new ObjectNamingConf();
|
|
61994
|
+
}
|
|
61965
61995
|
return this.conf;
|
|
61966
61996
|
}
|
|
61967
61997
|
setConfig(conf) {
|
|
@@ -61972,66 +62002,14 @@ class ObjectNaming {
|
|
|
61972
62002
|
}
|
|
61973
62003
|
run(obj) {
|
|
61974
62004
|
let message = undefined;
|
|
61975
|
-
let pattern = "";
|
|
61976
62005
|
if (this.conf.patternKind === undefined) {
|
|
61977
62006
|
this.conf.patternKind = "required";
|
|
61978
62007
|
}
|
|
61979
|
-
const
|
|
61980
|
-
|
|
61981
|
-
|
|
61982
|
-
|
|
61983
|
-
|
|
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 === "") {
|
|
62008
|
+
const abapType = obj.getType().toLowerCase();
|
|
62009
|
+
const config = this.getConfig();
|
|
62010
|
+
// @ts-ignore
|
|
62011
|
+
const pattern = config[abapType];
|
|
62012
|
+
if (pattern === undefined) {
|
|
62035
62013
|
return [];
|
|
62036
62014
|
}
|
|
62037
62015
|
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.
|
|
3
|
+
"version": "2.101.23",
|
|
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.
|
|
41
|
+
"@abaplint/core": "^2.101.23",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|