Code detection method and device

A code detection and code technology, applied in the computer field, can solve problems such as non-compliance with code specifications, failure to detect typical code defects, etc.

Active Publication Date: 2016-02-10
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current rule base used by the code scanning tool only collects common code problems corresponding to the same programming language, and cannot detect code that needs to

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 device
  • Code detection method and device
  • Code detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] The code detection method and device of the embodiment of the present invention are applicable to any type of code detection environment, and the code includes but is not limited to code written in Java language, and this embodiment does not limit the programming language used for writing the code to be detected; In addition, the operating system on which the code runs can be the mainstream Android operating system, ios operating system, and windows operating system, or Symbian system, Microsoft operating system, etc. To limit.

[0026] Please refer to figure 1 , figure 1 It is a schematic flow chart of the first embodiment of the code detection method of th...

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 code detection method and device. The code detection method includes the steps that a code detection tool receives a code detection triggering command and identifies the command type of the triggering command; according to the specific command type, a general rule base and/or an extended rule base are/is called to carry out static scanning on to-be-detected codes; the codes matched with the general rule base and/or the extended rule base are obtained, and a detection report with warning information is generated; the generated detection report is pushed. The code detection range is expanded, code detection pertinence is improved, typical faults possibly existing in the codes are avoided, and meanwhile code running stability, maintainability and the consistency of the projected product functions corresponding to the codes are improved.

Description

technical field [0001] The invention relates to computer technology, in particular to a code detection method and device. Background technique [0002] Since it is usually necessary to check the compiled code, especially for projects with frequent code changes, in addition to manually checking the submitted code, automated tools are also required to monitor code changes, so as to scan and check all Defects and non-compliant code. [0003] At present, due to the wide variety of codes and the system platforms on which the codes run are also diverse, such as Android system platform, Apple's ios system platform, etc., and different platforms correspond to different models; for example, the Android platform is severely fragmented, and the model There are many brands and different system versions. When developing application software corresponding to the Android operating system, some functions of the same application software need to be adapted to different aspects such as diffe...

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
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