warn instead of error on high cyclomatic complexity