差異處

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

連向這個比對檢視

Both sides previous revision 前次修改
java:code_quality [2020/08/02 18:01]
tony
java:code_quality [2020/08/02 18:02] (目前版本)
tony
行 24: 行 24:
   * [[java:​sonarlint|SonarLint]]   * [[java:​sonarlint|SonarLint]]
   * [[java:​findbug|FindBug]]   * [[java:​findbug|FindBug]]
-===== Find Bug ===== 
-能夠幫你找到code內不好的'​味道'​與隱藏的bug,下面的內容是我邊修邊記錄的內容。友藏內心的獨白:​ 真的找的到bug!\\ 
-(*代表我認為最容易犯的錯!) 
-==== Bad Practice ==== 
-  * [[.:​code_quality:​findbug:​NM_METHOD_NAMING_CONVENTION]] 
-  * [[.:​code_quality:​findbug:​NM_CLASS_NAMING_CONVENTION]] 
-==== Dodgy code ==== 
-  * [[.:​code_quality:​findbug:​DMI_HARDCODED_ABSOLUTE_FILENAME]] 
-  * [[.:​code_quality:​findbug:​ICAST_IDIV_CAST_TO_DOUBLE]]  ​ 
-==== Performance ==== 
-  * [[.:​code_quality:​findbug:​BX_BOXING_IMMEDIATELY_UNBOXED]] 
-  * [[.:​code_quality:​findbug:​BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION]] 
-  * [[.:​code_quality:​findbug:​DM_NEXTINT_VIA_NEXTDOUBLE]] 
-  * [[.:​code_quality:​findbug:​DM_NUMBER_CTOR]] 
-  * [[.:​code_quality:​findbug:​DM_STRING_CTOR]] 
-  * [[.:​code_quality:​findbug:​DM_STRING_VOID_CTOR]] 
-  * [[.:​code_quality:​findbug:​SBSC_USE_STRINGBUFFER_CONCATENATION]] 
-  * [[.:​code_quality:​findbug:​WMI_WRONG_MAP_ITERATOR]] * 
-==== EXPERIMENTAL ==== 
-  * [[.:​code_quality:​findbug:​OBL_UNSATISFIED_OBLIGATION]] * 
-==== STYLE ==== 
-  * [[.:​code_quality:​findbug:​DLS_DEAD_LOCAL_STORE]] 
-  * [[.:​code_quality:​findbug:​RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE]] 
-==== CORRECTNESS ==== 
-  * [[.:​code_quality:​findbug:​NP_NULL_ON_SOME_PATH]] 
-  * [[.:​code_quality:​findbug:​BIT_IOR_OF_SIGNED_BYTE]] * 
- 
-==== MALICIOUS_CODE ==== 
-  * [[.:​code_quality:​findbug:​EI_EXPOSE_REP1]] * 
-  * [[.:​code_quality:​findbug:​EI_EXPOSE_REP2]] * 
- 
 ==== Reference ==== ==== Reference ====
   - [[http://​findbugs.sourceforge.net/​|FindBugs官方網站]]   - [[http://​findbugs.sourceforge.net/​|FindBugs官方網站]]