Run inspections before commit

Catch all issues before your code reaches the upstream

Committing error-free code reduces the time it takes for reviews to go happen and makes everyone happy. Since not all errors may be caught by tests, you can choose to run Inspections before a commit. This will improve your chances to have fewer bugs in code.

How to use:

Invoke the Commit using ⌘K (macOS) / Ctrl+K (Windows/Linux), then select the Commit options, and select the Analyze code feature.


Related Resources

Search text in Local History
Find exactly what you are looking for, even if you removed it
Cleanup code before commit
Remove all the redundant parenthesis and other unneeded code before commit
Run tests before commit
Make sure your tests pass before reaching the CI/CD pipeline