Supercharge Your Innovation With Domain-Expert AI Agents!

Java code quality inspection method, device and apparatus and storage medium

A code quality and inspection method technology, applied in the field of Java code quality inspection methods, devices, equipment and storage media, can solve problems such as code obscure, hidden dangers that cannot be eliminated, and large manpower consumption

Pending Publication Date: 2020-06-09
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there are no comments and irregular formats in the written code, the written code will be obscure
However, the existing codes are judged based on the existing syntax of the programming language, and the possible results of the program are predicted. In the case of high concurrency, the results of the multi-user thread test program are judged, so that the code looks normal. Logic may also hide fatal hidden dangers
Most of the traditional code inspection is to check code defects manually, or to check during the development process of developers through the development tool plug-ins provided by open source projects. Developers are required to actively cooperate with the company's standard use. If developers do not take the initiative to accept such plug-ins, they may not follow some development rules, resulting in hidden dangers in the code. At least, there will be problems in the running process, and at worst, it will cause the company to make technical mistakes. resulting in loss

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
  • Java code quality inspection method, device and apparatus and storage medium
  • Java code quality inspection method, device and apparatus and storage medium
  • Java code quality inspection method, device and apparatus and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application. The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to the expressly listed Those steps or modules, but may include other steps or modules that are not clearly l...

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 the technical field of computers, in particular to a Java code quality inspection method, device and apparatus and a storage medium. The method comprises the steps of obtaining at least one Java code file to be uploaded; inputting at least one Java code file to be uploaded into an open source analysis tool; performing traversal of abstract syntax trees, performing comparative detection on each row of java code statements in an abstract syntax book through preset rule analysis and obtaining a detection result, wherein the detection result comprises an array and a regular expression, and the array at least comprises a granularity function of the to-be-analyzed Java code and a result, which does not meet a preset rule, in a class in the to-be-analyzed Java code; storing the granularity function and a result, which does not accord with a preset rule, in the to-be-analyzed Java code into a first set; calculating a difference value between the first set and as condition set to obtain a non-compliance information set; and if the non-compliance information set is not the empty set, blocking the hook of the Git and returning a result which does not accord with the preset rule to the user. The quality problem of uploaded codes is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a Java code quality inspection method, device, device and storage medium. Background technique [0002] The evaluation of code quality is the key to measuring a programmer's ability in the IT field, and it is also one of the foundations for a robust project. If there are no comments and irregular formats in the written code, the written code will be obscure. However, the existing codes are judged based on the existing syntax of the programming language, and the possible results of the program are predicted. In the case of high concurrency, the results of the multi-user thread test program are judged, so that the code looks normal. Logic, however, may also harbor fatal hidden dangers. Most of the traditional code inspection is to check code defects manually, or to check during the development process of developers through the development tool plug-ins provided by ope...

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): G06F8/30G06F8/41
CPCG06F8/42G06F8/316G06F8/315
Inventor 张汉翼
Owner CHINA PING AN PROPERTY INSURANCE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More