Program code review method and program code review device

A program code and code technology, applied in the direction of software testing/debugging, can solve the problems of high review cost, slow review response, and low review efficiency, and achieve the effect of reducing difficulty and solving low review efficiency.

Inactive Publication Date: 2014-11-05
BANK OF CHINA
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the above technical problems, the embodiment of the present invention provides a program code review method and device to so

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
  • Program code review method and program code review device
  • Program code review method and program code review device
  • Program code review method and program code review device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] see figure 1, which is a flowchart of a program code review method provided in Embodiment 1 of the present invention, the method includes the following steps:

[0050] Step 100: Error description information and error identification codes set for each programming specification error indicated by each check item in the programming specification are stored in the parameter file in advance, and there is a mapping relationship between the error description information and the error identification code.

[0051] For example, for the COBOL language, the main inspection items of the program code (ie, source code) review can be divided into 10 major items and 43 minor items. For example, the 10 major items are: 1. Inspection of illegal characters in column 7 of the program; 2. Inspection of whether the alignment of the code area and code lines meets the requirements; 3. Inspection of prohibited statements and operators in programming specifications; 4. Operators 5. Inspection ...

Embodiment 2

[0080] In the second embodiment, error levels are further set for each programming specification error, so that programmers can prioritize programming specification errors with high error levels according to the error level, and suspend processing of programming specification errors with low error levels, so as to better Ensure the development efficiency of program code.

[0081] see figure 2 , which is a flowchart of a program code review method provided in Embodiment 2 of the present invention, the method includes the following steps:

[0082] Step 200: Prestore error description information and error identification codes for each programming specification error indicated by each check item in the programming specification in the parameter file, and there is a mapping relationship between the error description information and the error identification code.

[0083] Step 201: Check whether there is a programming specification error indicated by each check item defined in th...

Embodiment 3

[0091]In actual application, in some specific scenarios or requirements, for example, in order to reduce the review time and improve the review response speed, the programmer does not want to conduct a comprehensive review of the program code to be reviewed for all the check items in the parameter file. Instead, it is hoped that some specific check items in the parameter file will be checked in a targeted manner for the program code to be reviewed. Therefore, in the third embodiment, before checking, it is necessary to determine whether to check for each check item in the parameter file.

[0092] see image 3 , which is a flowchart of a program code review method provided in Embodiment 3 of the present invention, the method includes the following steps:

[0093] Step 300: Prestore error description information and error identification codes for each programming specification error indicated by each check item in the programming specification in the parameter file, and there i...

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 embodiment of the invention discloses a program code review method and a program code review device. The method comprises the following steps that: error description information and error marking codes set for each programming specification error are prestored in a parameter file; whether each programming specification error exists in program codes or not is checked, and if each programming specification error exists in program codes, an error code line with the programming specification errors and the error marking code of the programming specification errors in the error code line are output; the parameter file is called, the error description information with a mapping relationship with the output error marking code is found in the parameter file, and the error description information of the programming specification error in the error code line is obtained; and a review result report is generated, wherein the review result report includes the error code line, and the error marking code and the error description information of the programming specification error in the error code line. According to the embodiment of the invention, the problems of low review efficiency, high cost and low response speed can be solved, and the difficulty for realizing the review can also be reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a program code review method and device. Background technique [0002] Generally, in the process of compiling a program, in addition to converting the intermediate language into machine language, the program code is also checked for syntax problems. However, for the program code, in addition to possible grammar problems, it may not conform to the programming specification. Therefore, it is also necessary to check whether the program code conforms to the programming specification, which is called program code review. [0003] COBOL (common business-oriented language, also known as enterprise management language, data processing language, etc., Common Business Oriented Language) is one of the earliest high-level programming languages ​​and the first commercial language in the world. COBOL is a data-processing-oriented, file-oriented, and process-oriented (POL)-oriented high-level program...

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
IPC IPC(8): G06F11/36
Inventor 赵许福韩玉忠陈源锋张远琴
Owner BANK OF CHINA
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