Management server, management method and program for system for evaluating maintainability of source code
The management server system objectively evaluates source code maintainability by considering usage frequency and readability, addressing the limitations of existing systems to ensure timely updates and effective maintenance planning.
Patent Information
- Application Number
- JP2020062271
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-03-31
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2040-03-31
AI Technical Summary
Existing source code evaluation systems fail to objectively and quantitatively assess maintainability, particularly in large-scale projects, and do not consider the frequency of use in a real environment, which is crucial for long-term maintenance and system updates.
A management server system that evaluates source code quality by associating module identifiers with creator information, using AI to analyze readability and maintainability, and setting evaluation criteria based on expected usage frequency, with statistical adjustments for difficulty and frequency of use.
Enables objective and quantitative evaluation of source code maintainability, allowing for timely updates and personnel planning based on actual usage patterns, thereby improving the efficiency and effectiveness of program maintenance.
Smart Images

Figure 0007547066000006 
Figure 0007547066000003 
Figure 0007547066000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a system for evaluating source code. [Background technology]
[0002] In recent years, in the field of software development, a method of analyzing the source code of a program to evaluate the skills of a programmer and a method of formulating a highly accurate development plan based on the skills of the programmer have become known.
[0003] For example, Patent Document 1 discloses a programming skill evaluation device for evaluating the programming skills of IT engineers. According to this technology, a job information providing server transmits programming requirements that are challenges to a job seeker whose programming skills are to be evaluated, and receives the source code of a program created by the person to be evaluated, which is then executed on a program evaluation server to evaluate the programming skills based on the execution speed, etc. In order to deal with the risk that a malicious person may slip in among the many people to be evaluated and transmit a harmful program such as a virus, the source code is executed in an isolated virtual execution environment on the program evaluation server, and the virtual execution environment is discarded after execution.
[0004] Also, for example, Patent Document 2 discloses a plan generation device and the like that aims to assign developers having the ability (possessed skills) to use a development environment to work phases and to create a more accurate plan. According to this method, a plan generation device that generates a plan for a project of software development including multiple work phases includes a development environment plan storage unit that stores development environment plan information that represents an operation plan of the development environment for software development, a person in charge attribute storage unit that stores person in charge attribute information that associates a developer who develops software with an attribute including the developer's schedule and the ability to use the development environment for software development, and a plan information generation unit that determines whether or not a developer having the ability to use the development environment used in the work phase can be assigned as a responsible developer for a period during which each of the multiple work phases is scheduled to be performed based on the development environment plan information and the person in charge attribute information, and generates plan information in which the responsible developer is assigned to the scheduled period when the responsible developer can be assigned.
[0005] Also, a method is known in which AI (Artificial Intelligence) technology is used to train multiple source codes through machine learning to evaluate the readability of the source codes. For example, the technology described in Non-Patent Document 1 is a tool that supports the efficiency and refinement of source code review work, and AI mainly diagnoses the readability of the source code based on an image of the source code. This tool identifies areas with low readability and allows reviewers to focus on reviewing those areas, which allows them to expect the efficiency and refinement of their work. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2015-143890 A [Patent Document 2] JP 2018-142264 A [Non-patent literature]
[0007] [Non-Patent Document 1] Nikkei xTECH (Cross Tech), "Fujitsu uses AI to find defects in source code, contents of new diagnostic tool", [online], [Retrieved February 25, 2020], Internet, < https: / / xtech.nikkei.com / it / atcl / column / 14 / 346926 / 122501258 / #> Summary of the Invention [Problem to be solved by the invention]
[0008] However, since humans grow every day, it is necessary to update the evaluation and development plan regularly. In particular, in the development of large-scale systems, a large number of programmers (on the scale of hundreds) are involved, and maintenance continues for a long time even after completion, so the readability and ease of maintenance of source code are extremely important, and it is no exaggeration to say that they determine whether the project is successful or not.
[0009] The technologies of Patent Documents 1 and 2 above evaluate the skills of programmers and generate development plans through the analysis of source code, but they do not evaluate the developer's ability to create maintainable source code, with the main criteria being ease of viewing and maintenance, in addition to evaluating the program itself. Furthermore, they do not seek an evaluation value for quality from the perspective of how frequently the program is used in a real environment. The maintainability of source code is a more important factor than at least "the execution speed of source code" and "the amount of memory used when the source code is executed," which are used as skill evaluation items in the invention of Patent Document 1.
[0010] Therefore, the present invention aims to provide a system that can objectively and quantitatively evaluate the maintainability of each module, which is a functional unit of a program, taking into account the frequency of use of the program in the actual environment, while also evaluating the source code creation skills of each programmer by utilizing the AI tool described in the above Non-Patent Document 1. More specifically, the present invention aims to set evaluation criteria in the evaluation of source code during program development, using as an index the frequency of use of each module expected in the actual environment in which the program is used.
[0011] In addition, when the development is completed and the program is released, the functionality is often enhanced by adding logic to existing modules, so that generally, the readability of the source code often decreases with each maintenance. As a result, maintainability decreases, and a program that has been used for many years will eventually reach a time of renewal when a complete revision is required. Conventionally, this renewal time was often performed in conjunction with the renewal time of the server, etc., that is, the lifespan of the hardware, but if the renewal time of the program itself can be objectively and quantitatively determined separately from that, the "lifespan of the program" can be known. Therefore, another object of the present invention is to provide a system that can objectively and quantitatively determine the renewal time of the system during a long maintenance period. [Means for solving the problem]
[0012] In order to achieve the first object, the present invention provides the following solution. (1) A management server of an evaluation system for evaluating the quality of source code of a program, comprising: a source code library that stores identifiers of modules, which are functional units of the program, in association with personal information of the creator of the source code of the module and date and time information of the creation or update; a source code quality evaluation unit that analyzes source code in the source code library and evaluates the quality of the source code based on the analysis results; a development quality judgment unit that judges the quality based on an expected frequency of use of the module during the development period of the program; and an evaluation criterion setting unit that sets an evaluation standard value for modules whose frequency of use is higher than a predetermined value higher than the evaluation standard value for modules whose frequency of use is lower than the predetermined value.
[0013] (2) In the above configuration (1), the quality is characterized by being quality related to the readability of the source code.
[0014] (3) In the configuration of (1) or (2) above, the expected frequency of use is the frequency of user access to a screen of a function provided by the module, or the frequency of direct or indirect access to an input / output device other than the screen or to another module, and the frequency of use is determined based on the frequency of access to similar modules in past projects.
[0015] (4) In any of the configurations (1) to (3) above, the evaluation criteria setting unit is characterized in that the quality evaluation value is a conversion value calculated by statistical processing that standardizes the evaluation value scores using statistical data from past projects, taking into account the difficulty of creating the module.
[0016] (5) In any of the configurations (1) to (4) above, the method is characterized in that a source code corresponding to the personal information is extracted, and changes in the evaluation for each creator for multiple pieces of date and time information are detected.
[0017] (6) A management method for evaluating the quality of source code of a program, characterized in that a computer executes the steps of: storing in a source code library an identifier of a module, which is a functional unit of the program, the source code of the module, personal information about the creator of the source code, and date and time information of creation or update, in association with the identifier; analyzing the source code in the source code library and evaluating the quality of the source code based on the analysis results; judging the quality based on an expected frequency of use of the module during a development period of the program; and setting an evaluation standard value for modules whose frequency of use is higher than a predetermined value higher than the evaluation standard value for modules whose frequency of use is lower than the predetermined value.
[0018] (7) A computer program, characterized in that it causes a computer to execute each of the steps described in (6) above. Effect of the Invention
[0019] According to the present invention, in evaluating source code during program development, evaluation criteria can be set using as an index the expected usage frequency of each module in the actual usage environment of the program. [Brief description of the drawings]
[0020] [Figure 1] 1 is a diagram showing a system configuration of a source code evaluation system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing functional blocks of a management server of the source code evaluation system. [Diagram 3] FIG. 1 is a diagram showing a quality evaluation procedure during the development period of a system according to an embodiment of the present invention. [Figure 4] FIG. 11 is a diagram showing a quality evaluation procedure during a maintenance period of a system according to an embodiment of the present invention. [Diagram 5] 1 is a diagram showing an outline of a development quality management table during the development period of a system according to an embodiment of the present invention. FIG. [Figure 6] 1 is a diagram showing an overview of a maintenance quality management table during a maintenance period of a system according to an embodiment of the present invention. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] Hereinafter, a mode for carrying out the present invention (hereinafter, an embodiment) will be described in detail with reference to the attached drawings. In the following drawings, the same elements are given the same numbers or symbols throughout the description of the embodiment. Also, in the diagrams of the functional configuration, the arrows between the functional blocks indicate the direction of data flow or the direction of processing flow.
[0022] FIG. 1 is a diagram showing a system configuration of a source code evaluation system (hereinafter referred to as the present system) according to an embodiment of the present invention.
[0023] In this system, particularly in large-scale projects where tens to hundreds of programmers create source code based on design documents, programmer terminals 10 assigned to each programmer, a management server 100 for collecting and managing the created source code, and an administrator terminal 20 for monitoring and managing the system are connected via a network.
[0024] The management server 100 has the following databases connected to it so that they can communicate with each other: a source code library 101, machine learning data 102, usage frequency data 103, operational performance data 104, development plan data 105, and maintenance plan data 106.
[0025] The source code library 101 is a database that stores source code files created or updated by a programmer, in association with the identifier (ID) of a module, which is a functional unit of a program, the source code of the module, and the date and time information when the source code was created or updated. The source code library 101 may also associate individual information that stores the programming skills of the creator (programming languages that can be handled, years of experience, roles in past projects, etc.) with the module ID.
[0026] The machine learning data 102 is a database that stores machine learning data for analyzing source code using AI technology.
[0027] The usage frequency data 103 is a database that stores the usage frequency (user access frequency of the screen or access frequency with devices other than the screen or with other modules) expected in the actual environment for each module. The usage frequency is determined based on the designer's expected value and, if there is a similar module in the past, its performance data. The usage frequency will be described in detail later.
[0028] The operation performance data 104 is a database that stores data on the actual frequency of use (access frequency) for each module after development has been completed and released. The operation performance data 104 includes performance data of similar projects in the past.
[0029] The development plan data 105 is a database that stores the development plans of the project. The development plans include development plans for each module.
[0030] The maintenance plan data 106 is a database that stores post-release maintenance plans for a program and their results.
[0031] However, the system is not limited to this configuration. For example, the management server 100 may be configured to include a plurality of management servers 100, or the database may be separated from the management server 100, and the database and its database server may be configured separately.
[0032] 2 is a diagram showing functional blocks of the management server 100 of this system. In this embodiment, the above databases (data storage means) are connected to the management server 100, and a function execution unit (function execution means) that executes individual functions while referring to each database is shown. The function execution unit includes a source code analysis unit 110, a source code quality evaluation unit 111, an evaluation criterion setting unit 112, a development quality judgment unit 113, a development plan update unit 114, a maintenance quality judgment unit 115, and a maintenance plan update unit 116. However, the configuration is not limited to this.
[0033] The source code analysis unit 110 reads source code created by a programmer from the source code library 101 periodically or at a specified timing, and performs text analysis of the source code created up to that point for each module (a program unit having one function).
[0034] The source code quality evaluation unit 111 is an evaluation tool that calculates a quality evaluation value based on the analysis result of the source code analysis unit 110, and in some cases also refers to the machine learning data 102. When multiple programmers are in charge of one module, evaluation is also performed for each programmer. However, if the source code of a module has not been changed since the previous quality evaluation, the evaluation of that module may be skipped. In this way, efficient judgment can be achieved. The same evaluation items may be used here so that they can be applied not only during development but also during maintenance. In that case, it is desirable to use evaluation items related to maintainability such as readability of the source code. Although the method of calculating the evaluation value of each module for the evaluation items is not the subject of the present invention, a known technology may be used. That is, the evaluation tool at this time may use an existing source code evaluation system. For example, the AI-based source code evaluation tool of Non-Patent Document 1 may be used to evaluate the readability (readability) of the source code as an evaluation item. Furthermore, another evaluation tool may be used in combination. Evaluation items for the readability of the source code include whether there are appropriate comments, whether the nesting depth is appropriate, and whether it complies with other programming rules.
[0035] In addition, the source code quality evaluation unit 111 can also use the individual information in the source code library 101 in the following ways.
[0036] (Utilizing individualized assessments at multiple points in time) Normally, source codes stored in the source code library 101 are evaluated in relatively large units, but by extracting and evaluating source codes associated with the same individual information, it is possible to evaluate individual work. Furthermore, when comparing the evaluation of individual work at two points in time, if the evaluation is higher than before, it can be evaluated that the person has acquired techniques to improve the evaluation. In other words, it can be said that the person has acquired the skills to create source code with high maintainability. Such individual evaluations can be used as a judgment index for personnel allocation (reallocation) in development plans.
[0037] (Use the planned end date of development and the date the source code was created and updated) When comparing those who completed before the deadline, it is possible to draw a line between those who can create source code quickly and with high maintainability, and those who can create source code quickly but with low maintainability. Similarly, the same line can be drawn between those who completed just before the deadline, and those who exceeded the deadline. By analyzing in this way, it becomes possible to reflect individual characteristics and abilities in personnel planning. It is also possible to set a specified base date, not limited to the end date of the development period, and perform the same evaluation.
[0038] (Utilizing source code history information) If the creation date and update date are stored at multiple points in time and the source code is managed for each of the multiple points in time (or the evaluation for each historical date may be stored), it is possible to compare, for example, the evaluation immediately after the first creation date and the evaluation immediately after the last update date, rather than evaluating all source codes at the same time. In other words, rather than evaluating the source code collectively based on a certain date and time (March 31, 2020), it is possible to know for each source code how the evaluation changed between the first creation date and the first update, and how much the evaluation differs between the evaluation just before completion and the evaluation after completion. There may be some whose evaluation does not change no matter how many times they are revised (possibly some who remain high or low), some whose evaluation increases with each update, and some whose evaluation decreases with each update. In this way, detailed evaluations can be made by tracking the update history of individual source codes, rather than using the same base date. In addition, by detecting changes in the above evaluations and making a comprehensive evaluation, detailed personnel planning becomes possible.
[0039] The evaluation criteria setting unit 112 sets evaluation criteria for quantitatively judging the results of the evaluation performed by the source code quality evaluation unit 111. Here, a quality standard value and a renewal standard value are set for each module, and in some cases, for each programmer. This setting is usually performed by a project manager. Here, the quality standard value is a standard value for determining whether the source code quality at the time of development is acceptable or not, and is a criterion for judging whether it is acceptable to release. Specifically, if the maximum evaluation value (ideal perfect value) is 100, the evaluation value that each program should at least clear at the time of release is set to, for example, 70 to 80. Since the difficulty of creating each module and the frequency of use in the actual environment differ for each module, a quality evaluation value is set for each module. Here, the more frequently a module is used (for example, a module with a high frequency of screen access when using the function of that module), the higher the quality standard value is set than for other modules. The frequency of screen access (for example, the expected number of times a screen is displayed per day) is predicted from the data of similar modules in the past and stored in the usage frequency data 103. Furthermore, when the function of a module involves direct or indirect access to an input / output device other than a screen or to another module, the expected frequency of such access may be used as the access frequency.
[0040] Also, modules that are judged to have complex program logic and are difficult to create may have a lower quality standard value than other modules. In that case, using statistical data from past projects, the evaluation value may be a scaled score calculated by a statistical process called score equivalence (Equating), rather than the raw score output by the evaluation tool. In this way, the evaluation value can be made independent of the difficulty of the program.
[0041] The evaluation standard value may also be different depending on the type of business of the company in which the program is run, for example, a higher standard value may be set for financial institutions.
[0042] The renewal reference value is a reference value for determining the future renewal timing after the start of maintenance (the time when the program needs to be completely reviewed and modified, for example, 7 to 15 years later). As mentioned above, when a program is repeatedly modified, the code becomes more complex, and in many cases the evaluation value for maintainability tends to decrease more than immediately after release. Therefore, in this system, the evaluation is repeated using the same evaluation tool at a predetermined timing even after release, for example, every six months or immediately after a small change is implemented. Then, it is determined that renewal is necessary when the evaluation is likely to fall below the set renewal reference value. Specifically, if the quality evaluation value of each module immediately after the start of release is 70 to 80, it is determined that renewal is necessary by the time when the quality evaluation value is expected to fall below, for example, 60 to 70. In other words, by doing this, the overall evaluation value can be calculated by taking a weighted average based on the downward trend of the quality evaluation value of each module, and the time when the entire program will fall below the renewal reference value can be determined and used for creating and updating renewal plans.
[0043] The development quality judgment unit 113 judges the quality evaluation value calculated by the source code quality evaluation unit 111 during the development period for each judgment time. At this time, the judgment of the quality of each module during the development period may be performed according to the frequency of changes to each module with reference to the usage frequency data 103. In this way, the judgment time can be determined more efficiently. Then, with reference to the data stored in the development plan data 105, if it is judged that an update of the development plan (replacement of the development programmer, update of the release time) is necessary, the process is handed over to the development plan update unit 114. The development quality judgment unit 113 also includes a means for displaying the transition and tendency of the quality evaluation value for each programmer and each module.
[0044] The development plan update unit 114, while consulting with the project manager, stores the updated development plan in the development plan data 105. The development plan update unit 114 also includes a means for comparing the data before and after the update and displaying the results in a graph.
[0045] The maintenance quality judgment unit 115 calculates the quality evaluation value calculated by the source code quality evaluation unit 111 during the maintenance period for each judgment time. At this time, the calculation of the evaluation value for each module during the maintenance period may be performed according to the frequency of changes for each module by referring to the operation performance data 104. In this way, the judgment time can be determined more efficiently. Then, by referring to the data stored in the maintenance plan data 106, if the quality related to maintainability is expected to fall below a predetermined reference value, the timing of renewal that requires a full revision of the program is determined. Furthermore, if it is determined that the maintenance plan needs to be updated (replacement of the maintenance programmer, update of the renewal time), the process is passed to the maintenance plan update unit 116 to update the maintenance plan. The maintenance quality judgment unit 115 also includes a means for displaying the transition and tendency of the quality evaluation value for each module and for each programmer in a graph.
[0046] The maintenance plan update unit 116 judges the quality evaluation value calculated by the source code quality evaluation unit 111 for each judgment period throughout the entire maintenance period after release, and updates the maintenance plan if it is judged necessary to update the maintenance plan (in some cases, by increasing the number of personnel in charge of maintenance or changing the maintenance period, etc.) by referring to the data stored in the maintenance plan data 106 and the operation performance data 104. Here, the operation performance data 104 stores data such as the number of times and frequency of actual use by users for each module and / or for each screen provided by the module. The maintenance quality judgment unit 115 also includes a means for displaying the transition (especially after maintenance) and tendency of the quality evaluation value for each module in a graph.
[0047] This concludes the description of the functional configuration of the management server 100 of this system, but the above functional configuration is merely an example, and one functional block (database and function execution unit) may be divided, or multiple functional blocks may be combined into one functional block. Each function execution unit is realized by a computer program executed by a CPU (Central Processing Unit) built into the device, which reads a computer program stored in a storage device such as a ROM (Read Only Memory), a flash memory, an SSD (Solid State Drive), or a hard disk. That is, each function execution unit is realized by this computer program reading and writing necessary data such as tables from a database (DB; Data Base) stored in the storage device or a storage area on the memory, and, in some cases, controlling related hardware (for example, an input / output device, a display device, a communication interface device). In addition, the database (DB) in the embodiment of the present invention may be a commercial database, but it also means a simple collection of tables and files, and the internal structure of the database itself is not important.
[0048] (Quality Evaluation Procedure) The evaluation procedures during the development and maintenance phases of this system are explained below. Note that in the process flow diagrams (flowcharts) below, the order of the steps may be changed as long as the relationship between the input and output of each step is not lost.
[0049] 3 is a diagram showing the procedure for quality evaluation during the development period (development quality evaluation). First, in step S10, the module ID and the programmer ID who created the module are obtained. Next, in step S11, the quality evaluation value set as the target for the module is obtained, and further, the access frequency of the module is obtained from the usage frequency data 103.
[0050] Next, in step S12, it is determined whether the module has an access frequency equal to or greater than a predetermined value (for example, equal to or greater than 100,000 times per day). If the access frequency is equal to or greater than the predetermined value, in step S14, the target evaluation standard value is set higher than that of a module whose access frequency is less than the predetermined value (standard evaluation standard value). If the access frequency is less than the predetermined value, in step S13, the standard evaluation standard value is set. Here, for simplicity, the standard value is set in two stages depending on whether the access frequency is high or low, but it may also be set in multiple stages depending on the access frequency.
[0051] Finally, in step S15, it is determined whether there is another module for which an evaluation reference value has not been set, and if there is a module for which an evaluation reference value has not been set, the processes of steps S10 to S14 are repeated.
[0052] FIG. 4 is a diagram showing the procedure of quality evaluation during a maintenance period (maintenance quality evaluation). First, in step S20, a maintenance plan is acquired from the maintenance plan data 106, which is a data storage means. Next, in step S21, it is determined whether the maintenance work is scheduled to end after a predetermined date (for example, about 5 to 10 days). As a result, if it is scheduled to end within the predetermined date, in step S22, a maintenance quality evaluation is judged after the maintenance work is completed. This judgment is performed for all modules to be maintained. Also, if the maintenance work is not completed within the predetermined date, the subsequent processing may be temporarily terminated, or, as shown in the figure, it may be arranged to wait until the predetermined date arrives. Here, if the method of evaluating the maintenance quality used in step S22 is the same as the evaluation method used during development, the results of the evaluation judgment during maintenance can be used as performance data during the next development.
[0053] After the maintenance quality judgment is completed, in step S23, it is judged whether the judgment result of each module is below the reference value. If the judgment result is below the reference value, in step S24, the transition of past judgment results is referenced to judge the next renewal timing when renewal is required. For example, if the quality reference value, which is the judgment criterion for renewal that is a full-scale repair, is set to 70, the renewal timing is judged to be one year later, two years later, etc., based on the transition of the number of modules below 70. If the judgment result is not below the reference value, the process is temporarily terminated and resumed when the next judgment timing (for example, several months to six months later) comes. Depending on the judgment result, it may be judged that a full renewal is not necessary, but a relatively small-scale maintenance for each module is necessary.
[0054] Figure 5 shows an overview of the development quality management table for the system development period. In this table, a quality standard value is set for each module ID, and the evaluation score, which is the result of the evaluation, is shown for each evaluation date when the quality evaluation was performed. However, for simplicity of explanation, it is assumed that one programmer is in charge of one module.
[0055] As mentioned above, the expected frequency of use (access frequency) differs for each module, so the quality standard value is set higher for modules with higher access frequencies than for other modules. Taking a typical banking system as an example, if screens that process deposit and withdrawal details, transfer and remittance functions, and investment trust functions are accessed more frequently than other screens, then the quality standard values for those screens would be set higher than for screens that are accessed relatively less frequently. The access frequency for each screen can be predicted from the actual values of similar past projects. However, in the case of screens for new functions that have not been seen in similar past examples, it is acceptable to initially assume that they will be accessed more frequently.
[0056] In this way, when evaluating source code during program development, evaluation criteria can be set taking into account the expected access frequency for each module in the program's actual usage environment, resulting in more effective evaluation than if a uniform standard were set.
[0057] In the development quality management table in Fig. 5, the functions of each module are shown, and for ease of explanation, the quality standard value is set to 80 for modules with high access frequency and 70 for modules with low access frequency. Also, the timing for quality evaluation is set here to be every six months after development starts, but it may be set flexibly, such as not only performing such periodic evaluations, but also performing evaluations after events such as specification changes, schedule changes, and programmer changes.
[0058] In addition, in this example of the development quality management table, the evaluation score increases as the development progresses, that is, the quality is improved. However, generally, in the early stages of development, the completeness of the program code is low, and as the code becomes more complete, the evaluation score increases and decreases. Therefore, although not shown in the figure, different quality standard values may be set for each evaluation date. However, at least before release, it is necessary to determine whether all modules clear the predetermined quality standard values. To this end, in addition to the predetermined evaluation date, each programmer may be encouraged to voluntarily evaluate the programs he or she has created as a pre-diagnosis before the regular diagnosis.
[0059] In this way, by creating a development quality management table and recording the evaluation values for each evaluation date, it is possible to grasp the progress of development quality on a regular or irregular basis, objectively and quantitatively. It is also possible to determine whether the developed program meets the release standard. If it does not meet the specified standard, the development plan can be reviewed, programmers for delayed modules can be increased or reallocated, and the release schedule can be reconsidered.
[0060] FIG. 6 is a diagram showing an outline of the maintenance quality management table during the system maintenance period. This table is an extension of the quality evaluation table during development to the maintenance period, and shows the evaluation points, which are the results of the evaluation, for each programmer ID and module ID in charge of maintenance, and for each evaluation date on which the quality evaluation was performed. In general, the programmer who developed the module is not always in charge of maintenance. Also, multiple programmers may be in charge of one module, and programmers may be replaced midway. In the example shown in the figure, it is shown that programmer PM2035 was added to module M00150 from evaluation date 1, and programmer PM2120 was replaced by programmer PM2125 for module M00350 on evaluation date 2.
[0061] In this example, the maintenance quality management table shows how the evaluation score decreases with each assessment date as the maintenance period progresses. This is because, as mentioned above, during maintenance, in addition to troubleshooting, small-scale function extensions are often carried out, which often results in the addition of logic to existing modules, which results in the program becoming bloated and the quality gradually decreasing in terms of readability.
[0062] In addition, a standard value for updating is set to predict when the maintenance period will become longer and a full-scale update will be required. This standard value for updating is also set for each module, and a decision is made at a predetermined time as to whether or not updating is necessary. The results for each module are comprehensively judged to predict when the entire system will need to be updated.
[0063] In this way, it is possible to objectively and quantitatively determine the timing of system renewal even during a long maintenance period. More specifically, by creating a maintenance quality management table and recording the evaluation value on each judgment date, it is possible to grasp the transition of maintenance quality on a regular or irregular basis, objectively and quantitatively. It is also possible to determine whether the maintenance quality of the program being maintained has deteriorated to a level that requires renewal. If the quality has deteriorated faster than expected and it is necessary to bring the renewal forward from the previously planned timing, or conversely, if the quality deterioration is small and it is judged that the renewal can be postponed, it is possible to review the maintenance plan or the development plan for the next version.
[0064] (Effects of the embodiment) With this system, when evaluating source code during program development, evaluation criteria can be set using the expected usage frequency of each module in the program's actual usage environment as an indicator, resulting in more effective evaluation than if a uniform standard were set. In addition, by setting the quality item to be evaluated as a quality item related to the readability of the source code, it is possible to make the evaluation item consistently useful not only during development but also during maintenance. Furthermore, by defining the above-mentioned usage frequency as the user's access frequency to the screen of the function provided by the module, or the frequency of direct or indirect access to input / output devices other than the screen or to other modules, it can be determined more reliably based on the access frequency to the screen of a similar module in past projects. In addition, by using statistical data from past projects and a conversion value calculated by a statistical process that standardizes the evaluation value scores, it is also possible to take the difficulty of creating a module into account in the quality evaluation value. In addition, by extracting source code associated with individual information and detecting changes in the evaluation of each creator across multiple date and time information, it becomes possible to reflect this in personnel planning based on the characteristics and capabilities of each individual programmer.
[0065] In the above embodiment, the source code evaluation system has been described with large-scale projects in mind, but it can also be applied to small and medium-sized projects.
[0066] In addition, although the present invention has been described primarily as a management server in a source code maintainability evaluation system as an invention of an object, the present invention can also be regarded as an invention of a management method or an invention of a computer program.
[0067] Although the present invention has been described above using the embodiments, it goes without saying that the technical scope of the present invention is not limited to the scope described in the above embodiments. It is clear to those skilled in the art that various modifications or improvements can be made to the above embodiments. In addition, it is clear from the description of the claims that forms with such modifications or improvements can also be included in the technical scope of the present invention. [Explanation of symbols]
[0068] 10 Programmer Terminal 20 Administrator terminal 100 Management Server 101 Source Code Library 102 Machine Learning Data 103 Usage Frequency Data 104 Operational Performance Data 105 Development Plan Data 106 Maintenance Plan Data 110 Source Code Analysis Department 111 Source Code Quality Evaluation Department 112 Evaluation Criteria Setting Department 113 Development Quality Assessment Department 114 Development Plan Update Division 115 Maintenance quality judgment department 116 Maintenance Plan Update Division
Claims
1. A management server of an evaluation system for evaluating the quality of a program source code, a source code library that stores identifiers of modules, which are functional units of the program, in association with personal information of the creators of the source codes of the modules and date and time information of the creation or update of the modules; a source code analysis unit that analyzes the source code of the source code library for each module; an evaluation criterion setting unit that sets an evaluation criterion value for the quality of each module based on an expected frequency of use of the module; a development quality assessment unit that assesses the quality based on the evaluation reference value during a development period of the program, the evaluation criterion setting unit sets an evaluation criterion value of a module having a use frequency higher than a predetermined value higher than an evaluation criterion value of a module having a use frequency lower than the predetermined value; 13. A management server comprising:
2. 2. The management server according to claim 1, wherein the quality is a quality related to readability of source code.
3. The management server described in claim 1 or 2, characterized in that the expected frequency of use is the user's access frequency to a screen of a function provided by the module, or the frequency of direct or indirect access to an input / output device other than the screen or to another module, and the frequency of use is determined based on the access frequency of similar modules in past projects.
4. The management server according to any one of claims 1 to 3, characterized in that the evaluation criteria setting unit uses a conversion value calculated by statistical processing that standardizes the evaluation value scores using statistical data from past projects, taking into account the difficulty of creating the module, as the evaluation value of the quality.
5. The management server according to any one of claims 1 to 4, characterized in that a source code corresponding to the personal information is extracted, and a change in the evaluation for each creator is detected for a plurality of pieces of date and time information.
6. A management method for evaluating the quality of a program source code, comprising the steps of: storing a source code of the module, which is a functional unit of the program, in a source code library in association with an identifier of the module, the source code of the module, personal information of a creator of the source code, and date and time information of creation or update; analyzing the source code of the source code library module by module; setting a quality evaluation standard value for each module based on an expected frequency of use of the module; determining the quality based on the evaluation reference value during a development period of the program; a step of setting the evaluation reference value, the evaluation reference value of a module having a use frequency higher than a predetermined value being set higher than an evaluation reference value of a module having a use frequency lower than the predetermined value; A management method characterized by being executed by a computer.
7. A program for causing a computer to execute the steps recited in claim 6.
Citation Information
Patent Citations
Device and method for evaluation and management of quality of software
JP1996076992A
Source code evaluating system
JP2006059276A
Software quality evaluation apparatus, software quality evaluation method and program
JP2013218607A
Programming skill evaluation apparatus, programming skill evaluation method, recruiting information selection apparatus, and recruiting information selection method
JP2015143890A
Plan generation apparatus, plan generation method, and plan generation program
JP2018142264A
