Browse Source

disable codeclimate complaining about else statements

encouraging early return is good, but this check complains about every
single else statement in the code.

see https://github.com/yiisoft/yii2/pull/13126#issuecomment-264653343
tags/2.0.11
Carsten Brandt 8 years ago
parent
commit
ce9e6fd6f9
  1. 4
      .codeclimate.yml

4
.codeclimate.yml

@ -14,6 +14,10 @@ engines:
enabled: true enabled: true
# configure checks, see https://phpmd.org/rules/index.html for details # configure checks, see https://phpmd.org/rules/index.html for details
checks: checks:
# else is not always bad. Disabling this as there is no reason to differentiate
# between early return and normal else cases.
CleanCode/ElseExpression:
enabled: false
# Static access on Yii::$app is normal in Yii # Static access on Yii::$app is normal in Yii
CleanCode/StaticAccess: CleanCode/StaticAccess:
enabled: false enabled: false

Loading…
Cancel
Save