Unlock instant, AI-driven research and patent intelligence for your innovation.

Static code quality analyzing method and device

A quality analysis device and quality analysis technology, applied in the creation/generation of source code, software maintenance/management, software indicators, etc., can solve the problems of complex analysis process, short quality analysis time, and huge amount of analysis results.

Active Publication Date: 2018-08-24
SIEMENS AG
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If too few rules are defined, the process of quality analysis takes less time, but some key defects may be missed
If too many rules are defined, the analysis process will be too complicated and time-consuming, and the total amount of analysis results will be very large, and it will still take a certain amount of labor to screen out real quality problems

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
  • Static code quality analyzing method and device
  • Static code quality analyzing method and device
  • Static code quality analyzing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] As mentioned earlier, in the current static code quality analysis methods, the method of pattern matching easily leads to a large number of false alarms, and manual screening is time-consuming and labor-intensive. The method based on logic path requires manual configuration of rules, and the accuracy of analysis results depends on the definition of the rules, and it is highly dependent on the experience of inspectors.

[0050] In the embodiment of the present invention, firstly, the code to be analyzed adopts a pattern matching method for quality analysis, and then based on the obtained quality analysis result, the defect trend of the code to be analyzed is determined. At least one second code quality inspection rule used for quality analysis of the code to be analyzed is described, and at least one second code quality inspection rule is used for quality analysis to obtain a final quality analysis result. Because the method of pattern matching can quickly obtain the qualit...

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 relates to the technical field of software engineering, particularly to a static code quality analyzing method and device which is used for improving the efficiency and accuracy of codequality analyzing. A quality analysis is carried out on a code to be analyzed by using a method of mode coupling and then a defect trend of the code to be analyzed is determined. At least one second code quality inspection rule is determined, wherein the second code quality inspection rule is used in the quality analysis to the code to be analyzed by using a method of logical paths according to the defect trend. And the quality analysis is carried out by using at least one second code quality inspection rule to obtain a final quality analysis result. The quality analysis result can be more rapidly obtained by using the method of mode coupling. The quality analysis result is used to predict the defect trend of the code to be analyzed. The code quality inspection rule is further selected according to the defect trend. Therefore, the rule can be automatically determined which saves manpower and time, and the objectivity and the accuracy of the selected rule are guaranteed to further guarantee the accuracy of the quality analysis result.

Description

Technical field [0001] The invention relates to the technical field of software engineering, in particular to a static code quality analysis method and device. Background technique [0002] Now, more and more products (or systems) are controlled by software running on them. Therefore, the quality of the software is particularly important for the operation of the product (or system). Furthermore, how to effectively manage the quality of a software has become an urgent problem to be solved. [0003] Static software code quality analysis is an effective method of software quality management. Compared with the traditional testing method that mainly relies on manpower, static code quality analysis can use the computing power of the computer to check the code quality. [0004] figure 1 Shows a current static code quality analysis process. The code CODE to be analyzed is input to the static code quality analysis device 10, and the static code quality analysis device 10 performs quality ...

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/36G06F8/30
CPCG06F8/77
Inventor 彭飞
Owner SIEMENS AG