Repository navigation
Replace READ TABLE, APPEND and COLLECT, forbid them - #118
Merged
Merged
Conversation
forbidden_statement now carries the list abap2UI5/samples carries: DESCRIBE, REFRESH, RANGES, SELECT ... ENDSELECT, COLLECT, OVERLAY, LEAVE, TYPE-POOLS, PERFORM, FORM, WRITE, READ TABLE, APPEND, GET REFERENCE, CONCATENATE, CONDENSE, TRANSLATE, REPLACE, FIND, SHIFT and CHECK. abaplint 2.120.120, because the pinned 2.120.91 did not know the rule. APPEND (38, two of them in the business event handler abaplint does not parse) becomes INSERT ... INTO TABLE - every target is a standard table or a RAP response table, so each row still lands at the end - and INSERT INITIAL LINE INTO TABLE ... ASSIGNING for the generic parameter table of the launchpad sample. READ TABLE (7) becomes ASSIGN itab[ ... ] with IS [NOT] ASSIGNED, UNASSIGNed first inside the loops of the Excel import; a guard on IS INITIAL before t_result[ 1 ] in the draft sample; VALUE abap_methdescr( ... OPTIONAL ) for the method lookup; line_exists( ) in the JSON reader. The one COLLECT, the per-currency totals of the travel list, adds into the row of its currency or inserts it. CREATE OBJECT stays: all four create a class named at runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014YZFmEAFUJQM8c8aDK1d6U
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The shared app rule set (abap2UI5
app-rules.json) forbids 21 old statements from abap2UI5 1.151.0 on. This replaces them here: APPEND 38, READ TABLE 7, COLLECT 1 (sample 031, explicit sum into the keyed row). Four dynamicCREATE OBJECTstay. Two INSERTs inz2ui5_cl_smps_evt_tckwere changed by hand — abaplint cannot parse that file.@abaplint/cli2.120.120 (the pinned version did not know the rule).Checks on DEV: every step of
npm run checkand all 14 one-package branches rebuilt locally — green exceptcheck:app-rules, green once abap2UI5/abap2UI5#3049 is merged.Merge order: 5 of 8, after abap2UI5 1.151.0 — see abap2UI5/abap2UI5#3049.
Generated by Claude Code