Code detection method and device, medium and electronic equipment

A code detection and code technology, used in error detection/correction, electrical digital data processing, software testing/debugging, etc., to solve problems such as code writing that does not conform to specifications

Pending Publication Date: 2020-10-23
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present disclosure is to provide a code detection method, a code detection device, a computer-readable medium, and an electronic device, thereby at least to a certain extent overcoming the problem of a crash caused by code writing that does not conform to the specification

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, medium and electronic equipment
  • Code detection method and device, medium and electronic equipment
  • Code detection method and device, medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art.

[0027] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, means, steps, etc. may be employed. In other instances, well-known methods, ap...

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 invention provides a code detection method, a code detection device, a computer readable medium and electronic equipment, and relates to the technical field of software development. The code detection method comprises the following steps: extracting a plurality of code texts contained in a to-be-detected project; performing specification detection on monitors contained in thecode text, detecting a target monitor which does not accord with the specification detection, and taking the code text containing the target monitor as an exception code; and if the code text contains the exception code, reporting an error to the project to be detected, and providing exception information according to the exception code for a user to modify the error. According to the technical scheme, automatic code specification detection can be realized, so that code crash is avoided, and the code security is improved.

Description

technical field [0001] The present disclosure relates to the technical field of software development, in particular, to a code detection method, a code detection device, a computer-readable medium and electronic equipment. Background technique [0002] In the software development process, the code written by the developer needs to comply with the code specification. If the code does not meet the specification, the compiler will issue a warning to remind the developer to modify the non-standard code. However, the compiler usually can only warn about problems in the form of the code, and cannot check the code logic. For example, if a monitor is registered for a specific object, the compiler will not check whether the monitor complies with the specification. Consciously abide by the code specification, if the monitoring does not conform to the code specification, a crash may occur at runtime. [0003] It should be noted that the information disclosed in the above background se...

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/3628
Inventor 黄洪彬
Owner NETEASE (HANGZHOU) NETWORK 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