Design and Code Review Checklists Assignment Kit
Design and Code Review Checklists Assignment Kit
Design and Code Review Checklists Assignment Kit
PSP Fundamentals
Review Checklists
June 2012
PSP Fundamentals
Assignment Kit for Design and Code Review Checklists
Overview
Topics
Prerequisites
Review Checklists
See Page
Prerequisites
Design review and code review checklist requirements
Checklist examples
Evaluation criteria
11
12
13
14
Reading
Chapter 9
June 2012
Produce, document, and submit design review and code review checklists.
Submit your defect logs for programs 1-2.
Review material for submission as you complete and submit the Grading
Checklist Design and Code Review Checklists.
The checklists should be tailored for the
design notation and programming language that you use
types of defects that you inject (for this assignment, correlate checklist item
with defect number(s))
NOTE: You may include items in your checklist that you feel are important,
even if they are not found in your defect log.
Review Checklists
June 2012
How checklists
are used
Conducting
effective
reviews
Review Checklists
June 2012
The code
review process
Entry Criteria
General
Do the code review with a source-code listing; do not review on the screen!
Step
Activities
Description
Review
Correct
Check
Exit Criteria
Review Checklists
June 2012
The design
review
process
Entry Criteria
General
Where the design was previously verified, check that the analyses
- covered all of the design
- were updated for all design changes
- are correct
- are clear and complete
Step
Activities
Description
Preparation
Review
Fix Check
Exit Criteria
Review Checklists
June 2012
When constructing review checklists, your objective is to identify and devise checks
for the specific defect types that you make.
To build and improve your review checklists, you will need
a documented review process
detailed defect data on the errors that you make
Analyzing defect
data
To ensure that your reviews provide the most benefit, your checklists should focus on
defects that
Review Checklists
June 2012
The next step in building checklists is to devise checks for the highest priority
defect types.
Examine your defect logs to identify the specific defects that you make and
devise checks to find them.
Checks should be devised to specifically address the defects that you make. For
example, if you often forget to include semicolons at the end of a statement,
devise a checklist item for that defect:
While too much detail can be overwhelming, reviews are generally more efficient
when each checklist item has a small, easily tested scope that can be quickly and
accurately checked.
Organizing
checklist items
The final step in building checklists is to organize your checklist items into
categories.
When selecting categories consider the following.
Merge similar items into one category.
Order categories to support your review strategy and process.
The example design review and code review checklists illustrate one possible
organization that you might use.
The design review checklist organization is explained in the following table.
Review Checklists
Category
Complete
Logic
Special Cases
Functional use
Names
Standards
June 2012
Checklist examples
The following design and code review checklists can be used as a starting point
for designing your own checklists.
PSP2 Design Review Checklist
General
Complete
External Limits
Logic
Internal Limits
Special Cases
Functional Use
System
Considerations
Names
Standards
Review Checklists
June 2012
General
Complete
Includes
Initialization
Calls
Names
Strings
Pointers
Output Format
() Pairs
Logic Operators
Line-by-line check
Standards
File Open and Close
Review Checklists
June 2012
10
Evaluation criteria
Reviewing your
assignment
Use the attached grading checklist to check your assignment. Ensure that your
assignment is correct before you submit it.
Evaluation
criteria
Review Checklists
June 2012
11
Date
Program #
Language
Purpose
General
- Review the entire program for each checklist category; do not attempt to review
for more than one category at a time!
- As you complete each review step, check off that item in the box at the right.
- Complete the checklist for one program or program unit before reviewing the
next.
Defec
t Log
#
Review Checklists
June 2012
12
Date
Program #
Language
Purpose
General
- Review the entire program for each checklist category; do not attempt to review
for more than one category at a time!
- As you complete each review step, check off that item in the box at the right.
- Complete the checklist for one program or program unit before reviewing the
next.
Defec
t Log
#
Review Checklists
June 2012
13
Accepted or Resubmit
Comments
Accepted
Resubmit
Legend
- O.K.
X - resubmit
Comments
Comments
General Comments
June 2012 14