You should already have set up your inspectIT development environment. On this page you already installed and configured all necessary tools that we use for static code analysis. This page shows you how you can use them (in a brief way).
Checkstyle
Open the Checkstyle "Violations Overview" view (Window -> Show View -> Other -> Checkstyle -> Checkstyle violations)
Select the projects you want to check, right-click and select "Checkstyle -> Check project"
The Checkstype violations view shows you all violations
Ensure that you have to violation prior to a pull request
PMD
Open the Checkstyle "Violations Overview" view (Window -> Show View -> Other -> PMD -> Violations Overview)
Select the projects you want to check, right-click and select "PMD -> Check project"
The PMD violations view shows you all violations
Ensure that you have to violation prior to a pull request