Reviewing code

How a review works

How a review works

Flagging a finding

  1. Click a line to select it, press and drag to select a block, or Shift-click to extend. On the keyboard, Tab to a file's changes, move with the arrow keys, hold Shift to select a block and press Enter to flag it.
  2. Search by CWE number, name or plain words in the "Weakness" box, or press "Browse the list by family" if you know the kind of fault, not its name.
  3. Pick the closest match. The named weakness, an accepted alternative or one in the same family counts.

Selection size

A selection more than four lines longer than the longest weakness is refused.

the lines the weakness is onTight on themMarkedFour lines longerStill markedThe whole fileToo wide: narrow itIt uses no try
The same file three times, with a selection over it that sits differently each time. The weakness is the longest in its merge request.

How findings are marked

Each weakness you find is worth 10 points, so full marks are 10 times the number of weaknesses. Every wrong try costs 1 point. Your score never goes below 0.

The pass mark is 80% of full marks, shown in points, such as 24 of 30.

Uses a tryCorrectAdds 10 pointsYour lines overlap a weakness not yet found,and you named it or one in its family.Right lines but wrong weaknessCosts 1 pointYour lines overlap a weakness not yet found,but you named a different one. Try another.No weakness hereCosts 1 pointThere is no weakness on those lines.Doesn't use a tryToo wideCosts nothingLonger than the longest selection marked,with or without a weakness. Narrow it.Already foundCosts nothingYour lines overlap only weaknessesyou have already found.

Contesting a result

To contest your score, press the button in the bottom right corner of the challenge and send us a report.

Finishing

A review finishes when you find the last weakness or press "I'm finished".

Passing or skipping finishes the challenge. On Beginner and Intermediate, "Try again" starts a new attempt after a skip or a failed review.

Find the fix

Some codebases let you find the fix for each weakness you found. A right answer earns a bonus point.

Read next

Cannot find the answer here? Send us the question.