-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when comments in the middle of a command MOVE. #147
Comments
Hi openPhil, thanks for reporting this! Yes, comments, pragmas or colons in unexpected places are annoying… but this should be fixed in the next release. To identify more of these issues, I now implemented a "stress test" for both the unit tests of ABAP cleaner and the >30 MB of real-life ABAP code on which I run ABAP cleaner before every release. With the stress test, each code document is now additionally tested 128 times, and every time,
Then all cleanup rules are executed on the code, and the test checks whether referential integrity is kept. So you could say, the stress test now cleans approx. 4000 MB of code with lots of comments, pragmas, and colons in all sorts of weird places. This did find a few more issues which will all be fixed in the next release; and the stress test will of course check regression for further development efforts. Kind regards, |
Hi, concatenate ##needed
*put advertisement here:
lv_a ##needed lv_b into: ##needed "really
data(lv_c), data(lv_x). (this beautiful code doesn't break anything (yet), it is just to explain me :) |
Hi openPhiL, this should now be fixed with version 1.7.2, which was just released! And you're right, it would be a nice enhancement of the stress test to introduce multiple elements into the same statement. Of course, to some extent, this already happens, because the element added by the stress test comes on top of what comments, pragmas, and colons are already there. But I'll think of something here! Since there are too many possible combinations, there may be a stress test variant that adds multiple elements in random places (just have to think how to persist changes in case of errors in order to make them reproducible). Kind regards, P.S.: I absolutely like |
Hi guys,
I have this reproduceable issue where the cleaner cannot handle code that has comments in the middle, similar to #88
this works:
this does not:
error in the log reads:
20231013_165445 , line 12: Failed referential integrity test on command starting at source line 12!
The text was updated successfully, but these errors were encountered: