JP2007164489A - Source code inspection system and source code inspection method - Google Patents

Source code inspection system and source code inspection method Download PDF

Info

Publication number
JP2007164489A
JP2007164489A JP2005360145A JP2005360145A JP2007164489A JP 2007164489 A JP2007164489 A JP 2007164489A JP 2005360145 A JP2005360145 A JP 2005360145A JP 2005360145 A JP2005360145 A JP 2005360145A JP 2007164489 A JP2007164489 A JP 2007164489A
Authority
JP
Japan
Prior art keywords
source code
inspection
programmer
corrected
terminal
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.)
Pending
Application number
JP2005360145A
Other languages
Japanese (ja)
Inventor
Tomoyuki Shudo
知之 首藤
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP2005360145A priority Critical patent/JP2007164489A/en
Publication of JP2007164489A publication Critical patent/JP2007164489A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent a subsequent bug by preventing a designated part from being newly embedded and preventing correction of the designated part from being omitted when correcting the part designated by source code inspection, in source code inspection using a tool. <P>SOLUTION: In this source code inspection system 200, a source code inspection device 105 connected to a source code management database 102 and a terminal 103 for a programmer are connected to each other, a source code created by the terminal 103 for the programmer is inspected by the source code inspection device 105, the source code is corrected by the terminal 103 for the programmer on the basis of an inspection result, and the corrected source code is transmitted to the source code inspection device 105. In the source code inspection system 200, a correction part inspection device 201 inspecting whether or not a new designated item is included in the corrected part of the source code corrected by the terminal 103 for the programmer, is connected to the terminal 103 for the programmer. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果に基づき、プログラマ用端末によって、ソースコードを修正し、修正ソースコードをソースコードインスペクション装置に送信するように構成されたソースコードインスペクションシステム及びソースコードインスペクション方法に関するものである。   According to the present invention, a source code created by a programmer's terminal is inspected by a source code inspection device, the source code is corrected by the programmer's terminal based on the inspection result, and the corrected source code is transmitted to the source code inspection device. The present invention relates to a structured source code inspection system and a source code inspection method.

従来、ソフトウェア開発者は机上デバッグ時にソースコードの内容を1ステップずつ追いかける目視確認により、コーディングミスを摘出しており、ソースコード全体を見渡していた。   In the past, software developers have identified coding errors by visual confirmation that tracks the contents of source code step by step during desktop debugging, and overlooked the entire source code.

デバッグ時の目視確認では、ソースコードの内容の論理を追いかけながら確認するため、細かい間違いに気づかない虞があり、実際にプログラムを動かしながらのマシンテスト時に、動作不正の発生により現象化して見つかることが多いため問題となっていた。   Visual confirmation during debugging follows the logic of the contents of the source code, so there is a possibility that you will not notice a small error, and it can be found symptomatically due to the occurrence of incorrect operation during machine testing while actually running the program There were many problems.

そこで、それらの問題は、ソースコードを機械的に解析し、解析した結果を、コーディングミス等を検出する機能を持つツールを使用してソースコードインスペクションを行うことで解決している。   Therefore, these problems are solved by performing source code inspection using a tool having a function of detecting a coding error or the like by mechanically analyzing the source code and analyzing the result.

ツールを利用したソースコードインスペクションの一例を図9に示す。図に於いて、100はソースコードインスペクションシステムであり、ソースコードインスペクションシステム100に於いて、プログラマ101は、システム開発プロジェクトで一元管理されたソースコードを編集するために、ソースコード管理データベース102からソースコードをプログラマ用端末103に取得し、編集し終わったものを再びソースコード管理データベース102へ格納する。   An example of source code inspection using a tool is shown in FIG. In the figure, reference numeral 100 denotes a source code inspection system. In the source code inspection system 100, a programmer 101 edits source code from a source code management database 102 in order to edit source code centrally managed in a system development project. The code is acquired by the programmer terminal 103, and the edited code is stored in the source code management database 102 again.

プロジェクトマネージャ104は、週の終わり、工程区切り等、ソースコード管理データベース102内にあるソースコードを、コーディングミス等を検出する機能を持つツールを備えたソースコードインスペクション装置105を利用して、定期的にインスペクションを行う。   The project manager 104 periodically uses the source code inspection apparatus 105 having a tool having a function of detecting a coding error or the like for the source code in the source code management database 102 such as the end of the week or a process break. To inspect.

ソースコードインスペクション装置105は、ソースコードに対してインスペクションを行い、検査結果106をプログラマ用端末103に送付する。   The source code inspection device 105 inspects the source code and sends the inspection result 106 to the programmer terminal 103.

プログラマ101は、プログラマ用端末103上で、ソースコードインスペクション装置105から出力された検査結果106に目を通し、該当する指摘箇所を修正するために、再度ソースコードの編集を行う。   The programmer 101 reads the inspection result 106 output from the source code inspection device 105 on the programmer terminal 103, and edits the source code again to correct the corresponding point.

この検査結果106で指摘箇所が検出されなくなるまでソースコードの編集とソースコードインスペクション装置105によるインスペクションが繰り返される。   The source code editing and inspection by the source code inspection device 105 are repeated until no pointed out point is detected in the inspection result 106.

然しながら、ツールを利用したソースコードインスペクションに於いて、ソースコードインスペクションをしてもプログラマ101による指摘箇所の修正漏れ、指摘箇所の放置等により、指摘箇所が完全に修正されるとは限らない。   However, in the source code inspection using the tool, even if the source code inspection is performed, the pointed-out part is not always completely corrected due to omission of correction of the pointed-out point by the programmer 101 or leaving the pointed-out part.

