-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds issue details to findings on FindingsReport and FileBasedFinding…
…sReporter (#4464) * Changes FindingsReporter detail level Achieved different levels of detailing by changing the format in the implementation of compact() method for CodeSmell and ThresholdedCodeSmell. * Updates docs with reporting changes * Adapts tests to findings reporter changes * Creates extension method for console report Reverts changes to `CodeSmell::compact` method to keep other reports untouched. * Truncates long messages for console reports Prevents line breaks and long messages from breaking report structure
- Loading branch information
Showing
8 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Ruleset1 - 10min debt | ||
TestSmell - [TestEntity] at TestFile.kt:1:1 | ||
TestSmell - [TestEntity] at TestFile.kt:1:1 | ||
TestSmell - [TestMessage] at TestFile.kt:1:1 | ||
TestSmell - [TestMessage] at TestFile.kt:1:1 | ||
Ruleset2 - 5min debt | ||
TestSmell - [TestEntity] at TestFile.kt:1:1 | ||
TestSmell - [TestMessage] at TestFile.kt:1:1 | ||
|
||
Overall debt: 15min |
6 changes: 3 additions & 3 deletions
6
detekt-core/src/test/resources/reporting/grouped-findings-report.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
File1.kt - 10min debt | ||
TestSmell - [TestEntity] at File1.kt:1:1 | ||
TestSmell - [TestEntity] at File1.kt:1:1 | ||
TestSmell - [TestMessage] at File1.kt:1:1 | ||
TestSmell - [TestMessage] at File1.kt:1:1 | ||
File2.kt - 5min debt | ||
TestSmell - [TestEntity] at File2.kt:1:1 | ||
TestSmell - [TestMessage] at File2.kt:1:1 | ||
|
||
Overall debt: 15min |
5 changes: 5 additions & 0 deletions
5
detekt-core/src/test/resources/reporting/long-messages-report.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Ruleset - 10min debt | ||
LongRule - [This is just a long message that should be truncated after a given threshold is (…)] at File.kt:1:1 | ||
MultilineRule - [A multiline message.] at File.kt:1:1 | ||
|
||
Overall debt: 10min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters