Skip to content

Commit

Permalink
For #452: Added LCOM4 report
Browse files Browse the repository at this point in the history
  • Loading branch information
paulodamaso committed Apr 21, 2020
1 parent 14744f6 commit 9243ca8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ and then:
```bash
$ java -jar jpeek-jar-with-dependencies.jar --sources . --target ./jpeek
```
<!--
@todo #452:30min Improve how to use section on README.md
How to Use section must be improved; we need to explain the many parameters
that jpeek jar accepts and the default values for each parameter.
-->

jPeek will analyze Java files in the current directory.
XML reports will be generated in the `./jpeek` directory. Enjoy.
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/jpeek/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ public void analyze() throws IOException {
)
);
}
if (this.params.containsKey("LCOM4")) {
reports.add(
new XslReport(
chain.transform(skeleton), xsl,
new ReportData("LCOM4", this.params, 0.5d, -0.1d)
)
);
}
if (this.params.containsKey("NHD")) {
reports.add(
new XslReport(
Expand Down

0 comments on commit 9243ca8

Please sign in to comment.