This follows the clang diagnostics example and does the same thing. It just uses the flake8 program and the regex's are a bit different.
doc