dscanner.analysis.ifelsesame

Members

Classes

IfElseSameCheck
class IfElseSameCheck

Checks for duplicated code in conditional and logical expressions.

  • If statements whose "then" block is the same as the "else" block
  • || and && expressions where the left and right are the same
  • == expressions where the left and right are the same

Meta