iwarapter / sonar-puppet

SonarQube plugin for Puppet code.
Other
26 stars 10 forks source link

Add rule: Remove useless parentheses in conditions #193

Closed racodond closed 9 years ago

racodond commented 9 years ago

if $a == 1 { instead of if ($a == 1) {

if $a == 1 and $b == 2 { instead of if ($a == 1 and $b ==2) {

racodond commented 9 years ago

Fixed in https://github.com/iwarapter/sonar-puppet/pull/230