又、指摘箇所を修正しても、その修正により新規に指摘項目が含まれてしまうこともある。上記の理由から、ソースコードにインスペクションの指摘箇所が残ったまま開発が進み、後々、バグを誘発する虞がある。   In addition, even if the indicated part is corrected, the indicated item may be newly included due to the correction. For the above reasons, the development proceeds with the inspection point remaining in the source code, and there is a risk of inducing bugs later.

ここで、例えば、特許文献1に記載されるように、ソースコードの指摘箇所が他のソースコードに影響がないか通知するという方法を利用して修正漏れを防ぐという方法がある。
特開平8―194611号公報
Here, for example, as described in Patent Document 1, there is a method of preventing omission of correction by using a method of notifying whether or not a point indicated in a source code has an influence on other source code.
JP-A-8-194611

然しながら、特許文献1の方法では、指摘箇所の修正により新規に含まれた指摘を検出することはできない。本来、指摘箇所を修正した際に、修正箇所周辺や修正箇所に影響のある部分に、新規に指摘箇所が埋め込まれていないかプログラマの環境上で確認すべきであり、プロジェクトマネージャがソースコードインスペクション装置で検査する対象は、新規に追加となった機能のソースコードに関しても行うべきである。   However, the method of Patent Document 1 cannot detect a newly included indication by correcting the indicated location. Originally, when a point is corrected, it should be confirmed in the programmer's environment whether the pointed point is newly embedded in the vicinity of the correction point or a part that affects the correction point. The source code inspection is performed by the project manager. The target to be inspected by the device should be the source code of the newly added function.

以上の現状に鑑み、本発明は、ツールを利用したソースコードインスペクションに於いて、ソースコードインスペクションによって指摘された箇所を修正した際に、新規に指摘箇所を埋め込まないようにすると共に、指摘箇所の修正漏れを防ぐことで、後々発生するバグを未然に防ぐことを目的とする。   In view of the above situation, in the source code inspection using the tool, the present invention avoids embedding the indicated part newly when the part indicated by the source code inspection is corrected. The purpose is to prevent later bugs by preventing omissions.

上記の課題を解決すべく、本発明は以下の構成を提供する。
請求項1に係る発明は、ソースコード管理データベースに接続されるソースコードインスペクション装置と、プログラマ用端末とが相互に接続され、プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果に基づき、プログラマ用端末によってソースコードを修正し、修正ソースコードをソースコードインスペクション装置に送信するように構成されたソースコードインスペクションシステムに於いて、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査する修正箇所インスペクション装置を該プログラマ用端末に接続して設けたことを特徴とするソースコードインスペクションシステムを提供するものである。
In order to solve the above problems, the present invention provides the following configurations.
According to the first aspect of the present invention, a source code inspection apparatus connected to a source code management database and a programmer terminal are connected to each other, and the source code created by the programmer terminal is inspected by the source code inspection apparatus. Based on the result, the source code is modified by the programmer terminal in the source code inspection system configured to modify the source code by the programmer terminal and send the modified source code to the source code inspection device. The present invention provides a source code inspection system characterized in that a corrected location inspection device for inspecting whether or not a new indication item is included in a location is connected to the programmer terminal.

請求項2に係る発明は、上記修正箇所インスペクション装置は、上記修正されたソースコードのインスペクションの実行範囲を、上記ソースコードインスペクション装置による検査結果によって指摘された行と、その前後の各5行とに絞り込むインスペクション実行範囲絞込み手段を備えていることを特徴とする請求項1記載のソースコードインスペクションシステムを提供するものである。   According to a second aspect of the present invention, the corrected location inspection apparatus includes a line in which the execution range of the inspection of the corrected source code is pointed out by an inspection result by the source code inspection apparatus, and five lines before and after the line. The source code inspection system according to claim 1, further comprising an inspection execution range narrowing means for narrowing down to.

請求項3に係る発明は、上記ソースコードインスペクション装置は、上記ソースコードの検査結果を該ソースコードの実装を担当するプログラマ別に上記プログラマ用端末内のプログラマ開発環境へ送信するプログラマ別検査結果送信手段を備えていることを特徴とする請求項1又は2記載のソースコードインスペクションシステムを提供するものである。   According to a third aspect of the present invention, the source code inspection apparatus transmits the inspection result of the source code to the programmer development environment in the programmer terminal for each programmer responsible for implementing the source code. The source code inspection system according to claim 1 or 2, further comprising:

請求項4に係る発明は、プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果を該プログラマ用端末に送り、該プログラマ用端末によって、検査結果に基づき修正し、修正した修正ソースコードを前記ソースコードインスペクション装置に送信するソースコードインスペクション方法に於いて、前記修正ソースコードを前記ソースコードインスペクション装置に送信する前に、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査することを特徴とするソースコードインスペクション方法を提供するものである。   In the invention according to claim 4, the source code created by the programmer terminal is inspected by the source code inspection device, the inspection result is sent to the programmer terminal, and the programmer terminal is corrected based on the inspection result. In the source code inspection method for transmitting the modified source code to the source code inspection device, before transmitting the modified source code to the source code inspection device, the modified source code is modified by the programmer terminal. It is intended to provide a source code inspection method characterized by checking whether a new indication item is included.

請求項5に係る発明は、上記修正ソースコードを検査する範囲を、上記ソースコードインスペクション装置による検査結果によって指摘された行と、その前後の各5行とに絞り込むことを特徴とする請求項4記載のソースコードインスペクション方法を提供するものである。   The invention according to claim 5 is characterized in that the range in which the modified source code is inspected is narrowed down to the line pointed out by the inspection result by the source code inspection apparatus and each of the five lines before and after the line. The described source code inspection method is provided.

