I will report here the common complaints and pitfalls, I refer to the Python and C++ guidelines for details
Indentation
Visual Studio Code messes up tabs and indentations. Check if code runs locally and on lxplus, use the "Convert Indentation to Spaces" after finishing the code job. Check the code with emacs for any doubt (it may look differently).
For new code, programs such as black can fix formatting for you automatically