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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap