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
Search text in Local History
Find exactly what you are looking for, even if you removed it
Run tests before commit
Run tests before commit
Make sure your tests pass before reaching the CI/CD pipeline
Sign Git commits with GPG keys
Sign Git commits with GPG keys
Improve the security of your commits by using GPG keys