Code quality detection method and device

A code quality and detection method technology, applied in software testing/debugging, etc., can solve problems such as code quality not meeting code specification requirements, and achieve the effect of automatic detection

Inactive Publication Date: 2016-12-07
ALIBABA GRP HLDG LTD
View PDF3 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application provides a code quality detection method, which is used to solve the problem that the quality of the code that passes the detection may not meet the code specification requirements according to the existing code quality detection method

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 quality detection method and device
  • Code quality detection method and device
  • Code quality detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] Embodiment 1 provides a method for detecting code quality, which is used to solve the problem that the quality of the code that passes the detection may not meet the requirements of the code specification according to the existing code quality detection method. Assuming that the subject of execution is a detection device, the specific flowchart of the method is as follows figure 1 shown, including the following steps:

[0025] Step 11, acquire the code and code information sent by the terminal.

[0026] For step 11, the code information includes information indicating a code specification that matches the code. Each project has at least one specified code specification. For example, all codes under project A must be written according to the requirements of code specification A. The information of the code specification matching the code may be the identification of the project to which the code belongs, and through this information, the code specification matching the...

Embodiment 2

[0064] Based on the same inventive concept, Embodiment 2 provides a code quality detection device, which is used to solve the problem that the quality of codes that pass the detection may not meet the code specification requirements according to the existing code quality detection methods. Such as figure 2 As shown, the device includes:

[0065] The obtaining code unit 21 can be used to obtain the code and code information sent by the terminal; wherein, the code information includes information indicating a code specification matching the code;

[0066] The acquiring specification unit 22 can be used to acquire the code specification matching the code according to the information indicating the code specification matching the code;

[0067] The detecting code unit 23 can be used to detect the quality of the code according to the obtained code specification.

[0068] In one embodiment, the device may also include:

[0069] The storage result unit can be used to save the det...

Embodiment 3

[0091] Based on the same inventive concept, Embodiment 3 provides a code sending method. A schematic diagram of the method is shown in image 3 shown, including the following steps:

[0092] Step 31, acquiring the code and code information; wherein, the code information includes information indicating a code specification matching the code;

[0093] Specifically, the code and code information stored in the terminal may be obtained, or the code and code information sent by the terminal to a server for storing and managing codes may be obtained. For example, obtain the code written on the PC sent by the developer; another example, in a distributed version control system (such as git), the developer will synchronize the local code warehouse to the public server code warehouse, so you can get the public Code and code information in the server code repository.

[0094] Step 32, sending the code and code information to the detection device.

[0095] Specifically, the code and co...

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 quality detection method. The method comprises the following steps of obtaining a code and code information sent by a terminal; obtaining a code specification matched with the code according to information representing the code specification matched with the code; and detecting the quality of the code according to the obtained code specification. The code quality detection method is used for solving the problem that the quality of the detected codes does not satisfy the code specification requirements according to the conventional code quality detection manners. The invention furthermore discloses a code quality detection device as well as a code sending method and device.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a code quality detection method and device. Background technique [0002] When the team develops collaboratively, there is usually at least one code specification for each project. The code specification includes the style and rule requirements for code writing, which can be collectively referred to as the quality requirements for code writing. All developers of the same project team follow the code specification of the project, and the quality of the code written must meet the quality requirements of the code specification. For example, the code specification of a certain project requires line breaks and program efficiency requirements (line breaks for super long expressions, minimizing loop nesting levels), etc. However, since everyone has fixed writing habits, and a developer may take on several roles, the quality of the written code may inadvertently fail to meet...

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 ALIBABA GRP HLDG 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