The invention discloses an automobile industry code quality automatic
compliance method based on a large
language model. The method comprises the following steps: calling a static code analyzer to generate a violation report; the method comprises the following steps: intelligently classifying violation into Tier1, Tier2 and Tier3 based on a multi-feature analysis
algorithm of a rule document; for Tier1 violation, performing three times of retry iteration repair by using a large
language model, automatically detecting compilation errors and performing
rollback; for Tier2 violation, multiple technical schemes are extracted by a large
language model for a user to select; a multi-LLM antagonistic cooperation mechanism is adopted for Tier3 violation, automatic restoration of complex violation is achieved through a Generator generation restoration scheme, a Disscriminator review challenge scheme and antagonistic iteration of
Arbiter arbitration conflicts, and an optimal scheme is selected through a weighted voting
algorithm when conflicts occur. The method obviously reduces the manual intervention rate, improves the repairing quality, and is low in cost and high in universality.