Method, system, computer equipment and storage medium for detecting source code quality
A code quality and source code technology, applied in the field of source code quality detection based on the code developer dimension, can solve the problem that the source code detection tool SonarQube cannot meet the source code quality detection and other problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] Such as figure 1 As shown, a method of detecting source code quality based on the code developer dimension, the specific steps are as follows:
[0046] Step 1. Configure the user ID of the current developer at the code quality inspection command in the drone.yml file of the source code pipeline, and bind the current developer to this code quality inspection.
[0047] The specific examples in this embodiment are as follows:
[0048] echo sonar.analysis.userId=1>$SONAR_PROJECT_BASE_DIR / sonar-project.properties;
[0049] Among them, sonar.analysis.userId=1 is the user Id of the current developer.
[0050]Step 2. After the developer completes the code editing, submit the source code to the gitea source code warehouse and trigger the SonarQube tool to perform quality inspection on the source code. After the inspection, activate the Webhooks hook function to call the restful API interface.
[0051] Among them, the URL of the Webhooks hook needs to configure the address of ...
Embodiment 2
[0065] A system for detecting source code quality based on the dimension of code developers, including: a configuration module, a detection module, a parameter acquisition module, a measurement index configuration module, a parameter generation module, a detection result acquisition module, a query module, a quality comparison module, and a storage module, Among them, the parameter acquisition module is connected with the detection module and the configuration module respectively, the measurement indicator configuration module is connected with the parameter generation module, the detection result acquisition module is connected with the parameter generation module and the parameter acquisition module, and the quality comparison module is respectively connected with the query module and the detection result acquisition module , Storage module connection.
[0066] Specifically, the configuration module is used to configure the user ID of the current code developer in the source ...
Embodiment 3
[0077] This embodiment discloses a computer device, which may be a server, and the computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data involved in the method of checking the quality of the source code. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for detecting the quality of the source co...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com