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