請求項6に係る発明は、上記ソースコードインスペクション装置が、上記ソースコードの検査結果を該ソースコードの実装を担当するプログラマ別に上記プログラマ用端末内のプログラマ開発環境へ送信することを特徴とする請求項4又は5記載のソースコードインスペクション方法を提供するものである。   The invention according to claim 6 is characterized in that the source code inspection apparatus transmits the inspection result of the source code to a programmer development environment in the programmer terminal for each programmer responsible for mounting the source code. Item 4 or 5 provides a source code inspection method.

本発明の請求項1記載の発明によれば、ソースコード管理データベースに接続されるソースコードインスペクション装置と、プログラマ用端末とが相互に接続され、プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果に基づき、プログラマ用端末によってソースコードを修正し、修正ソースコードをソースコードインスペクション装置に送信するように構成されたソースコードインスペクションシステムに於いて、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査する修正箇所インスペクション装置を該プログラマ用端末に接続して設けたソースコードインスペクションシステムを提供するので、ソースコードインスペクションによって指摘された箇所を修正した際に、前記修正箇所インスペクション装置によって、新規に指摘箇所を埋め込まないようにすると共に、指摘箇所の修正漏れを防ぐことで、後々発生するバグを未然に防ぐことができる。   According to the first aspect of the present invention, the source code inspection apparatus connected to the source code management database and the programmer terminal are connected to each other, and the source code created by the programmer terminal is converted into the source code inspection apparatus. In the source code inspection system configured to modify the source code by the programmer terminal and send the modified source code to the source code inspection device based on the inspection result, the source code is modified by the programmer terminal. A source code inspection system is provided in which a correction point inspection device for inspecting whether or not a new indication item is included in a correction portion of the source code connected to the programmer terminal is provided. When the location pointed out by is corrected, the corrected location inspection device will not embed the newly pointed location, and will prevent omission of correction of the pointed location, thereby preventing bugs that occur later. it can.

請求項2に係る発明は、上記修正箇所インスペクション装置は、上記修正されたソースコードのインスペクションの実行範囲を、上記ソースコードインスペクション装置による検査結果によって指摘された行と、その前後の各5行とに絞り込むインスペクション実行範囲絞込み手段を備えているので、請求項1記載の発明の効果に加え、インスペクション実行範囲絞込み手段によって、インスペクションの実行範囲を修正影響範囲に絞り込むことができ、インスペクション実行作業を迅速且つ適正に行なえる。   According to a second aspect of the present invention, the corrected location inspection apparatus includes a line in which the execution range of the inspection of the corrected source code is pointed out by an inspection result by the source code inspection apparatus, and five lines before and after the line. In addition to the effect of the first aspect of the invention, the inspection execution range narrowing means can narrow the inspection execution range to the correction influence range, and the inspection execution work can be quickly performed. And it can be done properly.

請求項3に係る発明は、上記ソースコードインスペクション装置は、上記ソースコードの検査結果を該ソースコードの実装を担当するプログラマ別に上記プログラマ用端末内のプログラマ開発環境へ送信するプログラマ別検査結果送信手段を備えているので、請求項1又は2記載の発明の効果に加え、プログラマ別検査結果送信手段によって、ソースコードの検査結果をプログラマ別に迅速確実に送信することができ、   According to a third aspect of the present invention, the source code inspection apparatus transmits the inspection result of the source code to the programmer development environment in the programmer terminal for each programmer responsible for implementing the source code. Therefore, in addition to the effect of the invention of claim 1 or 2, the inspection result transmission means for each programmer can quickly and reliably transmit the inspection result of the source code for each programmer,

請求項4に係る発明は、プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果を該プログラマ用端末に送り、該プログラマ用端末によって、検査結果に基づき修正し、修正した修正ソースコードを前記ソースコードインスペクション装置に送信するソースコードインスペクション方法に於いて、前記修正ソースコードを前記ソースコードインスペクション装置に送信する前に、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査するソースコードインスペクション方法を提供するので、請求項1記載の発明と同様な効果が期待できる。   In the invention according to claim 4, the source code created by the programmer terminal is inspected by the source code inspection device, the inspection result is sent to the programmer terminal, and the programmer terminal is corrected based on the inspection result. In the source code inspection method for transmitting the modified source code to the source code inspection device, before transmitting the modified source code to the source code inspection device, the modified source code is modified by the programmer terminal. Since a source code inspection method for inspecting whether or not a new indication item is included is provided, the same effect as that of the first aspect of the invention can be expected.

請求項5に係る発明は、上記修正ソースコードを検査する範囲を、上記ソースコードインスペクション装置による検査結果によって指摘された行と、その前後の各5行とに絞り込むので、請求項2記載の発明と同様な効果が期待できる。   The invention according to claim 5 narrows down the scope of inspection of the modified source code to the line indicated by the inspection result by the source code inspection apparatus and each of the five lines before and after that. The same effect can be expected.

請求項6に係る発明は、上記ソースコードインスペクション装置が、上記ソースコードの検査結果を該ソースコードの実装を担当するプログラマ別に上記プログラマ用端末内のプログラマ開発環境へ送信するので、請求項3記載の発明と同様な効果が期待できる。   According to a sixth aspect of the present invention, the source code inspection apparatus transmits the inspection result of the source code to a programmer development environment in the programmer terminal for each programmer responsible for the implementation of the source code. The same effect as that of the invention can be expected.

