差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
下次修改 Both sides next revision
java:sonarlint:fixcodesmell [2020/08/02 15:15]
tony
java:sonarlint:fixcodesmell [2020/08/03 23:40]
tony
行 1: 行 1:
 {{tag>​SonarLint}} {{tag>​SonarLint}}
 ====== SonarLint | Fix code smell ====== ====== SonarLint | Fix code smell ======
 +===== Blocker =====
 +  * [[.:​fixcodesmell:​S2178|Short-circuit logic should be used in boolean contexts (java:​S2178)]]
 +  * [[.:​fixcodesmell:​S128|Switch cases should end with an unconditional "​break"​ statement (java:​S128)]]
 +===== Critical =====
 +  * [[.:​fixcodesmell:​S3973|A conditionally executed single line should be denoted by indentation (java:​S3973)]]
 +===== Major =====
 +  * [[.:​fixcodesmell:​S2131|Primitives should not be boxed just for "​String"​ conversion (java:​S2131) ]]
 ===== Minor ===== ===== Minor =====
   * [[.:​fixcodesmell:​S1126|Return of boolean expressions should not be wrapped into an "​if-then-else"​ statement (java:​S1126)]]   * [[.:​fixcodesmell:​S1126|Return of boolean expressions should not be wrapped into an "​if-then-else"​ statement (java:​S1126)]]