From https://github.com/wunderio/code-quality/pull/95 