There are several flags when the user tries to make or push changes using IntelliJ, in the dialog box shown below.
I pretty much understand all the other options, but not sure what exactly is doing Cleanup?

I tried to read the documentation and found this link, https://www.jetbrains.com/idea/help/commit-changes-dialog.html
and its written
Cleaning up. Select this check box if you want to automatically apply the current scan profile to the files you are about to commit.
But still heβs not sure what this means and what exactly it automatically checks or corrects in the source code.