Skip to content

ricardogarfe/sonar-java-code-smells

Repository files navigation

Quality Gate Status

Java Code Smells

It requires to install the Java plugin, at least version 3.6, which is compatible with SonarQube 4.5.x LTS.

Switch is evil

Replace Conditional with Polymorphism

You have a conditional that chooses different behavior depending on the type of an object.

Move each leg of the conditional to an overriding method in a subclass. Make the original method abstract.

About

Sonarqube Java Code Smells Rules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •