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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com