[go: up one dir, main page]

CN113553262B - Code auditing method and device, electronic equipment and storage medium - Google Patents

Code auditing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113553262B
CN113553262B CN202110831476.XA CN202110831476A CN113553262B CN 113553262 B CN113553262 B CN 113553262B CN 202110831476 A CN202110831476 A CN 202110831476A CN 113553262 B CN113553262 B CN 113553262B
Authority
CN
China
Prior art keywords
code
task
code audit
user
audit task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110831476.XA
Other languages
Chinese (zh)
Other versions
CN113553262A (en
Inventor
范健锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110831476.XA priority Critical patent/CN113553262B/en
Publication of CN113553262A publication Critical patent/CN113553262A/en
Application granted granted Critical
Publication of CN113553262B publication Critical patent/CN113553262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3604Analysis of software for verifying properties of programs
    • G06F11/3612Analysis of software for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a code auditing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to a code audit task submitted by a first user, and inquiring the related code audit task based on the identification of a team cooperation list carried in the code audit task; the code audit task corresponds to the unique identification of the team cooperation list; if the associated first code audit task is queried, adding the code audit subtask into the first code audit task; and notifying at least one second user of the information newly added into the code audit subtask in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit subtask. The application can combine a plurality of code audit tasks corresponding to the team cooperation list into the first code audit task, and can notify at least one second user when the first user submits a new code audit task.

Description

Code auditing method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of code auditing, in particular to a code auditing method, a device, electronic equipment and a storage medium.
Background
At present, as internet science and technology enterprises pay more attention to development and operation and maintenance integrated modes and practice thereof, how to continuously improve the quality of codes and software products becomes a key determinant of continuous and flexible delivery value. Code auditing is a major measure of improving the internal quality of software throughout the development campaign of a software product. Code auditing (review) is a method commonly used to discover errors or design flaws in code that is written in developing a function a certain time for auditing by other programs.
Currently, a code auditor (such as an up source) is used for conducting code audit, in which a user submits a code to be audited to the code auditor for management, and the user can select the code to be audited to establish a review. However, this solution cannot create a single review for a certain requirement, requiring the user to manually merge submissions of all codes of a requirement into a single review. And, when the user of the reviewed submits a new code, the review user does not know that the reviewed user submitted a new code in turn above the demand.
Disclosure of Invention
In view of the above, the present application aims to provide a code auditing method, a device, an electronic apparatus and a storage medium, which can combine a plurality of code audit tasks corresponding to a team cooperation list into a first code audit task, and can notify at least one second user when the first user submits a new code audit task.
According to a first aspect of the present application, an embodiment of the present application provides a code auditing method, including:
responding to a code audit task submitted by a first user, and inquiring the related code audit task based on the identification of a team cooperation list carried in the code audit task; the code audit task corresponds to the unique identification of the team cooperation list;
if the associated first code audit task is queried, adding the code audit subtask into the first code audit task;
and notifying at least one second user of a message newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
In one possible implementation, in response to a code audit task submitted by a first user, the step of querying an associated code audit task based on an identification of a team collaboration sheet carried in the code audit task includes:
responding to a code audit task submitted by a first user, and triggering the running of a preset program;
inquiring the identification of a team cooperation list carried in the code audit subtask when the preset program runs;
and querying the associated code auditing task based on the identification of the team cooperation list.
In one possible embodiment, the method further comprises:
if the associated first code auditing task is not queried, a second code auditing task is newly built; wherein the second code audit task is associated with an identification of the team collaboration ticket;
and adding the code audit subtask into the second code audit task.
In one possible embodiment, the method further comprises:
and notifying at least one second user of the information added into the code audit task in the second code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
In one possible embodiment, the method further comprises:
determining the team cooperation list based on the identification of the team cooperation list carried in the code audit task;
and querying the name of at least one second user configured by the first user in the team cooperation list.
In one possible embodiment, the method further comprises: and generating a code auditing subtask based on the identification of the team cooperation list and the code to be audited submitted by the first user through the code version tool.
In one possible embodiment, the method further comprises: and displaying the auditing state of each code auditing sub-task in the first code auditing task/the second code auditing task to the at least one second user.
According to a second aspect of the present application, an embodiment of the present application further provides a code auditing apparatus, including:
the query module is used for responding to the code audit task submitted by the first user and querying the associated code audit task based on the identification of the team cooperation list carried in the code audit task; the code audit task corresponds to the unique identification of the team cooperation list;
the adding module is used for adding the code audit subtask into the first code audit task if the associated first code audit task is inquired;
and the notification module is used for notifying at least one second user of the information newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
According to a third aspect of the present application, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over a bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the first aspect, or any of the possible implementation manners of the first aspect.
According to a fourth aspect of the present application, the present embodiments also provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the first aspect, or any of the possible implementation manners of the first aspect.
According to the code auditing method provided by the embodiment of the application, firstly, a code auditing subtask submitted by a first user is responded, and as the code auditing subtask corresponds to the unique identification of the team cooperation list, whether the code auditing task is created for the team cooperation list or not can be searched through the identification of the team cooperation list. Then, if the first code audit task is inquired to be established for the team cooperation list, adding the code audit subtask into the first code audit task; in this way, a plurality of code audit subtasks corresponding to the team cooperation list can be combined into the first code audit task. And finally, notifying at least one second user of a message newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task. In this way, at least one second user may be notified when the first user submits a new code audit task. Therefore, the embodiment of the application can combine the plurality of code audit tasks corresponding to the team cooperation list into the first code audit task, and can notify at least one second user when the first user submits the new code audit task.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 shows a flow chart of a code auditing method provided by an embodiment of the application;
FIG. 2 illustrates a schematic diagram of a team collaboration sheet;
FIG. 3 illustrates a schematic diagram of an updated first code audit task;
FIG. 4 illustrates a message notification diagram of the addition of a new code audit subtask to a first code audit task;
FIG. 5 illustrates an audit status presentation schematic of each code audit subtask in a first code audit task;
fig. 6 shows a schematic structural diagram of a code auditing apparatus according to an embodiment of the present application;
fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in embodiments of the application to indicate the presence of the features stated hereafter, but not to exclude the addition of other features.
Considering that in the prior art, a code auditor (such as an up source) is used for conducting code audit, a user submits a code to be audited to the code auditor for management, and the user can select the code to be audited to establish a review. However, this solution cannot create a single review for a certain requirement, requiring the user to manually merge submissions of all codes of a requirement into a single review. And, when the user of the reviewed submits a new code, the review user does not know that the reviewed user submitted a new code in turn above the demand. Based on the above, the embodiment of the application provides a code auditing method, a device, an electronic device and a storage medium, and the following description is made by means of the embodiment.
For the convenience of understanding the present embodiment, a code auditing method disclosed in the present embodiment will be described in detail.
Referring to fig. 1, fig. 1 is a flowchart of a code auditing method according to an embodiment of the present application. As shown in fig. 1, the method may include the steps of:
s101, responding to a code audit task submitted by a first user, and inquiring an associated code audit task based on an identification of a team cooperation list carried in the code audit task; the code audit task corresponds to the unique identification of the team cooperation list;
s102, if the associated first code audit task is queried, adding the code audit subtask into the first code audit task;
and S103, notifying at least one second user of a message newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
In step S101, the first user refers to a review user, the second user refers to a review user, and the code review platform may be an up source or other code review platforms, which is not limited in this embodiment.
The team cooperation list is made by the first user as a producer, and the team cooperation list may be an easy cooperation list as shown in fig. 2, or may be another type of team cooperation list, which is not limited in this embodiment. The team collaboration ticket has a unique identification, which may include the ticket number of the team collaboration ticket, such as ticket number "101916" of the easy collaboration ticket shown in FIG. 2. In this embodiment, the team collaboration list may provide the first user with a plurality of options for the second user, from which the first user may select one or more second users.
The code audit subtask refers to a task generated by submitting a code audit. Specifically, a code auditing subtask is generated based on the identification of the team cooperation sheet and the code to be audited submitted by the first user through the code version tool. The code version tool may refer to SVN (version control system of open source code), or may be other code version tools, which is not specifically limited in this embodiment.
The code audit task refers to an overall code audit task created for a team collaboration sheet, which may include one or more code audit subtasks. In other words, the team collaboration sheet characterizes a certain demand, and one or more code audit subtasks for the demand are pooled in the code audit task.
In the step, a code audit subtask submitted by a first user is responded, and whether the code audit task is established for the team cooperation list or not can be searched through the identification of the team cooperation list because the code audit subtask corresponds to the unique identification of the team cooperation list.
Specifically, step S101 may include the following sub-steps:
s1011, responding to a code audit task submitted by a first user, and triggering the running of a preset program;
s1012, inquiring the identification of a team cooperation list carried in the code audit subtask when the preset program runs;
s1013, inquiring the associated code auditing task based on the identification of the team cooperation list.
In step S1011, a web application, i.e., a preset program, is configured, which is triggered to run each time the code to be audited is submitted. The preset program may refer to webhook of the source, and the embodiment is not limited thereto, but may be other hooks, such as svnhook, githook, etc.
In step S1012, assuming that the team cooperation list is a co-easy list, when the web application is running, the co-easy list is queried by using the co-easy interface according to log in the svn code submitted by the user, for example: log at the time of submission is "# 10001xxx function development", and the query easy collaboration list number is 10001.
In step S1013, assuming that the code review platform is an up source, the team cooperation list is an easy cooperation list, and querying whether the easy cooperation list has a list number of the easy cooperation list in the code audit task through an interface provided by the up source, thereby querying whether the easy cooperation list has a created code audit task.
In step S102, if the associated first code audit task is queried, which indicates that the first code audit task has been created for the team cooperation list, the code audit subtask is added to the first code audit task. As shown in fig. 3, if an associated trunk is queried, the trunk associates the single number "101916" of the easy-to-collaborate list, and a plurality of code audit subtasks have been created for the easy-to-collaborate list in the trunk, the new code audit subtask "G-CR-11#10196 [ program autonomous ] V2006 engine" is updated into the trunk. If a new code audit subtask is submitted in the follow-up process, the new code audit subtask is continuously merged into the first code audit task.
In step S103, preferably, a mail automatic sending manner may be adopted to notify at least one second user of a message newly added to the code audit task in the first code audit task. The present embodiment is not limited thereto, and other message notification manners may be adopted, such as voice notification, short message notification, application notification, and the like.
In this step, as shown in fig. 4, a message of updating the new code audit subtask "G-CR-11#10196 [ program autonomous ] V2006 engine" into the trunk may be notified to at least one second user by means of mail automatic transmission, so that the at least one second user audits the code of the new code audit subtask "G-CR-11#10196 [ program autonomous ] V2006 engine".
In one possible implementation, the at least one second user is presented with the audit status of each of the first code audit task/second code audit task. As shown in FIG. 5, each circle represents a code audit subtask, the open circle represents the audit state of the code audit subtask as being audited complete, and the closed circle represents the audit state of the code audit subtask as being unverified. The embodiment is not limited thereto, and other display manners may be adopted to display the audit state of each code audit subtask in the first code audit task/the second code audit task to the at least one second user.
In one possible implementation, if the associated first code audit task is not queried, then creating a second code audit task; wherein the second code audit task is associated with an identification of the team collaboration ticket; and adding the code audit subtask into the second code audit task. And notifying at least one second user of the information added into the code audit task in the second code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task. In this embodiment, the first code audit task is not queried, which indicates that the code audit task is not created for the team cooperation list, then a second code audit task is newly created for the team cooperation list, and the code audit task is added to the second code audit task and notified to at least one second user.
In one possible implementation, before step S103, the method further includes: firstly, determining a team cooperation list based on the identification of the team cooperation list carried in the code audit task; and querying the name of at least one second user configured by the first user in the team cooperation list. The embodiment can read the easy collaboration list based on the single number of the easy collaboration list, and inquire the name of at least one second user preconfigured by the first user from the easy collaboration list, so that the second user needing to be notified of the message can be determined.
According to the code auditing method provided by the embodiment of the application, firstly, a code auditing subtask submitted by a first user is responded, and as the code auditing subtask corresponds to the unique identification of the team cooperation list, whether the code auditing task is created for the team cooperation list or not can be searched through the identification of the team cooperation list. Then, if the first code audit task is inquired to be established for the team cooperation list, adding the code audit subtask into the first code audit task; in this way, a plurality of code audit subtasks corresponding to the team cooperation list can be combined into the first code audit task. And finally, notifying at least one second user of a message newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task. In this way, at least one second user may be notified when the first user submits a new code audit task. Therefore, the embodiment of the application can combine the plurality of code audit tasks corresponding to the team cooperation list into the first code audit task, and can notify at least one second user when the first user submits the new code audit task.
Based on the same technical concept, the embodiment of the application also provides a code auditing device, an electronic device, a computer storage medium and the like, and particularly can be seen in the following embodiments.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a code auditing device according to an embodiment of the present application. As shown in fig. 6, the apparatus may include:
the query module 10 is used for responding to a code audit task submitted by a first user and querying the associated code audit task based on the identification of a team cooperation list carried in the code audit task; the code audit task corresponds to the unique identification of the team cooperation list;
a joining module 20, configured to join the code audit subtask to the first code audit task if the associated first code audit task is queried;
and the notification module 30 is configured to notify at least one second user of a message newly added to the code audit task in the first code audit task, so that the at least one second user performs audit on the code to be audited carried in the code audit task.
In one possible implementation, the query module 10 may include:
the triggering unit is used for responding to the code audit task submitted by the first user and triggering the running of the preset program;
the first query unit is used for querying the identification of the team cooperation list carried in the code audit task when the preset program runs;
and the second query unit is used for querying the associated code auditing task based on the identification of the team cooperation list.
In one possible implementation, the joining module 20 is further configured to:
if the associated first code auditing task is not queried, a second code auditing task is newly built; wherein the second code audit task is associated with an identification of the team collaboration ticket;
and adding the code audit subtask into the second code audit task.
In one possible implementation, notification module 30 is further to:
and notifying at least one second user of the information added into the code audit task in the second code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
In one possible implementation, notification module 30 is further to:
determining the team cooperation list based on the identification of the team cooperation list carried in the code audit task;
and querying the name of at least one second user configured by the first user in the team cooperation list.
In one possible implementation, the query module 10 is further configured to: and generating a code auditing subtask based on the identification of the team cooperation list and the code to be audited submitted by the first user through the code version tool.
In one possible implementation, notification module 30 is further to: and displaying the auditing state of each code auditing sub-task in the first code auditing task/the second code auditing task to the at least one second user.
The embodiment of the application discloses an electronic device, as shown in fig. 7, comprising: a processor 701, a memory 702 and a bus 703, said memory 702 storing machine readable instructions executable by said processor 701, said processor 701 and said memory 702 communicating via the bus 703 when the electronic device is running, the processor 701 executing said machine readable instructions performing the steps of:
responding to a code audit task submitted by a first user, and inquiring the related code audit task based on the identification of a team cooperation list carried in the code audit task; the code audit task corresponds to the unique identification of the team cooperation list;
if the associated first code audit task is queried, adding the code audit subtask into the first code audit task;
and notifying at least one second user of a message newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
In one possible implementation, the step of querying the associated code audit task based on the identification of the team collaboration sheet carried in the code audit task in response to the code audit task submitted by the first user by the processor 701 includes:
responding to a code audit task submitted by a first user, and triggering the running of a preset program;
inquiring the identification of a team cooperation list carried in the code audit subtask when the preset program runs;
and querying the associated code auditing task based on the identification of the team cooperation list.
In one possible implementation, the processor 701 is further configured to perform:
if the associated first code auditing task is not queried, a second code auditing task is newly built; wherein the second code audit task is associated with an identification of the team collaboration ticket;
and adding the code audit subtask into the second code audit task.
In one possible implementation, the processor 701 is further configured to perform:
and notifying at least one second user of the information added into the code audit task in the second code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
In one possible implementation, the processor 701 is further configured to perform:
determining the team cooperation list based on the identification of the team cooperation list carried in the code audit task;
and querying the name of at least one second user configured by the first user in the team cooperation list.
In one possible implementation, the processor 701 is further configured to perform: and generating a code auditing subtask based on the identification of the team cooperation list and the code to be audited submitted by the first user through the code version tool.
In one possible implementation, the processor 701 is further configured to perform: and displaying the auditing state of each code auditing sub-task in the first code auditing task/the second code auditing task to the at least one second user.
The embodiment of the application provides a computer program product of a code auditing method, which comprises a computer readable storage medium storing a non-volatile program code executable by a processor, wherein the program code comprises instructions for executing the method described in the foregoing method embodiment, and specific implementation can be seen in the method embodiment and will not be repeated herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, and are not repeated in the present disclosure. In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (9)

1. A code auditing method, comprising:
responding to a code audit task submitted by a first user, and inquiring the related code audit task based on the identification of a team cooperation list carried in the code audit task; the code audit task corresponds to a unique identifier of the team cooperation list, wherein the code audit task refers to a task generated by submitting one code audit, the code audit task refers to a total code audit task established for the team cooperation list, and the code audit task comprises one or more code audit tasks;
if the associated first code audit task is queried, adding the code audit subtask into the first code audit task;
notifying at least one second user of a message newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task;
if the associated first code auditing task is not queried, a second code auditing task is newly built; wherein the second code audit task is associated with an identification of the team collaboration ticket;
and adding the code audit subtask into the second code audit task.
2. The method of claim 1, wherein in response to a code audit task submitted by a first user, querying an associated code audit task based on an identification of a team collaboration sheet carried in the code audit task comprises:
responding to a code audit task submitted by a first user, and triggering the running of a preset program;
inquiring the identification of a team cooperation list carried in the code audit subtask when the preset program runs;
and querying the associated code auditing task based on the identification of the team cooperation list.
3. The method according to claim 1, wherein the method further comprises:
and notifying at least one second user of the information added into the code audit task in the second code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task.
4. The method according to claim 1, wherein the method further comprises:
determining the team cooperation list based on the identification of the team cooperation list carried in the code audit task;
and querying the name of at least one second user configured by the first user in the team cooperation list.
5. The method according to claim 1, wherein the method further comprises:
and generating a code auditing subtask based on the identification of the team cooperation list and the code to be audited submitted by the first user through the code version tool.
6. The method according to claim 1, wherein the method further comprises:
and displaying the auditing state of each code auditing sub-task in the first code auditing task/the second code auditing task to the at least one second user.
7. A code auditing apparatus, comprising:
the query module is used for responding to the code audit task submitted by the first user and querying the associated code audit task based on the identification of the team cooperation list carried in the code audit task; the code audit task corresponds to a unique identifier of the team cooperation list, wherein the code audit task refers to a task generated by submitting one code audit, the code audit task refers to a total code audit task established for the team cooperation list, and the code audit task comprises one or more code audit tasks;
the adding module is used for adding the code audit subtask into the first code audit task if the associated first code audit task is inquired;
the notification module is used for notifying at least one second user of the information newly added into the code audit task in the first code audit task so as to enable the at least one second user to audit the code to be audited carried in the code audit task; if the associated first code auditing task is not queried, a second code auditing task is newly built; wherein the second code audit task is associated with an identification of the team collaboration ticket; and adding the code audit subtask into the second code audit task.
8. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, performs the steps of the method according to any of claims 1 to 6.
CN202110831476.XA 2021-07-22 2021-07-22 Code auditing method and device, electronic equipment and storage medium Active CN113553262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110831476.XA CN113553262B (en) 2021-07-22 2021-07-22 Code auditing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110831476.XA CN113553262B (en) 2021-07-22 2021-07-22 Code auditing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113553262A CN113553262A (en) 2021-10-26
CN113553262B true CN113553262B (en) 2023-08-11

Family

ID=78132463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110831476.XA Active CN113553262B (en) 2021-07-22 2021-07-22 Code auditing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113553262B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016149555A1 (en) * 2015-03-18 2016-09-22 Open Source Storage Llc System and method for gamification of community software development
CN106844730A (en) * 2017-02-10 2017-06-13 网易(杭州)网络有限公司 The display methods and device of file content
CN108073394A (en) * 2018-02-27 2018-05-25 西安闻泰电子科技有限公司 Code administration method, apparatus, code administration server and storage medium
CN108089984A (en) * 2017-12-14 2018-05-29 泰康保险集团股份有限公司 Implementation method, device, storage medium and the electronic equipment of code review
CN109542769A (en) * 2018-10-25 2019-03-29 武汉精立电子技术有限公司 A kind of automated testing method of continuous integrating
CN109783128A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 Code change notification method, equipment, storage medium and device
US10482005B1 (en) * 2017-09-26 2019-11-19 EMC IP Holding Company LLC Method and apparatus for developer code risk assessment
CN110866730A (en) * 2018-12-29 2020-03-06 北京安妮全版权科技发展有限公司 Code assessment system and method
CN112445514A (en) * 2019-09-05 2021-03-05 腾讯科技(深圳)有限公司 Code evaluation method and related product
CN112748950A (en) * 2021-01-15 2021-05-04 国能日新科技股份有限公司 Software code examination method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8341600B2 (en) * 2008-02-15 2012-12-25 Microsoft Corporation Tagging and logical grouping of items in source code change lists
US10095509B2 (en) * 2015-02-04 2018-10-09 Sap Se Supporting developer-user collaborative software review in IDE
US9916224B2 (en) * 2015-09-15 2018-03-13 Linkedin Corporation Integrating quality analysis with a code review tool
US10175977B2 (en) * 2015-11-04 2019-01-08 International Business Machines Corporation User profile based code review
US20170243463A1 (en) * 2016-02-18 2017-08-24 GRZ Pharma, LLC Systems, methods, and devices for using a code to track task completion
US11561771B2 (en) * 2017-08-22 2023-01-24 Codestream, Inc. System and method for in-ide code review
US10761810B2 (en) * 2018-06-27 2020-09-01 Accenture Global Solutions Limited Automating testing and deployment of software code changes
US20200226054A1 (en) * 2019-01-15 2020-07-16 International Business Machines Corporation Determining Reviewers for Software Inspection

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016149555A1 (en) * 2015-03-18 2016-09-22 Open Source Storage Llc System and method for gamification of community software development
CN106844730A (en) * 2017-02-10 2017-06-13 网易(杭州)网络有限公司 The display methods and device of file content
US10482005B1 (en) * 2017-09-26 2019-11-19 EMC IP Holding Company LLC Method and apparatus for developer code risk assessment
CN108089984A (en) * 2017-12-14 2018-05-29 泰康保险集团股份有限公司 Implementation method, device, storage medium and the electronic equipment of code review
CN108073394A (en) * 2018-02-27 2018-05-25 西安闻泰电子科技有限公司 Code administration method, apparatus, code administration server and storage medium
CN109542769A (en) * 2018-10-25 2019-03-29 武汉精立电子技术有限公司 A kind of automated testing method of continuous integrating
CN109783128A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 Code change notification method, equipment, storage medium and device
CN110866730A (en) * 2018-12-29 2020-03-06 北京安妮全版权科技发展有限公司 Code assessment system and method
CN112445514A (en) * 2019-09-05 2021-03-05 腾讯科技(深圳)有限公司 Code evaluation method and related product
CN112748950A (en) * 2021-01-15 2021-05-04 国能日新科技股份有限公司 Software code examination method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵海燕 ; 李敏 ; 陈庆奎 ; 曹健 ; .开源软件开发中的代码评审.小型微型计算机系统.2020,(第04期),全文. *

Also Published As

Publication number Publication date
CN113553262A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US20080262860A1 (en) System and Method for Supporting Software
US8132092B2 (en) Automated management of internet and/or web site content
US20100138499A1 (en) Method and Apparatus for Aggregating E-Mail Reply Data
CN110837356B (en) Data processing method and device
CN113706022B (en) Business process execution method and device, storage medium and electronic device
US8205198B2 (en) System and method for monitoring a workflow process and generating reminder alerts using modular arithmetic
CN111949607B (en) Method, system and device for monitoring UDT file
US6796486B2 (en) Document review apparatus, a document review system, and a computer product
CN114282078A (en) Project data processing method, device, electronic device and storage medium
AU2016200559A1 (en) Method and system for communicating product development information
CN114331318B (en) Data compliance control processing method, device and electronic equipment
CN111371645A (en) Test method, system, computer equipment and storage medium for service connectivity
CN113553262B (en) Code auditing method and device, electronic equipment and storage medium
CN113902392A (en) Creative project management method, device, terminal and storage medium
US20100299272A1 (en) Workflow status tracking and reporting
CN112114954B (en) Method and device for job scheduling configuration of software system
JP2020017053A (en) Environment construction support system and environment construction support method
CN112099783A (en) Flow creation method and device, electronic equipment and storage medium
CN111415127B (en) Bid-inviting changing method and device
WO2021200676A1 (en) Standard information management device, standard information management method, and program
CN112416791A (en) System and method for processing defect information of test object
CN112165512B (en) File release method and device, terminal equipment and storage medium
JP7693109B2 (en) Advertisement provision support device, advertisement provision support program, and advertisement provision support system
JP5153833B2 (en) Electronic approval reporting system and method
JP2010286999A (en) Task management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant