Bugfix: Task fails even though complexity is within bounds

Added a check to make sure task only breaks when the Haltsted difficulty or cyclomatic complexity for functions is above threshold.