以下、実施例を示した図面を参照しつつ本発明の実施の形態を説明する。尚、説明の都合上、従来例と同一構成部分については同一符号を付してその説明を省略する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings showing examples. For convenience of explanation, the same components as those in the conventional example are denoted by the same reference numerals, and description thereof is omitted.

図1に於いて、200は、本発明の一実施の形態に係るソースコードインスペクションシステムを示し、ソースコードインスペクションシステム200は、ソースコード管理データベース102に接続されるソースコードインスペクション装置105と、1又は複数のプログラマ用端末103とが相互に接続され、プログラマ用端末103で作成したソースコードを、コーディングミス等を検出する機能を持つツールを備えたソースコードインスペクション装置105によって検査し、検査結果106に基づき、プログラマ用端末103によって、ソースコードを修正し、修正ソースコードをソースコードインスペクション装置105に送信するように構成され、更に、前記プログラマ用端末103によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査する修正箇所インスペクション装置201がプログラマ用端末103に接続されている。   In FIG. 1, reference numeral 200 denotes a source code inspection system according to an embodiment of the present invention. The source code inspection system 200 includes a source code inspection apparatus 105 connected to a source code management database 102 and 1 or A plurality of programmer terminals 103 are connected to each other, and the source code created by the programmer terminal 103 is inspected by a source code inspection apparatus 105 having a tool having a function of detecting a coding error or the like, and an inspection result 106 is obtained. Based on this, the programmer terminal 103 is configured to modify the source code, and send the modified source code to the source code inspection apparatus 105. Further, the modified version of the source code modified by the programmer terminal 103 is provided. Corrected portion inspection apparatus 201 for inspecting whether contains no new items pointed out is connected to the programmer terminal 103.

そして、前記ソースコードインスペクション装置105は、ソースコードの検査結果106をソースコードの実装を担当するプログラマ別にプログラマ用端末103内のプログラマ開発環境203へ送信するプログラマ別検査結果送信手段204を備えている。   The source code inspection apparatus 105 includes an inspection result transmission means 204 for each programmer that transmits the inspection result 106 of the source code to the programmer development environment 203 in the programmer terminal 103 for each programmer who is responsible for implementing the source code. .

又、前記修正箇所インスペクション装置201は、ソースコードインスペクション装置105から受信した検査結果106をプログラマ101別に格納するプログラマ別検査結果格納装置202に接続されると共に、修正されたソースコードのインスペクションの実行範囲を、ソースコードインスペクション装置105によって指摘された行と、その前後の各5行とに絞り込むインスペクション実行範囲絞込み手段205を備えている。   The corrected portion inspection apparatus 201 is connected to an inspection result storage apparatus 202 for each programmer that stores the inspection result 106 received from the source code inspection apparatus 105 for each programmer 101, and the execution range of inspection of the corrected source code. Are provided with inspection execution range narrowing means 205 for narrowing down the lines indicated by the source code inspection apparatus 105 and the five lines before and after the line.

前記ソースコードインスペクション装置105の検査結果106は、プログラマ用端末103に受信され、前記修正箇所インスペクション装置201は、プログラマ用端末103から検査結果106を受け取り、プログラマ101毎にプログラマ別検査結果格納装置202に格納する。   The inspection result 106 of the source code inspection device 105 is received by the programmer terminal 103, and the correction location inspection device 201 receives the inspection result 106 from the programmer terminal 103, and the inspection result storage device 202 by programmer for each programmer 101. To store.

又、前記プログラマ101は、検査結果106に示された指摘結果を、プログラマ用端末103上のプログラマ開発環境203で修正して、ソースコードインスペクション装置105に接続されるソースコード管理データベース102に格納する際、格納する前に修正箇所インスペクション装置201により、ソースコードの修正箇所周辺のインスペクションを行う。   Further, the programmer 101 corrects the indication result indicated in the inspection result 106 in the programmer development environment 203 on the programmer terminal 103 and stores it in the source code management database 102 connected to the source code inspection apparatus 105. At this time, the correction part inspection device 201 performs inspection around the correction part of the source code before storing.

更に、前記修正箇所インスペクション装置201は、検査した結果、指摘が検出された場合は検査結果をプログラマ用端末103に送付し、ソースコード管理サーバ102へのソースコード格納のための送信は行わず、指摘が検出されない場合のみソースコード管理サーバ102への格納のための送信を行う。   Further, the corrected portion inspection apparatus 201 sends the inspection result to the programmer terminal 103 when the indication is detected as a result of the inspection, and does not transmit the source code to the source code management server 102 for storage. Only when no indication is detected, transmission for storage in the source code management server 102 is performed.

図2は、本発明の実施に係る修正箇所インスペクション装置201を利用してプログラミングを行う際のフローチャートであり、同時に本発明のソースコードインスペクション方法を示す。   FIG. 2 is a flowchart when programming is performed using the corrected portion inspection apparatus 201 according to the embodiment of the present invention, and at the same time, shows the source code inspection method of the present invention.

まず、プログラマ101は新規にソースコードを設計書に従って作成する(ステップ301)。   First, the programmer 101 creates a new source code according to the design document (step 301).

作成したソースコードに、ある程度、機能が実装されれば、作成したソースコードをソースコード管理サーバ102に格納する(ステップ302)。   If functions are implemented to some extent in the created source code, the created source code is stored in the source code management server 102 (step 302).

