差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
java:sonarlint:fixcodesmell [2020/08/01 14:50] tony 建立 |
java:sonarlint:fixcodesmell [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | {{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)]] | ||
+ | * [[.:fixcodesmell:S2696|Instance methods should not write to "static" fields (java:S2696))]] | ||
+ | ===== 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)]] | ||
+ | |||
+ | ===== ===== | ||
+ | ---- | ||
+ | \\ | ||
+ | ~~DISQUS~~ |