Platform

Platform overview How it works Authorization testing Evidence & reports Private scanning Integrations

Solutions

Security agencies Product teams Regulated industries Partner programme

Learn

Blog Knowledge hub Compare

Resources

Pricing Documentation Help centre FAQ Security & data What we haven’t proved

Company

About Contact Careers Sign in to the platform Start a $199 pilot →

Home / Help centre / Running scans

Running scans

Why does Lines of code show a dash on my scan?

Quick answer

Lines of code shows a dash when the scan did not read any source code. Black-box scans test only the live URL, so there is nothing to count. White-box scans read a repository and show a figure. To get a count, scan a white-box target with a repository URL.

Why this happens

The Lines of code figure counts the code that a scan analysed. A black-box scan never reads code. It tests the running app at its URL only, so there are no lines to count, and the Results card shows — where the number would be.

A white-box scan clones the repository and reads it. Its card shows a figure instead, such as 57,467 LOC in a scan we captured.

How to fix it

A dash is not an error. You only need to act if you wanted a white-box result, and in that case the fix takes a few minutes.

  1. Look at the scan header first. A white-box scan shows Commit in the subtitle and in the Run details card. A black-box scan does not.
  2. Go to Targets, click the target and check whether it has a repository URL.
  3. If you want code analysed, create a new white-box target with the repository URL and branch. Targets cannot be edited, so you add a new one.
  4. Create a scan profile for the new target and press Scan.
  5. When the scan finishes, Lines of code shows a number in place of the dash.

Cost and tokens still show on black-box scans. Only the code count stays empty.

Still not working?

If a white-box scan still shows a dash, check that the target really has a repository URL and that the profile belongs to that target. For anything else, send the scan ID to /contact.

To see how the two scan types differ, read white-box and black-box scans.

Full tutorial

White-box vs black-box scans: how to choose a scan type in Cyberlop

Step-by-step, with annotated screenshots.

Updated · Back to the help centre

Still stuck?

Tell us what you see on screen and an engineer will help you sort it out.