|
| 1 | +{ |
| 2 | + // Rename smoke test for the test_rename workflow: renames every sample |
| 3 | + // (and the abap2UI5 framework it references) from the z2ui5 namespace to |
| 4 | + // the placeholder zabap2ui5 and syntax-checks the result. This proves the |
| 5 | + // basic samples stay renameable for a parallel installation alongside a |
| 6 | + // renamed abap2UI5 (see https://abap2ui5.github.io/docs/advanced/renaming.html). |
| 7 | + // Scoped to the portable src/01 set - it is the only namespace-clean, |
| 8 | + // dependency-free-of-src/00 area (src/00 is stripped from the cloud/702 |
| 9 | + // builds and carries non-ABAP objects that are out of scope for renaming). |
| 10 | + // Runs standalone as well: |
| 11 | + // npx abaplint .github/abaplint/rename_test.jsonc --rename |
| 12 | + "global": { |
| 13 | + "files": "/../../src/01/**/*.*" |
| 14 | + }, |
| 15 | + "dependencies": [ |
| 16 | + { |
| 17 | + "url": "https://github.com/abapedia/steampunk-2305-api-intersect-702", |
| 18 | + "files": "/src/**/*.*" |
| 19 | + }, |
| 20 | + { |
| 21 | + "url": "https://github.com/abap2UI5/abap2UI5", |
| 22 | + "files": "/src/**/*.*" |
| 23 | + } |
| 24 | + ], |
| 25 | + "rename": { |
| 26 | + "output": "output", |
| 27 | + "patterns": [ |
| 28 | + { |
| 29 | + "type": "CLAS|INTF|TABL", |
| 30 | + "oldName": "^z2ui5(.*)$", |
| 31 | + "newName": "zabap2ui5$1" |
| 32 | + } |
| 33 | + ] |
| 34 | + }, |
| 35 | + "syntax": { |
| 36 | + "version": "v750", |
| 37 | + "errorNamespace": "." |
| 38 | + }, |
| 39 | + "rules": { |
| 40 | + "allowed_object_types": { |
| 41 | + "allowed": [ |
| 42 | + "CLAS", |
| 43 | + "DEVC", |
| 44 | + "INTF", |
| 45 | + "TABL" |
| 46 | + ] |
| 47 | + }, |
| 48 | + "allowed_object_naming": true, |
| 49 | + "begin_end_names": true, |
| 50 | + "check_ddic": true, |
| 51 | + "check_include": true, |
| 52 | + "check_syntax": true, |
| 53 | + "global_class": true, |
| 54 | + "implement_methods": true, |
| 55 | + "method_implemented_twice": true, |
| 56 | + "parser_error": true, |
| 57 | + "superclass_final": true, |
| 58 | + "unknown_types": true, |
| 59 | + "xml_consistency": true |
| 60 | + } |
| 61 | +} |
0 commit comments