@abaplint/core 2.119.67 → 2.120.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.
- package/README.md +6 -6
- package/build/abaplint.d.ts +2 -2
- package/build/src/abap/5_syntax/_current_scope.js +1 -1
- package/build/src/abap/5_syntax/expressions/_check_offset_length.js +59 -0
- package/build/src/abap/5_syntax/expressions/method_call_param.js +2 -12
- package/build/src/abap/5_syntax/expressions/method_parameters.js +20 -6
- package/build/src/abap/5_syntax/statements/catch.js +17 -1
- package/build/src/config.js +1 -1
- package/build/src/lsp/help.js +10 -10
- package/build/src/registry.js +1 -1
- package/build/src/rules/7bit_ascii.js +4 -4
- package/build/src/rules/abapdoc.js +4 -4
- package/build/src/rules/add_test_attributes.js +20 -20
- package/build/src/rules/align_parameters.js +40 -40
- package/build/src/rules/align_type_expressions.js +28 -28
- package/build/src/rules/ambiguous_statement.js +7 -7
- package/build/src/rules/avoid_use.js +10 -10
- package/build/src/rules/begin_end_names.js +4 -4
- package/build/src/rules/begin_single_include.js +13 -13
- package/build/src/rules/call_transaction_authority_check.js +3 -3
- package/build/src/rules/cds_association_name.js +6 -6
- package/build/src/rules/cds_comment_style.js +4 -4
- package/build/src/rules/cds_field_order.js +12 -12
- package/build/src/rules/cds_legacy_view.js +4 -4
- package/build/src/rules/cds_naming.js +7 -7
- 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 +4 -4
- package/build/src/rules/check_subrc.js +8 -8
- package/build/src/rules/class_attribute_names.js +6 -6
- package/build/src/rules/classic_exceptions_overlap.js +10 -10
- package/build/src/rules/commented_code.js +1 -1
- package/build/src/rules/constructor_visibility_public.js +10 -10
- package/build/src/rules/contains_tab.js +2 -2
- package/build/src/rules/cyclic_oo.js +4 -4
- package/build/src/rules/dangerous_statement.js +1 -1
- package/build/src/rules/db_operation_in_loop.js +9 -9
- package/build/src/rules/definitions_top.js +6 -6
- package/build/src/rules/downport.js +92 -92
- package/build/src/rules/easy_to_find_messages.js +6 -6
- package/build/src/rules/empty_event.js +6 -6
- package/build/src/rules/empty_line_in_statement.js +2 -2
- package/build/src/rules/empty_structure.js +6 -6
- package/build/src/rules/exit_or_check.js +7 -7
- package/build/src/rules/expand_macros.js +5 -5
- 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/form_tables_obsolete.js +2 -2
- package/build/src/rules/fully_type_itabs.js +2 -2
- package/build/src/rules/function_module_recommendations.js +2 -2
- package/build/src/rules/functional_writing.js +17 -17
- package/build/src/rules/global_class.js +10 -10
- package/build/src/rules/identical_conditions.js +12 -12
- package/build/src/rules/identical_contents.js +14 -14
- package/build/src/rules/identical_descriptions.js +6 -6
- package/build/src/rules/identical_move.js +2 -2
- package/build/src/rules/if_in_if.js +35 -35
- package/build/src/rules/implement_methods.js +3 -3
- package/build/src/rules/implicit_start_of_selection.js +4 -4
- package/build/src/rules/in_statement_indentation.js +11 -11
- package/build/src/rules/indentation.js +16 -16
- package/build/src/rules/index.js +1 -0
- package/build/src/rules/inline_data_old_versions.js +1 -1
- package/build/src/rules/intf_referencing_clas.js +3 -3
- package/build/src/rules/invalid_table_index.js +2 -2
- package/build/src/rules/line_break_style.js +2 -2
- package/build/src/rules/line_length.js +2 -2
- package/build/src/rules/line_only_punc.js +1 -1
- package/build/src/rules/local_class_naming.js +2 -2
- package/build/src/rules/local_variable_names.js +6 -6
- package/build/src/rules/macro_naming.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_length.js +2 -2
- package/build/src/rules/method_overwrites_builtin.js +12 -12
- package/build/src/rules/method_parameter_names.js +4 -4
- package/build/src/rules/mix_returning.js +8 -8
- package/build/src/rules/nesting.js +1 -1
- package/build/src/rules/no_aliases.js +5 -5
- package/build/src/rules/no_chained_assignment.js +1 -1
- package/build/src/rules/no_comments_between_methods.js +12 -12
- package/build/src/rules/no_external_form_calls.js +2 -2
- package/build/src/rules/no_inline_in_optional_branches.js +12 -12
- package/build/src/rules/no_macros.js +4 -4
- package/build/src/rules/no_prefixes.js +6 -6
- package/build/src/rules/no_public_attributes.js +7 -7
- 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 +51 -51
- 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 +9 -9
- package/build/src/rules/prefer_raise_exception_new.js +5 -5
- package/build/src/rules/prefer_returning_to_exporting.js +4 -4
- package/build/src/rules/prefer_xsdbool.js +2 -2
- package/build/src/rules/preferred_compare_operator.js +2 -2
- package/build/src/rules/prefix_is_current_class.js +6 -6
- package/build/src/rules/reduce_procedural_code.js +17 -17
- package/build/src/rules/redundant_conversion.js +253 -0
- package/build/src/rules/remove_descriptions.js +4 -4
- package/build/src/rules/rfc_error_handling.js +7 -7
- package/build/src/rules/select_add_order_by.js +5 -5
- package/build/src/rules/select_performance.js +5 -5
- package/build/src/rules/select_single_full_key.js +2 -2
- package/build/src/rules/selection_screen_texts_missing.js +2 -2
- package/build/src/rules/sicf_consistency.js +2 -2
- package/build/src/rules/slow_parameter_passing.js +16 -16
- package/build/src/rules/space_before_dot.js +2 -2
- package/build/src/rules/sql_escape_host_variables.js +1 -1
- package/build/src/rules/sql_value_conversion.js +6 -6
- package/build/src/rules/start_at_tab.js +1 -1
- package/build/src/rules/static_call_via_instance.js +4 -4
- package/build/src/rules/strict_sql.js +6 -6
- package/build/src/rules/sy_modification.js +6 -6
- package/build/src/rules/tabl_enhancement_category.js +2 -2
- package/build/src/rules/tables_declared_locally.js +2 -2
- package/build/src/rules/type_form_parameters.js +2 -2
- package/build/src/rules/unnecessary_pragma.js +29 -29
- package/build/src/rules/unnecessary_return.js +11 -11
- package/build/src/rules/unused_macros.js +6 -6
- package/build/src/rules/unused_methods.js +12 -12
- package/build/src/rules/unused_variables.js +12 -12
- package/build/src/rules/use_bool_expression.js +8 -8
- package/build/src/rules/use_class_based_exceptions.js +8 -8
- package/build/src/rules/use_line_exists.js +7 -7
- package/build/src/rules/use_new.js +4 -4
- package/build/src/rules/when_others_last.js +6 -6
- package/build/src/rules/xml_consistency.js +3 -3
- package/package.json +72 -72
|
@@ -26,13 +26,13 @@ class UnusedMacros {
|
|
|
26
26
|
title: "Unused macros",
|
|
27
27
|
shortDescription: `Checks for unused macro definitions definitions`,
|
|
28
28
|
tags: [_irule_1.RuleTag.Quickfix],
|
|
29
|
-
badExample: `DEFINE foobar1.
|
|
30
|
-
WRITE 'hello'.
|
|
29
|
+
badExample: `DEFINE foobar1.
|
|
30
|
+
WRITE 'hello'.
|
|
31
31
|
END-OF-DEFINITION.`,
|
|
32
|
-
goodExample: `DEFINE foobar2.
|
|
33
|
-
WRITE 'hello'.
|
|
34
|
-
END-OF-DEFINITION.
|
|
35
|
-
|
|
32
|
+
goodExample: `DEFINE foobar2.
|
|
33
|
+
WRITE 'hello'.
|
|
34
|
+
END-OF-DEFINITION.
|
|
35
|
+
|
|
36
36
|
foobar2.`,
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -93,18 +93,18 @@ class UnusedMethods {
|
|
|
93
93
|
key: "unused_methods",
|
|
94
94
|
title: "Unused methods",
|
|
95
95
|
shortDescription: `Checks for unused methods`,
|
|
96
|
-
extendedInformation: `Checks private and protected methods.
|
|
97
|
-
|
|
98
|
-
Unused methods are not reported if the object contains parser or syntax errors.
|
|
99
|
-
Quick fixes only appears for private methods or projected methods where the class doesnt have any subclasses.
|
|
100
|
-
|
|
101
|
-
Skips:
|
|
102
|
-
* methods FOR TESTING
|
|
103
|
-
* methods SETUP + TEARDOWN + CLASS_SETUP + CLASS_TEARDOWN in testclasses
|
|
104
|
-
* class_constructor + constructor methods
|
|
105
|
-
* event handlers
|
|
106
|
-
* methods that are redefined
|
|
107
|
-
* INCLUDEs
|
|
96
|
+
extendedInformation: `Checks private and protected methods.
|
|
97
|
+
|
|
98
|
+
Unused methods are not reported if the object contains parser or syntax errors.
|
|
99
|
+
Quick fixes only appears for private methods or projected methods where the class doesnt have any subclasses.
|
|
100
|
+
|
|
101
|
+
Skips:
|
|
102
|
+
* methods FOR TESTING
|
|
103
|
+
* methods SETUP + TEARDOWN + CLASS_SETUP + CLASS_TEARDOWN in testclasses
|
|
104
|
+
* class_constructor + constructor methods
|
|
105
|
+
* event handlers
|
|
106
|
+
* methods that are redefined
|
|
107
|
+
* INCLUDEs
|
|
108
108
|
`,
|
|
109
109
|
tags: [_irule_1.RuleTag.Quickfix],
|
|
110
110
|
pragma: "##CALLED",
|
|
@@ -99,23 +99,23 @@ class UnusedVariables {
|
|
|
99
99
|
key: "unused_variables",
|
|
100
100
|
title: "Unused variables",
|
|
101
101
|
shortDescription: `Checks for unused variables and constants`,
|
|
102
|
-
extendedInformation: `Skips event parameters.
|
|
103
|
-
|
|
104
|
-
Note that this currently does not work if the source code uses macros.
|
|
105
|
-
|
|
106
|
-
Unused variables are not reported if the object contains parser or syntax errors.
|
|
107
|
-
|
|
102
|
+
extendedInformation: `Skips event parameters.
|
|
103
|
+
|
|
104
|
+
Note that this currently does not work if the source code uses macros.
|
|
105
|
+
|
|
106
|
+
Unused variables are not reported if the object contains parser or syntax errors.
|
|
107
|
+
|
|
108
108
|
Errors found in INCLUDES are reported for the main program.`,
|
|
109
109
|
tags: [_irule_1.RuleTag.Quickfix],
|
|
110
110
|
pragma: "##NEEDED",
|
|
111
111
|
pseudoComment: "EC NEEDED",
|
|
112
|
-
badExample: `DATA: BEGIN OF blah1,
|
|
113
|
-
test TYPE string,
|
|
114
|
-
test2 TYPE string,
|
|
112
|
+
badExample: `DATA: BEGIN OF blah1,
|
|
113
|
+
test TYPE string,
|
|
114
|
+
test2 TYPE string,
|
|
115
115
|
END OF blah1.`,
|
|
116
|
-
goodExample: `DATA: BEGIN OF blah2 ##NEEDED,
|
|
117
|
-
test TYPE string,
|
|
118
|
-
test2 TYPE string,
|
|
116
|
+
goodExample: `DATA: BEGIN OF blah2 ##NEEDED,
|
|
117
|
+
test TYPE string,
|
|
118
|
+
test2 TYPE string,
|
|
119
119
|
END OF blah2.`,
|
|
120
120
|
};
|
|
121
121
|
}
|
|
@@ -60,15 +60,15 @@ class UseBoolExpression extends _abap_rule_1.ABAPRule {
|
|
|
60
60
|
shortDescription: `Use boolean expression, xsdbool from 740sp08 and up, boolc from 702 and up`,
|
|
61
61
|
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-xsdbool-to-set-boolean-variables`,
|
|
62
62
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.Quickfix, _irule_1.RuleTag.SingleFile],
|
|
63
|
-
badExample: `IF line IS INITIAL.
|
|
64
|
-
has_entries = abap_false.
|
|
65
|
-
ELSE.
|
|
66
|
-
has_entries = abap_true.
|
|
67
|
-
ENDIF.
|
|
68
|
-
|
|
63
|
+
badExample: `IF line IS INITIAL.
|
|
64
|
+
has_entries = abap_false.
|
|
65
|
+
ELSE.
|
|
66
|
+
has_entries = abap_true.
|
|
67
|
+
ENDIF.
|
|
68
|
+
|
|
69
69
|
DATA(fsdf) = COND #( WHEN foo <> bar THEN abap_true ELSE abap_false ).`,
|
|
70
|
-
goodExample: `DATA(has_entries) = xsdbool( line IS NOT INITIAL ).
|
|
71
|
-
|
|
70
|
+
goodExample: `DATA(has_entries) = xsdbool( line IS NOT INITIAL ).
|
|
71
|
+
|
|
72
72
|
DATA(fsdf) = xsdbool( foo <> bar ).`,
|
|
73
73
|
};
|
|
74
74
|
}
|
|
@@ -55,15 +55,15 @@ class UseClassBasedExceptions extends _abap_rule_1.ABAPRule {
|
|
|
55
55
|
shortDescription: `Use class based exceptions, checks interface and class definitions`,
|
|
56
56
|
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#use-class-based-exceptions`,
|
|
57
57
|
tags: [_irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
|
|
58
|
-
badExample: `INTERFACE lif.
|
|
59
|
-
METHODS load_data
|
|
60
|
-
EXCEPTIONS
|
|
61
|
-
invalid_parameter.
|
|
58
|
+
badExample: `INTERFACE lif.
|
|
59
|
+
METHODS load_data
|
|
60
|
+
EXCEPTIONS
|
|
61
|
+
invalid_parameter.
|
|
62
62
|
ENDINTERFACE.`,
|
|
63
|
-
goodExample: `INTERFACE lif.
|
|
64
|
-
METHODS load_data
|
|
65
|
-
RAISING
|
|
66
|
-
cx_something.
|
|
63
|
+
goodExample: `INTERFACE lif.
|
|
64
|
+
METHODS load_data
|
|
65
|
+
RAISING
|
|
66
|
+
cx_something.
|
|
67
67
|
ENDINTERFACE.`,
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -55,15 +55,15 @@ class UseLineExists extends _abap_rule_1.ABAPRule {
|
|
|
55
55
|
key: "use_line_exists",
|
|
56
56
|
title: "Use line_exists",
|
|
57
57
|
shortDescription: `Use line_exists, from 740sp02 and up`,
|
|
58
|
-
extendedInformation: `
|
|
59
|
-
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-line_exists-to-read-table-or-loop-at
|
|
60
|
-
|
|
58
|
+
extendedInformation: `
|
|
59
|
+
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-line_exists-to-read-table-or-loop-at
|
|
60
|
+
|
|
61
61
|
Not reported if the READ TABLE statement contains BINARY SEARCH.`,
|
|
62
62
|
tags: [_irule_1.RuleTag.Upport, _irule_1.RuleTag.Styleguide, _irule_1.RuleTag.SingleFile],
|
|
63
|
-
badExample: `READ TABLE my_table TRANSPORTING NO FIELDS WITH KEY key = 'A'.
|
|
64
|
-
IF sy-subrc = 0.
|
|
63
|
+
badExample: `READ TABLE my_table TRANSPORTING NO FIELDS WITH KEY key = 'A'.
|
|
64
|
+
IF sy-subrc = 0.
|
|
65
65
|
ENDIF.`,
|
|
66
|
-
goodExample: `IF line_exists( my_table[ key = 'A' ] ).
|
|
66
|
+
goodExample: `IF line_exists( my_table[ key = 'A' ] ).
|
|
67
67
|
ENDIF.`,
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -80,7 +80,7 @@ ENDIF.`,
|
|
|
80
80
|
}
|
|
81
81
|
const release = this.reg.getConfig().getRelease();
|
|
82
82
|
const langVers = this.reg.getConfig().getLanguageVersion();
|
|
83
|
-
if (this.reg.getConfig().
|
|
83
|
+
if (this.reg.getConfig().isOpenABAP()) {
|
|
84
84
|
return [];
|
|
85
85
|
}
|
|
86
86
|
else if (!(0, version_1.releaseAtLeast)(release, version_1.Release.v740sp02) && langVers !== version_1.LanguageVersion.Cloud) {
|
|
@@ -56,10 +56,10 @@ class UseNew extends _abap_rule_1.ABAPRule {
|
|
|
56
56
|
key: "use_new",
|
|
57
57
|
title: "Use NEW",
|
|
58
58
|
shortDescription: `Checks for deprecated CREATE OBJECT statements.`,
|
|
59
|
-
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-new-to-create-object
|
|
60
|
-
|
|
61
|
-
If the target variable is referenced in the CREATE OBJECT statement, no errors are issued
|
|
62
|
-
|
|
59
|
+
extendedInformation: `https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-new-to-create-object
|
|
60
|
+
|
|
61
|
+
If the target variable is referenced in the CREATE OBJECT statement, no errors are issued
|
|
62
|
+
|
|
63
63
|
Applicable from v740sp02 and up`,
|
|
64
64
|
badExample: `CREATE OBJECT ref.`,
|
|
65
65
|
goodExample: `ref = NEW #( ).`,
|
|
@@ -54,13 +54,13 @@ class WhenOthersLast extends _abap_rule_1.ABAPRule {
|
|
|
54
54
|
title: "WHEN OTHERS last",
|
|
55
55
|
shortDescription: `Checks that WHEN OTHERS is placed the last within a CASE statement.`,
|
|
56
56
|
tags: [_irule_1.RuleTag.SingleFile],
|
|
57
|
-
badExample: `CASE bar.
|
|
58
|
-
WHEN OTHERS.
|
|
59
|
-
WHEN 2.
|
|
57
|
+
badExample: `CASE bar.
|
|
58
|
+
WHEN OTHERS.
|
|
59
|
+
WHEN 2.
|
|
60
60
|
ENDCASE.`,
|
|
61
|
-
goodExample: `CASE bar.
|
|
62
|
-
WHEN 2.
|
|
63
|
-
WHEN OTHERS.
|
|
61
|
+
goodExample: `CASE bar.
|
|
62
|
+
WHEN 2.
|
|
63
|
+
WHEN OTHERS.
|
|
64
64
|
ENDCASE.`,
|
|
65
65
|
};
|
|
66
66
|
}
|
|
@@ -58,9 +58,9 @@ class XMLConsistency {
|
|
|
58
58
|
key: "xml_consistency",
|
|
59
59
|
title: "XML consistency",
|
|
60
60
|
shortDescription: `Checks the consistency of main XML files`,
|
|
61
|
-
extendedInformation: `Checks:
|
|
62
|
-
* XML is well-formed and parseable
|
|
63
|
-
* Naming for CLAS and INTF objects
|
|
61
|
+
extendedInformation: `Checks:
|
|
62
|
+
* XML is well-formed and parseable
|
|
63
|
+
* Naming for CLAS and INTF objects
|
|
64
64
|
* Texts and translations do not exceed maximum allowed length.`,
|
|
65
65
|
tags: [_irule_1.RuleTag.Naming, _irule_1.RuleTag.Syntax],
|
|
66
66
|
};
|
package/package.json
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "abaplint - Core API",
|
|
5
|
-
"main": "build/src/index.js",
|
|
6
|
-
"typings": "build/abaplint.d.ts",
|
|
7
|
-
"funding": "https://github.com/sponsors/larshp",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
10
|
-
"lint:fix": "eslint \"src/**/*.ts\" \"test/**/*.ts\" --fix",
|
|
11
|
-
"clean": "rm -rf build",
|
|
12
|
-
"compile": "npm run clean && tsc && node scripts/version.js",
|
|
13
|
-
"watch": "tsc --watch",
|
|
14
|
-
"test": "npm run compile && mocha --timeout 1000 && npm run lint && npm run schema && api-extractor run",
|
|
15
|
-
"test:only": "npm run compile && mocha --timeout 1000000",
|
|
16
|
-
"test:parallel": "npm run compile && mocha --timeout 1000 --parallel --reporter dot",
|
|
17
|
-
"coverage": "npm run compile && c8 mocha && c8 report --reporter=html",
|
|
18
|
-
"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",
|
|
19
|
-
"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",
|
|
20
|
-
"syntax_performance": "tsc && curl -o lexer_performance.abap https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap && node build/adhoc/syntax_performance.js",
|
|
21
|
-
"typed_array": "tsc && node build/adhoc/typed_array.js",
|
|
22
|
-
"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",
|
|
23
|
-
"publish:minor": "npm --no-git-tag-version version minor && npm install && npm run test && npm publish --access public",
|
|
24
|
-
"publish:patch": "npm --no-git-tag-version version patch && npm install && npm run test && npm publish --access public"
|
|
25
|
-
},
|
|
26
|
-
"mocha": {
|
|
27
|
-
"recursive": true,
|
|
28
|
-
"reporter": "progress",
|
|
29
|
-
"spec": "build/test/**/*.js",
|
|
30
|
-
"require": "source-map-support/register"
|
|
31
|
-
},
|
|
32
|
-
"c8": {
|
|
33
|
-
"include": [
|
|
34
|
-
"build/src/**/*.js"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"repository": {
|
|
38
|
-
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/abaplint/abaplint.git"
|
|
40
|
-
},
|
|
41
|
-
"engines": {
|
|
42
|
-
"node": ">=18.0.0"
|
|
43
|
-
},
|
|
44
|
-
"keywords": [
|
|
45
|
-
"ABAP",
|
|
46
|
-
"lint"
|
|
47
|
-
],
|
|
48
|
-
"author": "Lars Hvam Petersen",
|
|
49
|
-
"license": "MIT",
|
|
50
|
-
"bugs": {
|
|
51
|
-
"url": "https://github.com/abaplint/abaplint/issues"
|
|
52
|
-
},
|
|
53
|
-
"homepage": "https://abaplint.org",
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@microsoft/api-extractor": "^7.58.9",
|
|
56
|
-
"@types/chai": "^4.3.20",
|
|
57
|
-
"@types/mocha": "^10.0.10",
|
|
58
|
-
"@types/node": "^24.13.2",
|
|
59
|
-
"c8": "^11.0.0",
|
|
60
|
-
"chai": "^4.5.0",
|
|
61
|
-
"eslint": "^9.39.4",
|
|
62
|
-
"mocha": "^11.7.6",
|
|
63
|
-
"source-map-support": "^0.5.21",
|
|
64
|
-
"ts-json-schema-generator": "^2.9.0",
|
|
65
|
-
"typescript": "^6.0.3"
|
|
66
|
-
},
|
|
67
|
-
"dependencies": {
|
|
68
|
-
"fast-xml-parser": "^5.9.3",
|
|
69
|
-
"json5": "^2.2.3",
|
|
70
|
-
"vscode-languageserver-types": "^3.18.0"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abaplint/core",
|
|
3
|
+
"version": "2.120.0",
|
|
4
|
+
"description": "abaplint - Core API",
|
|
5
|
+
"main": "build/src/index.js",
|
|
6
|
+
"typings": "build/abaplint.d.ts",
|
|
7
|
+
"funding": "https://github.com/sponsors/larshp",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
10
|
+
"lint:fix": "eslint \"src/**/*.ts\" \"test/**/*.ts\" --fix",
|
|
11
|
+
"clean": "rm -rf build",
|
|
12
|
+
"compile": "npm run clean && tsc && node scripts/version.js",
|
|
13
|
+
"watch": "tsc --watch",
|
|
14
|
+
"test": "npm run compile && mocha --timeout 1000 && npm run lint && npm run schema && api-extractor run",
|
|
15
|
+
"test:only": "npm run compile && mocha --timeout 1000000",
|
|
16
|
+
"test:parallel": "npm run compile && mocha --timeout 1000 --parallel --reporter dot",
|
|
17
|
+
"coverage": "npm run compile && c8 mocha && c8 report --reporter=html",
|
|
18
|
+
"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",
|
|
19
|
+
"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",
|
|
20
|
+
"syntax_performance": "tsc && curl -o lexer_performance.abap https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap && node build/adhoc/syntax_performance.js",
|
|
21
|
+
"typed_array": "tsc && node build/adhoc/typed_array.js",
|
|
22
|
+
"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",
|
|
23
|
+
"publish:minor": "npm --no-git-tag-version version minor && npm install && npm run test && npm publish --access public",
|
|
24
|
+
"publish:patch": "npm --no-git-tag-version version patch && npm install && npm run test && npm publish --access public"
|
|
25
|
+
},
|
|
26
|
+
"mocha": {
|
|
27
|
+
"recursive": true,
|
|
28
|
+
"reporter": "progress",
|
|
29
|
+
"spec": "build/test/**/*.js",
|
|
30
|
+
"require": "source-map-support/register"
|
|
31
|
+
},
|
|
32
|
+
"c8": {
|
|
33
|
+
"include": [
|
|
34
|
+
"build/src/**/*.js"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/abaplint/abaplint.git"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18.0.0"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"ABAP",
|
|
46
|
+
"lint"
|
|
47
|
+
],
|
|
48
|
+
"author": "Lars Hvam Petersen",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/abaplint/abaplint/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://abaplint.org",
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@microsoft/api-extractor": "^7.58.9",
|
|
56
|
+
"@types/chai": "^4.3.20",
|
|
57
|
+
"@types/mocha": "^10.0.10",
|
|
58
|
+
"@types/node": "^24.13.2",
|
|
59
|
+
"c8": "^11.0.0",
|
|
60
|
+
"chai": "^4.5.0",
|
|
61
|
+
"eslint": "^9.39.4",
|
|
62
|
+
"mocha": "^11.7.6",
|
|
63
|
+
"source-map-support": "^0.5.21",
|
|
64
|
+
"ts-json-schema-generator": "^2.9.0",
|
|
65
|
+
"typescript": "^6.0.3"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"fast-xml-parser": "^5.9.3",
|
|
69
|
+
"json5": "^2.2.3",
|
|
70
|
+
"vscode-languageserver-types": "^3.18.0"
|
|
71
|
+
}
|
|
72
|
+
}
|