Static code check method and apparatus, storage medium and computer device

A static code and inspection method technology, applied in calculation, code compilation, program code conversion, etc., can solve the problem of low accuracy of static code inspection, achieve the effect of improving accuracy and reducing false alarm rate

Active Publication Date: 2018-10-02
SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF8 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a static code inspection method, device, storage medium and computer equipment for the technical problem of low static code inspection accuracy

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 check method and apparatus, storage medium and computer device
  • Static code check method and apparatus, storage medium and computer device
  • Static code check method and apparatus, storage medium and computer device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0033] The static code inspection method of the present application is applied to a terminal. The terminal is a development terminal, such as a terminal used by game developers. Specifically, the terminal may be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be a notebook computer. After the developer completes the game code using a dynamic script programming language (such as Lua), he runs the static code checking method of the present application through the terminal to check the code that has been written.

[0034] Such as figure 1 ...

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 a static code check method and apparatus, a storage medium and a computer device. The method comprises the steps of obtaining code files; processing the code files to obtain amarker sequence of the code files; identifying a dependency function in the marker sequence; according to the dependency function, analyzing a dependency relationship between the code files, and taking the code files which other code files do not depend on as check entry files; according to the code files which other code files depend on, expanding the corresponding check entry files with the dependency relationship to simulate executive logic of the dependency function; and checking the marker sequence of the expanded code files to obtain a check result. The method considers characteristicsof global variable distribution in different files, and realizes cross-file static code check processing of codes, thereby reducing the false report rate of global variable check.

Description

technical field [0001] The present application relates to the technical field of software testing, in particular to a static code checking method, device, computer-readable storage medium and computer equipment. Background technique [0002] Static code inspection refers to checking the code under test by analyzing or checking the grammar and structure of the source program without running the code under test to find out the errors in the code under test. Static code inspection can find problems that the compiler cannot find, and you can also customize some inspection specifications to check irregular code writing and potential safety hazards. [0003] Taking the static code inspection of code files written in lua language as an example, because lua language is concise, small in size, high in execution efficiency, can easily interact with C++, C# and other languages, and supports APP hot update, etc., more and more It is used more and more in the field of games. Lua variab...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F11/36
CPCG06F8/43G06F11/3608
Inventor 袁明凯黄斌邹越张蓓严明
Owner SHENZHEN TENCENT NETWORK INFORMATION TECH CO 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