Problem
PHP_CodeSniffer runs fine in my console, but gives me problems when I try to use it in PhpStorm. In should give me warnings about violations when I'm working in the editor. Currently it just returns phpcs: exit status 1
and phpcs: exit status 2
in the event log.
Here is a screenshot that illustrates the problem. And this is a link to a blog post from PhpStorm of how it should work.
What I've tried
I reinstalled the latest version of PHP_CodeSniffer globally and reconfigured the tool in my PhpStorm preferences without any luck.
Question
What can I do to make PHP_CodeSniffer work again by showing me helpful warnings instead of returning exit status codes in the event log?