Also .lua scripts are user-files, and seem to have some trailing spaces -> #45182
Attached patch leaves handling of .lua out. It will take some time (chain of changes depending on each other) before we can check those, so let's leave it to a future ticket.
Once we have "no trailing spaces in end-user files" (just #44697 missing), we should introduce new test script for 'make src-check' against adding new trailing spaces in the future.