# US 2014/0157239 A1 · System and method for peer-based code quality analysis reporting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0157239 A1
- Document ID: US20140157239A1
- Status: Published application
- Kind: A1
- Application number: 13/691,558
- Filed: 2012-11-30
- Published: 2014-06-05
- Earliest claimed: 2012-11-30
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Kelly Goetsch
- Web page: https://patentgrep.com/patent/US20140157239A1

## CPC

- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for peer-based code quality analysis reporting are provided. In accordance with an embodiment, a system can include a peer-based code quality analysis tool, executing on a computer, which is configured to receive one or more source code files, and perform an analysis of the one or more source code files based on a plurality of rules. The peer-based code quality analysis tool can further compare results of the analysis to peer results data to determine a percentile based score, and create an interactive report which includes the results of the analysis and the percentile based score.

## Claims

### Claim 1

A system for peer-based code quality analysis, the system comprising:
a computer, including a computer readable medium and processor;
a peer-based code quality analysis tool, executing on the computer, which is configured to
receive one or more source code files,
perform an analysis of the one or more source code files based on a plurality of rules,
compare results of the analysis to peer results data to determine a percentile based score, and
create an interactive report which includes the results of the analysis and the percentile based score.

### Claim 2 (depends on 1)

The system of claim 1 wherein the analysis the peer-based code analysis tool is configured to perform includes:
a comment quality analysis;
a rules-based analysis using the plurality of rules;
a code style analysis; and
a duplicate code analysis.

### Claim 3 (depends on 2)

The system of claim 2 wherein the comment quality analysis includes:
determining a number of single line and multiline comments;
determining a number of words in each comment;
removing whitespace from each comment; and
determining a number of characters in each comment.

### Claim 4 (depends on 2)

The system of claim 2 wherein the results of the analysis of the one or more source code files includes a total number of potential code issues, a ratio of a number of rules violations per a number of lines of code, and the comment quality analysis.

### Claim 5 (depends on 4)

The system of claim 4 wherein each rule of the plurality of rules is associated with a priority number which indicates a relative importance of that rule.

### Claim 6 (depends on 5)

The system of claim 5 wherein the interactive report can include a summary of the results of the analysis and details of each issue identified in the results of the analysis.

### Claim 7 (depends on 1)

The system of claim 1 wherein the peer-based code analysis tool is further configured to compare the results of the analysis and the percentile based score with a plurality of compliance metrics.

### Claim 8

A method for peer-based code quality analysis, the method comprising:
receiving, by a peer-based code quality analysis tool executing on a computer, one or more source code files;
performing an analysis of the one or more source code files based on a plurality of rules;
comparing results of the analysis to peer results data to determine a percentile based score; and
creating an interactive report which includes the results of the analysis and the percentile based score.

### Claim 9 (depends on 8)

The method of claim 8 wherein performing an analysis of the one or more source code files based on a plurality of rules, comprises:
performing a comment quality analysis;
performing a rules-based analysis using the plurality of rules;
performing a code style analysis; and
performing a duplicate code analysis.

### Claim 10 (depends on 9)

The method of claim 9 wherein the comment quality analysis includes:
determining a number of single line and multiline comments;
determining a number of words in each comment;
removing whitespace from each comment; and
determining a number of characters in each comment.

### Claim 11 (depends on 9)

The method of claim 9 wherein the results of the analysis of the one or more source code files includes a total number of potential code issues, a ratio of a number of rules violations per a number of lines of code, and the comment quality analysis.

### Claim 12 (depends on 11)

The method of claim 11 wherein each rule of the plurality of rules is associated with a priority number which indicates a relative importance of that rule.

### Claim 13 (depends on 12)

The method of claim 12 wherein the interactive report can include a summary of the results of the analysis and details of each issue identified in the results of the analysis.

### Claim 14 (depends on 8)

The method of claim 8 further comprising comparing the results of the analysis and the percentile based score with a plurality of compliance metrics.

### Claim 15

A non-transitory computer readable storage medium including instructions stored thereon which, when executed by a processor, cause the processor to perform the steps of:
receiving, by a peer-based code quality analysis tool executing on a computer, one or more source code files;
performing an analysis of the one or more source code files based on a plurality of rules;
comparing results of the analysis to peer results data to determine a percentile based score; and
creating an interactive report which includes the results of the analysis and the percentile based score.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15 wherein performing an analysis of the one or more source code files based on a plurality of rules, comprises:
performing a comment quality analysis;
performing a rules-based analysis using the plurality of rules;
performing a code style analysis; and
performing a duplicate code analysis.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16 wherein the comment quality analysis includes:
determining a number of single line and multiline comments;
determining a number of words in each comment;
removing whitespace from each comment; and
determining a number of characters in each comment.

### Claim 18 (depends on 16)

The non-transitory computer readable storage medium of claim 16 wherein the results of the analysis of the one or more source code files includes a total number of potential code issues, a ratio of a number of rules violations per a number of lines of code, and the comment quality analysis.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18 wherein each rule of the plurality of rules is associated with a priority number which indicates a relative importance of that rule and wherein the interactive report can include a summary of the results of the analysis and details of each issue identified in the results of the analysis.

### Claim 20 (depends on 15)

The non-transitory computer readable storage medium of claim 15 further comprising comparing the results of the analysis and the percentile based score with a plurality of compliance metrics.
