Code generation system and method based on preset code scanning rule

By combining large language models and code scanning rules in the integrated development and operations platform, end-to-end automated generation of high-quality code from requirements is achieved, solving the problem of the separation between code generation and scanning detection, improving the quality and efficiency of generated code, and reducing the waste of manual review and computing resources.

CN122363708APending Publication Date: 2026-07-10BEIJING SIMPLE POINT TECH CO LTD
0 Cites 0 Cited by

Patent Information

Application Number
CN202610777950.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-01
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing technologies, AI code generation tools do not make full use of the enterprise's existing code scanning rules data, resulting in generated code that does not meet the enterprise's code quality standards. Furthermore, the generation and scanning detection processes are disconnected, leading to low efficiency and increased costs for manual review and waste of computing resources.

Method used

In the integrated development and operations platform, the rule data of the large language model and code scanning module are combined to guide code generation through structured prompt word templates, realizing an end-to-end automated process from requirements to high-quality code, including requirement acquisition, rule extraction, code generation and verification, and using the rule verification module for closed-loop feedback and automatic correction.

Benefits of technology

The generated code directly conforms to enterprise code standards, reducing the number of iterations for manual review and scanning, improving development efficiency, saving computing resources, and realizing an efficient and automated process from requirements to code.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses a code generation system and method based on a preset code scanning rule, and the system comprises a demand obtaining module, a rule extraction module, a cue word construction module, a code generation module, a rule verification module, and a result output module. And the demand acquisition module, the rule extraction module, the cue word construction module, the code generation module, the rule verification module and the result output module perform data interaction through a standardized interface. Rule data accumulated in the code scanning module for a long time by an enterprise is deeply fused with the artificial intelligence code generation capability; existing code quality guarantee experience of an enterprise can be automatically applied to the new code generation process, value-added utilization of data assets is achieved, through a closed-loop feedback mechanism of a rule verification module, a correction instruction can be automatically constructed and regenerated when the code does not pass scanning detection, manual intervention is reduced, and the efficiency is improved. The automation level is improved.
Need to check novelty before this filing date? Find Prior Art