jSparrow results for jenkins-test
Metrics for jenkins-test (created on 8.8.2019):
Total Java file* count | 357 |
Number of files changed | 355 |
Total number of issues fixed | 1715 |
Total time saved | 98 hours, 52 minutes |
jSparrow run time | 1 minute, 47 seconds |
* One Java file could contain more than one Java class.
Per Rule Statistics
This table contains the list of rules that were applied on jenkins-test.
arrow_upwardRule Name | arrow_upwardIssues Fixed | arrow_upwardFiles Changed | arrow_upwardTime saved |
---|
|
---|
Add Braces to Control Statements
| 77 | 39 |
2 hours, 34 minutes
|
Collapse If Statements
| 3 | 3 |
15 minutes
|
Organize Imports
| 341 | 341 |
5 hours, 41 minutes
|
Rearrange Class Members
| 124 | 107 |
10 hours, 20 minutes
|
Reformat Code
| 355 | 355 |
5 hours, 55 minutes
|
Remove Boxing for String Conversions
| 4 | 3 |
20 minutes
|
Remove Explicit Call To super()
| 3 | 3 |
3 minutes
|
Remove Explicit Type Argument
| 45 | 21 |
45 minutes
|
Remove Lambda Expression Braces
| 34 | 23 |
2 hours, 50 minutes
|
Remove Unnecessary Semicolons
| 1 | 1 |
1 minute
|
Remove Unnecessary Thrown Exceptions on Method Signatures
| 44 | 16 |
1 hour, 28 minutes
|
Remove Unused Parameters in Private Methods
| 3 | 1 |
15 minutes
|
Reorder Modifiers
| 12 | 9 |
24 minutes
|
Reorder String Equality Check
| 31 | 14 |
5 hours, 10 minutes
|
Replace Assignment with Compound Operator
| 1 | 1 |
2 minutes
|
Replace Collection.sort with List.sort
| 1 | 1 |
2 minutes
|
Replace equals() on Enum Constants
| 2 | 2 |
4 minutes
|
Replace Expression Lambda with Method Reference
| 9 | 7 |
18 minutes
|
Replace For-Loop with Enhanced-For-Loop
| 1 | 1 |
5 minutes
|
Replace For-Loop with Iterable::forEach
| 36 | 25 |
9 hours
|
Replace For-Loop with Stream::findFirst
| 2 | 2 |
4 minutes
|
Replace For-Loop with Stream::Match
| 1 | 1 |
2 minutes
|
Split Multiple Variable Declarations
| 7 | 7 |
14 minutes
|
Use @Override Annotation
| 88 | 42 |
7 hours, 20 minutes
|
Use Functional Interfaces
| 37 | 19 |
3 hours, 5 minutes
|
Use Guard Condition
| 17 | 13 |
1 hour, 25 minutes
|
Use Stream::filter
| 1 | 1 |
5 minutes
|
Use Stream::map
| 7 | 6 |
1 hour, 45 minutes
|
Use StringBuilder::append
| 240 | 91 |
8 hours
|
Use StringUtils Methods
| 188 | 80 |
31 hours, 20 minutes
|
* One Java file could contain more than one Java class.
jSparrow results for cli
Metrics for cli (created on 8.8.2019):
Total Java file* count | 16 |
Number of files changed | 16 |
Total number of issues fixed | 115 |
Total time saved | 6 hours, 13 minutes |
jSparrow run time | 1 second |
* One Java file could contain more than one Java class.
Per Rule Statistics
This table contains the list of rules that were applied on cli.
* One Java file could contain more than one Java class.
jSparrow results for jenkins-core
Metrics for jenkins-core (created on 8.8.2019):
Total Java file* count | 1250 |
Number of files changed | 1234 |
Total number of issues fixed | 9555 |
Total time saved | 528 hours, 26 minutes |
jSparrow run time | 4 minutes, 7 seconds |
* One Java file could contain more than one Java class.
Per Rule Statistics
This table contains the list of rules that were applied on jenkins-core.
arrow_upwardRule Name | arrow_upwardIssues Fixed | arrow_upwardFiles Changed | arrow_upwardTime saved |
---|
|
---|
Add Braces to Control Statements
| 2397 | 403 |
79 hours, 54 minutes
|
Collapse If Statements
| 51 | 40 |
4 hours, 15 minutes
|
Organize Imports
| 993 | 993 |
16 hours, 33 minutes
|
Rearrange Class Members
| 536 | 432 |
44 hours, 40 minutes
|
Reformat Code
| 1234 | 1234 |
20 hours, 34 minutes
|
Remove Boxing for String Conversions
| 1 | 1 |
5 minutes
|
Remove Explicit Call To super()
| 13 | 8 |
13 minutes
|
Remove Explicit Type Argument
| 130 | 47 |
2 hours, 10 minutes
|
Remove Inherited Interfaces from Class Declaration
| 12 | 8 |
24 minutes
|
Remove Lambda Expression Braces
| 305 | 141 |
25 hours, 25 minutes
|
Remove toString() on String
| 2 | 1 |
4 minutes
|
Remove Unnecessary Semicolons
| 4 | 4 |
4 minutes
|
Remove Unnecessary Thrown Exceptions on Method Signatures
| 177 | 74 |
5 hours, 54 minutes
|
Remove Unused Parameters in Private Methods
| 7 | 7 |
35 minutes
|
Reorder Modifiers
| 175 | 104 |
5 hours, 50 minutes
|
Reorder String Equality Check
| 119 | 59 |
19 hours, 50 minutes
|
Replace Assignment with Compound Operator
| 4 | 2 |
8 minutes
|
Replace Collection.sort with List.sort
| 1 | 1 |
2 minutes
|
Replace Equality Check with isEmpty()
| 46 | 30 |
1 hour, 32 minutes
|
Replace equals() on Enum Constants
| 13 | 6 |
26 minutes
|
Replace Expression Lambda with Method Reference
| 86 | 52 |
2 hours, 52 minutes
|
Replace For-Loop with Enhanced-For-Loop
| 1 | 1 |
5 minutes
|
Replace For-Loop with Iterable::forEach
| 381 | 152 |
95 hours, 15 minutes
|
Replace For-Loop with Stream::findFirst
| 51 | 30 |
1 hour, 42 minutes
|
Replace For-Loop with Stream::Match
| 30 | 23 |
1 hour
|
Replace indexOf() with contains()
| 1 | 1 |
2 minutes
|
Replace Inefficient Constructors with valueOf()
| 17 | 4 |
1 hour, 25 minutes
|
Replace Map::get by Map::getOrDefault
| 1 | 1 |
2 minutes
|
Replace put(..) with putIfAbsent(..)
| 7 | 6 |
14 minutes
|
Replace static final Collections with Collections.unmodifiable...()
| 3 | 3 |
30 minutes
|
Split Multiple Variable Declarations
| 61 | 40 |
2 hours, 2 minutes
|
Use @Override Annotation
| 1486 | 382 |
123 hours, 50 minutes
|
Use BufferedReader::lines
| 2 | 2 |
10 minutes
|
Use Functional Interfaces
| 132 | 71 |
11 hours
|
Use Guard Condition
| 146 | 97 |
12 hours, 10 minutes
|
Use Multi Catch
| 4 | 4 |
20 minutes
|
Use Stream::collect
| 31 | 21 |
7 hours, 45 minutes
|
Use Stream::filter
| 83 | 56 |
6 hours, 55 minutes
|
Use Stream::map
| 25 | 22 |
6 hours, 15 minutes
|
Use StringBuilder::append
| 787 | 288 |
26 hours, 14 minutes
|
* One Java file could contain more than one Java class.