@abaplint/core 2.90.2 → 2.90.5

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 (82) hide show
  1. package/README.md +6 -6
  2. package/build/src/abap/2_statements/statements/insert_internal.js +3 -3
  3. package/build/src/abap/5_syntax/_builtin.js +3 -3
  4. package/build/src/abap/5_syntax/statements/insert_internal.js +2 -2
  5. package/build/src/abap/flow/flow_graph.js +7 -7
  6. package/build/src/lsp/help.js +7 -7
  7. package/build/src/registry.js +1 -1
  8. package/build/src/rules/7bit_ascii.js +2 -2
  9. package/build/src/rules/abapdoc.js +1 -1
  10. package/build/src/rules/align_parameters.js +33 -33
  11. package/build/src/rules/ambiguous_statement.js +5 -5
  12. package/build/src/rules/avoid_use.js +8 -8
  13. package/build/src/rules/begin_end_names.js +4 -4
  14. package/build/src/rules/begin_single_include.js +12 -12
  15. package/build/src/rules/call_transaction_authority_check.js +3 -3
  16. package/build/src/rules/chain_mainly_declarations.js +4 -4
  17. package/build/src/rules/check_abstract.js +2 -2
  18. package/build/src/rules/check_comments.js +4 -4
  19. package/build/src/rules/check_include.js +3 -3
  20. package/build/src/rules/check_subrc.js +8 -8
  21. package/build/src/rules/classic_exceptions_overlap.js +8 -8
  22. package/build/src/rules/commented_code.js +1 -1
  23. package/build/src/rules/constructor_visibility_public.js +4 -4
  24. package/build/src/rules/contains_tab.js +2 -2
  25. package/build/src/rules/dangerous_statement.js +1 -1
  26. package/build/src/rules/downport.js +90 -63
  27. package/build/src/rules/exit_or_check.js +3 -3
  28. package/build/src/rules/exporting.js +1 -1
  29. package/build/src/rules/forbidden_identifier.js +1 -1
  30. package/build/src/rules/forbidden_void_type.js +2 -2
  31. package/build/src/rules/functional_writing.js +17 -17
  32. package/build/src/rules/global_class.js +8 -8
  33. package/build/src/rules/identical_conditions.js +2 -2
  34. package/build/src/rules/identical_contents.js +14 -14
  35. package/build/src/rules/identical_descriptions.js +4 -4
  36. package/build/src/rules/if_in_if.js +7 -7
  37. package/build/src/rules/implement_methods.js +3 -3
  38. package/build/src/rules/in_statement_indentation.js +11 -11
  39. package/build/src/rules/intf_referencing_clas.js +3 -3
  40. package/build/src/rules/line_break_style.js +2 -2
  41. package/build/src/rules/line_length.js +1 -1
  42. package/build/src/rules/line_only_punc.js +1 -1
  43. package/build/src/rules/local_variable_names.js +2 -2
  44. package/build/src/rules/many_parentheses.js +10 -10
  45. package/build/src/rules/max_one_method_parameter_per_line.js +7 -7
  46. package/build/src/rules/max_one_statement.js +3 -3
  47. package/build/src/rules/method_overwrites_builtin.js +2 -2
  48. package/build/src/rules/nesting.js +1 -1
  49. package/build/src/rules/no_chained_assignment.js +1 -1
  50. package/build/src/rules/no_external_form_calls.js +2 -2
  51. package/build/src/rules/no_inline_in_optional_branches.js +11 -11
  52. package/build/src/rules/no_public_attributes.js +1 -1
  53. package/build/src/rules/no_yoda_conditions.js +4 -4
  54. package/build/src/rules/nrob_consistency.js +2 -2
  55. package/build/src/rules/obsolete_statement.js +40 -40
  56. package/build/src/rules/omit_parameter_name.js +3 -3
  57. package/build/src/rules/omit_receiving.js +13 -13
  58. package/build/src/rules/parser_702_chaining.js +2 -2
  59. package/build/src/rules/parser_error.js +2 -2
  60. package/build/src/rules/parser_missing_space.js +1 -1
  61. package/build/src/rules/prefer_inline.js +16 -16
  62. package/build/src/rules/prefer_is_not.js +7 -7
  63. package/build/src/rules/prefer_raise_exception_new.js +3 -3
  64. package/build/src/rules/prefer_returning_to_exporting.js +1 -1
  65. package/build/src/rules/prefer_xsdbool.js +2 -2
  66. package/build/src/rules/remove_descriptions.js +4 -4
  67. package/build/src/rules/rfc_error_handling.js +9 -9
  68. package/build/src/rules/select_add_order_by.js +5 -5
  69. package/build/src/rules/select_performance.js +2 -2
  70. package/build/src/rules/sicf_consistency.js +2 -2
  71. package/build/src/rules/space_before_dot.js +2 -2
  72. package/build/src/rules/start_at_tab.js +1 -1
  73. package/build/src/rules/sy_modification.js +2 -2
  74. package/build/src/rules/tabl_enhancement_category.js +2 -2
  75. package/build/src/rules/unnecessary_pragma.js +14 -14
  76. package/build/src/rules/unused_methods.js +9 -9
  77. package/build/src/rules/unused_variables.js +6 -6
  78. package/build/src/rules/use_bool_expression.js +8 -8
  79. package/build/src/rules/use_line_exists.js +6 -6
  80. package/build/src/rules/use_new.js +4 -4
  81. package/build/src/rules/when_others_last.js +6 -6
  82. package/package.json +66 -66
