Java code review checklist

xiaoxiao2021-03-05  54

Importance Activation Level Check Item Total Name Important 20 Name Rules Also consistent with the specifications used? 20 Do you follow the minimum length of information? Is the function of the 50HAS / CAN / IS prefix return Boolean? Note Important 10 The comment is clearer and necessary? Is important Y10 complex branch processes have been commented? 10 Distance farthest} Is it already commented? 10 Is the non-universal variable not been annotated? Is important Y50 function already have a document comment? (Function, input, return, and other optional) 10 Special usage is noted? Declaration, blank, indentation 20 Every line only declares a variable? (Especially those possible types of error) Is important 40 variables that have been initialized while defining? Does important 40 types of attributes have implemented initialization? 20 Code paragraphs are appropriately separated by empty line? Is Y20 rationally use spaces to make the program clearer? Is the 20th code line length within the requirements? Is the 20 fold? The statement / function distribution / scale 20 contains whether or not the {} of the composite statement is pairing and conforming to the specification? 20 Whether to give a single loop, the conditional statement has also added {}? Does the 20IF / IF-ELSE / IF-ELSE IF-ELSE / Do-While / Switch-Case statement format meet the specifications? 40 single variables do only single use? Is it important 20 whether there is only a single function? (Do not use; multi-line merge) Important 40 Does a single function execute a single function and match it with its naming? Y20 operator and - - Operatorship application composite specification? The scale important 20 single function does not exceed the number of specified lines? Is important 100 indentation layer not exceeded? Reliability (General / Variables and Statements) Important 100 Do you have eliminated all warnings? Is important Y40 constant variables declared as Final? Important 80 objects have been checked before use? Important 80 Is the local object variable is reset to null? Is an important 70 pair access to an array? (The legal INDEX is [0, Max_Size-1]).

转载请注明原文地址:https://www.9cbs.com/read-31951.html

New Post(0)