Codegrip has a group of rule sets that will help you find bugs, code smells, vulnerabilities, and duplication in your project.
Bug - Change this condition
Code Smell - Move the declaration before the usage
You can make your own rule set in your project
Check all the rule sets by clicking on the above Preview Demo Project Settings Ruleset
Now you can start analyzing your code in 3 simple steps