@@ -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,66 @@
1
- {
2
- "name": "@abaplint/core",
3
- "version": "2.90.2",
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
- "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",
16
- "publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
17
- "publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public"
18
- },
19
- "mocha": {
20
- "recursive": true,
21
- "reporter": "progress",
22
- "spec": "build/test/**/*.js",
23
- "require": "source-map-support/register"
24
- },
25
- "c8": {
26
- "include": [
27
- "build/src/**/*.js"
28
- ]
29
- },
30
- "repository": {
31
- "type": "git",
32
- "url": "git+https://github.com/abaplint/abaplint.git"
33
- },
34
- "engines": {
35
- "node": ">=12.0.0"
36
- },
37
- "keywords": [
38
- "ABAP",
39
- "lint"
40
- ],
41
- "author": "Lars Hvam Petersen",
42
- "license": "MIT",
43
- "bugs": {
44
- "url": "https://github.com/abaplint/abaplint/issues"
45
- },
46
- "homepage": "https://abaplint.org",
47
- "devDependencies": {
48
- "@microsoft/api-extractor": "^7.23.2",
49
- "@types/chai": "^4.3.1",
50
- "@types/mocha": "^9.1.1",
51
- "@types/node": "^17.0.32",
52
- "chai": "^4.3.6",
53
- "eslint": "^8.15.0",
54
- "mocha": "^10.0.0",
55
- "c8": "^7.11.2",
56
- "source-map-support": "^0.5.21",
57
- "ts-json-schema-generator": "^1.0.0",
58
- "typescript": "^4.6.4"
59
- },
60
- "dependencies": {
61
- "fast-xml-parser": "^4.0.7",
62
- "json5": "^2.2.1",
63
- "vscode-languageserver-protocol": "=3.16.0",
64
- "vscode-languageserver-types": "=3.16.0"
65
- }
66
- }
1
+ {
2
+ "name": "@abaplint/core",
3
+ "version": "2.90.5",
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
+ "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",
16
+ "publish:minor": "npm --no-git-tag-version version minor && rm -rf build && npm install && npm run test && npm publish --access public",
17
+ "publish:patch": "npm --no-git-tag-version version patch && rm -rf build && npm install && npm run test && npm publish --access public"
18
+ },
19
+ "mocha": {
20
+ "recursive": true,
21
+ "reporter": "progress",
22
+ "spec": "build/test/**/*.js",
23
+ "require": "source-map-support/register"
24
+ },
25
+ "c8": {
26
+ "include": [
27
+ "build/src/**/*.js"
28
+ ]
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/abaplint/abaplint.git"
33
+ },
34
+ "engines": {
35
+ "node": ">=12.0.0"
36
+ },
37
+ "keywords": [
38
+ "ABAP",
39
+ "lint"
40
+ ],
41
+ "author": "Lars Hvam Petersen",
42
+ "license": "MIT",
43
+ "bugs": {
44
+ "url": "https://github.com/abaplint/abaplint/issues"
45
+ },
46
+ "homepage": "https://abaplint.org",
47
+ "devDependencies": {
48
+ "@microsoft/api-extractor": "^7.23.2",
49
+ "@types/chai": "^4.3.1",
50
+ "@types/mocha": "^9.1.1",
51
+ "@types/node": "^17.0.32",
52
+ "chai": "^4.3.6",
53
+ "eslint": "^8.15.0",
54
+ "mocha": "^10.0.0",
55
+ "c8": "^7.11.2",
56
+ "source-map-support": "^0.5.21",
57
+ "ts-json-schema-generator": "^1.0.0",
58
+ "typescript": "^4.6.4"
59
+ },
60
+ "dependencies": {
61
+ "fast-xml-parser": "^4.0.7",
62
+ "json5": "^2.2.1",
63
+ "vscode-languageserver-protocol": "=3.16.0",
64
+ "vscode-languageserver-types": "=3.16.0"
65
+ }
66
+ }