プロジェクトマネージャ104は、ソースコード管理データベース102からインスペクションを行うソースコードを取得して、ソースコードインスペクション装置105でインスペクションを行う(ステップ303)。   The project manager 104 acquires the source code to be inspected from the source code management database 102, and performs inspection with the source code inspection device 105 (step 303).

インスペクションによる検査結果106は、プログラマ別検査結果送信手段204によって、プログラマ101別にプログラマ用端末103に送信される(ステップ304)。   The inspection result 106 by inspection is transmitted to the programmer terminal 103 for each programmer 101 by the inspection result transmitting means 204 for each programmer (step 304).

プログラマ101は、ソースコードインスペクション装置104から受信した検査結果106の指摘結果を参照して未実装部分の機能をソースコードに実装すると共に、インスペクションの指摘箇所を修正する(ステップ305)。   The programmer 101 refers to the indication result of the inspection result 106 received from the source code inspection apparatus 104, implements the function of the unimplemented portion in the source code, and corrects the inspection indication location (step 305).

修正箇所インスペクション装置201は、修正されたソースコードのインスペクション対象範囲に対してプログラマ開発環境203上でインスペクションを行なう(ステップ306)。   The corrected part inspection apparatus 201 performs inspection on the inspection target range of the corrected source code on the programmer development environment 203 (step 306).

そして、プログラマ101は、インスペクション結果に問題がない場合、編集したソースコードをソースコード管理データベース102に格納する(ステップ307)。尚、インスペクション結果に問題がある場合、インスペクション結果に問題がなくなるまで、プログラマ101による修正が繰り返し行なわれる。   When there is no problem in the inspection result, the programmer 101 stores the edited source code in the source code management database 102 (step 307). If there is a problem in the inspection result, the programmer 101 repeatedly corrects until there is no problem in the inspection result.

ソースコードの機能実装が全て終了し、ソースコードインスペクション装置105によるインスペクションの指摘箇所が全て修正されるまでプログラマ101はプログラミング作業を行う(ステップ308)。   The programmer 101 performs programming work until all the function implementations of the source code are completed and all inspection points indicated by the source code inspection apparatus 105 are corrected (step 308).

図3は、前記ステップ303の内容を詳細に示したフローチャートである。即ち、ソースコード管理データベース102のソースコードをインスペクションする手順を示した作業フローである。   FIG. 3 is a flowchart showing the details of step 303 in detail. That is, it is a work flow showing a procedure for inspecting the source code of the source code management database 102.

ソースコードインスペクション装置105はインスペクションする対象のソースコードをソースコード管理データベース102にアクセスして取得する(ステップ401)。   The source code inspection apparatus 105 accesses the source code management database 102 to acquire the source code to be inspected (step 401).

ソースコードインスペクション装置105によってインスペクションされて検出された指摘結果、即ち検査結果106を、プログラマ別検査結果送信手段204により、担当のプログラマ別にプログラマ用端末103に送付する(ステップ402)。   The indication result detected by inspection by the source code inspection apparatus 105, that is, the inspection result 106 is sent to the programmer terminal 103 by the programmer in charge by the inspection result transmission means 204 by programmer (step 402).

ソースコードの各担当者である各プログラマ101は、プログラマ101がソースコード管理サーバ102にソースコードを格納した際にソースコードインスペクション装置105に記録されているものとする。   Each programmer 101 who is in charge of each source code is recorded in the source code inspection device 105 when the programmer 101 stores the source code in the source code management server 102.

検査結果106は、プログラマ用端末103に受信された後、プログラマ別検査結果格納装置202に格納される。   The inspection result 106 is received by the programmer terminal 103 and then stored in the inspection result storage device 202 for each programmer.

図4は、前記ステップ306の内容の詳細を示したフローチャートである。即ち、プログラマ101が、ソースコードインスペクション装置105の指摘箇所を修正した部分に関してインスペクションを行う際のフローチャートである。   FIG. 4 is a flowchart showing details of the contents of step 306. That is, this is a flowchart when the programmer 101 performs inspection on a portion in which the pointed portion of the source code inspection apparatus 105 is corrected.

修正箇所インスペクション装置201は、プログラマ別検査結果格納装置202内に格納された検査結果106の内容に従い、インスペクション実行範囲絞込み手段205によって、修正箇所の影響範囲を絞込み、インスペクションの対象範囲を決定する(ステップ501)。即ち、インスペクション実行範囲絞込み手段205により、修正されたソースコードのインスペクションの実行範囲を、ソースコードインスペクション装置105によって指摘された行と、その前後の各5行とに絞り込む。尚、指摘された行と、その前後の各5行とに絞り込むことが最適であるが、これに限定されるものではなく、指摘された行と、その前後の各6〜8行程度に絞ることも可能である。   According to the contents of the inspection result 106 stored in the inspection result storage device 202 for each programmer, the corrected portion inspection apparatus 201 narrows down the influence range of the corrected portion by the inspection execution range narrowing means 205 and determines the inspection target range ( Step 501). In other words, the inspection execution range narrowing means 205 narrows the corrected execution range of the source code inspection into the line pointed out by the source code inspection apparatus 105 and the five lines before and after it. It is optimal to narrow down to the indicated line and 5 lines before and after that, but it is not limited to this, and it is limited to the indicated line and about 6 to 8 lines before and after that. It is also possible.

次に、修正箇所インスペクション装置201はインスペクションの対象範囲に対してソースコードインスペクションを行う(ステップ502)。   Next, the corrected location inspection apparatus 201 performs source code inspection on the inspection target range (step 502).

