Code skipping method and device in code review, equipment and medium

A code and jump technology, applied in the computer field, can solve the problems that the reviewers are difficult to understand the changed code, cannot realize code jump, and cannot achieve code quality, etc., so as to improve review efficiency, reduce review time, and avoid manual query. Effect

Active Publication Date: 2020-06-12
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in these code review tools, only the changed part of the code can be displayed, and the function of code jump cannot be realized, and these functions are precisely necessary in the process of code development and review
The lack of these code jump functions will make it difficult for reviewers to understand the changed code, making code review time-consuming and laborious, let alone achieving the desired effect of ensuring code quality

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code skipping method and device in code review, equipment and medium
  • Code skipping method and device in code review, equipment and medium
  • Code skipping method and device in code review, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0056] Figure 1a It is a schematic flow chart of the code jump method in the code review according to the first embodiment of the present application. This embodiment is applicable to provide the function of code jump during the process of code review by the reviewers, so that the reviewers can conveniently view The definition of the current code element, or view th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a code skipping method and device in code review, equipment and a medium, and relates to a code review technology. The specific implementation scheme is as follows: analyzing achange code file of a to-be-reviewed code, obtaining code element information of at least one skipped code element in the change code file, and storing the code element information in a database, thecode element information at least comprising position information, grammatical information and signature information of the code element; displaying the change code file, and labeling the at least one code element; in response to a skip request for any target code element in the labeled code elements, querying skip code elements corresponding to the target code elements and position information of the skip code elements in the changed code file from a database according to signature information of the target code elements; and skipping according to the position information of the skipping code element, and displaying a page where the skipping code element is located. The embodiment of the invention provides a code skipping function in code review, and the development efficiency is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a code review technology, in particular to a code jump method, device, device and medium in code review. Background technique [0002] Code review (Code review) is one of the important methods to ensure software quality in the process of modern program development. Code review can not only improve code quality, avoid technical debt, but also allow team members to understand knowledge outside their business and domain, and ensure the implementation of team norms. [0003] Code jump is one of the most commonly used functions in the software development process. It refers to the process of jumping from one code segment (such as function, class, variable, method, etc.) The use position of the function jumps directly to the definition position of the function, and you can also find all the code fragments that use the function from the definition position of the function. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/364G06F11/3604
Inventor 施展刘志伟白伟李涛
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products