Skip to main content
Version: 1.1.0

重睛鸟代码溯源

Code Analysis Entry

Page Description:

  1. Users can click the "Services" menu tab to enter the services page.
  2. Repository administrators can enable/disable the visibility of the code analysis menu in the "Repository Settings" tab under project navigation.

Code Analysis Detection

Page Description:

  1. This page shows when there are no historical analysis records.
  2. The "New Analysis" button is only visible to repository administrators. When repository developers, observers, or visitors access this page, the "New Analysis" button is not visible.
  3. Clicking the "New Analysis" button requires checking whether the code analysis feature is enabled.

Branch Selection

Page Description:

  1. When users click the "New Analysis" button, a dialog appears to select and fill in branch information.
  2. The detection type and detection parameters shown in the image are default values that users cannot modify. They are displayed on the interface only to inform users of their purpose.
  3. Clicking "Start Detection" here initiates detection based on the selected branch, creating a new detection list.

List Display

Page Description:

  1. When the detection list has more than one row, a branch name filter dropdown box is provided to the left of the "New Analysis" button. The dropdown options are a collection of branches in the list. If the repository has branches 1, 2, 3, 4, 5, and this list has branches 3, 4, then the dropdown box will only contain branch types 3 and 4.
  2. When a new analysis task is in progress, a percentage progress bar shows the current progress in the detection status.
  3. Clicking the "Rescan" button will bring up a new analysis dialog that retains all previously configured branch information. The detection branch cannot be modified (branch dropdown is grayed out). After confirming, a new detection record will be added.

Result Display

Page Description:

  1. When users click the "View" button in the code detection "Operations" column, the results display page will expand in the current page. When users click the "View" button again, the results display page will retract; when users click the "View" button of another detection record, that record's results page will expand, and the currently expanded results display page will retract.
  2. When the detection status is "Failed" or currently "In Progress", the "View" button will be grayed out and unclickable.
  3. The results display page replaces the existing code traceability page and can be embedded in GitLink directly, no need for redesign.

User Operation Flow

The user operation flow follows a logical sequence from initiating code analysis to viewing results.