再指摘項目又は新規指摘箇所がある場合はステップ504に進み、再指摘箇所、新規指摘箇所をプログラマ101に通知する。そして、その後は図示省略されているが、図2に示すステップ305に戻り、以後の処理が繰り返される。又、再指摘項目がない場合は、ソースコード管理データベース102にプログラマ101が修正、機能追加したソースコードを格納する(ステップ505)。   If there is a re-pointed item or a newly pointed point, the process proceeds to step 504 to notify the programmer 101 of the re-pointed point and the newly pointed point. After that, although not shown, the process returns to step 305 shown in FIG. 2 and the subsequent processing is repeated. If there is no re-pointing item, the source code corrected and added by the programmer 101 is stored in the source code management database 102 (step 505).

そして、ソースコード管理データベース102に格納したソースコードの新規追加された機能部分に対し、ソースコードインスペクション装置105でインスペクションを行い、その後、図2に示すステップ305から後の処理を繰り返す。   Then, the newly added functional portion of the source code stored in the source code management database 102 is inspected by the source code inspection apparatus 105, and then the subsequent processing from step 305 shown in FIG. 2 is repeated.

図5は、プログラマ101によって操作されるプログラマ用端末103に、ソースコードインスペクション装置105が送付する指摘結果、即ち、検査結果106の一例を示した図である。   FIG. 5 is a diagram showing an example of the indication result sent from the source code inspection apparatus 105 to the programmer terminal 103 operated by the programmer 101, that is, an inspection result 106.

同図に於いて、601は、ソースコードのパスを示している。602は、そのソースコードで検出された指摘ルールを示している。603は、指摘が検出されたソースコードの行番号を示している。604は、「\Project1\DataBase\Customer.java」というソースパスの7行目で「NonConstractor」というルールで指摘が検出されたことを表している。   In the figure, reference numeral 601 denotes a source code path. Reference numeral 602 denotes an indication rule detected in the source code. Reference numeral 603 denotes the line number of the source code where the indication is detected. Reference numeral 604 denotes that an indication is detected by the rule “NonConstractor” on the seventh line of the source path “\ Project1 \ DataBase \ Customer.java”.

図6はインスペクション対象のソースコードの一例を示した図である。「Customer.java」という名前のソースコード701の20行目702でソースコードインスペクション装置105による指摘が検出された場合、その20行目と、その前後各5行を修正影響範囲箇所としてこの部分のみ修正箇所インスペクション装置201に於いてソースコードインスペクションを行う。   FIG. 6 is a diagram showing an example of source code to be inspected. When the source code inspection apparatus 105 detects an indication in the 20th line 702 of the source code 701 named “Customer.java”, only this part is set with the 20th line and the 5 lines before and after that being the affected area. Source code inspection is performed in the corrected part inspection apparatus 201.

図7は、新規機能を追加、指摘箇所を修正した際のソースコードの一例を示している。修正したソースコード801の802は再インスペクション対象範囲を示している。803はソースコードインスペクション装置により指摘された行を示している。   FIG. 7 shows an example of the source code when a new function is added and the indicated part is corrected. The corrected source code 801 802 indicates a re-inspection target range. Reference numeral 803 denotes a line pointed out by the source code inspection apparatus.

図8は、図4に示すステップ504で、プログラマ101に通知する際の画面の一例を示した図である。プログラマ101に通知した再検査結果画面901には、指摘箇所が修正されていない「再指摘項目一覧」と、修正箇所に新たな指摘が含まれてしまっていることを示す「修正による新規指摘項目一覧」から構成される。902は担当のプログラマ101を示している。903、907は指摘が検出されたソースコードへのパスを示している。904、908は指摘が検出されたルール名を示している。905、909は指摘が検出された行番号を示している。906は、修正していない指摘項目の一例を示している。910は、修正による新規指摘項目の一例を示している。   FIG. 8 is a diagram showing an example of a screen when notifying the programmer 101 in step 504 shown in FIG. The re-inspection result screen 901 notified to the programmer 101 includes a “re-pointed item list” in which the pointed out part has not been corrected, and a “new pointed-out item by correction” indicating that the corrected part includes a new pointed-out. It consists of “list”. Reference numeral 902 denotes the programmer 101 in charge. Reference numerals 903 and 907 denote paths to the source code where the indication is detected. Reference numerals 904 and 908 denote the names of rules in which indications are detected. Reference numerals 905 and 909 denote line numbers where the indication is detected. Reference numeral 906 denotes an example of an indication item that has not been corrected. Reference numeral 910 denotes an example of a new indication item by correction.

斯くして、本発明のソースコードインスペクションシステム200は、プログラマ用端末103によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査する修正箇所インスペクション装置201をプログラマ用端末103に接続して設けたので、ソースコードインスペクションによって指摘された箇所を修正した際に、修正箇所インスペクション装置201によって、新規に指摘箇所を埋め込まないようにすると共に、指摘箇所の修正漏れを防ぐことで、後々発生するバグを未然に防ぐことができ、システムの品質向上を図ることができる。   Thus, the source code inspection system 200 of the present invention provides the corrected portion inspection apparatus 201 for checking whether or not a new pointed item is included in the corrected portion of the source code corrected by the programmer terminal 103. Since the location pointed out by the source code inspection is corrected, the corrected point inspection device 201 prevents the pointed portion from being embedded newly and prevents the correction of the pointed portion by being corrected. Therefore, bugs that occur later can be prevented and the quality of the system can be improved.

