Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Source code scanning tool, method, equipment and medium

A source code and tool technology, applied in the field of source code scanning tools, can solve the problem that source code scanning tools do not understand the syntax of the three-party framework

Active Publication Date: 2020-11-27
北京浪潮数据技术有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when a third-party framework is introduced into the source code, the source code scanning tool usually does not scan and analyze the third-party framework, so the source code scanning tool does not understand the grammar of the third-party framework, so when analyzing the source code, there are certain misjudgments and omissions when encountering the third-party framework grammar sentence

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
  • Source code scanning tool, method, equipment and medium
  • Source code scanning tool, method, equipment and medium
  • Source code scanning tool, method, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0033] At present, in the development and testing phase of software engineering, in order to improve code quality, source code scanning tools are usually introduced to scan project source codes. Usually, source code scanning tools can report problems existing in project source codes. However, when a third-party framework is introduced into the source code, the source code scanning tool usually does not scan and analyze the third-party framework, so the source code scanning tool does ...

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 source code scanning tool, method and device and a medium, and the tool comprises an analysis module which is used for analyzing a program source code, so as to generate a question dictionary corresponding to a third-party assembly; wherein a problem in the problem dictionary is a grammar corresponding to the third-party part which cannot be identified by the analysis module; third-party part parsing engine, the searching module is used for searching a function fragment of the third-party part referenced by the program source code corresponding to the question in thequestion dictionary; and storing the function segment and a context in the program source code corresponding to the problem as a target program segment in a target file, and calling back a pointer ofthe target file to the analysis module, so that the analysis module analyzes the target program segment through the pointer to obtain a corresponding analysis result. Therefore, the missing report rate of the source code problem can be reduced, and the accuracy of reporting the source code problem is improved.

Description

technical field [0001] The present application relates to the technical field of program testing, in particular to a source code scanning tool, method, device and medium. Background technique [0002] At present, in the development and testing phase of software engineering, in order to improve code quality, source code scanning tools are usually introduced to scan project source codes. Usually, source code scanning tools can report problems existing in project source codes. However, when a third-party framework is introduced into the source code, the source code scanning tool usually does not scan and analyze the third-party framework, so the source code scanning tool does not understand the grammar of the third-party framework, so when analyzing the source code, there are certain misjudgments and omissions when encountering the third-party framework grammar sentenced. Contents of the invention [0003] In view of this, the purpose of the present application is to provide...

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
CPCG06F11/3676G06F11/3688
Inventor 王凤丽
Owner 北京浪潮数据技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products