@abaplint/core 2.94.7 → 2.94.9
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/README.md +6 -6
- package/adhoc/lexer_performance.ts +16 -17
- package/adhoc/parser_performance.ts +18 -0
- package/build/abaplint.d.ts +1 -1
- package/build/adhoc/lexer_performance.js +2 -3
- package/build/adhoc/parser_performance.d.ts +1 -0
- package/build/adhoc/parser_performance.js +18 -0
- package/build/src/abap/1_lexer/lexer.js +74 -68
- package/build/src/abap/2_statements/combi.js +3 -3
- package/build/src/abap/2_statements/expressions/data_definition.js +2 -2
- package/build/src/abap/2_statements/statements/assign.js +2 -2
- package/build/src/abap/2_statements/statements/break.js +1 -1
- package/build/src/abap/2_statements/statements/call_function.js +2 -2
- package/build/src/abap/2_statements/statements/class_data_begin.js +1 -1
- package/build/src/abap/2_statements/statements/class_data_end.js +1 -1
- package/build/src/abap/2_statements/statements/class_deferred.js +1 -2
- package/build/src/abap/2_statements/statements/class_definition.js +4 -4
- package/build/src/abap/2_statements/statements/class_local_friends.js +1 -2
- package/build/src/abap/2_statements/statements/clear.js +2 -2
- package/build/src/abap/2_statements/statements/concatenate.js +1 -1
- package/build/src/abap/2_statements/statements/data_end.js +1 -1
- package/build/src/abap/2_statements/statements/delete_database.js +3 -3
- package/build/src/abap/2_statements/statements/events.js +1 -1
- package/build/src/abap/2_statements/statements/find.js +2 -2
- package/build/src/abap/2_statements/statements/modify_line.js +1 -1
- package/build/src/abap/2_statements/statements/raise.js +1 -1
- package/build/src/abap/2_statements/statements/replace.js +2 -2
- package/build/src/abap/2_statements/statements/search.js +1 -1
- package/build/src/abap/2_statements/statements/sort.js +1 -1
- package/build/src/abap/2_statements/statements/translate.js +2 -2
- package/build/src/abap/flow/flow_graph.js +7 -7
- package/build/src/index.js +3 -1
- package/build/src/lsp/help.js +7 -7
- package/build/src/registry.js +1 -1
- package/build/src/rules/7bit_ascii.js +2 -2
- package/build/src/rules/abapdoc.js +3 -3
- package/build/src/rules/align_parameters.js +39 -39
- package/build/src/rules/ambiguous_statement.js +5 -5
- package/build/src/rules/avoid_use.js +8 -8
- package/build/src/rules/begin_end_names.js +4 -4
- package/build/src/rules/begin_single_include.js +12 -12
- package/build/src/rules/call_transaction_authority_check.js +3 -3
- package/build/src/rules/cds_comment_style.js +4 -4
- package/build/src/rules/cds_legacy_view.js +4 -4
- package/build/src/rules/chain_mainly_declarations.js +4 -4
- package/build/src/rules/change_if_to_case.js +8 -8
- package/build/src/rules/check_abstract.js +2 -2
- package/build/src/rules/check_comments.js +4 -4
- package/build/src/rules/check_include.js +3 -3
- package/build/src/rules/check_subrc.js +8 -8
- package/build/src/rules/classic_exceptions_overlap.js +8 -8
- package/build/src/rules/commented_code.js +1 -1
- package/build/src/rules/constructor_visibility_public.js +4 -4
- package/build/src/rules/contains_tab.js +2 -2
- package/build/src/rules/cyclic_oo.js +2 -2
- package/build/src/rules/dangerous_statement.js +1 -1
- package/build/src/rules/definitions_top.js +2 -2
- package/build/src/rules/downport.js +83 -83
- package/build/src/rules/exit_or_check.js +3 -3
- package/build/src/rules/exporting.js +1 -1
- package/build/src/rules/forbidden_identifier.js +1 -1
- package/build/src/rules/forbidden_void_type.js +2 -2
- package/build/src/rules/functional_writing.js +17 -17
- package/build/src/rules/global_class.js +8 -8
- package/build/src/rules/identical_conditions.js +2 -2
- package/build/src/rules/identical_contents.js +14 -14
- package/build/src/rules/identical_descriptions.js +6 -6
- package/build/src/rules/if_in_if.js +26 -26
- package/build/src/rules/implement_methods.js +3 -3
- package/build/src/rules/in_statement_indentation.js +11 -11
- package/build/src/rules/intf_referencing_clas.js +3 -3
- package/build/src/rules/line_break_style.js +2 -2
- package/build/src/rules/line_length.js +1 -1
- package/build/src/rules/line_only_punc.js +1 -1
- package/build/src/rules/local_variable_names.js +2 -2
- package/build/src/rules/main_file_contents.js +4 -4
- package/build/src/rules/many_parentheses.js +10 -10
- package/build/src/rules/max_one_method_parameter_per_line.js +7 -7
- package/build/src/rules/max_one_statement.js +5 -5
- package/build/src/rules/method_overwrites_builtin.js +2 -2
- package/build/src/rules/nesting.js +1 -1
- package/build/src/rules/no_chained_assignment.js +1 -1
- package/build/src/rules/no_external_form_calls.js +2 -2
- package/build/src/rules/no_inline_in_optional_branches.js +11 -11
- package/build/src/rules/no_public_attributes.js +1 -1
- package/build/src/rules/no_yoda_conditions.js +4 -4
- package/build/src/rules/nrob_consistency.js +2 -2
- package/build/src/rules/obsolete_statement.js +42 -42
- package/build/src/rules/omit_parameter_name.js +3 -3
- package/build/src/rules/omit_receiving.js +13 -13
- package/build/src/rules/parser_702_chaining.js +2 -2
- package/build/src/rules/parser_error.js +2 -2
- package/build/src/rules/parser_missing_space.js +1 -1
- package/build/src/rules/prefer_inline.js +16 -16
- package/build/src/rules/prefer_is_not.js +7 -7
- package/build/src/rules/prefer_raise_exception_new.js +3 -3
- package/build/src/rules/prefer_returning_to_exporting.js +1 -1
- package/build/src/rules/prefer_xsdbool.js +2 -2
- package/build/src/rules/remove_descriptions.js +4 -4
- package/build/src/rules/rfc_error_handling.js +9 -9
- package/build/src/rules/select_add_order_by.js +5 -5
- package/build/src/rules/select_performance.js +5 -5
- package/build/src/rules/sicf_consistency.js +2 -2
- package/build/src/rules/space_before_dot.js +2 -2
- package/build/src/rules/start_at_tab.js +1 -1
- package/build/src/rules/sy_modification.js +4 -4
- package/build/src/rules/tabl_enhancement_category.js +2 -2
- package/build/src/rules/unnecessary_pragma.js +22 -22
- package/build/src/rules/unnecessary_return.js +5 -5
- package/build/src/rules/unused_methods.js +9 -9
- package/build/src/rules/unused_variables.js +6 -6
- package/build/src/rules/use_bool_expression.js +8 -8
- package/build/src/rules/use_line_exists.js +6 -6
- package/build/src/rules/use_new.js +4 -4
- package/build/src/rules/when_others_last.js +6 -6
- package/package.json +67 -66
|
@@ -21,31 +21,31 @@ class UnnecessaryPragma extends _abap_rule_1.ABAPRule {
|
|
|
21
21
|
key: "unnecessary_pragma",
|
|
22
22
|
title: "Unnecessary Pragma",
|
|
23
23
|
shortDescription: `Finds pragmas which can be removed`,
|
|
24
|
-
extendedInformation: `* NO_HANDLER with handler
|
|
25
|
-
|
|
26
|
-
* NEEDED without definition
|
|
27
|
-
|
|
28
|
-
* NO_TEXT without texts
|
|
29
|
-
|
|
24
|
+
extendedInformation: `* NO_HANDLER with handler
|
|
25
|
+
|
|
26
|
+
* NEEDED without definition
|
|
27
|
+
|
|
28
|
+
* NO_TEXT without texts
|
|
29
|
+
|
|
30
30
|
* SUBRC_OK where sy-subrc is checked`,
|
|
31
31
|
tags: [_irule_1.RuleTag.SingleFile],
|
|
32
|
-
badExample: `TRY.
|
|
33
|
-
...
|
|
34
|
-
CATCH zcx_abapgit_exception ##NO_HANDLER.
|
|
35
|
-
RETURN. " it has a handler
|
|
36
|
-
ENDTRY.
|
|
37
|
-
MESSAGE w125(zbar) WITH c_foo INTO message ##NEEDED ##NO_TEXT.
|
|
38
|
-
SELECT SINGLE * FROM tadir INTO @DATA(sdfs) ##SUBRC_OK.
|
|
39
|
-
IF sy-subrc <> 0.
|
|
32
|
+
badExample: `TRY.
|
|
33
|
+
...
|
|
34
|
+
CATCH zcx_abapgit_exception ##NO_HANDLER.
|
|
35
|
+
RETURN. " it has a handler
|
|
36
|
+
ENDTRY.
|
|
37
|
+
MESSAGE w125(zbar) WITH c_foo INTO message ##NEEDED ##NO_TEXT.
|
|
38
|
+
SELECT SINGLE * FROM tadir INTO @DATA(sdfs) ##SUBRC_OK.
|
|
39
|
+
IF sy-subrc <> 0.
|
|
40
40
|
ENDIF.`,
|
|
41
|
-
goodExample: `TRY.
|
|
42
|
-
...
|
|
43
|
-
CATCH zcx_abapgit_exception.
|
|
44
|
-
RETURN.
|
|
45
|
-
ENDTRY.
|
|
46
|
-
MESSAGE w125(zbar) WITH c_foo INTO message.
|
|
47
|
-
SELECT SINGLE * FROM tadir INTO @DATA(sdfs).
|
|
48
|
-
IF sy-subrc <> 0.
|
|
41
|
+
goodExample: `TRY.
|
|
42
|
+
...
|
|
43
|
+
CATCH zcx_abapgit_exception.
|
|
44
|
+
RETURN.
|
|
45
|
+
ENDTRY.
|
|
46
|
+
MESSAGE w125(zbar) WITH c_foo INTO message.
|
|
47
|
+
SELECT SINGLE * FROM tadir INTO @DATA(sdfs).
|
|
48
|
+
IF sy-subrc <> 0.
|
|
49
49
|
ENDIF.`,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -22,12 +22,12 @@ class UnnecessaryReturn extends _abap_rule_1.ABAPRule {
|
|
|
22
22
|
shortDescription: `Finds unnecessary RETURN statements`,
|
|
23
23
|
extendedInformation: `Finds unnecessary RETURN statements`,
|
|
24
24
|
tags: [_irule_1.RuleTag.SingleFile, _irule_1.RuleTag.Quickfix],
|
|
25
|
-
badExample: `METHOD hello.
|
|
26
|
-
...
|
|
27
|
-
RETURN.
|
|
25
|
+
badExample: `METHOD hello.
|
|
26
|
+
...
|
|
27
|
+
RETURN.
|
|
28
28
|
ENDMETHOD.`,
|
|
29
|
-
goodExample: `METHOD hello.
|
|
30
|
-
...
|
|
29
|
+
goodExample: `METHOD hello.
|
|
30
|
+
...
|
|
31
31
|
ENDMETHOD.`,
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -55,15 +55,15 @@ class UnusedMethods {
|
|
|
55
55
|
key: "unused_methods",
|
|
56
56
|
title: "Unused methods",
|
|
57
57
|
shortDescription: `Checks for unused methods`,
|
|
58
|
-
extendedInformation: `Checks private and protected methods.
|
|
59
|
-
|
|
60
|
-
Skips:
|
|
61
|
-
* methods FOR TESTING
|
|
62
|
-
* methods SETUP + TEARDOWN + CLASS_SETUP + CLASS_TEARDOWN in testclasses
|
|
63
|
-
* class_constructor + constructor methods
|
|
64
|
-
* event handlers
|
|
65
|
-
* methods that are redefined
|
|
66
|
-
* INCLUDEs
|
|
58
|
+
extendedInformation: `Checks private and protected methods.
|
|
59
|
+
|
|
60
|
+
Skips:
|
|
61
|
+
* methods FOR TESTING
|
|
62
|
+
* methods SETUP + TEARDOWN + CLASS_SETUP + CLASS_TEARDOWN in testclasses
|
|
63
|
+
* class_constructor + constructor methods
|
|
64
|
+
* event handlers
|
|
65
|
+
* methods that are redefined
|
|
66
|
+
* INCLUDEs
|
|
67
67
|
`,
|
|
68
68
|
tags: [],
|
|
69
69
|
pragma: "##CALLED",
|
|
@@ -64,10 +64,10 @@ class UnusedVariables {
|
|
|
64
64
|
key: "unused_variables",
|
|
65
65
|
title: "Unused variables",
|
|
66
66
|
shortDescription: `Checks for unused variables and constants`,
|
|
67
|
-
extendedInformation: `Skips event parameters.
|
|
68
|
-
|
|
69
|
-
Note that this currently does not work if the source code uses macros.
|
|
70
|
-
|
|
67
|
+
extendedInformation: `Skips event parameters.
|
|
68
|
+
|
|
69
|
+
Note that this currently does not work if the source code uses macros.
|
|
70
|
+
|
|
71
71
|
Unused variables are not reported if the object contains syntax errors. Errors found in INCLUDES are reported for the main program.`,
|
|
72
72
|
tags: [_irule_1.RuleTag.Quickfix],
|
|
73
73
|
pragma: "##NEEDED",
|
|
@@ -103,7 +103,7 @@ Unused variables are not reported if the object contains syntax errors. Errors f
|
|
|
103
103
|
const top = syntax.spaghetti.getTop();
|
|
104
104
|
this.buildWorkarea(top, obj);
|
|
105
105
|
if (this.workarea.count() === 0) {
|
|
106
|
-
return this.buildIssues(obj); // exit early if all
|
|
106
|
+
return this.buildIssues(obj); // exit early if all variables are used
|
|
107
107
|
}
|
|
108
108
|
this.findUses(top, obj);
|
|
109
109
|
for (const o of this.reg.getObjects()) {
|
|
@@ -117,7 +117,7 @@ Unused variables are not reported if the object contains syntax errors. Errors f
|
|
|
117
117
|
const syntax = new syntax_1.SyntaxLogic(this.reg, o).run();
|
|
118
118
|
this.findUses(syntax.spaghetti.getTop(), o);
|
|
119
119
|
if (this.workarea.count() === 0) {
|
|
120
|
-
return this.buildIssues(obj); // exit early if all
|
|
120
|
+
return this.buildIssues(obj); // exit early if all variables are used
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -27,15 +27,15 @@ class UseBoolExpression extends _abap_rule_1.ABAPRule {
|
|
|
27
27
|
shortDescription: `Use boolean expression, xsdbool from 740sp08 and up, boolc from 702 and up`,
|
|
28
28
|
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-xsdbool-to-set-boolean-variables`,
|
|
29
29
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.SingleFile],
|
|
30
|
-
badExample: `IF line IS INITIAL.
|
|
31
|
-
has_entries = abap_false.
|
|
32
|
-
ELSE.
|
|
33
|
-
has_entries = abap_true.
|
|
34
|
-
ENDIF.
|
|
35
|
-
|
|
30
|
+
badExample: `IF line IS INITIAL.
|
|
31
|
+
has_entries = abap_false.
|
|
32
|
+
ELSE.
|
|
33
|
+
has_entries = abap_true.
|
|
34
|
+
ENDIF.
|
|
35
|
+
|
|
36
36
|
DATA(fsdf) = COND #( WHEN foo <> bar THEN abap_true ELSE abap_false ).`,
|
|
37
|
-
goodExample: `DATA(has_entries) = xsdbool( line IS NOT INITIAL ).
|
|
38
|
-
|
|
37
|
+
goodExample: `DATA(has_entries) = xsdbool( line IS NOT INITIAL ).
|
|
38
|
+
|
|
39
39
|
DATA(fsdf) = xsdbool( foo <> bar ).`,
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -22,15 +22,15 @@ class UseLineExists extends _abap_rule_1.ABAPRule {
|
|
|
22
22
|
key: "use_line_exists",
|
|
23
23
|
title: "Use line_exists",
|
|
24
24
|
shortDescription: `Use line_exists, from 740sp02 and up`,
|
|
25
|
-
extendedInformation: `
|
|
26
|
-
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-line_exists-to-read-table-or-loop-at
|
|
27
|
-
|
|
25
|
+
extendedInformation: `
|
|
26
|
+
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-line_exists-to-read-table-or-loop-at
|
|
27
|
+
|
|
28
28
|
Not reported if the READ TABLE statement contains BINARY SEARCH.`,
|
|
29
29
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
|
|
30
|
-
badExample: `READ TABLE my_table TRANSPORTING NO FIELDS WITH KEY key = 'A'.
|
|
31
|
-
IF sy-subrc = 0.
|
|
30
|
+
badExample: `READ TABLE my_table TRANSPORTING NO FIELDS WITH KEY key = 'A'.
|
|
31
|
+
IF sy-subrc = 0.
|
|
32
32
|
ENDIF.`,
|
|
33
|
-
goodExample: `IF line_exists( my_table[ key = 'A' ] ).
|
|
33
|
+
goodExample: `IF line_exists( my_table[ key = 'A' ] ).
|
|
34
34
|
ENDIF.`,
|
|
35
35
|
};
|
|
36
36
|
}
|
|
@@ -23,10 +23,10 @@ class UseNew extends _abap_rule_1.ABAPRule {
|
|
|
23
23
|
key: "use_new",
|
|
24
24
|
title: "Use NEW",
|
|
25
25
|
shortDescription: `Checks for deprecated CREATE OBJECT statements.`,
|
|
26
|
-
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-new-to-create-object
|
|
27
|
-
|
|
28
|
-
If the target variable is referenced in the CREATE OBJECT statement, no errors are issued
|
|
29
|
-
|
|
26
|
+
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-new-to-create-object
|
|
27
|
+
|
|
28
|
+
If the target variable is referenced in the CREATE OBJECT statement, no errors are issued
|
|
29
|
+
|
|
30
30
|
Applicable from v740sp02 and up`,
|
|
31
31
|
badExample: `CREATE OBJECT ref.`,
|
|
32
32
|
goodExample: `ref = NEW #( ).`,
|
|
@@ -21,13 +21,13 @@ class WhenOthersLast extends _abap_rule_1.ABAPRule {
|
|
|
21
21
|
title: "WHEN OTHERS last",
|
|
22
22
|
shortDescription: `Checks that WHEN OTHERS is placed the last within a CASE statement.`,
|
|
23
23
|
tags: [_irule_1.RuleTag.SingleFile],
|
|
24
|
-
badExample: `CASE bar.
|
|
25
|
-
WHEN OTHERS.
|
|
26
|
-
WHEN 2.
|
|
24
|
+
badExample: `CASE bar.
|
|
25
|
+
WHEN OTHERS.
|
|
26
|
+
WHEN 2.
|
|
27
27
|
ENDCASE.`,
|
|
28
|
-
goodExample: `CASE bar.
|
|
29
|
-
WHEN 2.
|
|
30
|
-
WHEN OTHERS.
|
|
28
|
+
goodExample: `CASE bar.
|
|
29
|
+
WHEN 2.
|
|
30
|
+
WHEN OTHERS.
|
|
31
31
|
ENDCASE.`,
|
|
32
32
|
};
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.94.
|
|
4
|
-
"description": "abaplint - Core API",
|
|
5
|
-
"main": "build/src/index.js",
|
|
6
|
-
"typings": "build/abaplint.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"lint": "eslint src/**/*.ts test/**/*.ts --format unix",
|
|
9
|
-
"lint:fix": "eslint src/**/*.ts test/**/*.ts --format unix --fix",
|
|
10
|
-
"compile": "tsc && sh scripts/version.sh",
|
|
11
|
-
"test": "npm run compile && mocha --timeout 1000 && npm run lint && npm run schema && api-extractor run",
|
|
12
|
-
"test:only": "npm run compile && mocha",
|
|
13
|
-
"test:parallel": "npm run compile && mocha --timeout 1000 --parallel --reporter dot",
|
|
14
|
-
"coverage": "npm run compile && c8 mocha && c8 report --reporter=html",
|
|
15
|
-
"lexer_performance": "tsc && curl -o lexer_performance.abap https://raw.githubusercontent.com/abapGit/build/main/
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"publish:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"@
|
|
51
|
-
"@types/
|
|
52
|
-
"@types/
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abaplint/core",
|
|
3
|
+
"version": "2.94.9",
|
|
4
|
+
"description": "abaplint - Core API",
|
|
5
|
+
"main": "build/src/index.js",
|
|
6
|
+
"typings": "build/abaplint.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"lint": "eslint src/**/*.ts test/**/*.ts --format unix",
|
|
9
|
+
"lint:fix": "eslint src/**/*.ts test/**/*.ts --format unix --fix",
|
|
10
|
+
"compile": "tsc && sh scripts/version.sh",
|
|
11
|
+
"test": "npm run compile && mocha --timeout 1000 && npm run lint && npm run schema && api-extractor run",
|
|
12
|
+
"test:only": "npm run compile && mocha",
|
|
13
|
+
"test:parallel": "npm run compile && mocha --timeout 1000 --parallel --reporter dot",
|
|
14
|
+
"coverage": "npm run compile && c8 mocha && c8 report --reporter=html",
|
|
15
|
+
"lexer_performance": "tsc && curl -o lexer_performance.abap https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap && node build/adhoc/lexer_performance.js",
|
|
16
|
+
"parser_performance": "tsc && curl -o lexer_performance.abap https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap && node build/adhoc/parser_performance.js",
|
|
17
|
+
"schema": "node scripts/schema.js > scripts/schema.ts && ts-json-schema-generator --tsconfig tsconfig_schema.json --jsDoc extended --path scripts/schema.ts > scripts/schema.json && node scripts/schema_post.js",
|
|
18
|
+
"publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
|
|
19
|
+
"publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public"
|
|
20
|
+
},
|
|
21
|
+
"mocha": {
|
|
22
|
+
"recursive": true,
|
|
23
|
+
"reporter": "progress",
|
|
24
|
+
"spec": "build/test/**/*.js",
|
|
25
|
+
"require": "source-map-support/register"
|
|
26
|
+
},
|
|
27
|
+
"c8": {
|
|
28
|
+
"include": [
|
|
29
|
+
"build/src/**/*.js"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/abaplint/abaplint.git"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=12.0.0"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"ABAP",
|
|
41
|
+
"lint"
|
|
42
|
+
],
|
|
43
|
+
"author": "Lars Hvam Petersen",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/abaplint/abaplint/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://abaplint.org",
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
51
|
+
"@types/chai": "^4.3.4",
|
|
52
|
+
"@types/mocha": "^10.0.1",
|
|
53
|
+
"@types/node": "^18.11.17",
|
|
54
|
+
"chai": "^4.3.7",
|
|
55
|
+
"eslint": "^8.30.0",
|
|
56
|
+
"mocha": "^10.2.0",
|
|
57
|
+
"c8": "^7.12.0",
|
|
58
|
+
"source-map-support": "^0.5.21",
|
|
59
|
+
"ts-json-schema-generator": "^1.2.0",
|
|
60
|
+
"typescript": "^4.9.4"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"fast-xml-parser": "^4.0.12",
|
|
64
|
+
"json5": "^2.2.2",
|
|
65
|
+
"vscode-languageserver-types": "^3.17.2"
|
|
66
|
+
}
|
|
67
|
+
}
|