又、本発明のソースコードインスペクション方法は、修正ソースコードを前記ソースコードインスペクション装置に送信する前に、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査するので、前述のソースコードインスペクションシステム200の効果と同様な効果が期待できる。   In the source code inspection method of the present invention, before sending the corrected source code to the source code inspection device, whether or not a new indication item is included in the corrected portion of the source code corrected by the programmer terminal. Since the inspection is performed, the same effect as that of the source code inspection system 200 described above can be expected.

更に、修正箇所インスペクション装置201は、修正されたソースコードのインスペクションの実行範囲を、ソースコードインスペクション装置105によって指摘された行と、その前後の各5行とに絞り込むインスペクション実行範囲絞込み手段205を備えているので、インスペクションの実行範囲を修正影響範囲に絞り込むことができ、インスペクション実行作業を迅速且つ適正に行なえる。   Further, the corrected portion inspection apparatus 201 includes inspection execution range narrowing means 205 that narrows down the inspection execution range of the corrected source code to the line pointed out by the source code inspection apparatus 105 and the five lines before and after the line. Therefore, the inspection execution range can be narrowed down to the correction influence range, and the inspection execution work can be performed promptly and appropriately.

更に又、本発明のソースコードインスペクション方法は、修正ソースコードを検査する範囲を、ソースコードインスペクション装置105によって指摘された行と、その前後の各5行とに絞り込むので、前述のインスペクション実行範囲絞込み手段205の効果と同様な効果が期待できる。   Furthermore, the source code inspection method according to the present invention narrows down the inspection range of the corrected source code to the line pointed out by the source code inspection apparatus 105 and the five lines before and after that. The same effect as that of the means 205 can be expected.

そして、ソースコードインスペクション装置105は、ソースコードの検査結果をソースコードの実装を担当するプログラマ101別にプログラマ用端末103内のプログラマ開発環境203へ送信するプログラマ別検査結果送信手段204を備えているので、ソースコードの検査結果をプログラマ別に迅速確実に送信することができる。   The source code inspection apparatus 105 includes the inspection result transmission means 204 for each programmer that transmits the inspection result of the source code to the programmer development environment 203 in the programmer terminal 103 for each programmer 101 in charge of implementation of the source code. The source code inspection results can be transmitted quickly and reliably by each programmer.

又、本発明のソースコードインスペクション方法は、ソースコードインスペクション装置が、ソースコードの検査結果をソースコードの実装を担当するプログラマ101別にプログラマ用端末103内のプログラマ開発環境203へ送信するので、前述のプログラマ別検査結果送信手段204による効果と同様な効果が期待できる。   In the source code inspection method according to the present invention, the source code inspection apparatus transmits the inspection result of the source code to the programmer development environment 203 in the programmer terminal 103 for each programmer 101 responsible for mounting the source code. The effect similar to the effect by the inspection result transmission means 204 classified by programmer can be expected.

本発明によるソースコードインスペクションシステムを概略的に示す説明図である。It is explanatory drawing which shows schematically the source code inspection system by this invention. 本発明によるソースコードインスペクションのフローチャート図である。FIG. 6 is a flowchart of source code inspection according to the present invention. 本発明によるソースコードインスペクション装置による処理のフローチャート図である。It is a flowchart figure of the process by the source code inspection apparatus by this invention. 本発明による修正箇所インスペクション装置による処理のフローチャート図である。It is a flowchart figure of the process by the correction location inspection apparatus by this invention. 本発明によるプログラマ別検査結果格納装置内に格納されるデータの一例を示した図である。It is the figure which showed an example of the data stored in the test result storage apparatus classified by programmer by this invention. 本発明のインスペクション対象のソースコードの一例を示した図である。It is the figure which showed an example of the source code of the inspection object of this invention. 本発明のインスペクション対象の修正されたソースコードの一例を示した図である。It is the figure which showed an example of the corrected source code of the inspection object of this invention. 本発明の修正箇所インスペクション装置による修正箇所チェック結果画面の一例を示した図である。It is the figure which showed an example of the correction location check result screen by the correction location inspection apparatus of this invention. 従来例によるソースコードインスペクションシステムを概略的に示す説明図である。It is explanatory drawing which shows schematically the source code inspection system by a prior art example.

符号の説明Explanation of symbols

101 プログラマ
102 ソースコード管理データベース
103 プログラマ用端末
105 ソースコードインスペクション装置
106 検査結果
200 ソースコードインスペクションシステム
201 修正箇所インスペクション装置
203 プログラマ開発環境
204 プログラマ別検査結果送信手段
205 インスペクション実行範囲絞込み手段
DESCRIPTION OF SYMBOLS 101 Programmer 102 Source code management database 103 Programmer terminal 105 Source code inspection apparatus 106 Inspection result 200 Source code inspection system 201 Correction location inspection apparatus 203 Programmer development environment 204 Inspection result transmission means by programmer 205 Inspection execution range narrowing means

Claims (6)

