A code detection method, terminal, server and system

A code detection and server technology, applied in the field of data processing, can solve the problems of inaccurate code detection results and code incompatibility.

Active Publication Date: 2021-07-06
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a code detection method, terminal, server and system, which solves the problem that the code detection technology in the prior art does not match the code actually written by the user, resulting in inaccurate code detection results

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
  • A code detection method, terminal, server and system
  • A code detection method, terminal, server and system
  • A code detection method, terminal, server and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0048] Code detection technology is mainly based on lexical analysis, syntax analysis, control flow analysis, or data flow analysis. By scanning the code written by the user, it can find hidden errors and defects in the code, and then guide the user to improve the code, thereby Improve code quality and reduce software development time. However, in the prior art, if certain code rules are used to detect the code, there will be a problem that the code detection ...

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 embodiment of the present invention discloses a code detection method, a terminal, a server, and a system. By obtaining the code to be detected uploaded by the terminal; obtaining a custom code detection rule corresponding to the terminal; The original code detection rules in the code are updated; the code to be detected is scanned by using the updated code detection rules, and the code scanning result is obtained; the code detection result is determined according to the code scanning result. In the embodiment of the present invention, the user-defined code detection rules corresponding to the terminal are used to update the code detection rule library, and the updated code detection rules obtained are used to detect the codes to be detected. The updated code detection rules correspond to the terminals and conform to The code writing habit of the user on the terminal side solves the problem that the code detection rules used in the existing code detection process do not match the code actually written by the user, and improves the accuracy of the code detection results.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a code detection method, a terminal, a server and a system. Background technique [0002] Code detection technology scans the code in the program to detect errors and defects in the code. Common errors and defects in the code include: parameter mismatch, ambiguous nested statements, wrong recursion, illegal calculation, Null pointer references etc. These errors and defects in the code are detected by code detection technology, and then guide users to improve the code, thereby improving code quality and shortening software development time. [0003] However, the code detection technologies in the prior art are all based on the determined code rules to detect the code, and due to the wide variety of codes, each user's coding habit and writing language are very different, and the determined code When the detection rules detect the code, there will be a problem that the cod...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3616G06F11/3688
Inventor 朱辉云陈焕葵张少愚覃竞才曾岳锋
Owner TENCENT TECH (SHENZHEN) 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