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

Code detection method and system, terminal and server

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

Active Publication Date: 2018-06-26
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 11 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
  • Code detection method and system, terminal and server
  • Code detection method and system, terminal and server
  • Code detection method and system, terminal and server

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

Embodiments of the invention disclose a code detection method and system, a terminal and a server. The method comprises the steps of obtaining to-be-detected codes uploaded by the terminal; obtainingcustom code detection rules corresponding to the terminal; according to the custom code detection rules, updating original code detection rules in a code detection rule library; performing code scanning on the to-be-detected codes by utilizing the updated code detection rules to obtain a code scanning result; and according to the code scanning result, determining a code detection result. The codedetection rule library is updated by utilizing the custom code detection rules corresponding to the terminal to obtain the updated code detection rules; the to-be-detected codes are detected; and theupdated code detection rules correspond to the terminal, so that the code writing habit of a terminal side user is met, the problem that the code detection rules used in an existing code detection process are not matched with codes actually written by the user is solved, and the accuracy of the code detection result is improved.

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
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products