CLIAMS:1. A CSV file comparison system (100) for comparing reports (802, 804) having a CSV file format, the CSV file comparison system (100) comprising:
a processor (104); and
a memory (108) coupled to the processor (104), the memory (108) comprising:
a difference specification module (202) configured to receive the reports (802, 804) and report specific user inputs (806) from a user;
a sorting module (210) configured to sort (808) the reports (802, 804) based on the report specific user inputs (806);
a comparison module (212) configured to compare (814) the sorted reports (810, 812) based on the report specific user inputs (806); and
a report generation module (214) configured to generate one or more comparison reports (816, 818, 820, 822) based on the comparison (814) of the sorted reports (810, 812).
2. The CSV file comparison system (100) as claimed in claim 1, wherein the reports (802, 804) are static analysis reports corresponding to two versions of same source code, each static analysis report comprising a set of warnings in respect of the source code.
3. The CSV file comparison system (100) as claimed in claim 2 comprises:
a line mapping module (204) configured to compare the two versions of the same source code to identify code lines which are added, deleted, changed, unchanged, and displaced; and feed comparison results to the comparison module (212).
4. The CSV file comparison system (100) as claimed in claim 1 comprises:
a report pairing module (206) configured to traverse directories specified by the user to find matching reports and pair the matching reports together.
5. The CSV file comparison system (100) as claimed in claim 4, wherein the report pairing module (206) is configured to receive file names or a common substring in the file names of the reports (802, 804) from the user as the report specific user input (806).
6. The CSV file comparison system (100) as claimed in claim 1 comprises:
a reader module (208) configured to identify structured data from the reports (802, 804) based on one or more of the report specific user inputs (806).
7. The CSV file comparison system (100) as claimed in claim 1 or 2, wherein the report specific user inputs (806) comprise at least one of columns to be discarded, columns to be partially discarded, key columns, warning structure, directory path for the two versions of the source code, columns containing line numbers, and column representing serial number.
8. The CSV file comparison system (100) as claimed in claim 7, wherein the warning structure is indicative of single row warnings (300) or multi-row warnings (400).
9. The CSV file comparison system (100) as claimed in claim 2, wherein the one or more comparison reports is at least one of an added warning report (818), a deleted warnings report (816), a changed warnings report (820, 822), an unchanged warnings report, and a combination thereof.
10. The CSV file comparison system (100) as claimed in claim 1, wherein the one or more comparison reports is at least one of a summary report (500) and a detailed report (600, 700).
11. The CSV file comparison system (100) as claimed in claim 1, wherein the reports (802, 804) having the CSV file format comprise structured data.
12. A computer implemented method for comparing reports (802, 804) having a CSV file format, the method comprising:
receiving the reports (802, 804) and report specific user inputs (806) from a user;
sorting the reports (802, 804) based on the report specific user inputs (806);
comparing the sorted reports (810, 812) based on the report specific user inputs (806); and
generating one or more comparison reports (816, 818, 820, 822) based on the comparison of the sorted reports (810, 812).
13. The method as claimed in claim 12, wherein the reports (802, 804) are static analysis reports corresponding to two versions of same source code, each static analysis report comprising a set of warnings in respect of the source code.
14. The method as claimed in claim 13, wherein the one or more comparison reports is at least one of an added warning report (818), a deleted warnings report (816), a changed warnings report (820, 822), an unchanged warnings report, and a combination thereof.
15. The method as claimed in claim 12, wherein the one or more comparison reports is at least one of a summary report (500) and a detailed report (600, 700).
16. The method as claimed in claim 12 or 13, wherein the report specific user inputs (806) comprise at least one of columns to be discarded, columns to be partially discarded, key columns, warning structure, directory path for the two versions of the source code, columns containing line numbers, and column representing serial number.
17. The method as claimed in claim 16, wherein the warning structure is indicative of single row warnings (300) or multi-row warnings (400).
18. The method as claimed in claim 12, wherein the reports (802, 804) having the CSV file format comprise structured data.
,TagSPECI:As Attached