ソースコード管理データベースに接続されるソースコードインスペクション装置と、プログラマ用端末とが相互に接続され、プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果に基づき、プログラマ用端末によってソースコードを修正し、修正ソースコードをソースコードインスペクション装置に送信するように構成されたソースコードインスペクションシステムに於いて、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査する修正箇所インスペクション装置を該プログラマ用端末に接続して設けたことを特徴とするソースコードインスペクションシステム。   The source code inspection device connected to the source code management database and the programmer terminal are connected to each other. The source code created by the programmer terminal is inspected by the source code inspection device, and based on the inspection result, the programmer terminal In the source code inspection system configured to modify the source code and send the modified source code to the source code inspection device, a new indication item is included in the modified portion of the source code modified by the programmer terminal. A source code inspection system, wherein a correction point inspection device for inspecting whether or not there is provided is connected to the programmer terminal. 上記修正箇所インスペクション装置は、上記修正されたソースコードのインスペクションの実行範囲を、上記ソースコードインスペクション装置による検査結果によって指摘された行と、その前後の各5行とに絞り込むインスペクション実行範囲絞込み手段を備えていることを特徴とする請求項1記載のソースコードインスペクションシステム。   The correction location inspection device includes inspection execution range narrowing means for narrowing down the inspection execution range of the corrected source code to the line indicated by the inspection result by the source code inspection device and each of the five lines before and after the inspection result. The source code inspection system according to claim 1, further comprising: 上記ソースコードインスペクション装置は、上記ソースコードの検査結果を該ソースコードの実装を担当するプログラマ別に上記プログラマ用端末内のプログラマ開発環境へ送信するプログラマ別検査結果送信手段を備えていることを特徴とする請求項1又は2記載のソースコードインスペクションシステム。   The source code inspection apparatus includes a programmer-specific inspection result transmission unit that transmits the inspection result of the source code to a programmer development environment in the programmer terminal for each programmer in charge of implementation of the source code. The source code inspection system according to claim 1 or 2. プログラマ用端末で作成したソースコードをソースコードインスペクション装置によって検査し、検査結果を該プログラマ用端末に送り、該プログラマ用端末によって、検査結果に基づき修正し、修正した修正ソースコードを前記ソースコードインスペクション装置に送信するソースコードインスペクション方法に於いて、前記修正ソースコードを前記ソースコードインスペクション装置に送信する前に、前記プログラマ用端末によって修正されたソースコードの修正箇所に新たな指摘項目が含まれていないか検査することを特徴とするソースコードインスペクション方法。   A source code created by a programmer terminal is inspected by a source code inspection device, an inspection result is sent to the programmer terminal, and the programmer terminal corrects it based on the inspection result, and the corrected source code is corrected by the source code inspection. In the source code inspection method to be transmitted to the apparatus, before sending the corrected source code to the source code inspection apparatus, a new indication item is included in the corrected portion of the source code corrected by the programmer terminal. A source code inspection method characterized by checking for presence. 上記修正ソースコードを検査する範囲を、上記ソースコードインスペクション装置による検査結果によって指摘された行と、その前後の各5行とに絞り込むことを特徴とする請求項4記載のソースコードインスペクション方法。   5. The source code inspection method according to claim 4, wherein a range in which the modified source code is inspected is narrowed down to a line indicated by an inspection result by the source code inspection apparatus and each of the five lines before and after the line. 上記ソースコードインスペクション装置が、上記ソースコードの検査結果を該ソースコードの実装を担当するプログラマ別に上記プログラマ用端末内のプログラマ開発環境へ送信することを特徴とする請求項4又は5記載のソースコードインスペクション方法。
6. The source code according to claim 4, wherein the source code inspection device transmits the inspection result of the source code to a programmer development environment in the programmer terminal for each programmer who is responsible for the implementation of the source code. Inspection method.
JP2005360145A 2005-12-14 2005-12-14 Source code inspection system and source code inspection method Pending JP2007164489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005360145A JP2007164489A (en) 2005-12-14 2005-12-14 Source code inspection system and source code inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005360145A JP2007164489A (en) 2005-12-14 2005-12-14 Source code inspection system and source code inspection method

Publications (1)

Publication Number Publication Date
JP2007164489A true JP2007164489A (en) 2007-06-28

Family

ID=38247306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005360145A Pending JP2007164489A (en) 2005-12-14 2005-12-14 Source code inspection system and source code inspection method

Country Status (1)

Country Link
JP (1) JP2007164489A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009086814A (en) * 2007-09-28 2009-04-23 Hitachi Software Eng Co Ltd Source code management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009086814A (en) * 2007-09-28 2009-04-23 Hitachi Software Eng Co Ltd Source code management system

Similar Documents

Publication Publication Date Title
US9824002B2 (en) Tracking of code base and defect diagnostic coupling with automated triage
US8539449B2 (en) Device and method for inspecting software for vulnerabilities
US8060791B2 (en) Annotating GUI test automation playback and debugging
US8370816B2 (en) Device, method and computer program product for evaluating a debugger script
US20100058295A1 (en) Dynamic Test Coverage
US8448147B2 (en) Heterogenic Coverage Analysis
US20090132858A1 (en) Analyzer, analyzing system, and computer program product
KR100897412B1 (en) Automatic software testing system and method using faulted file
CN107329889B (en) Method for automatically testing C compiler
JP2015011372A (en) Debug support system, method, program, and recording medium
JP4587976B2 (en) Application vulnerability inspection method and apparatus
CN105468507B (en) Branch standard reaching detection method and device
CN105446886B (en) A kind of computer program debugging method and apparatus
JP5006824B2 (en) Test program management system
JP2007164489A (en) Source code inspection system and source code inspection method
WO2020009108A1 (en) Inspection method, inspection system and program
JP2009193335A (en) Automatic annotation insertion method of static verification tool
JP2007102380A (en) Debugging method for control component having variability and debugging support device
Ogasawara et al. Experiences with program static analysis
JP2008210059A (en) Information processor, debug support method and program
US20130007528A1 (en) Using reverse time for coverage analysis
CN112292924B (en) Inspection method, inspection system, and recording medium
JP6668808B2 (en) Untested portion detection device, untested portion detection method, and program
WO2017179208A1 (en) Information processing device, information processing method, and information processing program
CN117785695A (en) Error reporting detection method, device, equipment and storage medium based on software integration