Have you ever wanted to apply php code sniffer validation on certain folders only in PhpStorm (for example when you do plugin development and you want to exclude the core of your libraries)?
Follow these four steps to create custom scope make them available in the inspection column.
Step 1
In > Preferences
Step 2
Step 3
Step 4
Voilà!