QualityChecker Rules violations

## Root directory D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\targetqcr

### Table of contents

Rules aggregated counters
Rules details
Top 10 Rules occurrences
Top 10 Files Rules occurrences
Directories details
Files details

### Rules aggregated counters

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-BLOCKER | Total number of Blocker violations | 23
CRITICAL | QC-CRITICAL | Total number of High violations | 35
MAJOR | QC-MAJOR | Total number of Major violations | 1961
MINOR | QC-MINOR | Total number of Minor violations | 69
INFO | QC-INFO | Total number of Info violations | 146

### Rules details

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE078 | Potential OS command injection | 0
BLOCKER | QC-JAVCWE080 | Potential Basic XSS | 0
BLOCKER | QC-JAVCWE089 | Potential SQL Injection | 0
BLOCKER | QC-JAVCWE369 | Division by ZERO | 0
BLOCKER | QC-JAVCWE412 | Unrestricted Externally Accessible Lock | 0
BLOCKER | QC-JAVCWE470 | Use of externally-controlled (unsafe reflection) | 0
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 12
BLOCKER | QC-JAVCWE833 | Potential deadlock between at least two ressources | 0
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 11
CRITICAL | QC-JAVCWE096 | Insufficient control of directives in statically saved code | 0
CRITICAL | QC-JAVCWE476 | Null pointer reference | 35
CRITICAL | QC-JAVCWE484 | Omitted Break Statement in Switch | 0
CRITICAL | QC-JAVCWE570 | Condition NEVER true | 0
CRITICAL | QC-JAVCWE616 | Incomplete identification of uploaded file | 0
MAJOR | QC-JAVCWE190 | Overflow | 0
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 101
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 10
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 44
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 243
MAJOR | QC-JAVCWE584 | Return inside finally block | 0
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1563
MAJOR | QC-JAV000002 | The same new XX() is repeated at least twice, use a local instance variable instead, huge performance impact | 0
MINOR | QC-JAVCWE252 | Return type of function is not tested | 0
MINOR | QC-JAVCWE500 | Static public field not marked final | 67
MINOR | QC-JAVCWE582 | Array declared public, final and static | 2
MINOR | QC-JAVCWE585 | The software contains an empty synchronized block | 0
MINOR | QC-JAVCWE626 | Null byte interaction error | 0
MINOR | QC-JAVCWE627 | Dynamic variable evaluation for variable | 0
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 146

### Top 10 Rules occurrences

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1563
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 243
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 146
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 101
MINOR | QC-JAVCWE500 | Static public field not marked final | 67
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 44
CRITICAL | QC-JAVCWE476 | Null pointer reference | 35
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 12
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 11
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 10

### Top 10 Rules BLOCKER occurrences

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 12
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 11

### Top 10 Rules CRITICAL occurrences

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 35

### Top 10 Rules MAJOR occurrences

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1563
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 243
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 101
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 44
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 10

### Top 10 Rules MINOR occurrences

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MINOR | QC-JAVCWE500 | Static public field not marked final | 67
MINOR | QC-JAVCWE582 | Array declared public, final and static | 2

### Top 10 Rules INFO occurrences

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 146

### Top 10 Files Rules occurrences

File name | Total nb of violations | BLOCKER | CRITICAL | MAJOR | MINOR | INFO
--- | --- | --- | --- | --- | --- | ---
core\src\main\java\hudson\model\View.java | 79 | 0 | 0 | 77 | 0 | 2
test\src\main\java\org\jvnet\hudson\test\JenkinsRule.java | 77 | 1 | 0 | 75 | 1 | 0
test\src\main\java\org\jvnet\hudson\test\HudsonTestCase.java | 72 | 1 | 0 | 69 | 1 | 1
core\src\main\java\hudson\ExtensionFinder.java | 47 | 0 | 0 | 43 | 0 | 4
core\src\main\java\hudson\model\Queue.java | 44 | 0 | 3 | 41 | 0 | 0
core\src\main\java\hudson\model\AbstractBuild.java | 38 | 0 | 0 | 38 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenModuleSetBuild.java | 37 | 0 | 0 | 36 | 1 | 0
core\src\main\java\hudson\model\UpdateCenter.java | 36 | 0 | 0 | 32 | 1 | 3
core\src\main\java\hudson\Functions.java | 35 | 0 | 0 | 34 | 1 | 0
core\src\main\java\hudson\cli\declarative\CLIRegisterer.java | 33 | 0 | 0 | 33 | 0 | 0

### Directories details

Directory name | Number of files | Total nb of violations | BLOCKER | CRITICAL | MAJOR | MINOR | INFO
--- | --- | --- | --- | --- | --- | --- | ---
cli\src\main\java\hudson\cli to \C | 8 | 15 | 0 | 1 | 14 | 0 | 0
cli\src\test\java\hudson\cli \C to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson \A to \A | 51 | 214 | 1 | 3 | 187 | 12 | 11
core\src\main\java\hudson\cli \A to \C | 32 | 69 | 0 | 0 | 69 | 0 | 0
core\src\main\java\hudson\cli\declarative \C to \A | 6 | 38 | 0 | 0 | 38 | 0 | 0
core\src\main\java\hudson\cli\handlers \A to \p | 3 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli \p to \S | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\util \S to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console \A to \H | 15 | 15 | 0 | 0 | 13 | 2 | 0
core\src\main\java\hudson\diagnosis \H to \W | 7 | 13 | 0 | 0 | 11 | 1 | 1
core\src\main\java\hudson\fsp \W to \I | 1 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\init \I to \G | 5 | 7 | 3 | 0 | 4 | 0 | 0
core\src\main\java\hudson\init\impl \G to \p | 2 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init \p to \L | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\lifecycle \L to \L | 6 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\logging \L to \E | 3 | 5 | 0 | 0 | 4 | 1 | 0
core\src\main\java\hudson\markup \E to \A | 6 | 9 | 0 | 0 | 9 | 0 | 0
core\src\main\java\hudson\matrix \A to \M | 24 | 68 | 0 | 0 | 66 | 1 | 1
core\src\main\java\hudson\matrix\listeners \M to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model \A to \L | 165 | 495 | 7 | 12 | 459 | 9 | 8
core\src\main\java\hudson\model\labels \L to \I | 8 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\listeners \I to \A | 5 | 10 | 0 | 0 | 10 | 0 | 0
core\src\main\java\hudson\model\queue \A to _m | 22 | 33 | 0 | 1 | 32 | 0 | 0
core\src\main\java\hudson\node _m to \T | 12 | 5 | 0 | 2 | 3 | 0 | 0
core\src\main\java\hudson\org\apache\tools\tar \T to \P | 2 | 2 | 0 | 1 | 1 | 0 | 0
core\src\main\java\hudson\os \P to \Z | 3 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\solaris \Z to \M | 3 | 4 | 0 | 0 | 3 | 1 | 0
core\src\main\java\hudson\os\windows \M to \B | 5 | 2 | 1 | 0 | 1 | 0 | 0
core\src\main\java\hudson\scheduler \B to \A | 4 | 11 | 0 | 0 | 9 | 1 | 1
core\src\main\java\hudson\scm \A to \Q | 16 | 11 | 0 | 0 | 10 | 1 | 0
core\src\main\java\hudson\scm\browsers \Q to \C | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search \C to \A | 15 | 35 | 0 | 1 | 33 | 0 | 1
core\src\main\java\hudson\security \A to \C | 43 | 37 | 0 | 1 | 34 | 1 | 1
core\src\main\java\hudson\security\captcha \C to \C | 2 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\csrf \C to \A | 6 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\slaves \A to \A | 32 | 35 | 0 | 0 | 31 | 3 | 1
core\src\main\java\hudson\tasks \A to _m | 21 | 80 | 0 | 0 | 76 | 3 | 1
core\src\main\java\hudson\tasks\ _m to \C | 5 | 8 | 0 | 0 | 4 | 4 | 0
core\src\main\java\hudson\tasks\junit \C to \A | 13 | 27 | 0 | 0 | 23 | 0 | 4
core\src\main\java\hudson\tasks\test \A to \C | 13 | 16 | 0 | 0 | 16 | 0 | 0
core\src\main\java\hudson\tools \C to \S | 15 | 11 | 1 | 0 | 10 | 0 | 0
core\src\main\java\hudson\triggers \S to \A | 6 | 15 | 1 | 0 | 12 | 2 | 0
core\src\main\java\hudson\util \A to \A | 119 | 171 | 1 | 3 | 153 | 5 | 9
core\src\main\java\hudson\util\io \A to \M | 7 | 11 | 0 | 0 | 8 | 3 | 0
core\src\main\java\hudson\util\jelly \M to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna \A to \B | 15 | 34 | 0 | 1 | 32 | 0 | 1
core\src\main\java\hudson\util\spring \B to \S | 6 | 22 | 1 | 0 | 21 | 0 | 0
core\src\main\java\hudson\util\ssh \S to \I | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\xstream \I to \B | 5 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\views \B to \B | 18 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\widgets \B to \A | 4 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\jenkins \A to \C | 10 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management \C to \A | 10 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model \A to \A | 26 | 10 | 1 | 0 | 8 | 0 | 1
core\src\main\java\jenkins\model\lazy \A to \D | 6 | 16 | 0 | 1 | 11 | 0 | 4
core\src\main\java\jenkins\mvn \D to \D | 8 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\scm \D to \A | 3 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security \A to \J | 9 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\slaves \J to \J | 3 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\jenkins\util \J to \F | 8 | 10 | 0 | 0 | 10 | 0 | 0
core\src\main\java\jenkins\util\io \F to \X | 2 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\xstream \X to \B | 1 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\org\acegisecurity\providers\ldap\authenticator \B to \B | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson \B to \U | 10 | 17 | 0 | 0 | 17 | 0 | 0
core\src\test\java\hudson\console \U to \M | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\markup \M to \C | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\matrix \C to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model \A to \D | 17 | 10 | 0 | 1 | 3 | 0 | 6
core\src\test\java\hudson\os \D to \C | 2 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\scheduler \C to \S | 3 | 10 | 0 | 0 | 1 | 0 | 9
core\src\test\java\hudson\search \S to \C | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\slaves \C to _m | 2 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\tasks\ _m to \C | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\tasks\junit \C to \T | 3 | 1 | 0 | 0 | 0 | 0 | 1
core\src\test\java\hudson\tasks\test \T to \A | 1 | 11 | 0 | 0 | 11 | 0 | 0
core\src\test\java\hudson\util \A to \R | 17 | 6 | 1 | 0 | 2 | 0 | 3
core\src\test\java\hudson\util\io \R to \R | 3 | 2 | 0 | 0 | 2 | 0 | 0
core\src\test\java\jenkins \R to \J | 2 | 3 | 0 | 0 | 3 | 0 | 0
core\src\test\java\jenkins\model \J to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\jenkins\model\lazy \A to \C | 5 | 10 | 0 | 2 | 7 | 0 | 1
core\src\test\java\jenkins\security \C to \M | 1 | 2 | 0 | 0 | 2 | 0 | 0
core\src\test\java\jenkins\util \M to \X | 2 | 3 | 0 | 0 | 3 | 0 | 0
core\src\test\java\jenkins\util\xstream \X to \A | 1 | 3 | 0 | 0 | 3 | 0 | 0
maven-plugin\src\main\java\hudson\maven \A to _r | 45 | 173 | 0 | 4 | 154 | 13 | 2
maven-plugin\src\main\java\hudson\maven\local _r to \A | 5 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters \A to \E | 19 | 22 | 1 | 0 | 21 | 0 | 0
maven-plugin\src\main\java\hudson\maven\util \E to \E | 1 | 4 | 0 | 0 | 4 | 0 | 0
maven-plugin\src\test\java\hudson\maven \E to \S | 3 | 10 | 0 | 0 | 7 | 0 | 3
maven-plugin\src\test\java\hudson\maven\reporters \S to \M | 4 | 15 | 0 | 0 | 3 | 0 | 12
maven-plugin\src\test\java\hudson\model \M to \F | 1 | 0 | 0 | 0 | 0 | 0 | 0
msi \F to \S | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\hudson\util \S to \J | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\jenkins\model \J to \C | 1 | 1 | 0 | 1 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test \C to \F | 43 | 171 | 3 | 0 | 164 | 2 | 2
test\src\main\java\org\jvnet\hudson\test\junit \F to \p | 2 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test \p to \L | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes \L to \C | 7 | 1 | 0 | 0 | 0 | 0 | 1
test\src\main\java\org\jvnet\hudson\test\rhino \C to \C | 3 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java \C to \C | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson \C to \D | 10 | 6 | 0 | 0 | 4 | 1 | 1
test\src\test\java\hudson\bugs \D to \O | 3 | 5 | 0 | 0 | 5 | 0 | 0
test\src\test\java\hudson\bugs\seasar \O to \C | 2 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\cli \C to \C | 1 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\console \C to \H | 3 | 4 | 1 | 0 | 0 | 0 | 3
test\src\test\java\hudson\diagnosis \H to \L | 2 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\logging \L to \M | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\markup \M to \M | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\matrix \M to \A | 3 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven \A to \M | 15 | 42 | 0 | 0 | 17 | 0 | 25
test\src\test\java\hudson\maven\reporters \M to \A | 3 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\model \A to \L | 31 | 30 | 0 | 0 | 20 | 1 | 9
test\src\test\java\hudson\model\labels \L to \I | 2 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\listeners \I to \L | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\queue \L to _m | 3 | 2 | 0 | 0 | 1 | 0 | 1
test\src\test\java\hudson\node _m to \S | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\pages \S to \S | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\scm \S to \S | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\search \S to \C | 1 | 5 | 0 | 0 | 4 | 0 | 1
test\src\test\java\hudson\security \C to \D | 5 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\security\csrf \D to \C | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\slaves \C to \A | 7 | 5 | 0 | 0 | 5 | 0 | 0
test\src\test\java\hudson\tasks \A to \C | 8 | 16 | 0 | 0 | 5 | 0 | 11
test\src\test\java\hudson\tasks\junit \C to \T | 7 | 5 | 0 | 0 | 0 | 0 | 5
test\src\test\java\hudson\tasks\test \T to \J | 4 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tools \J to \S | 3 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\triggers \S to \A | 2 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\util \A to \L | 4 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\views \L to \E | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins \E to \J | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\model \J to \S | 2 | 4 | 0 | 0 | 0 | 0 | 4
test\src\test\java\jenkins\scm \S to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\security \A to \A | 2 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\lib\form \A to \A | 11 | 21 | 0 | 0 | 21 | 0 | 0
test\src\test\java\lib\hudson \A to \R | 2 | 3 | 0 | 0 | 3 | 0 | 0
test\src\test\java\lib\layout \R to \A | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\org\jvnet\hudson\main \A to \M | 1 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\org\jvnet\hudson\test \M to \B | 2 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\scripts \B to \U | 2 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\junit4\org\jvnet\hudson\main \U to _s | 1 | 1 | 0 | 0 | 1 | 0 | 0

### Files details 1237

File name | Size in bytes | Total nb of violations | BLOCKER | CRITICAL | MAJOR | MINOR | INFO
--- | --- | --- | --- | --- | --- | --- | ---
cli\src\main\java\hudson\cli\CLI.java | 25573 | 14 | 0 | 1 | 13 | 0 | 0
cli\src\main\java\hudson\cli\CLIConnectionFactory.java | 2142 | 0 | 0 | 0 | 0 | 0 | 0
cli\src\main\java\hudson\cli\CliEntryPoint.java | 2536 | 0 | 0 | 0 | 0 | 0 | 0
cli\src\main\java\hudson\cli\CliPort.java | 1142 | 0 | 0 | 0 | 0 | 0 | 0
cli\src\main\java\hudson\cli\Connection.java | 9340 | 0 | 0 | 0 | 0 | 0 | 0
cli\src\main\java\hudson\cli\FullDuplexHttpStream.java | 5526 | 1 | 0 | 0 | 1 | 0 | 0
cli\src\main\java\hudson\cli\NoCheckTrustManager.java | 579 | 0 | 0 | 0 | 0 | 0 | 0
cli\src\main\java\hudson\cli\SequenceOutputStream.java | 1782 | 0 | 0 | 0 | 0 | 0 | 0
cli\src\test\java\hudson\cli\ConnectionTest.java | 1863 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\AbortException.java | 1785 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\AboutJenkins.java | 558 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\AbstractMarkupText.java | 5304 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\BulkChange.java | 5475 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\ClassicPluginStrategy.java | 26415 | 27 | 0 | 0 | 26 | 1 | 0
core\src\main\java\hudson\CloseProofOutputStream.java | 1565 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\CopyOnWrite.java | 2097 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\DNSMultiCast.java | 3315 | 3 | 0 | 0 | 2 | 1 | 0
core\src\main\java\hudson\DependencyRunner.java | 3819 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\DescriptorExtensionList.java | 9103 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\EnvVars.java | 8878 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\ExpressionFactory2.java | 5244 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Extension.java | 4308 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\ExtensionComponent.java | 3688 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\ExtensionFinder.java | 29252 | 47 | 0 | 0 | 43 | 0 | 4
core\src\main\java\hudson\ExtensionList.java | 12116 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\ExtensionListView.java | 5356 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\ExtensionPoint.java | 2246 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\FeedAdapter.java | 2420 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\FilePath.java | 93299 | 18 | 0 | 1 | 14 | 1 | 2
core\src\main\java\hudson\FileSystemProvisioner.java | 10136 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\FileSystemProvisionerDescriptor.java | 3424 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Functions.java | 56132 | 35 | 0 | 0 | 34 | 1 | 0
core\src\main\java\hudson\Indenter.java | 1701 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Launcher.java | 41631 | 4 | 0 | 0 | 2 | 1 | 1
core\src\main\java\hudson\LauncherDecorator.java | 2024 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\LocalPluginManager.java | 3363 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\Lookup.java | 2017 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Main.java | 8372 | 8 | 0 | 0 | 6 | 2 | 0
core\src\main\java\hudson\MarkupText.java | 10563 | 3 | 0 | 1 | 2 | 0 | 0
core\src\main\java\hudson\PermalinkList.java | 2329 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Platform.java | 2568 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Plugin.java | 9761 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\PluginFirstClassLoader.java | 3019 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\PluginManager.java | 47808 | 2 | 1 | 0 | 0 | 0 | 1
core\src\main\java\hudson\PluginStrategy.java | 2861 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\PluginWrapper.java | 19281 | 3 | 0 | 1 | 2 | 0 | 0
core\src\main\java\hudson\Proc.java | 18464 | 4 | 0 | 0 | 3 | 1 | 0
core\src\main\java\hudson\ProxyConfiguration.java | 9785 | 1 | 0 | 0 | 0 | 0 | 1
core\src\main\java\hudson\RelativePath.java | 1349 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\ResponseHeaderFilter.java | 3923 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\RestrictedSince.java | 1546 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\StructuredForm.java | 2799 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\TcpSlaveAgentListener.java | 9098 | 5 | 0 | 0 | 4 | 1 | 0
core\src\main\java\hudson\UDPBroadcastFragment.java | 2328 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\UDPBroadcastThread.java | 4876 | 8 | 0 | 0 | 7 | 1 | 0
core\src\main\java\hudson\URLConnectionDecorator.java | 1918 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\Util.java | 47293 | 20 | 0 | 0 | 17 | 2 | 1
core\src\main\java\hudson\WebAppMain.java | 15678 | 15 | 0 | 0 | 15 | 0 | 0
core\src\main\java\hudson\WorkspaceSnapshot.java | 2711 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\XmlFile.java | 11097 | 1 | 0 | 0 | 0 | 0 | 1
core\src\main\java\hudson\cli\AbstractBuildRangeCommand.java | 910 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\cli\BuildCommand.java | 8357 | 10 | 0 | 0 | 10 | 0 | 0
core\src\main\java\hudson\cli\CLICommand.java | 19173 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\cli\CliManagerImpl.java | 4974 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\CliProtocol.java | 1690 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\CliProtocol2.java | 2889 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\CliTransportAuthenticator.java | 1819 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\ClientAuthenticationCache.java | 4357 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\CloneableCLICommand.java | 1634 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\CommandDuringBuild.java | 3411 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\ConsoleCommand.java | 4741 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\cli\CopyJobCommand.java | 2832 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\cli\CreateJobCommand.java | 2794 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\cli\DeleteBuildsCommand.java | 2110 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\GetJobCommand.java | 1843 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\cli\GroovyCommand.java | 4039 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\cli\GroovyshCommand.java | 5225 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\HelpCommand.java | 2194 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\InstallPluginCommand.java | 6377 | 15 | 0 | 0 | 15 | 0 | 0
core\src\main\java\hudson\cli\InstallToolCommand.java | 5347 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\cli\ListChangesCommand.java | 2643 | 9 | 0 | 0 | 9 | 0 | 0
core\src\main\java\hudson\cli\ListJobsCommand.java | 3057 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\cli\ListPluginsCommand.java | 3595 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\cli\LoginCommand.java | 1211 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\LogoutCommand.java | 536 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\SessionIdCommand.java | 546 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\SetBuildDescriptionCommand.java | 1213 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\cli\SetBuildDisplayNameCommand.java | 1202 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\cli\SetBuildResultCommand.java | 1910 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\cli\UpdateJobCommand.java | 1803 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\cli\VersionCommand.java | 1663 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\WhoAmICommand.java | 1892 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\declarative\CLIMethod.java | 2595 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\declarative\CLIRegisterer.java | 9921 | 33 | 0 | 0 | 33 | 0 | 0
core\src\main\java\hudson\cli\declarative\CLIResolver.java | 3029 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\declarative\MethodBinder.java | 5015 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\cli\declarative\OptionHandlerExtension.java | 1704 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\declarative\package-info.java | 1290 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\handlers\AbstractProjectOptionHandler.java | 2665 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\handlers\TopLevelItemOptionHandler.java | 1542 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\handlers\package-info.java | 135 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\package-info.java | 1224 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\cli\util\ScriptLoader.java | 1040 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\AnnotatedLargeText.java | 7043 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\ConsoleAnnotationDescriptor.java | 3403 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\ConsoleAnnotationOutputStream.java | 6714 | 9 | 0 | 0 | 9 | 0 | 0
core\src\main\java\hudson\console\ConsoleAnnotator.java | 5838 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\console\ConsoleAnnotatorFactory.java | 5385 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\ConsoleLogFilter.java | 2473 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\ConsoleNote.java | 12712 | 2 | 0 | 0 | 0 | 2 | 0
core\src\main\java\hudson\console\ExpandableDetailsNote.java | 2776 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\HudsonExceptionNote.java | 4909 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\HyperlinkNote.java | 2901 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\LineTransformationOutputStream.java | 3748 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\ModelHyperlinkNote.java | 2130 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\PlainTextConsoleOutputStream.java | 2928 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\console\UrlAnnotator.java | 1676 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\console\package-info.java | 95 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\diagnosis\HudsonHomeDiskUsageChecker.java | 3193 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\diagnosis\HudsonHomeDiskUsageMonitor.java | 4255 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\diagnosis\MemoryUsageMonitor.java | 4461 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\diagnosis\NullIdDescriptorMonitor.java | 3373 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\diagnosis\OldDataMonitor.java | 11499 | 7 | 0 | 0 | 6 | 0 | 1
core\src\main\java\hudson\diagnosis\ReverseProxySetupMonitor.java | 3073 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\diagnosis\TooManyJobsButNoView.java | 2327 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\fsp\WorkspaceSnapshotSCM.java | 5711 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\init\InitMilestone.java | 3845 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init\InitReactorListener.java | 646 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init\InitStrategy.java | 5158 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\init\Initializer.java | 3542 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init\InitializerFinder.java | 6740 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init\impl\GroovyInitScript.java | 3250 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init\impl\InitialUserContent.java | 1936 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\init\package-info.java | 2137 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\lifecycle\Lifecycle.java | 8182 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\lifecycle\RestartNotSupportedException.java | 394 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\lifecycle\SolarisSMFLifecycle.java | 1737 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\lifecycle\UnixLifecycle.java | 3904 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\lifecycle\WindowsInstallerLink.java | 12723 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\lifecycle\WindowsServiceLifecycle.java | 5501 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\logging\LogRecorder.java | 8502 | 3 | 0 | 0 | 2 | 1 | 0
core\src\main\java\hudson\logging\LogRecorderManager.java | 6347 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\logging\WeakLogHandler.java | 3829 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\markup\EbayPolicy.java | 11548 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\markup\HtmlPolicyBuilder2.java | 1313 | 9 | 0 | 0 | 9 | 0 | 0
core\src\main\java\hudson\markup\MarkupFormatter.java | 4083 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\markup\MarkupFormatterDescriptor.java | 1808 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\markup\MyspacePolicy.java | 4428 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\markup\RawHtmlMarkupFormatter.java | 2284 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\Axis.java | 8965 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\matrix\AxisDescriptor.java | 2222 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\AxisList.java | 3433 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\matrix\Combination.java | 9509 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\matrix\DefaultAxisDescriptor.java | 1602 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\DefaultMatrixExecutionStrategyImpl.java | 10885 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\matrix\JDKAxis.java | 2293 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\LabelAxis.java | 3144 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\LabelExpAxis.java | 2925 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\Layouter.java | 6208 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\matrix\LinkedLogRotator.java | 2566 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixAggregatable.java | 2644 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixAggregator.java | 3532 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixBuild.java | 14852 | 13 | 0 | 0 | 13 | 0 | 0
core\src\main\java\hudson\matrix\MatrixChildAction.java | 1591 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixConfiguration.java | 13674 | 6 | 0 | 0 | 5 | 1 | 0
core\src\main\java\hudson\matrix\MatrixConfigurationSorter.java | 1284 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixConfigurationSorterDescriptor.java | 906 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixExecutionStrategy.java | 2528 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixExecutionStrategyDescriptor.java | 1967 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\MatrixProject.java | 33255 | 27 | 0 | 0 | 27 | 0 | 0
core\src\main\java\hudson\matrix\MatrixRun.java | 7047 | 6 | 0 | 0 | 5 | 0 | 1
core\src\main\java\hudson\matrix\NoopMatrixConfigurationSorter.java | 909 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\TextAxis.java | 745 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\matrix\listeners\MatrixBuildListener.java | 3080 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\AbstractBuild.java | 53061 | 38 | 0 | 0 | 38 | 0 | 0
core\src\main\java\hudson\model\AbstractCIBase.java | 7917 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\model\AbstractDescribableImpl.java | 1571 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\AbstractItem.java | 21177 | 10 | 0 | 0 | 10 | 0 | 0
core\src\main\java\hudson\model\AbstractModelObject.java | 4205 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\AbstractProject.java | 81640 | 31 | 1 | 0 | 29 | 0 | 1
core\src\main\java\hudson\model\AbstractStatusIcon.java | 1335 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Action.java | 5657 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Actionable.java | 4759 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\AdministrativeMonitor.java | 5532 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\AllView.java | 3847 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\AperiodicWork.java | 3832 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Api.java | 8133 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\model\AsyncAperiodicWork.java | 4250 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\AsyncPeriodicWork.java | 3124 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\AutoCompletionCandidates.java | 5555 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\BallColor.java | 5312 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BooleanParameterDefinition.java | 3133 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BooleanParameterValue.java | 3189 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Build.java | 7771 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\model\BuildAuthorizationToken.java | 3916 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BuildBadgeAction.java | 1697 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BuildListener.java | 1651 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BuildStepListener.java | 963 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BuildTimelineWidget.java | 2890 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\model\BuildVariableContributor.java | 3099 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BuildableItem.java | 1774 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\BuildableItemWithBuildWrappers.java | 970 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Cause.java | 12995 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\model\CauseAction.java | 4681 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\CheckPoint.java | 6307 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ChoiceParameterDefinition.java | 3234 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Computer.java | 46494 | 12 | 0 | 0 | 12 | 0 | 0
core\src\main\java\hudson\model\ComputerPanelBox.java | 1169 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ComputerPinger.java | 1948 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\ComputerSet.java | 14935 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\DependecyDeclarer.java | 1345 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\DependencyGraph.java | 15003 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\model\Describable.java | 1682 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Descriptor.java | 39166 | 27 | 0 | 0 | 26 | 0 | 1
core\src\main\java\hudson\model\DescriptorByNameOwner.java | 2079 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\DescriptorVisibilityFilter.java | 1922 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\DirectoryBrowserSupport.java | 20278 | 14 | 0 | 0 | 14 | 0 | 0
core\src\main\java\hudson\model\DisplayNameListener.java | 3761 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\DownloadService.java | 11141 | 4 | 0 | 0 | 2 | 2 | 0
core\src\main\java\hudson\model\Environment.java | 4053 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\EnvironmentContributingAction.java | 2208 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\EnvironmentContributor.java | 4330 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\EnvironmentList.java | 2213 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\EnvironmentSpecific.java | 1702 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Executor.java | 19108 | 11 | 0 | 0 | 11 | 0 | 0
core\src\main\java\hudson\model\ExecutorListener.java | 2310 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Failure.java | 2621 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\FileParameterDefinition.java | 3842 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\FileParameterValue.java | 8989 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Fingerprint.java | 31070 | 18 | 0 | 1 | 17 | 0 | 0
core\src\main\java\hudson\model\FingerprintCleanupThread.java | 4179 | 7 | 1 | 0 | 6 | 0 | 0
core\src\main\java\hudson\model\FingerprintMap.java | 4032 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\FreeStyleBuild.java | 1762 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\FreeStyleProject.java | 2325 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\FullDuplexHttpChannel.java | 5194 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\model\HealthReport.java | 11442 | 1 | 0 | 0 | 0 | 0 | 1
core\src\main\java\hudson\model\HealthReportingAction.java | 2108 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Hudson.java | 11334 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\InvisibleAction.java | 1744 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Item.java | 9151 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ItemGroup.java | 2701 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ItemGroupMixIn.java | 9875 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\model\ItemVisitor.java | 2092 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Items.java | 9269 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\model\JDK.java | 6725 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Job.java | 45226 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\model\JobParameterDefinition.java | 2305 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\JobParameterValue.java | 1906 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\JobProperty.java | 6542 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\JobPropertyDescriptor.java | 4335 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Jobs.java | 1986 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Label.java | 16797 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\model\LabelFinder.java | 2295 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\LargeText.java | 10897 | 2 | 0 | 1 | 1 | 0 | 0
core\src\main\java\hudson\model\ListView.java | 10866 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\model\LoadBalancer.java | 6124 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\LoadStatistics.java | 8878 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\model\ManageJenkinsAction.java | 1718 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ManagementLink.java | 3665 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ModelObject.java | 1333 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ModifiableItemGroup.java | 1999 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\MultiStageTimeSeries.java | 10431 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\MyView.java | 3709 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\MyViewsProperty.java | 7888 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\NoFingerprintMatch.java | 1481 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Node.java | 16469 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\model\OneOffExecutor.java | 2310 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\OverallLoadStatistics.java | 2921 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\PageDecorator.java | 4636 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ParameterDefinition.java | 9093 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ParameterValue.java | 9617 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ParametersAction.java | 5849 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\model\ParametersDefinitionProperty.java | 8058 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\model\PasswordParameterDefinition.java | 3473 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\PasswordParameterValue.java | 2582 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\PeriodicWork.java | 3605 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\PermalinkProjectAction.java | 5880 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\PersistenceRoot.java | 1695 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Project.java | 7553 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ProminentProjectAction.java | 1925 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ProxyView.java | 4828 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Queue.java | 64572 | 44 | 0 | 3 | 41 | 0 | 0
core\src\main\java\hudson\model\RSS.java | 3319 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ReconfigurableDescribable.java | 3726 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Resource.java | 4143 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ResourceActivity.java | 1904 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ResourceController.java | 4792 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ResourceList.java | 5169 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\model\RestartListener.java | 1627 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Result.java | 6362 | 4 | 0 | 4 | 0 | 0 | 0
core\src\main\java\hudson\model\ResultTrend.java | 6318 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\RootAction.java | 1601 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Run.java | 76294 | 31 | 0 | 1 | 30 | 0 | 0
core\src\main\java\hudson\model\RunAction.java | 1856 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\RunMap.java | 8159 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\RunParameterDefinition.java | 4160 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\RunParameterValue.java | 2909 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\RunnerStack.java | 2263 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\SCMedItem.java | 2498 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Saveable.java | 2024 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\SimpleParameterDefinition.java | 1363 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\Slave.java | 14395 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\StatusIcon.java | 2222 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\StockStatusIcon.java | 1026 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\StreamBuildListener.java | 2841 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\StringParameterDefinition.java | 3393 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\StringParameterValue.java | 3200 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TaskAction.java | 4493 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TaskListener.java | 3971 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TaskThread.java | 6511 | 2 | 0 | 2 | 0 | 0 | 0
core\src\main\java\hudson\model\TextParameterDefinition.java | 2359 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TextParameterValue.java | 1799 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TimeSeries.java | 3484 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TopLevelItem.java | 2057 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TopLevelItemDescriptor.java | 4109 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TransientBuildActionFactory.java | 1406 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TransientComputerActionFactory.java | 2652 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TransientProjectActionFactory.java | 2923 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TransientUserActionFactory.java | 2201 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TransientViewActionFactory.java | 1066 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\TreeView.java | 6073 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\UnprotectedRootAction.java | 1457 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\UpdateCenter.java | 52283 | 36 | 0 | 0 | 32 | 1 | 3
core\src\main\java\hudson\model\UpdateSite.java | 26927 | 10 | 0 | 0 | 9 | 1 | 0
core\src\main\java\hudson\model\UsageStatistics.java | 10824 | 6 | 0 | 0 | 5 | 1 | 0
core\src\main\java\hudson\model\User.java | 24769 | 19 | 0 | 0 | 19 | 0 | 0
core\src\main\java\hudson\model\UserProperties.java | 1706 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\UserProperty.java | 3180 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\UserPropertyDescriptor.java | 2882 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\View.java | 40802 | 79 | 0 | 0 | 77 | 0 | 2
core\src\main\java\hudson\model\ViewDescriptor.java | 3694 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ViewGroup.java | 4948 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ViewGroupMixIn.java | 4369 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ViewJob.java | 7017 | 5 | 0 | 0 | 4 | 1 | 0
core\src\main\java\hudson\model\ViewProperty.java | 2865 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\ViewPropertyDescriptor.java | 2960 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\WorkspaceBrowser.java | 2225 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\WorkspaceCleanupThread.java | 6524 | 4 | 1 | 0 | 3 | 0 | 0
core\src\main\java\hudson\model\WorkspaceListener.java | 824 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelAssignmentAction.java | 1424 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelAtom.java | 10198 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelAtomProperty.java | 2595 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelAtomPropertyDescriptor.java | 1521 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelExpression.java | 6308 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelOperatorPrecedence.java | 1548 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\LabelVisitor.java | 665 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\labels\package-info.java | 72 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\listeners\ItemListener.java | 4464 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\listeners\RunListener.java | 8449 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\model\listeners\SCMListener.java | 4349 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\listeners\SCMPollListener.java | 3980 | 6 | 0 | 0 | 6 | 0 | 0
core\src\main\java\hudson\model\listeners\SaveableListener.java | 2866 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\AbstractQueueSorterImpl.java | 1430 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\AbstractQueueTask.java | 1913 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\AbstractSubTask.java | 1848 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\BackFiller.java | 7950 | 11 | 0 | 0 | 11 | 0 | 0
core\src\main\java\hudson\model\queue\CauseOfBlockage.java | 4332 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\Executables.java | 3385 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\FoldableAction.java | 2424 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\FutureImpl.java | 3121 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\FutureLoad.java | 1929 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\Latch.java | 3801 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\model\queue\LoadPredictor.java | 4305 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\MappingWorksheet.java | 14226 | 15 | 0 | 0 | 15 | 0 | 0
core\src\main\java\hudson\model\queue\QueueSorter.java | 1886 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\QueueTaskDispatcher.java | 6340 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\QueueTaskFilter.java | 3251 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\QueueTaskFuture.java | 987 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\SubTask.java | 3004 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\SubTaskContributor.java | 2040 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\Tasks.java | 2871 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\Timeline.java | 4100 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\model\queue\WorkUnit.java | 2926 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\model\queue\WorkUnitContext.java | 5612 | 2 | 0 | 1 | 1 | 0 | 0
core\src\main\java\hudson\node_monitors\AbstractDiskSpaceMonitor.java | 2209 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\AbstractNodeMonitorDescriptor.java | 8239 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\node_monitors\ArchitectureMonitor.java | 2538 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\ClockMonitor.java | 2404 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\DiskSpaceMonitor.java | 2822 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\DiskSpaceMonitorDescriptor.java | 6513 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\MonitorMarkedNodeOffline.java | 1684 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\node_monitors\NodeMonitor.java | 5169 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\NodeMonitorUpdater.java | 1488 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\ResponseTimeMonitor.java | 6222 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\SwapSpaceMonitor.java | 5477 | 2 | 0 | 2 | 0 | 0 | 0
core\src\main\java\hudson\node_monitors\TemporarySpaceMonitor.java | 3732 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\org\apache\tools\tar\TarInputStream.java | 12362 | 2 | 0 | 1 | 1 | 0 | 0
core\src\main\java\hudson\org\apache\tools\tar\TarOutputStream.java | 12312 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\PosixAPI.java | 2356 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\PosixException.java | 518 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\SU.java | 7302 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\solaris\ZFSInstaller.java | 16549 | 4 | 0 | 0 | 3 | 1 | 0
core\src\main\java\hudson\os\solaris\ZFSProvisioner.java | 4951 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\solaris\package-info.java | 74 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\windows\ManagedWindowsServiceAccount.java | 4060 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\windows\ManagedWindowsServiceConnector.java | 1422 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\windows\ManagedWindowsServiceLauncher.java | 21554 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\os\windows\WindowsRemoteFileSystem.java | 1761 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\os\windows\WindowsRemoteLauncher.java | 4116 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scheduler\BaseParser.java | 4560 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\scheduler\CronTab.java | 15598 | 7 | 0 | 0 | 6 | 0 | 1
core\src\main\java\hudson\scheduler\CronTabList.java | 3075 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\scheduler\Hash.java | 3140 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\AbstractScmTagAction.java | 3055 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\AutoBrowserHolder.java | 2793 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\scm\ChangeLogAnnotator.java | 4430 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\ChangeLogParser.java | 1728 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\ChangeLogSet.java | 8135 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\scm\EditType.java | 2215 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\EmptyChangeLogSet.java | 539 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\NullChangeLogParser.java | 1807 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\NullSCM.java | 2868 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\PollingResult.java | 4083 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\RepositoryBrowser.java | 3835 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\RepositoryBrowsers.java | 3547 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\SCM.java | 26692 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\scm\SCMDescriptor.java | 5257 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\scm\SCMRevisionState.java | 1701 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\scm\SCMS.java | 2694 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\scm\browsers\QueryBuilder.java | 1749 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\CollectionSearchIndex.java | 2480 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\search\FixedSet.java | 2555 | 3 | 0 | 0 | 2 | 0 | 1
core\src\main\java\hudson\search\ParsedQuickSilver.java | 6037 | 8 | 0 | 0 | 8 | 0 | 0
core\src\main\java\hudson\search\QuickSilver.java | 2092 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\Search.java | 13208 | 21 | 0 | 1 | 20 | 0 | 0
core\src\main\java\hudson\search\SearchFactory.java | 1539 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SearchIndex.java | 1978 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SearchIndexBuilder.java | 3599 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SearchItem.java | 2418 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SearchItems.java | 2308 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SearchResult.java | 223 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SearchableModelObject.java | 1755 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\SuggestedItem.java | 3067 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\search\UnionSearchIndex.java | 2220 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\search\UserSearchProperty.java | 1557 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\ACL.java | 4943 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AbstractPasswordBasedSecurityRealm.java | 7425 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AccessControlled.java | 1803 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AccessDeniedException2.java | 975 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AccessDeniedHandlerImpl.java | 3005 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AuthenticationManagerProxy.java | 2325 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AuthenticationProcessingFilter2.java | 4703 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\AuthorizationMatrixProperty.java | 9955 | 12 | 0 | 0 | 12 | 0 | 0
core\src\main\java\hudson\security\AuthorizationStrategy.java | 8654 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\BasicAuthenticationFilter.java | 7609 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\ChainedServletFilter.java | 3615 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\CliAuthenticator.java | 4586 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\ContainerAuthentication.java | 3639 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\DeferredCreationLdapAuthoritiesPopulator.java | 5752 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\FederatedLoginService.java | 10320 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\security\FederatedLoginServiceUserProperty.java | 2038 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\FullControlOnceLoggedInAuthorizationStrategy.java | 2731 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\GlobalMatrixAuthorizationStrategy.java | 13744 | 16 | 0 | 0 | 15 | 0 | 1
core\src\main\java\hudson\security\GlobalSecurityConfiguration.java | 5737 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\security\GroupDetails.java | 1803 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\HttpSessionContextIntegrationFilter2.java | 2980 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\HudsonAuthenticationEntryPoint.java | 4771 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\HudsonFilter.java | 7239 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\HudsonPrivateSecurityRealm.java | 26563 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\security\InvalidatableUserDetails.java | 2418 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\LegacyAuthorizationStrategy.java | 2562 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\LegacySecurityRealm.java | 3973 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\NoopFilter.java | 1831 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\NotSerilizableSecurityContext.java | 3238 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\Permission.java | 11542 | 2 | 0 | 1 | 1 | 0 | 0
core\src\main\java\hudson\security\PermissionGroup.java | 4791 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\PermissionScope.java | 4138 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\ProjectMatrixAuthorizationStrategy.java | 4639 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\security\RememberMeServicesProxy.java | 2755 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\SecurityMode.java | 1856 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\SecurityRealm.java | 22559 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\SidACL.java | 6054 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\SparseACL.java | 3278 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\security\TokenBasedRememberMeServices2.java | 3911 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\UnwrapSecurityExceptionFilter.java | 2715 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\UserDetailsServiceProxy.java | 2150 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\UserMayOrMayNotExistException.java | 2195 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\WhoAmI.java | 1930 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\captcha\CaptchaSupport.java | 2527 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\captcha\CaptchaSupportDescriptor.java | 1517 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\csrf\CrumbExclusion.java | 1265 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\csrf\CrumbFilter.java | 4507 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\security\csrf\CrumbIssuer.java | 8362 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\csrf\CrumbIssuerDescriptor.java | 1988 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\csrf\DefaultCrumbIssuer.java | 4397 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\security\csrf\GlobalCrumbIssuerConfiguration.java | 2299 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\AbstractCloudComputer.java | 2128 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\AbstractCloudImpl.java | 1477 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\AbstractCloudSlave.java | 3454 | 1 | 0 | 0 | 0 | 0 | 1
core\src\main\java\hudson\slaves\ChannelPinger.java | 5045 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\Channels.java | 9481 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\Cloud.java | 5751 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\CloudRetentionStrategy.java | 2785 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\slaves\CommandConnector.java | 2074 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\CommandLauncher.java | 7086 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\ComputerConnector.java | 2253 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\ComputerConnectorDescriptor.java | 595 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\ComputerLauncher.java | 8459 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\slaves\ComputerLauncherFilter.java | 2658 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\ComputerListener.java | 8252 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\ComputerRetentionWork.java | 2638 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\slaves\ConnectionActivityMonitor.java | 4743 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\slaves\DelegatingComputerLauncher.java | 3180 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\DumbSlave.java | 2820 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\EnvironmentVariablesNodeProperty.java | 3720 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\slaves\EphemeralNode.java | 1430 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\JNLPLauncher.java | 2723 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\NodeDescriptor.java | 4638 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\NodeList.java | 5342 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\slaves\NodeProperty.java | 7609 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\NodePropertyDescriptor.java | 1725 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\NodeProvisioner.java | 16705 | 10 | 0 | 0 | 8 | 2 | 0
core\src\main\java\hudson\slaves\NodeSpecific.java | 1821 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\OfflineCause.java | 3401 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\slaves\RetentionStrategy.java | 10414 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\slaves\SimpleScheduledRetentionStrategy.java | 10450 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\slaves\SlaveComputer.java | 28660 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\slaves\WorkspaceList.java | 8488 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\tasks\ArtifactArchiver.java | 7479 | 4 | 0 | 0 | 3 | 1 | 0
core\src\main\java\hudson\tasks\BatchFile.java | 2556 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\BuildStep.java | 12737 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\BuildStepCompatibilityLayer.java | 3596 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\BuildStepDescriptor.java | 3585 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\tasks\BuildStepMonitor.java | 1558 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\BuildTrigger.java | 14556 | 14 | 0 | 0 | 14 | 0 | 0
core\src\main\java\hudson\tasks\BuildWrapper.java | 13768 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\BuildWrapperDescriptor.java | 2323 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\BuildWrappers.java | 3041 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\tasks\Builder.java | 2776 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\CommandInterpreter.java | 4909 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\Fingerprinter.java | 16881 | 33 | 0 | 0 | 32 | 1 | 0
core\src\main\java\hudson\tasks\LogRotator.java | 9371 | 1 | 0 | 0 | 0 | 0 | 1
core\src\main\java\hudson\tasks\Maven.java | 26765 | 15 | 0 | 0 | 14 | 1 | 0
core\src\main\java\hudson\tasks\Notifier.java | 2170 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\Publisher.java | 6721 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\Recorder.java | 2157 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\Shell.java | 6640 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\UserAvatarResolver.java | 4120 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\UserNameResolver.java | 3234 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\_maven\Maven3MojoNote.java | 2441 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\tasks\_maven\MavenConsoleAnnotator.java | 2897 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\_maven\MavenErrorNote.java | 1976 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\tasks\_maven\MavenMojoNote.java | 2190 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\tasks\_maven\MavenWarningNote.java | 2030 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\tasks\junit\CaseResult.java | 18632 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\tasks\junit\ClassResult.java | 6561 | 2 | 0 | 0 | 1 | 0 | 1
core\src\main\java\hudson\tasks\junit\History.java | 10930 | 2 | 0 | 0 | 1 | 0 | 1
core\src\main\java\hudson\tasks\junit\JUnitParser.java | 4604 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\junit\JUnitResultArchiver.java | 8976 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\junit\PackageResult.java | 9057 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\tasks\junit\SuiteResult.java | 12105 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\junit\TestAction.java | 1721 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\junit\TestDataPublisher.java | 2578 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\junit\TestObject.java | 4058 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\junit\TestResult.java | 20524 | 15 | 0 | 0 | 13 | 0 | 2
core\src\main\java\hudson\tasks\junit\TestResultAction.java | 6729 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\junit\XMLEntityResolver.java | 3409 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\AbstractTestResultAction.java | 13402 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\test\AggregatedTestResultAction.java | 6211 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\tasks\test\AggregatedTestResultPublisher.java | 13203 | 9 | 0 | 0 | 9 | 0 | 0
core\src\main\java\hudson\tasks\test\DefaultTestResultParserImpl.java | 5611 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\MatrixTestResult.java | 2322 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\MetaTabulatedResult.java | 1653 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\SimpleCaseResult.java | 5639 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\TabulatedResult.java | 1804 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\TestObject.java | 13842 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tasks\test\TestResult.java | 7842 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\tasks\test\TestResultAggregator.java | 2248 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\TestResultParser.java | 5206 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tasks\test\TestResultProjectAction.java | 4946 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tools\CommandInstaller.java | 4040 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tools\DownloadFromUrlInstaller.java | 6794 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\tools\InstallSourceProperty.java | 2526 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\InstallerTranslator.java | 2764 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\tools\JDKInstaller.java | 28756 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\PropertyDescriptor.java | 2000 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolDescriptor.java | 4413 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolInstallation.java | 9219 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\tools\ToolInstaller.java | 5103 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolInstallerDescriptor.java | 2505 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolLocationNodeProperty.java | 5903 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolLocationTranslator.java | 3182 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolProperty.java | 2808 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ToolPropertyDescriptor.java | 1684 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\tools\ZipExtractionInstaller.java | 5522 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\triggers\SCMTrigger.java | 18957 | 3 | 0 | 0 | 2 | 1 | 0
core\src\main\java\hudson\triggers\SafeTimerTask.java | 2384 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\triggers\TimerTrigger.java | 3485 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\triggers\Trigger.java | 12332 | 12 | 1 | 0 | 10 | 1 | 0
core\src\main\java\hudson\triggers\TriggerDescriptor.java | 2094 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\triggers\Triggers.java | 2228 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\AWTProblem.java | 1396 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\AbstractTaskListener.java | 456 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\AdaptedIterator.java | 2015 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\AdministrativeError.java | 1569 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\AlternativeUiTextProvider.java | 4292 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\Area.java | 2050 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ArgumentListBuilder.java | 14233 | 6 | 0 | 0 | 4 | 0 | 2
core\src\main\java\hudson\util\AtomicFileWriter.java | 4120 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ByteArrayOutputStream2.java | 979 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ByteBuffer.java | 3876 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\CaseInsensitiveComparator.java | 1717 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\CharSpool.java | 2518 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\CharacterEncodingFilter.java | 4118 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ChartUtil.java | 8694 | 14 | 0 | 1 | 9 | 3 | 1
core\src\main\java\hudson\util\ChunkedInputStream.java | 11459 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ChunkedOutputStream.java | 6865 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ClasspathBuilder.java | 1637 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ClockDifference.java | 3531 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ColorPalette.java | 2285 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\hudson\util\ComboBoxModel.java | 2361 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\CompoundEnumeration.java | 921 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\CompressedFile.java | 5539 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\ConcurrentHashMapConverter.java | 2763 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ConsistentHash.java | 10420 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\CopyOnWriteList.java | 6519 | 4 | 0 | 1 | 3 | 0 | 0
core\src\main\java\hudson\util\CopyOnWriteMap.java | 6908 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\CyclicGraphDetector.java | 2428 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\DaemonThreadFactory.java | 1785 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\DataSetBuilder.java | 2836 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\DecodingStream.java | 1800 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\DelegatingOutputStream.java | 2169 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\DescribableList.java | 9517 | 15 | 0 | 0 | 15 | 0 | 0
core\src\main\java\hudson\util\DescriptorList.java | 6955 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Digester2.java | 2167 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\DirScanner.java | 4754 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\util\DoubleLaunchChecker.java | 6506 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\DualOutputStream.java | 2098 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\EditDistance.java | 2999 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\EncodingStream.java | 1771 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\EnumConverter.java | 1510 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ErrorObject.java | 1784 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ExceptionCatchingThreadFactory.java | 2278 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\FileVisitor.java | 2620 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\FlushProofOutputStream.java | 412 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ForkOutputStream.java | 2134 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\FormApply.java | 3701 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\FormFieldValidator.java | 23896 | 5 | 0 | 0 | 4 | 0 | 1
core\src\main\java\hudson\util\FormValidation.java | 17568 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\util\Function1.java | 1336 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Futures.java | 2045 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Graph.java | 6979 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HeadBufferingStream.java | 2931 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HeapSpaceStringConverter.java | 2153 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HexBinaryConverter.java | 2130 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HttpResponses.java | 1666 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HudsonFailedToLoad.java | 1735 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HudsonIsLoading.java | 1972 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\HudsonIsRestarting.java | 1975 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\IOException2.java | 1683 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\IOUtils.java | 4807 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\IncompatibleAntVersionDetected.java | 1838 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\IncompatibleServletVersionDetected.java | 1857 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\IncompatibleVMDetected.java | 1596 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\InsufficientPermissionDetected.java | 1766 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\InterceptingProxy.java | 964 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\InvocationInterceptor.java | 2179 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Iterators.java | 11953 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\JNADoublyLoaded.java | 269 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\JVMBuilder.java | 4328 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\JenkinsReloadFailed.java | 294 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\KeyedDataStorage.java | 9547 | 13 | 0 | 0 | 13 | 0 | 0
core\src\main\java\hudson\util\LRUStringConverter.java | 1140 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\LineEndNormalizingWriter.java | 3388 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ListBoxModel.java | 5694 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\util\LogTaskListener.java | 3820 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\MaskingClassLoader.java | 2316 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Memoizer.java | 2393 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\MultipartFormDataParser.java | 2810 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\NoHomeDir.java | 1576 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\NoOverlapCategoryAxis.java | 7364 | 10 | 0 | 0 | 9 | 0 | 1
core\src\main\java\hudson\util\NoTempDir.java | 1836 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\NullStream.java | 1515 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\OneShotEvent.java | 2946 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\PackedMap.java | 5487 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\PersistedList.java | 7034 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\PluginServletFilter.java | 3905 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ProcessKiller.java | 3796 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ProcessTree.java | 46523 | 22 | 0 | 0 | 20 | 1 | 1
core\src\main\java\hudson\util\ProcessTreeKiller.java | 4074 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ProcessTreeRemoting.java | 897 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Protector.java | 3296 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\QueryParameterMap.java | 3203 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\util\QuotedStringTokenizer.java | 16875 | 4 | 0 | 0 | 2 | 0 | 2
core\src\main\java\hudson\util\ReflectionUtils.java | 6317 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\RemotingDiagnostics.java | 8678 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\util\RingBufferLogHandler.java | 2665 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\RobustCollectionConverter.java | 4145 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\util\RobustReflectionConverter.java | 20959 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\RunList.java | 8705 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\util\Scrambler.java | 2229 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Secret.java | 8786 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\SecretRewriter.java | 8059 | 8 | 0 | 0 | 8 | 0 | 0
core\src\main\java\hudson\util\SequentialExecutionQueue.java | 3991 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\Service.java | 4851 | 19 | 0 | 0 | 19 | 0 | 0
core\src\main\java\hudson\util\ShiftedCategoryAxis.java | 2633 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\StackedAreaRenderer2.java | 8080 | 1 | 0 | 0 | 0 | 0 | 1
core\src\main\java\hudson\util\StreamCopyThread.java | 2579 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\util\StreamResource.java | 1755 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\StreamTaskListener.java | 6527 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\StringConverter2.java | 1971 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\SubClassGenerator.java | 3603 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\util\TableNestChecker.java | 4262 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\TagCloud.java | 2701 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\TextFile.java | 2812 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\TimeUnit2.java | 16978 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\UnbufferedBase64InputStream.java | 1824 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\VariableResolver.java | 3428 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\WriterOutputStream.java | 4291 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\XStream2.java | 16078 | 2 | 0 | 1 | 1 | 0 | 0
core\src\main\java\hudson\util\io\Archiver.java | 1574 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\io\ArchiverFactory.java | 2692 | 6 | 0 | 0 | 3 | 3 | 0
core\src\main\java\hudson\util\io\ParserConfigurator.java | 3772 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\io\ReopenableFileOutputStream.java | 3017 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\io\ReopenableRotatingFileOutputStream.java | 2324 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\util\io\TarArchiver.java | 4624 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\util\io\ZipArchiver.java | 3337 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\jelly\MorphTagLibrary.java | 5557 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\Advapi32.java | 9206 | 10 | 0 | 0 | 10 | 0 | 0
core\src\main\java\hudson\util\jna\DotNet.java | 4340 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\jna\GNUCLibrary.java | 3895 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\InitializationErrorInvocationHandler.java | 1265 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\JnaException.java | 1622 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\Kernel32.java | 2209 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\Kernel32Utils.java | 3686 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\util\jna\Options.java | 1039 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\RegistryKey.java | 9110 | 2 | 0 | 1 | 0 | 0 | 1
core\src\main\java\hudson\util\jna\SHELLEXECUTEINFO.java | 2418 | 15 | 0 | 0 | 15 | 0 | 0
core\src\main\java\hudson\util\jna\Shell32.java | 1532 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\WINBASE.java | 1271 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\hudson\util\jna\WINERROR.java | 802 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\WINNT.java | 3331 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\jna\package-info.java | 1236 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\spring\BeanBuilder.java | 22737 | 18 | 1 | 0 | 17 | 0 | 0
core\src\main\java\hudson\util\spring\BeanConfiguration.java | 3707 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\spring\ClosureScript.java | 3085 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\spring\DefaultBeanConfiguration.java | 9764 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\spring\DefaultRuntimeSpringConfiguration.java | 8638 | 4 | 0 | 0 | 4 | 0 | 0
core\src\main\java\hudson\util\spring\RuntimeSpringConfiguration.java | 6960 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\ssh\SFTPClient.java | 3694 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\xstream\ImmutableListConverter.java | 3992 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\hudson\util\xstream\ImmutableMapConverter.java | 2692 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\xstream\ImmutableSetConverter.java | 1435 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\xstream\ImmutableSortedSetConverter.java | 1471 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\util\xstream\MapperDelegate.java | 5946 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\BuildButtonColumn.java | 1644 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\DefaultMyViewsTabBar.java | 1805 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\DefaultViewsTabBar.java | 1786 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\GlobalDefaultViewConfiguration.java | 2044 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\JobColumn.java | 1689 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\LastDurationColumn.java | 1647 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\LastFailureColumn.java | 1644 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\LastStableColumn.java | 1708 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\LastSuccessColumn.java | 1644 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\ListViewColumn.java | 6588 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\hudson\views\ListViewColumnDescriptor.java | 880 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\MyViewsTabBar.java | 3480 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\MyViewsTabBarDescriptor.java | 1503 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\StatusColumn.java | 1755 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\ViewJobFilter.java | 2636 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\ViewsTabBar.java | 3483 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\ViewsTabBarDescriptor.java | 1497 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\views\WeatherColumn.java | 1634 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\widgets\BuildHistoryWidget.java | 2526 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\hudson\widgets\HistoryWidget.java | 7100 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\hudson\widgets\RenderOnDemandClosure.java | 5938 | 2 | 0 | 0 | 2 | 0 | 0
core\src\main\java\hudson\widgets\Widget.java | 2281 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\AgentProtocol.java | 1552 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\ClassLoaderReflectionToolkit.java | 2533 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\ExtensionComponentSet.java | 4319 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\ExtensionFilter.java | 3557 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\ExtensionRefreshException.java | 1684 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\InitReactorRunner.java | 3804 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\PluginSubtypeMarker.java | 4633 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\ProxyInjector.java | 3815 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\RestartRequiredException.java | 1642 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\YesNoMaybe.java | 1763 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\CliLink.java | 1790 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\ConfigureLink.java | 1813 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\ConsoleLink.java | 1974 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\NodesLink.java | 1867 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\PluginsLink.java | 1810 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\ReloadLink.java | 1801 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\ShutdownLink.java | 2042 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\StatisticsLink.java | 1822 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\SystemInfoLink.java | 1818 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\management\SystemLogLink.java | 1809 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\AbstractTopLevelItem.java | 814 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\BuildDiscarder.java | 1167 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\BuildDiscarderDescriptor.java | 706 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\CauseOfInterruption.java | 3586 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\Configuration.java | 1805 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\CoreEnvironmentContributor.java | 2005 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\DefaultUserCanonicalIdResolver.java | 2496 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\DependencyDeclarer.java | 2595 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\FingerprintFacet.java | 3929 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalCloudConfiguration.java | 869 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalConfiguration.java | 2203 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalConfigurationCategory.java | 2928 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalNodePropertiesConfiguration.java | 1008 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalPluginConfiguration.java | 1116 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalProjectNamingStrategyConfiguration.java | 2658 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\GlobalQuietPeriodConfiguration.java | 2130 | 1 | 0 | 0 | 1 | 0 | 0
core\src\main\java\jenkins\model\GlobalSCMRetryCountConfiguration.java | 2017 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\InterruptedBuildAction.java | 1917 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\Jenkins.java | 138292 | 1 | 1 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\JenkinsLocationConfiguration.java | 3723 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\MasterBuildConfiguration.java | 2386 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\ModelObjectWithContextMenu.java | 7637 | 5 | 0 | 0 | 5 | 0 | 0
core\src\main\java\jenkins\model\ModifiableTopLevelItemGroup.java | 2835 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\ProjectNamingStrategy.java | 7259 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\TransientFingerprintFacetFactory.java | 2071 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\UnlabeledLoadStatistics.java | 2664 | 3 | 0 | 0 | 2 | 0 | 1
core\src\main\java\jenkins\model\lazy\AbstractLazyLoadRunMap.java | 27234 | 9 | 0 | 0 | 9 | 0 | 0
core\src\main\java\jenkins\model\lazy\Boundary.java | 2284 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\lazy\BuildReference.java | 1058 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\model\lazy\BuildReferenceMapAdapter.java | 10017 | 6 | 0 | 0 | 2 | 0 | 4
core\src\main\java\jenkins\model\lazy\SortedIntList.java | 4803 | 1 | 0 | 1 | 0 | 0 | 0
core\src\main\java\jenkins\model\lazy\SortedList.java | 3661 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\DefaultGlobalSettingsProvider.java | 872 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\DefaultSettingsProvider.java | 842 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\FilePathGlobalSettingsProvider.java | 2241 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\FilePathSettingsProvider.java | 2174 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\GlobalSettingsProvider.java | 2924 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\GlobalSettingsProviderDescriptor.java | 743 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\SettingsProvider.java | 2725 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\mvn\SettingsProviderDescriptor.java | 666 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\scm\DefaultSCMCheckoutStrategyImpl.java | 664 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\scm\SCMCheckoutStrategy.java | 3944 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\scm\SCMCheckoutStrategyDescriptor.java | 1541 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\ApiTokenFilter.java | 2617 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\ApiTokenProperty.java | 5141 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\ConfidentialKey.java | 2015 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\ConfidentialStore.java | 3538 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\CryptoConfidentialKey.java | 2253 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\DefaultConfidentialStore.java | 4969 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\HMACConfidentialKey.java | 4700 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\HexStringConfidentialKey.java | 1899 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\security\RekeySecretAdminMonitor.java | 6669 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\slaves\JnlpSlaveAgentProtocol.java | 5656 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\slaves\JnlpSlaveAgentProtocol2.java | 4464 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\slaves\StandardOutputSwapper.java | 2499 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\jenkins\util\JSONSignatureValidator.java | 7278 | 7 | 0 | 0 | 7 | 0 | 0
core\src\main\java\jenkins\util\MarkFindingOutputStream.java | 3689 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\NonLocalizable.java | 745 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\ProgressiveRendering.java | 8491 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\ServerTcpPort.java | 824 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\TimeDuration.java | 1602 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\TreeString.java | 7168 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\TreeStringBuilder.java | 4786 | 3 | 0 | 0 | 3 | 0 | 0
core\src\main\java\jenkins\util\io\FileBoolean.java | 1575 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\io\OnMaster.java | 453 | 0 | 0 | 0 | 0 | 0 | 0
core\src\main\java\jenkins\util\xstream\XStreamDOM.java | 17812 | 2 | 0 | 0 | 1 | 1 | 0
core\src\main\java\org\acegisecurity\providers\ldap\authenticator\BindAuthenticator2.java | 2473 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\BulkChangeTest.java | 3392 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\ChannelTestCase.java | 5594 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\EnvVarsTest.java | 1628 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\FilePathTest.java | 23244 | 12 | 0 | 0 | 12 | 0 | 0
core\src\test\java\hudson\FunctionsTest.java | 5290 | 4 | 0 | 0 | 4 | 0 | 0
core\src\test\java\hudson\LauncherTest.java | 4459 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\MarkupTextTest.java | 4692 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\PluginManagerTest.java | 1675 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\ProxyConfigurationTest.java | 2223 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\UtilTest.java | 11923 | 1 | 0 | 0 | 1 | 0 | 0
core\src\test\java\hudson\console\UrlAnnotatorTest.java | 3014 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\markup\MyspacePolicyTest.java | 3572 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\matrix\CombinationTest.java | 2356 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\AbstractItemTest.java | 2693 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\AutoCompleteSeederTest.java | 3165 | 1 | 0 | 1 | 0 | 0 | 0
core\src\test\java\hudson\model\BallColorTest.java | 248 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\BuildStatusSummaryTest.java | 10841 | 4 | 0 | 0 | 0 | 0 | 4
core\src\test\java\hudson\model\ComputerTest.java | 838 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\DisplayNameListenerTest.java | 3056 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\FingerprintTest.java | 3407 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\ItemsTest.java | 2445 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\JobTest.java | 971 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\LoadStatisticsTest.java | 2601 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\ResourceListTest.java | 11282 | 1 | 0 | 0 | 0 | 0 | 1
core\src\test\java\hudson\model\RunTest.java | 3064 | 1 | 0 | 0 | 0 | 0 | 1
core\src\test\java\hudson\model\StubJob.java | 2104 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\TaskActionTest.java | 1944 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\TimeSeriesTest.java | 1782 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\model\UpdateCenterTest.java | 3332 | 3 | 0 | 0 | 3 | 0 | 0
core\src\test\java\hudson\model\ViewTest.java | 2607 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\os\DCOMSandbox.java | 2810 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\os\SUTester.java | 581 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\scheduler\CronTabDayOfWeekLocaleTest.java | 13732 | 9 | 0 | 0 | 1 | 0 | 8
core\src\test\java\hudson\scheduler\CronTabEventualityTest.java | 5125 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\scheduler\CronTabTest.java | 8017 | 1 | 0 | 0 | 0 | 0 | 1
core\src\test\java\hudson\search\SearchTest.java | 3807 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\slaves\ComputerLauncherTest.java | 3583 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\slaves\NodeListTest.java | 4499 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\tasks\_maven\Maven3MojoNoteTest.java | 1442 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\tasks\junit\CaseResultTest.java | 2177 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\tasks\junit\SuiteResultTest.java | 10394 | 1 | 0 | 0 | 0 | 0 | 1
core\src\test\java\hudson\tasks\junit\TestResultTest.java | 6376 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\tasks\test\TestObjectTest.java | 1629 | 11 | 0 | 0 | 11 | 0 | 0
core\src\test\java\hudson\util\ArgumentListBuilderTest.java | 8027 | 2 | 0 | 0 | 0 | 0 | 2
core\src\test\java\hudson\util\ConsistentHashTest.java | 4088 | 1 | 0 | 0 | 1 | 0 | 0
core\src\test\java\hudson\util\CopyOnWriteListTest.java | 2701 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\CopyOnWriteMapTest.java | 4929 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\CyclicGraphDetectorTest.java | 2339 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\DirScannerTest.java | 3613 | 2 | 0 | 0 | 1 | 0 | 1
core\src\test\java\hudson\util\FormValidationTest.java | 2033 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\IteratorsTest.java | 2981 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\LineEndNormalizingWriterTest.java | 2170 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\MockSecretRule.java | 800 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\PackedMapTest.java | 1425 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\Point.java | 1272 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\ProcessTreeTest.java | 1649 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\QuotedStringTokenizerTest.java | 2308 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\RobustReflectionConverterTest.java | 4959 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\SubClassGeneratorTest.java | 1973 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\XStream2Test.java | 12185 | 1 | 1 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\io\ReopenableRotatingFileOutputStreamTest.java | 1161 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\io\TarArchiverTest.java | 3734 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\hudson\util\io\ZipArchiverTest.java | 3492 | 2 | 0 | 0 | 2 | 0 | 0
core\src\test\java\jenkins\RemotingJarSignatureTest.java | 1783 | 2 | 0 | 0 | 2 | 0 | 0
core\src\test\java\jenkins\ResilientJsonObjectTest.java | 569 | 1 | 0 | 0 | 1 | 0 | 0
core\src\test\java\jenkins\model\JenkinsGetRootUrlTest.java | 4304 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\jenkins\model\lazy\AbstractLazyLoadRunMapTest.java | 7621 | 7 | 0 | 0 | 6 | 0 | 1
core\src\test\java\jenkins\model\lazy\FakeMap.java | 2558 | 2 | 0 | 2 | 0 | 0 | 0
core\src\test\java\jenkins\model\lazy\FakeMapBuilder.java | 4048 | 1 | 0 | 0 | 1 | 0 | 0
core\src\test\java\jenkins\model\lazy\SortedIntListTest.java | 330 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\jenkins\model\lazy\SortedListTest.java | 3804 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\jenkins\security\ConfidentialStoreRule.java | 878 | 2 | 0 | 0 | 2 | 0 | 0
core\src\test\java\jenkins\util\MarkFindingOutputStreamTest.java | 2447 | 0 | 0 | 0 | 0 | 0 | 0
core\src\test\java\jenkins\util\TreeStringBuilderTest.java | 2027 | 3 | 0 | 0 | 3 | 0 | 0
core\src\test\java\jenkins\util\xstream\XStreamDOMTest.java | 7048 | 3 | 0 | 0 | 3 | 0 | 0
maven-plugin\src\main\java\hudson\maven\AbstractMavenBuild.java | 4001 | 2 | 0 | 0 | 1 | 1 | 0
maven-plugin\src\main\java\hudson\maven\AbstractMavenBuilder.java | 10047 | 7 | 0 | 0 | 7 | 0 | 0
maven-plugin\src\main\java\hudson\maven\AbstractMavenProcessFactory.java | 16732 | 10 | 0 | 0 | 7 | 3 | 0
maven-plugin\src\main\java\hudson\maven\AbstractMavenProject.java | 8085 | 3 | 0 | 0 | 3 | 0 | 0
maven-plugin\src\main\java\hudson\maven\AggregatableAction.java | 2166 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\EmbedderLoggerImpl.java | 3018 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\ExecutedMojo.java | 8289 | 2 | 0 | 1 | 1 | 0 | 0
maven-plugin\src\main\java\hudson\maven\FilteredChangeLogSet.java | 2264 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\Maven2Builder.java | 8176 | 3 | 0 | 0 | 3 | 0 | 0
maven-plugin\src\main\java\hudson\maven\Maven3Builder.java | 24699 | 26 | 0 | 0 | 25 | 1 | 0
maven-plugin\src\main\java\hudson\maven\Maven3ProcessFactory.java | 5047 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenAggregatedReport.java | 3143 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenArgumentInterceptorAction.java | 3309 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenBuild.java | 30347 | 11 | 0 | 0 | 8 | 1 | 2
maven-plugin\src\main\java\hudson\maven\MavenBuildInformation.java | 2017 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenBuildProxy.java | 9438 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenBuildProxy2.java | 3028 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenBuilder.java | 16151 | 2 | 0 | 0 | 1 | 1 | 0
maven-plugin\src\main\java\hudson\maven\MavenComputerListener.java | 3992 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenEmbedderRequest.java | 6647 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenModule.java | 24224 | 17 | 0 | 1 | 16 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenModuleSet.java | 43695 | 10 | 0 | 1 | 9 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenModuleSetBuild.java | 60926 | 37 | 0 | 0 | 36 | 1 | 0
maven-plugin\src\main\java\hudson\maven\MavenProbeAction.java | 4174 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenProcessFactory.java | 6163 | 6 | 0 | 0 | 3 | 3 | 0
maven-plugin\src\main\java\hudson\maven\MavenProjectActionBuilder.java | 2168 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenReportInfo.java | 2431 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenReporter.java | 12162 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenReporterDescriptor.java | 4148 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenReporters.java | 2183 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenTestDataPublisher.java | 4084 | 1 | 0 | 0 | 1 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MavenUtil.java | 15963 | 6 | 0 | 0 | 5 | 1 | 0
maven-plugin\src\main\java\hudson\maven\MavenVersionCallable.java | 2374 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\ModuleDependency.java | 9284 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\ModuleName.java | 4297 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\MojoInfo.java | 13713 | 21 | 0 | 0 | 21 | 0 | 0
maven-plugin\src\main\java\hudson\maven\NeedsFullBuildAction.java | 467 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\PluginImpl.java | 2285 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\PluginName.java | 2715 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\PomInfo.java | 8291 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\ProcessCache.java | 10011 | 5 | 0 | 1 | 3 | 1 | 0
maven-plugin\src\main\java\hudson\maven\RedeployPublisher.java | 20917 | 4 | 0 | 0 | 4 | 0 | 0
maven-plugin\src\main\java\hudson\maven\SplittableBuildListener.java | 8184 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\TransferListenerImpl.java | 3023 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\UnbuiltModuleAction.java | 1142 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\local_repo\DefaultLocalRepositoryLocator.java | 773 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\local_repo\LocalRepositoryLocator.java | 1017 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\local_repo\LocalRepositoryLocatorDescriptor.java | 253 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\local_repo\PerExecutorLocalRepositoryLocator.java | 810 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\local_repo\PerJobLocalRepositoryLocator.java | 763 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\AbstractMavenJavadocArchiver.java | 6427 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\BuildInfoRecorder.java | 4634 | 1 | 0 | 0 | 1 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenAbstractArtifactRecord.java | 10222 | 1 | 1 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenAggregatedArtifactRecord.java | 3863 | 1 | 0 | 0 | 1 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenArtifact.java | 13497 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenArtifactArchiver.java | 8359 | 2 | 0 | 0 | 2 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenArtifactRecord.java | 9569 | 1 | 0 | 0 | 1 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenFingerprinter.java | 11056 | 6 | 0 | 0 | 6 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenJavadocArchiver.java | 2883 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenMailer.java | 3174 | 4 | 0 | 0 | 4 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenSiteArchiver.java | 7068 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\MavenTestJavadocArchiver.java | 2935 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\ReportAction.java | 2385 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\ReportCollector.java | 4407 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\SurefireAggregatedReport.java | 3473 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\SurefireArchiver.java | 14618 | 6 | 0 | 0 | 6 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\SurefireReport.java | 2091 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\TestFailureDetector.java | 539 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\reporters\TestMojo.java | 8457 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\main\java\hudson\maven\util\ExecutionEventLogger.java | 10659 | 4 | 0 | 0 | 4 | 0 | 0
maven-plugin\src\test\java\hudson\maven\ExecutedMojoTest.java | 2612 | 1 | 0 | 0 | 0 | 0 | 1
maven-plugin\src\test\java\hudson\maven\MavenModuleTest.java | 16132 | 9 | 0 | 0 | 7 | 0 | 2
maven-plugin\src\test\java\hudson\maven\MojoInfoBuilder.java | 3044 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\test\java\hudson\maven\reporters\SurefireArchiverDetectTestMojosTest.java | 7275 | 9 | 0 | 0 | 0 | 0 | 9
maven-plugin\src\test\java\hudson\maven\reporters\SurefireArchiverFilterReportsFileTest.java | 3264 | 4 | 0 | 0 | 3 | 0 | 1
maven-plugin\src\test\java\hudson\maven\reporters\SurefireArchiverUnitTest.java | 11082 | 2 | 0 | 0 | 0 | 0 | 2
maven-plugin\src\test\java\hudson\maven\reporters\TestMojoTest.java | 2961 | 0 | 0 | 0 | 0 | 0 | 0
maven-plugin\src\test\java\hudson\model\MockHelper.java | 399 | 0 | 0 | 0 | 0 | 0 | 0
msi\FindJava.java | 124 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\hudson\util\SecretHelper.java | 161 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\jenkins\model\JenkinsAdaptor.java | 233 | 1 | 0 | 1 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\CaptureEnvironmentBuilder.java | 2309 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ClosureExecuterAction.java | 2332 | 1 | 1 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ComputerConnectorTester.java | 2470 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\DefaultConstructorChecker.java | 772 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ExtractChangeLogParser.java | 5161 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ExtractChangeLogSet.java | 2117 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ExtractResourceSCM.java | 2942 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ExtractResourceWithChangesSCM.java | 5215 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\FailureBuilder.java | 1931 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\FakeChangeLogSCM.java | 4392 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\FakeLauncher.java | 1867 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\GroovyHudsonTestCase.java | 1544 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\HudsonHomeLoader.java | 5085 | 3 | 0 | 0 | 3 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\HudsonPageCreator.java | 2125 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\HudsonTestCase.java | 82179 | 72 | 1 | 0 | 69 | 1 | 1
test\src\main\java\org\jvnet\hudson\test\JavaNetReverseProxy.java | 3497 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\JellyTestSuiteBuilder.java | 6133 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\JenkinsComputerConnectorTester.java | 2514 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\JenkinsMatchers.java | 12979 | 4 | 0 | 0 | 3 | 0 | 1
test\src\main\java\org\jvnet\hudson\test\JenkinsRecipe.java | 1782 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\JenkinsRule.java | 84599 | 77 | 1 | 0 | 75 | 1 | 0
test\src\main\java\org\jvnet\hudson\test\LenientRunnable.java | 1374 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\MemoryAssert.java | 6485 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\MockBuilder.java | 1328 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\MockFolder.java | 5784 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\NoListenerConfiguration.java | 2157 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\PluginAutomaticTestBuilder.java | 3118 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\PretendSlave.java | 2017 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\SequenceLock.java | 3394 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\SingleFileSCM.java | 2951 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\SleepBuilder.java | 2117 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TemporaryDirectoryAllocator.java | 3755 | 3 | 0 | 0 | 3 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TestBuilder.java | 2491 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TestCrumbIssuer.java | 1442 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TestEnvironment.java | 3603 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TestExtension.java | 2660 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TestExtensionLoader.java | 3106 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TestPluginManager.java | 4742 | 4 | 0 | 0 | 4 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\ThreadPoolImpl.java | 1106 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\TouchBuilder.java | 1828 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\UnstableBuilder.java | 1944 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\WarExploder.java | 4430 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\WithoutJenkins.java | 923 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\junit\FailedTest.java | 1914 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\junit\GroupedTest.java | 2389 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\package-info.java | 1303 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes\LocalData.java | 3870 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes\PresetData.java | 2851 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes\Recipe.java | 2974 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes\WithPlugin.java | 3555 | 1 | 0 | 0 | 0 | 0 | 1
test\src\main\java\org\jvnet\hudson\test\recipes\WithPluginManager.java | 3646 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes\WithTimeout.java | 2691 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\recipes\package-info.java | 1294 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\rhino\CallStackFrame.java | 3826 | 1 | 0 | 0 | 1 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\rhino\JavaScriptDebugger.java | 3524 | 0 | 0 | 0 | 0 | 0 | 0
test\src\main\java\org\jvnet\hudson\test\rhino\package-info.java | 1277 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\CoreJellyTest.java | 1584 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\ClassicPluginStrategyTest.java | 3033 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\ExceptionTest.java | 672 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\ExtensionFinderTest.java | 3877 | 2 | 0 | 0 | 1 | 1 | 0
test\src\test\java\hudson\ExtensionListTest.java | 5726 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\FileSystemProvisionerTest.java | 885 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\HtmlEscapeTest.java | 832 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\PluginManagerTest.java | 9475 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\PluginManagerTest2.java | 2444 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\ProcTest.java | 3966 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\UDPBroadcastThreadTest.java | 2613 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\bugs\DateConversionTest.java | 2530 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\bugs\JnlpAccessWithSecuredHudsonTest.java | 5575 | 3 | 0 | 0 | 3 | 0 | 0
test\src\test\java\hudson\bugs\LoginRedirectTest.java | 2778 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\bugs\seasar\Operation2174Test.java | 2686 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\bugs\seasar\package-info.java | 1266 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\cli\CopyJobCommandTest.java | 2459 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\console\ConsoleAnnotatorTest.java | 13391 | 4 | 1 | 0 | 0 | 0 | 3
test\src\test\java\hudson\console\ExceptionAnnotationTest.java | 1132 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\console\UrlAnnotatorTest.java | 1989 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\diagnosis\HudsonHomeDiskUsageMonitorTest.java | 1324 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\diagnosis\TooManyJobsButNoViewTest.java | 2002 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\logging\LogRecorderManagerTest.java | 2156 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\markup\MarkupFormatterTest.java | 2555 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\matrix\MatrixConfigurationSorterTest.java | 1480 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\matrix\MatrixProjectDependencyTest.java | 1301 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\matrix\MatrixTest.java | 3439 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\AbortedMavenBuildTest.java | 1343 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\Maven3BuildTest.java | 11326 | 12 | 0 | 0 | 0 | 0 | 12
test\src\test\java\hudson\maven\MavenArgumentInterceptorTest.java | 5422 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\maven\MavenBuildSurefireFailedTest.java | 3014 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\maven\MavenBuildTest.java | 6483 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\maven\MavenEmptyModuleTest.java | 1159 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\MavenJellyTest.java | 1587 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\MavenModuleSetTest.java | 784 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\MavenMultiModuleTest.java | 22751 | 15 | 0 | 0 | 8 | 0 | 7
test\src\test\java\hudson\maven\MavenMultiModuleTestIncremental.java | 2868 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\maven\MavenOptsTest.java | 4658 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\MavenProjectTest.java | 7290 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\maven\MavenSnapshotTriggerTest.java | 3272 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\ModuleDependencyLocator.java | 3205 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\RedeployPublisherTest.java | 10944 | 10 | 0 | 0 | 6 | 0 | 4
test\src\test\java\hudson\maven\reporters\MavenMailerTest.java | 3335 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\reporters\MavenSiteArchiverTest.java | 434 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\maven\reporters\SurefireArchiverTest.java | 2449 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\model\AbortedFreeStyleBuildTest.java | 1866 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\AbstractProjectTest.java | 11921 | 3 | 0 | 0 | 1 | 0 | 2
test\src\test\java\hudson\model\ApiTest.java | 3997 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\AutoCompletionCandidatesTest.java | 2180 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\CauseTest.java | 3645 | 6 | 0 | 0 | 6 | 0 | 0
test\src\test\java\hudson\model\ComputerSetTest.java | 2448 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\DependencyGraphTest.java | 5923 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\DescriptorTest.java | 2167 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\DirectoryBrowserSupportTest.java | 5488 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\DisplayNameTest.java | 3744 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\model\DownloadServiceTest.java | 1866 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\ExecutorTest.java | 3920 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\FreeStyleProjectTest.java | 5915 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\model\GetEnvironmentOutsideBuildTest.java | 3375 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\HelpLinkTest.java | 2992 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\HudsonTest.java | 7839 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\JobPropertyTest.java | 5360 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\model\JobQueueTest.java | 3771 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\model\JobTest.java | 10474 | 5 | 0 | 0 | 4 | 1 | 0
test\src\test\java\hudson\model\ManagementLinkTest.java | 1964 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\ParametersTest.java | 8087 | 4 | 0 | 0 | 0 | 0 | 4
test\src\test\java\hudson\model\QueueTest.java | 12791 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\model\RunParameterDefinitionTest.java | 3120 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\RunTest.java | 2908 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\SimpleJobTest.java | 5101 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\UpdateSiteTest.java | 3169 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\UsageStatisticsTest.java | 4276 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\UserPropertyTest.java | 1432 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\UserTest.java | 5435 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\ViewPropertyTest.java | 3912 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\ViewTest.java | 5672 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\labels\LabelAtomPropertyTest.java | 2591 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\labels\LabelExpressionTest.java | 8877 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\model\listeners\ItemListenerTest.java | 2802 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\queue\LoadPredictorTest.java | 5239 | 2 | 0 | 0 | 1 | 0 | 1
test\src\test\java\hudson\model\queue\QueueTaskDispatcherTest.java | 1247 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\model\queue\WideExecutionTest.java | 3409 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\node_monitors\DiskSpaceMonitorDescriptorTest.java | 1312 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\pages\SystemConfigurationTestCase.java | 3083 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\scm\ScmTest.java | 3413 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\search\SearchTest.java | 9834 | 5 | 0 | 0 | 4 | 0 | 1
test\src\test\java\hudson\security\CliAuthenticationTest.java | 2496 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\security\ExtendedReadPermissionTest.java | 3557 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\security\HudsonPrivateSecurityRealmTest.java | 1817 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\security\LoginTest.java | 1448 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\security\PermissionGroupTest.java | 1676 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\security\csrf\DefaultCrumbIssuerTest.java | 5398 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\slaves\ComputerConnectorTest.java | 1496 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\slaves\DummyCloudImpl.java | 4223 | 3 | 0 | 0 | 3 | 0 | 0
test\src\test\java\hudson\slaves\EnvironmentVariableNodePropertyTest.java | 5647 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\slaves\JNLPLauncherTest.java | 6262 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\slaves\NodeCanTakeTaskTest.java | 3362 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\slaves\NodePropertyTest.java | 2691 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\slaves\NodeProvisionerTest.java | 9085 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\hudson\tasks\ArtifactArchiverTest.java | 8522 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\tasks\BuildTriggerTest.java | 5565 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\EnvVarsInConfigTasksTest.java | 7943 | 6 | 0 | 0 | 0 | 0 | 6
test\src\test\java\hudson\tasks\FingerprinterTest.java | 12078 | 7 | 0 | 0 | 5 | 0 | 2
test\src\test\java\hudson\tasks\LogRotatorTest.java | 7741 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\tasks\MavenTest.java | 8528 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\tasks\ShellTest.java | 1823 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\UserAvatarResolverTest.java | 2658 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\junit\CaseResultTest.java | 11913 | 3 | 0 | 0 | 0 | 0 | 3
test\src\test\java\hudson\tasks\junit\HistoryTest.java | 4800 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\junit\JUnitParserTest.java | 5876 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\junit\JUnitResultArchiverTest.java | 5476 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\junit\SuiteResultTest.java | 4618 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\junit\TestResultLinksTest.java | 5361 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\tasks\junit\TestResultPublishingTest.java | 17460 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\tasks\test\TestResultExtensionTest.java | 3204 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\test\TrivialTestResult.java | 1792 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\test\TrivialTestResultAction.java | 2857 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tasks\test\TrivialTestResultRecorder.java | 3275 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tools\JDKInstallerTest.java | 7121 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\tools\ToolLocationNodePropertyTest.java | 8454 | 1 | 0 | 0 | 0 | 0 | 1
test\src\test\java\hudson\tools\ToolLocationTest.java | 1518 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\triggers\SCMTriggerTest.java | 5692 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\triggers\TriggerStartTest.java | 5120 | 2 | 0 | 0 | 2 | 0 | 0
test\src\test\java\hudson\util\AlternativeUiTextProviderTest.java | 2088 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\util\ArgumentListBuilder2Test.java | 2153 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\util\FormFieldValidatorTest.java | 3246 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\util\ProcessTreeKillerTest.java | 1218 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\hudson\views\ListViewColumnTest.java | 391 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\ExtensionFilterTest.java | 878 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\model\JenkinsLocationConfigurationTest.java | 725 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\model\JenkinsTest.java | 9608 | 4 | 0 | 0 | 0 | 0 | 4
test\src\test\java\jenkins\scm\SCMCheckoutStrategyTest.java | 2568 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\security\ApiTokenPropertyTest.java | 3701 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\jenkins\security\RekeySecretAdminMonitorTest.java | 5241 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\lib\form\AdvancedButtonTest.java | 1089 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\form\ComboBoxTest.java | 4932 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\form\DropdownListTest.java | 746 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\form\EnumSetTest.java | 1162 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\form\ExpandableTextboxTest.java | 2943 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\form\NameRefTest.java | 2023 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\form\PasswordTest.java | 2275 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\lib\form\RepeatablePropertyTest.java | 6238 | 4 | 0 | 0 | 4 | 0 | 0
test\src\test\java\lib\form\RepeatableTest.java | 17880 | 12 | 0 | 0 | 12 | 0 | 0
test\src\test\java\lib\form\RowVisibilityGroupTest.java | 5968 | 4 | 0 | 0 | 4 | 0 | 0
test\src\test\java\lib\form\ValidateButtonTest.java | 2888 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\hudson\ActionsTest.java | 1656 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\lib\hudson\ListScmBrowsersTest.java | 1300 | 3 | 0 | 0 | 3 | 0 | 0
test\src\test\java\lib\layout\RenderOnDemandTest.java | 3751 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\org\jvnet\hudson\main\AppTest.java | 2380 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\org\jvnet\hudson\test\MemoryAssertTest.java | 1851 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\org\jvnet\hudson\test\MockFolderTest.java | 1607 | 1 | 0 | 0 | 1 | 0 | 0
test\src\test\java\scripts\BehaviorTest.java | 3285 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\java\scripts\package-info.java | 54 | 0 | 0 | 0 | 0 | 0 | 0
test\src\test\junit4\org\jvnet\hudson\main\UseRecipesWithJenkinsRuleTest.java | 2129 | 1 | 0 | 0 | 1 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\AutoCompleteTextBox.java | 3532 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\CopyButton.java | 598 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\DropdownList.java | 3093 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\DynamicComboBox.java | 2105 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\DynamicDropDownListBox.java | 1628 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\FormFieldValidationWithContext.java | 4221 | 4 | 0 | 0 | 4 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\InpageNavigationWithBreadcrumb.java | 668 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\JavaScriptProxy.java | 790 | 1 | 0 | 0 | 1 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\ModularizeViewScript.java | 709 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\NavigationContextMenu.java | 1503 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\NotificationBar.java | 624 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\ProgressBar.java | 769 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\ProgressivelyRendered.java | 2972 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\Root.java | 1053 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\SyntaxHighlightedTextArea.java | 730 | 0 | 0 | 0 | 0 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\UISample.java | 2956 | 1 | 0 | 0 | 1 | 0 | 0
ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\UISampleDescriptor.java | 276 | 0 | 0 | 0 | 0 | 0 | 0

#### File cli\src\main\java\hudson\cli\CLI.java 14 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CLI

Module / class or interface : hudson.cli.CLI

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CLI | CLI(URL) | 1 | 1
CLI | CLI(URL;ExecutorService) | 1 | 1
CLI | CLI(URL;ExecutorService;String) | 1 | 1
CLI | CLI(CLIConnectionFactory) | 3 | 14
Channel | connectViaHttp(String) | 1 | 9
Channel | connectViaCliPort(URL;CliPort) | 7 | 25
CliPort | getCliTcpPort(String) | 7 | 15
void | flushURLConnection(URLConnection) | 1 | 3
void | close() | 3 | 4
int | execute(List<String>;InputStream;OutputStream;OutputStream) | 1 | 1
int | execute(List<String>) | 1 | 1
int | execute(String) | 1 | 1
boolean | hasCommand(String) | 1 | 1
Channel | getChannel() | 1 | 1
void | upgrade() | 2 | 2
void | main(String[]) | 1 | 1
int | _main(String[]) | 12 | 19
String | computeVersion() | 2 | 5
KeyPair | loadKey(File;String) | 1 | 1
KeyPair | loadKey(File) | 1 | 1
String | readPemFile(File) | 1 | 5
KeyPair | loadKey(String;String) | 3 | 7
KeyPair | loadKey(String) | 1 | 1
KeyPair | tryEncryptedFile(File) | 2 | 4
boolean | isPemEncrypted(File) | 1 | 2
String | askForPasswd(String) | 2 | 4
void | addDefaultPrivateKeyLocations(List<KeyPair>) | 3 | 2
PublicKey | authenticate(Iterable<KeyPair>) | 4 | 9
PublicKey | authenticate(KeyPair) | 1 | 1
void | printUsage(String) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 11

Line start | Criticity class | Rule
--- | --- | ---
00120 | CRITICAL | QC-JAVCWE476[00120] The argument factory is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00142 | MAJOR | QC-JAVCWE390[00142] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00314 | MAJOR | QC-JAVCWE390[00314] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00399 | MAJOR | QC-JAV000001[00399] Avoid declaring class instance within loop, performance impact
00411 | MAJOR | QC-JAV000001[00411] Avoid declaring class instance within loop, performance impact
00416 | MAJOR | QC-JAV000001[00416] Avoid declaring class instance within loop, performance impact
00416 | MAJOR | QC-JAV000001[00416] Avoid declaring class instance within loop, performance impact
00424 | MAJOR | QC-JAV000001[00424] Avoid declaring class instance within loop, performance impact
00429 | MAJOR | QC-JAV000001[00429] Avoid declaring class instance within loop, performance impact
00432 | MAJOR | QC-JAV000001[00432] Avoid declaring class instance within loop, performance impact
00435 | MAJOR | QC-JAV000001[00435] Avoid declaring class instance within loop, performance impact
00601 | MAJOR | QC-JAV000001[00601] Avoid declaring class instance within loop, performance impact
00605 | MAJOR | QC-JAV000001[00605] Avoid declaring class instance within loop, performance impact
00608 | MAJOR | QC-JAV000001[00608] Avoid declaring class instance within loop, performance impact

#### File cli\src\main\java\hudson\cli\CLIConnectionFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CLIConnectionFactory

Module / class or interface : hudson.cli.CLIConnectionFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CLIConnectionFactory | url(URL) | 1 | 2
CLIConnectionFactory | url(String) | 1 | 1
CLIConnectionFactory | executorService(ExecutorService) | 1 | 2
CLIConnectionFactory | httpsProxyTunnel(String) | 1 | 2
CLIConnectionFactory | authorization(String) | 1 | 2
CLIConnectionFactory | basicAuth(String;String) | 1 | 1
CLIConnectionFactory | basicAuth(String) | 1 | 1
CLI | connect() | 1 | 1

#### File cli\src\main\java\hudson\cli\CliEntryPoint.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.CliEntryPoint

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | main(List<String>;Locale;InputStream;OutputStream;OutputStream) | 1 | 1
boolean | hasCommand(String) | 1 | 1
int | protocolVersion() | 1 | 1
void | authenticate(String;Pipe;Pipe) | 1 | 1

#### File cli\src\main\java\hudson\cli\CliPort.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CliPort

Module / class or interface : hudson.cli.CliPort

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CliPort | CliPort(InetSocketAddress;String;int) | 1 | 3
PublicKey | getIdentity() | 2 | 3

#### File cli\src\main\java\hudson\cli\Connection.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.Connection

Module / class or interface : hudson.cli.Connection

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Connection | Connection(Socket) | 1 | 1
Connection | Connection(InputStream;OutputStream) | 1 | 4
void | writeUTF(String) | 1 | 1
String | readUTF() | 1 | 1
void | writeBoolean(boolean) | 1 | 1
boolean | readBoolean() | 1 | 1
void | writeObject(Object) | 1 | 2
void | writeKey(Key) | 1 | 1
X509EncodedKeySpec | readKey() | 1 | 2
void | writeByteArray(byte[]) | 1 | 2
byte[] | readByteArray() | 1 | 3
KeyAgreement | diffieHellman(boolean) | 1 | 1
KeyAgreement | diffieHellman(boolean;int) | 3 | 18
Connection | encryptConnection(SecretKey;String) | 1 | 7
byte[] | fold(byte[];int) | 2 | 5
String | detectKeyAlgorithm(KeyPair) | 1 | 1
String | detectKeyAlgorithm(PublicKey) | 3 | 3
void | proveIdentity(byte[];KeyPair) | 1 | 8
PublicKey | verifyIdentity(byte[]) | 1 | 9
void | close() | 1 | 2

#### File cli\src\main\java\hudson\cli\FullDuplexHttpStream.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.FullDuplexHttpStream

Module / class or interface : hudson.cli.FullDuplexHttpStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
InputStream | getInputStream() | 1 | 1
OutputStream | getOutputStream() | 1 | 1
FullDuplexHttpStream | FullDuplexHttpStream(URL) | 1 | 1
String | basicAuth(String) | 2 | 2
FullDuplexHttpStream | FullDuplexHttpStream(URL;String) | 6 | 24

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00148 | MAJOR | QC-JAVCWE481[00148] Assigning instead of comparing on nextLine=reader.readLine() (see http://cwe.mitre.org/data/definitions/481.html)

#### File cli\src\main\java\hudson\cli\NoCheckTrustManager.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.NoCheckTrustManager

Module / class or interface : hudson.cli.NoCheckTrustManager

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | checkClientTrusted(X509Certificate[];String) | 1 | 0
void | checkServerTrusted(X509Certificate[];String) | 1 | 0
X509Certificate[] | getAcceptedIssuers() | 1 | 1

#### File cli\src\main\java\hudson\cli\SequenceOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.cli.SequenceOutputStream

Module / class or interface : hudson.cli.SequenceOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SequenceOutputStream | SequenceOutputStream(Block) | 1 | 1
void | write(byte[];int;int) | 1 | 6
void | write(int) | 1 | 3
void | swapIfNeeded() | 2 | 3
void | flush() | 1 | 1
void | close() | 1 | 2
Block | next(Block) | 1 | 1

#### File cli\src\test\java\hudson\cli\ConnectionTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Assert | hudson.cli.ConnectionTest

Module / class or interface : hudson.cli.ConnectionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 4
void | testEncyrpt() | 3 | 11

#### File core\src\main\java\hudson\AbortException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
IOException | hudson.AbortException

Module / class or interface : hudson.AbortException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbortException | AbortException() | 1 | 0
AbortException | AbortException(String) | 1 | 1

#### File core\src\main\java\hudson\AboutJenkins.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | hudson.AboutJenkins

Module / class or interface : hudson.AboutJenkins

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1

#### File core\src\main\java\hudson\AbstractMarkupText.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.AbstractMarkupText

Module / class or interface : hudson.AbstractMarkupText

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractMarkupText | AbstractMarkupText() | 1 | 0
String | getText() | 1 | 1
char | charAt(int) | 1 | 1
int | length() | 1 | 1
MarkupText.SubText | subText(int;int) | 1 | 1
void | addMarkup(int;int;String;String) | 1 | 1
void | addHyperlink(int;int;String) | 1 | 1
void | addHyperlinkLowKey(int;int;String) | 1 | 1
void | hide(int;int) | 1 | 1
void | wrapBy(String;String) | 1 | 1
MarkupText.SubText | findToken(Pattern) | 2 | 4
List<MarkupText.SubText> | findTokens(Pattern) | 3 | 7
SubText | createSubText(Matcher) | 1 | 1

#### File core\src\main\java\hudson\BulkChange.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.BulkChange

Module / class or interface : hudson.BulkChange

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BulkChange | BulkChange(Saveable) | 1 | 4
void | commit() | 2 | 4
void | abort() | 2 | 3
void | pop() | 2 | 2
BulkChange | current() | 1 | 1
boolean | contains(Saveable) | 3 | 4

#### File core\src\main\java\hudson\ClassicPluginStrategy.java 27 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.ClassicPluginStrategy

Module / class or interface : hudson.ClassicPluginStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClassicPluginStrategy | ClassicPluginStrategy(PluginManager) | 1 | 1
PluginWrapper | createPluginWrapper(File) | 18 | 30
ClassLoader | createClassLoader(List<File>;ClassLoader) | 1 | 1
ClassLoader | createClassLoader(List<File>;ClassLoader;Attributes) | 6 | 7
ClassLoader | getBaseClassLoader(Attributes;ClassLoader) | 2 | 3
void | initializeComponents(PluginWrapper) | 1 | 0
void | load(PluginWrapper) | 3 | 7
void | startPlugin(PluginWrapper) | 1 | 1
File | resolve(File;String) | 3 | 3
void | parseClassPath(Manifest;File;List<File>;String;String) | 5 | 3
void | explode(File;File) | 3 | 13

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 23
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00172 | MAJOR | QC-JAV000001[00172] Avoid declaring class instance within loop, performance impact
00319 | MAJOR | QC-JAV000001[00319] Avoid declaring class instance within loop, performance impact
00321 | MAJOR | QC-JAV000001[00321] Avoid declaring class instance within loop, performance impact
00322 | MAJOR | QC-JAV000001[00322] Avoid declaring class instance within loop, performance impact
00322 | MAJOR | QC-JAV000001[00322] Avoid declaring class instance within loop, performance impact
00394 | MAJOR | QC-JAV000001[00394] Avoid declaring class instance within loop, performance impact
00397 | MAJOR | QC-JAV000001[00397] Avoid declaring class instance within loop, performance impact
00398 | MAJOR | QC-JAV000001[00398] Avoid declaring class instance within loop, performance impact
00401 | MAJOR | QC-JAV000001[00401] Avoid declaring class instance within loop, performance impact
00474 | MAJOR | QC-JAV000001[00474] Avoid declaring class instance within loop, performance impact
00484 | MAJOR | QC-JAV000001[00484] Avoid declaring class instance within loop, performance impact
00511 | MAJOR | QC-JAV000001[00511] Avoid declaring class instance within loop, performance impact
00514 | MAJOR | QC-JAV000001[00514] Avoid declaring class instance within loop, performance impact
00514 | MAJOR | QC-JAVCWE390[00514] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00520 | MAJOR | QC-JAV000001[00520] Avoid declaring class instance within loop, performance impact
00524 | MAJOR | QC-JAV000001[00524] Avoid declaring class instance within loop, performance impact
00524 | MAJOR | QC-JAVCWE390[00524] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00540 | MAJOR | QC-JAV000001[00540] Avoid declaring class instance within loop, performance impact
00549 | MAJOR | QC-JAV000001[00549] Avoid declaring class instance within loop, performance impact
00551 | MAJOR | QC-JAV000001[00551] Avoid declaring class instance within loop, performance impact
00566 | MAJOR | QC-JAV000001[00566] Avoid declaring class instance within loop, performance impact
00574 | MAJOR | QC-JAV000001[00574] Avoid declaring class instance within loop, performance impact
00576 | MAJOR | QC-JAV000001[00576] Avoid declaring class instance within loop, performance impact
00629 | MAJOR | QC-JAV000001[00629] Avoid declaring class instance within loop, performance impact
00629 | MAJOR | QC-JAV000001[00629] Avoid declaring class instance within loop, performance impact
00640 | MAJOR | QC-JAVCWE493[00640] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00640 | MINOR | QC-JAVCWE500[00640] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\CloseProofOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
DelegatingOutputStream | hudson.CloseProofOutputStream

Module / class or interface : hudson.CloseProofOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CloseProofOutputStream | CloseProofOutputStream(OutputStream) | 1 | 1
void | close() | 1 | 0

#### File core\src\main\java\hudson\CopyOnWrite.java 0 rule violation (XML file)

Module / class or interface : hudson.

#### File core\src\main\java\hudson\DNSMultiCast.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.DNSMultiCast

Module / class or interface : hudson.DNSMultiCast

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DNSMultiCast | DNSMultiCast(Jenkins) | 2 | 2
void | close() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00041 | MAJOR | QC-JAVCWE390[00041] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00089 | MAJOR | QC-JAVCWE493[00089] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00089 | MINOR | QC-JAVCWE500[00089] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\DependencyRunner.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.DependencyRunner

Module / class or interface : hudson.DependencyRunner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DependencyRunner | DependencyRunner(ProjectRunnable) | 1 | 1
void | run() | 5 | 5
void | populate(Collection<?extendsAbstractProject>) | 3 | 3

#### File core\src\main\java\hudson\DescriptorExtensionList.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ExtensionList<D> | hudson.DescriptorExtensionList

Module / class or interface : hudson.DescriptorExtensionList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList | DescriptorExtensionList(Hudson;Class<T>) | 1 | 1
DescriptorExtensionList | DescriptorExtensionList(Jenkins;Class<T>) | 1 | 2
D | find(String) | 1 | 1
D | find(Class<?extendsT>) | 3 | 2
T | newInstanceFromRadioList(JSONObject) | 2 | 3
T | newInstanceFromRadioList(JSONObject;String) | 1 | 1
D | findByName(String) | 3 | 2
boolean | add(D) | 1 | 3
boolean | remove(Object) | 1 | 2
Object | getLoadLock() | 1 | 1
List<ExtensionComponent<D>> | load() | 1 | 1
Collection<ExtensionComponent<D>> | load(ExtensionComponentSet) | 1 | 1
List<ExtensionComponent<D>> | _load(Iterable<ExtensionComponent<Descriptor>>) | 2 | 3
Iterable<Descriptor> | listLegacyInstances() | 1 | 1
void | clearLegacyInstances() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00193 | MAJOR | QC-JAV000001[00193] Avoid declaring class instance within loop, performance impact
00196 | MAJOR | QC-JAV000001[00196] Avoid declaring class instance within loop, performance impact
00197 | MAJOR | QC-JAV000001[00197] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\EnvVars.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TreeMap<String,String> | hudson.EnvVars

Module / class or interface : hudson.EnvVars

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EnvVars | EnvVars() | 1 | 1
EnvVars | EnvVars(Map<String,String>) | 2 | 4
EnvVars | EnvVars(EnvVars) | 1 | 1
EnvVars | EnvVars(String) | 3 | 5
void | override(String;String) | 5 | 9
EnvVars | overrideAll(Map<String,String>) | 2 | 2
void | resolve(Map<String,String>) | 2 | 1
String | get(String;String) | 2 | 3
String | put(String;String) | 2 | 2
void | addLine(String) | 2 | 2
String | expand(String) | 1 | 1
EnvVars | createCookie() | 1 | 1
EnvVars | getRemote(VirtualChannel) | 2 | 2
EnvVars | initMaster() | 2 | 4

#### File core\src\main\java\hudson\ExpressionFactory2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.ExpressionFactory2

Module / class or interface : hudson.ExpressionFactory2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Expression | createExpression(String) | 1 | 2

#### File core\src\main\java\hudson\Extension.java 0 rule violation (XML file)

Module / class or interface : hudson.

#### File core\src\main\java\hudson\ExtensionComponent.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.ExtensionComponent

Module / class or interface : hudson.ExtensionComponent

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionComponent | ExtensionComponent(T;double) | 1 | 2
ExtensionComponent | ExtensionComponent(T;Extension) | 1 | 1
ExtensionComponent | ExtensionComponent(T) | 1 | 1
double | ordinal() | 1 | 1
T | getInstance() | 1 | 1
boolean | isDescriptorOf(Class<?extendsDescribable>) | 1 | 1
int | compareTo(ExtensionComponent<T>) | 4 | 5

#### File core\src\main\java\hudson\ExtensionFinder.java 47 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.ExtensionFinder

Module / class or interface : hudson.ExtensionFinder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isRefreshable() | 1 | 2
ExtensionComponentSet | refresh() | 1 | 1
void | scout(Class;Hudson) | 1 | 0

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 43
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 4

Line start | Criticity class | Rule
--- | --- | ---
00356 | INFO | QC-JAV999996[00356] CPD de longueur 86 commencant en 1358 (ligne 356) et 2340 (ligne 518): ( LinkageError e ) { LOGGER . log ( ( isOptional ( item . annotation ( ) ) ? Level . FINE : Level . WARNING ) , ( "Failed to load " + item . className ( ) ) , e ) ; } catch ( InstantiationException e ) { LOGGER . log ( ( isOptional ( item . annotation ( ) ) ? Level . FINE : Level . WARNING ) , ( "Failed to load " + item . className ( ) ) , e ) ; } return
00499 | INFO | QC-JAV999996[00499] CPD de longueur 51 commencant en 2218 (ligne 499) et 2891 (ligne 616): if ( e instanceof Field ) { extType = ( ( Field ) e ) . getType ( ) ; } else if ( e instanceof Method ) { extType = ( ( Method ) e ) . getReturnType ( ) ; } else throw new AssertionError ( ) ; resolve
00499 | INFO | QC-JAV999996[00499] CPD de longueur 51 commencant en 2218 (ligne 499) et 3117 (ligne 654): if ( e instanceof Field ) { extType = ( ( Field ) e ) . getType ( ) ; } else if ( e instanceof Method ) { extType = ( ( Method ) e ) . getReturnType ( ) ; } else throw new AssertionError ( ) ; resolve
00609 | INFO | QC-JAV999996[00609] CPD de longueur 85 commencant en 2857 (ligne 609) et 3083 (ligne 643): { try { AnnotatedElement e = item . element ( ) ; Class _ ? _ extType ; if ( e instanceof Class ) { extType = ( Class ) e ; } else if ( e instanceof Field ) { extType = ( ( Field ) e ) . getType ( ) ; } else if ( e instanceof Method ) { extType = ( ( Method ) e ) . getReturnType ( ) ; } else throw new AssertionError ( ) ; if
00260 | MAJOR | QC-JAV000001[00260] Avoid declaring class instance within loop, performance impact
00390 | MAJOR | QC-JAV000001[00390] Avoid declaring class instance within loop, performance impact
00391 | MAJOR | QC-JAV000001[00391] Avoid declaring class instance within loop, performance impact
00393 | MAJOR | QC-JAV000001[00393] Avoid declaring class instance within loop, performance impact
00394 | MAJOR | QC-JAV000001[00394] Avoid declaring class instance within loop, performance impact
00488 | MAJOR | QC-JAV000001[00488] Avoid declaring class instance within loop, performance impact
00489 | MAJOR | QC-JAV000001[00489] Avoid declaring class instance within loop, performance impact
00492 | MAJOR | QC-JAV000001[00492] Avoid declaring class instance within loop, performance impact
00493 | MAJOR | QC-JAV000001[00493] Avoid declaring class instance within loop, performance impact
00493 | MAJOR | QC-JAV000001[00493] Avoid declaring class instance within loop, performance impact
00494 | MAJOR | QC-JAV000001[00494] Avoid declaring class instance within loop, performance impact
00498 | MAJOR | QC-JAV000001[00498] Avoid declaring class instance within loop, performance impact
00499 | MAJOR | QC-JAV000001[00499] Avoid declaring class instance within loop, performance impact
00500 | MAJOR | QC-JAV000001[00500] Avoid declaring class instance within loop, performance impact
00502 | MAJOR | QC-JAV000001[00502] Avoid declaring class instance within loop, performance impact
00503 | MAJOR | QC-JAV000001[00503] Avoid declaring class instance within loop, performance impact
00510 | MAJOR | QC-JAV000001[00510] Avoid declaring class instance within loop, performance impact
00513 | MAJOR | QC-JAV000001[00513] Avoid declaring class instance within loop, performance impact
00518 | MAJOR | QC-JAV000001[00518] Avoid declaring class instance within loop, performance impact
00523 | MAJOR | QC-JAV000001[00523] Avoid declaring class instance within loop, performance impact
00611 | MAJOR | QC-JAV000001[00611] Avoid declaring class instance within loop, performance impact
00612 | MAJOR | QC-JAV000001[00612] Avoid declaring class instance within loop, performance impact
00613 | MAJOR | QC-JAV000001[00613] Avoid declaring class instance within loop, performance impact
00614 | MAJOR | QC-JAV000001[00614] Avoid declaring class instance within loop, performance impact
00616 | MAJOR | QC-JAV000001[00616] Avoid declaring class instance within loop, performance impact
00617 | MAJOR | QC-JAV000001[00617] Avoid declaring class instance within loop, performance impact
00619 | MAJOR | QC-JAV000001[00619] Avoid declaring class instance within loop, performance impact
00620 | MAJOR | QC-JAV000001[00620] Avoid declaring class instance within loop, performance impact
00625 | MAJOR | QC-JAV000001[00625] Avoid declaring class instance within loop, performance impact
00627 | MAJOR | QC-JAV000001[00627] Avoid declaring class instance within loop, performance impact
00629 | MAJOR | QC-JAV000001[00629] Avoid declaring class instance within loop, performance impact
00633 | MAJOR | QC-JAV000001[00633] Avoid declaring class instance within loop, performance impact
00649 | MAJOR | QC-JAV000001[00649] Avoid declaring class instance within loop, performance impact
00650 | MAJOR | QC-JAV000001[00650] Avoid declaring class instance within loop, performance impact
00651 | MAJOR | QC-JAV000001[00651] Avoid declaring class instance within loop, performance impact
00652 | MAJOR | QC-JAV000001[00652] Avoid declaring class instance within loop, performance impact
00654 | MAJOR | QC-JAV000001[00654] Avoid declaring class instance within loop, performance impact
00655 | MAJOR | QC-JAV000001[00655] Avoid declaring class instance within loop, performance impact
00657 | MAJOR | QC-JAV000001[00657] Avoid declaring class instance within loop, performance impact
00658 | MAJOR | QC-JAV000001[00658] Avoid declaring class instance within loop, performance impact
00664 | MAJOR | QC-JAV000001[00664] Avoid declaring class instance within loop, performance impact
00666 | MAJOR | QC-JAV000001[00666] Avoid declaring class instance within loop, performance impact
00668 | MAJOR | QC-JAV000001[00668] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\ExtensionList.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<T> | hudson.ExtensionList

Module / class or interface : hudson.ExtensionList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionList | ExtensionList(Hudson;Class<T>) | 1 | 1
ExtensionList | ExtensionList(Jenkins;Class<T>) | 1 | 1
ExtensionList | ExtensionList(Hudson;Class<T>;CopyOnWriteArrayList<ExtensionComponent<T>>) | 1 | 1
ExtensionList | ExtensionList(Jenkins;Class<T>;CopyOnWriteArrayList<ExtensionComponent<T>>) | 1 | 4
Iterator<T> | iterator() | 1 | 1
List<ExtensionComponent<T>> | getComponents() | 1 | 1
T | get(int) | 1 | 1
int | size() | 1 | 1
List<T> | reverseView() | 1 | 1
boolean | remove(Object) | 2 | 5
T | remove(int) | 1 | 3
boolean | add(T) | 2 | 5
void | add(int;T) | 1 | 1
T | getDynamic(String) | 3 | 2
List<ExtensionComponent<T>> | ensureLoaded() | 4 | 3
Object | getLoadLock() | 1 | 1
void | refresh(ExtensionComponentSet) | 3 | 2
List<ExtensionComponent<T>> | load() | 2 | 2
Collection<ExtensionComponent<T>> | load(ExtensionComponentSet) | 1 | 1
List<ExtensionComponent<T>> | sort(List<ExtensionComponent<T>>) | 1 | 3
void | clearLegacyInstances() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00190 | MAJOR | QC-JAV000001[00190] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\ExtensionListView.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.ExtensionListView

Module / class or interface : hudson.ExtensionListView

#### File core\src\main\java\hudson\ExtensionPoint.java 0 rule violation (XML file)

Module / class or interface : hudson.ExtensionPoint

#### File core\src\main\java\hudson\FeedAdapter.java 0 rule violation (XML file)

Module / class or interface : hudson.FeedAdapter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getEntryTitle(E) | 1 | 1
String | getEntryUrl(E) | 1 | 1
String | getEntryID(E) | 1 | 1
String | getEntryDescription(E) | 1 | 1
Calendar | getEntryTimestamp(E) | 1 | 1
String | getEntryAuthor(E) | 1 | 1

#### File core\src\main\java\hudson\FilePath.java 18 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.FilePath

Module / class or interface : hudson.FilePath

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePath | FilePath(VirtualChannel;String) | 1 | 2
FilePath | FilePath(File) | 1 | 2
FilePath | FilePath(FilePath;String) | 1 | 2
String | resolvePathIfRelative(FilePath;String) | 4 | 3
boolean | isAbsolute(String) | 1 | 1
String | normalize(String) | 12 | 17
boolean | isUnix() | 3 | 3
String | getRemote() | 1 | 1
void | createZipArchive(OutputStream) | 1 | 1
void | zip(OutputStream) | 1 | 1
void | zip(FilePath) | 1 | 3
void | zip(OutputStream;FileFilter) | 1 | 1
void | createZipArchive(OutputStream;String) | 1 | 1
void | zip(OutputStream;String) | 1 | 1
int | zip(OutputStream;DirScanner) | 1 | 1
int | archive(ArchiverFactory;OutputStream;DirScanner) | 1 | 2
int | archive(ArchiverFactory;OutputStream;FileFilter) | 1 | 1
int | archive(ArchiverFactory;OutputStream;String) | 1 | 1
void | unzip(FilePath) | 1 | 1
void | untar(FilePath;TarCompression) | 1 | 1
void | unzipFrom(InputStream) | 1 | 2
void | unzip(File;InputStream) | 1 | 4
void | unzip(File;File) | 1 | 4
FilePath | absolutize() | 1 | 1
void | symlinkTo(String;TaskListener) | 1 | 1
String | readLink() | 1 | 1
boolean | equals(Object) | 4 | 5
int | hashCode() | 1 | 1
void | untarFrom(InputStream;TarCompression) | 1 | 3
boolean | installIfNecessaryFrom(URL;TaskListener;String) | 5 | 9
void | copyFrom(URL) | 1 | 3
void | copyFrom(InputStream) | 1 | 3
void | copyFrom(FilePath) | 1 | 1
void | copyFrom(FileItem) | 3 | 2
URI | toURI() | 1 | 1
void | mkdirs() | 2 | 1
void | deleteRecursive() | 1 | 1
void | deleteContents() | 1 | 1
String | getBaseName() | 2 | 4
String | getName() | 3 | 7
FilePath | sibling(String) | 1 | 1
FilePath | withSuffix(String) | 1 | 1
FilePath | child(String) | 1 | 1
FilePath | getParent() | 3 | 6
FilePath | createTempFile(String;String) | 1 | 2
FilePath | createTextTempFile(String;String;String) | 1 | 1
FilePath | createTextTempFile(String;String;String;boolean) | 1 | 2
FilePath | createTempDir(String;String) | 1 | 2
boolean | delete() | 1 | 2
boolean | exists() | 1 | 1
long | lastModified() | 1 | 1
void | touch(long) | 1 | 1
void | setLastModifiedIfPossible(long) | 2 | 2
boolean | isDirectory() | 1 | 1
long | length() | 1 | 1
void | chmod(int) | 2 | 2
void | _chmod(File;int) | 3 | 3
void | _chmodAnt(File;int) | 2 | 7
int | mode() | 2 | 2
List<FilePath> | list() | 1 | 1
List<FilePath> | listDirectories() | 1 | 1
List<FilePath> | list(FileFilter) | 2 | 2
FilePath[] | list(String) | 1 | 1
FilePath[] | list(String;String) | 1 | 1
FilePath[] | list(String;String;boolean) | 1 | 1
String[] | glob(File;String;String;boolean) | 2 | 6
InputStream | read() | 2 | 4
String | readToString() | 1 | 3
OutputStream | write() | 2 | 4
void | write(String;String) | 1 | 1
String | digest() | 1 | 1
void | renameTo(FilePath) | 2 | 2
void | moveAllChildrenTo(FilePath) | 2 | 2
void | copyTo(FilePath) | 1 | 3
void | copyToWithPermission(FilePath) | 1 | 3
void | copyTo(OutputStream) | 1 | 3
void | syncIO() | 2 | 1
void | _syncIO() | 1 | 1
int | copyRecursiveTo(FilePath) | 1 | 1
int | copyRecursiveTo(String;FilePath) | 1 | 1
int | copyRecursiveTo(String;String;FilePath) | 5 | 7
int | tar(OutputStream;String) | 1 | 1
int | tar(OutputStream;FileFilter) | 1 | 1
int | tar(OutputStream;DirScanner) | 1 | 1
Integer | writeToTar(File;String;String;OutputStream) | 1 | 4
void | readFromTar(String;File;InputStream) | 1 | 7
Launcher | createLauncher(TaskListener) | 3 | 2
String | validateAntFileMask(String) | 1 | 1
String | validateAntFileMask(String;int) | 1 | 1
FormValidation | validateFileMask(FilePath;String) | 2 | 2
FormValidation | validateFileMask(String) | 1 | 1
FormValidation | validateFileMask(String;boolean) | 5 | 8
FormValidation | validateRelativePath(String;boolean;boolean) | 7 | 10
void | checkPermissionForValidate() | 3 | 3
FormValidation | validateRelativeDirectory(String;boolean) | 1 | 1
FormValidation | validateRelativeDirectory(String) | 1 | 1
String | toString() | 1 | 1
VirtualChannel | getChannel() | 3 | 2
boolean | isRemote() | 1 | 1
void | writeObject(ObjectOutputStream) | 2 | 4
void | readObject(ObjectInputStream) | 3 | 5
Field | getTarEntryLinkFlagField() | 1 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 10
MINOR | QC-JAVCWE500 | Static public field not marked final | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00845 | INFO | QC-JAV999996[00845] CPD de longueur 54 commencant en 3585 (ligne 845) et 3921 (ligne 930): ) ; Jenkins instance = Jenkins . getInstance ( ) ; if ( instance != null ) { ExtensionList _ FileCallableWrapperFactory _ factories = instance . getExtensionList ( FileCallableWrapperFactory . class ) ; for ( FileCallableWrapperFactory factory : factories ) { wrapper = factory . wrap ( wrapper ) ; } } return channel
01102 | INFO | QC-JAV999996[01102] CPD de longueur 67 commencant en 4624 (ligne 1102) et 4950 (ligne 1201): final String prefix , final String suffix ) throws IOException , InterruptedException { try { return new FilePath ( this , act ( new FileCallable _ String _ ( ) { private static final long serialVersionUID = 1L ; public String invoke ( File dir , VirtualChannel channel ) throws IOException { File f = File . createTempFile ( prefix , suffix , dir ) ; return
00216 | CRITICAL | QC-JAVCWE476[00216] The argument base is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00265 | MAJOR | QC-JAVCWE481[00265] Assigning instead of comparing on c=path.charAt(i) (see http://cwe.mitre.org/data/definitions/481.html)
00274 | MAJOR | QC-JAV000001[00274] Avoid declaring class instance within loop, performance impact
00515 | MAJOR | QC-JAV000001[00515] Avoid declaring class instance within loop, performance impact
00516 | MAJOR | QC-JAV000001[00516] Avoid declaring class instance within loop, performance impact
00520 | MAJOR | QC-JAV000001[00520] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00530 | MAJOR | QC-JAV000001[00530] Avoid declaring class instance within loop, performance impact
01664 | MAJOR | QC-JAV000001[01664] Avoid declaring class instance within loop, performance impact
01740 | MAJOR | QC-JAVCWE390[01740] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01953 | MAJOR | QC-JAVCWE481[01953] Assigning instead of comparing on te=t.getNextEntry() (see http://cwe.mitre.org/data/definitions/481.html)
01954 | MAJOR | QC-JAV000001[01954] Avoid declaring class instance within loop, performance impact
01958 | MAJOR | QC-JAV000001[01958] Avoid declaring class instance within loop, performance impact
01961 | MAJOR | QC-JAV000001[01961] Avoid declaring class instance within loop, performance impact
02325 | MAJOR | QC-JAVCWE493[02325] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
02325 | MINOR | QC-JAVCWE500[02325] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\FileSystemProvisioner.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.FileSystemProvisioner

Module / class or interface : hudson.FileSystemProvisioner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | prepareWorkspace(AbstractBuild<?,?>;FilePath;TaskListener) | 1 | 1
void | discardWorkspace(AbstractProject<?,?>;FilePath) | 1 | 1
WorkspaceSnapshot | snapshot(AbstractBuild<?,?>;FilePath;String;TaskListener) | 1 | 1
FileSystemProvisionerDescriptor | getDescriptor() | 1 | 1
DescriptorExtensionList<FileSystemProvisioner,FileSystemProvisionerDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\FileSystemProvisionerDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<FileSystemProvisioner> | hudson.FileSystemProvisionerDescriptor

Module / class or interface : hudson.FileSystemProvisionerDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | discard(FilePath;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\Functions.java 35 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Functions

Module / class or interface : hudson.Functions

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Functions | Functions() | 1 | 2
String | generateId() | 1 | 1
boolean | isModel(Object) | 1 | 1
boolean | isModelWithContextMenu(Object) | 1 | 1
String | xsDate(Calendar) | 1 | 1
String | rfc822Date(Calendar) | 1 | 1
void | initPageVariables(JellyContext) | 1 | 6
JDK.DescriptorImpl | getJDKDescriptor() | 1 | 1
String | getDiffString(int) | 4 | 4
String | getDiffString2(int) | 4 | 4
String | getDiffString2(String;int;String) | 4 | 4
String | addSuffix(int;String;String) | 3 | 5
RunUrl | decompose(StaplerRequest) | 5 | 13
Area | getScreenResolution() | 2 | 3
Node.Mode[] | getNodeModes() | 1 | 1
String | getProjectListString(List<Project>) | 1 | 1
Object | ifThenElse(boolean;Object;Object) | 1 | 1
String | appendIfNotNull(String;String;String) | 1 | 1
Map | getSystemProperties() | 1 | 1
Map | getEnvVars() | 1 | 1
boolean | isWindows() | 1 | 1
List<LogRecord> | getLogRecords() | 1 | 1
String | printLogRecord(LogRecord) | 1 | 1
Cookie | getCookie(HttpServletRequest;String) | 3 | 2
String | getCookie(HttpServletRequest;String;String) | 2 | 3
String | getYuiSuffix() | 1 | 1
void | configureAutoRefresh(HttpServletRequest;HttpServletResponse;boolean) | 4 | 9
boolean | isAutoRefresh(HttpServletRequest) | 5 | 5
String | getNearestAncestorUrl(StaplerRequest;Object) | 3 | 6
String | getSearchURL() | 3 | 6
String | appendSpaceIfNotNull(String) | 3 | 2
String | nbspIndent(String) | 2 | 7
String | getWin32ErrorMessage(IOException) | 1 | 1
boolean | isMultiline(String) | 2 | 2
String | encode(String) | 1 | 1
String | escape(String) | 1 | 1
String | xmlEscape(String) | 1 | 1
String | xmlUnescape(String) | 1 | 1
String | htmlAttributeEscape(String) | 6 | 6
void | checkPermission(Permission) | 1 | 1
void | checkPermission(AccessControlled;Permission) | 2 | 1
void | checkPermission(Object;Permission) | 5 | 4
boolean | hasPermission(Permission) | 1 | 1
boolean | hasPermission(Object;Permission) | 5 | 4
void | adminCheck(StaplerRequest;StaplerResponse;Object;Permission) | 3 | 4
String | inferHudsonURL(StaplerRequest) | 3 | 8
String | getFooterURL() | 3 | 2
List<JobPropertyDescriptor> | getJobPropertyDescriptors(Class<?extendsJob>) | 1 | 1
List<Descriptor<BuildWrapper>> | getBuildWrapperDescriptors(AbstractProject<?,?>) | 1 | 1
List<Descriptor<SecurityRealm>> | getSecurityRealmDescriptors() | 1 | 1
List<Descriptor<AuthorizationStrategy>> | getAuthorizationStrategyDescriptors() | 1 | 1
List<Descriptor<Builder>> | getBuilderDescriptors(AbstractProject<?,?>) | 1 | 1
List<Descriptor<Publisher>> | getPublisherDescriptors(AbstractProject<?,?>) | 1 | 1
List<SCMDescriptor<?>> | getSCMDescriptors(AbstractProject<?,?>) | 1 | 1
List<Descriptor<ComputerLauncher>> | getComputerLauncherDescriptors() | 1 | 1
List<Descriptor<RetentionStrategy<?>>> | getRetentionStrategyDescriptors() | 1 | 1
List<ParameterDescriptor> | getParameterDescriptors() | 1 | 1
List<Descriptor<CaptchaSupport>> | getCaptchaSupportDescriptors() | 1 | 1
List<Descriptor<ViewsTabBar>> | getViewsTabBarDescriptors() | 1 | 1
List<Descriptor<MyViewsTabBar>> | getMyViewsTabBarDescriptors() | 1 | 1
List<NodePropertyDescriptor> | getNodePropertyDescriptors(Class<?extendsNode>) | 3 | 3
Collection<Descriptor> | getSortedDescriptorsForGlobalConfig(Predicate<GlobalConfigurationCategory>) | 6 | 8
Collection<Descriptor> | getSortedDescriptorsForGlobalConfig() | 1 | 1
Collection<Descriptor> | getSortedDescriptorsForGlobalConfigNoSecurity() | 1 | 1
String | getIconFilePath(Action) | 4 | 4
int | size2(Object) | 2 | 2
String | getRelativeLinkTo(Item) | 6 | 15
Map<Thread,StackTraceElement[]> | dumpAllThreads() | 1 | 3
ThreadInfo[] | getThreadInfos() | 1 | 2
ThreadGroupMap | sortThreadsAndGetGroupMap(ThreadInfo[]) | 1 | 3
boolean | isMustangOrAbove() | 1 | 3
String | dumpThreadInfo(ThreadInfo;ThreadGroupMap) | 10 | 18
String | jsStringEscape(String) | 2 | 5
String | capitalize(String) | 2 | 2
String | getVersion() | 1 | 1
String | getResourcePath() | 1 | 1
String | getViewResource(Object;String) | 3 | 8
boolean | hasView(Object;String) | 2 | 2
boolean | defaultToTrue(Boolean) | 2 | 2
String | printThrowable(Throwable) | 1 | 3
int | determineRows(String) | 2 | 2
String | toCCStatus(Item) | 2 | 2
boolean | isAnonymous() | 1 | 1
JellyContext | getCurrentJellyContext() | 1 | 3
String | runScript(Script) | 1 | 3
String | joinPath(String) | 4 | 4
String | getActionUrl(String;Action) | 5 | 6
String | toEmailSafeString(String) | 4 | 7
String | getSystemProperty(String) | 1 | 1
String | getServerName() | 2 | 2
String | getCheckUrl(String;Object;String) | 3 | 4
boolean | hyperlinkMatchesCurrentPage(String) | 4 | 7
List<PageDecorator> | getPageDecorators() | 2 | 2
List<Descriptor<Cloud>> | getCloudDescriptors() | 1 | 1
String | prepend(String;String) | 2 | 2
List<Descriptor<CrumbIssuer>> | getCrumbIssuerDescriptors() | 1 | 1
String | getCrumb(StaplerRequest) | 1 | 3
String | getCrumbRequestField() | 1 | 3
Date | getCurrentTime() | 1 | 1
Locale | getCurrentLocale() | 3 | 5
String | generateConsoleAnnotationScriptAndStylesheet() | 7 | 9
List<String> | getLoggerNames() | 1 | 0
String | getPasswordValue(Object) | 3 | 3
List | filterDescriptors(Object;Iterable) | 1 | 1
boolean | getIsUnitTest() | 1 | 1
boolean | isArtifactsPermissionEnabled() | 1 | 1
boolean | isWipeOutPermissionEnabled() | 1 | 1
String | createRenderOnDemandProxy(JellyContext;String) | 1 | 1
String | getCurrentDescriptorByNameUrl() | 1 | 1
String | setCurrentDescriptorByNameUrl(String) | 1 | 3
void | restoreCurrentDescriptorByNameUrl(String) | 1 | 1
List<String> | getRequestHeaders(String) | 1 | 4
Object | rawHtml(Object) | 1 | 1
ArrayList<CLICommand> | getCLICommands() | 1 | 3
String | getAvatar(User;String) | 1 | 1
String | getUserAvatar(User;String) | 1 | 1
String | humanReadableByteSize(long) | 4 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 31
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00267 | MAJOR | QC-JAV000001[00267] Avoid declaring class instance within loop, performance impact
00437 | MAJOR | QC-JAVCWE493[00437] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00437 | MINOR | QC-JAVCWE500[00437] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00507 | MAJOR | QC-JAV000001[00507] Avoid declaring class instance within loop, performance impact
00507 | MAJOR | QC-JAV000001[00507] Avoid declaring class instance within loop, performance impact
00520 | MAJOR | QC-JAV000001[00520] Avoid declaring class instance within loop, performance impact
00520 | MAJOR | QC-JAV000001[00520] Avoid declaring class instance within loop, performance impact
00521 | MAJOR | QC-JAV000001[00521] Avoid declaring class instance within loop, performance impact
00618 | MAJOR | QC-JAV000001[00618] Avoid declaring class instance within loop, performance impact
00619 | MAJOR | QC-JAV000001[00619] Avoid declaring class instance within loop, performance impact
00620 | MAJOR | QC-JAV000001[00620] Avoid declaring class instance within loop, performance impact
00650 | MAJOR | QC-JAV000001[00650] Avoid declaring class instance within loop, performance impact
00651 | MAJOR | QC-JAV000001[00651] Avoid declaring class instance within loop, performance impact
00652 | MAJOR | QC-JAV000001[00652] Avoid declaring class instance within loop, performance impact
00789 | MAJOR | QC-JAV000001[00789] Avoid declaring class instance within loop, performance impact
00792 | MAJOR | QC-JAV000001[00792] Avoid declaring class instance within loop, performance impact
00793 | MAJOR | QC-JAV000001[00793] Avoid declaring class instance within loop, performance impact
00871 | MAJOR | QC-JAV000001[00871] Avoid declaring class instance within loop, performance impact
00872 | MAJOR | QC-JAV000001[00872] Avoid declaring class instance within loop, performance impact
00881 | MAJOR | QC-JAV000001[00881] Avoid declaring class instance within loop, performance impact
00885 | MAJOR | QC-JAV000001[00885] Avoid declaring class instance within loop, performance impact
00886 | MAJOR | QC-JAV000001[00886] Avoid declaring class instance within loop, performance impact
00898 | MAJOR | QC-JAV000001[00898] Avoid declaring class instance within loop, performance impact
00899 | MAJOR | QC-JAV000001[00899] Avoid declaring class instance within loop, performance impact
01007 | MAJOR | QC-JAV000001[01007] Avoid declaring class instance within loop, performance impact
01011 | MAJOR | QC-JAV000001[01011] Avoid declaring class instance within loop, performance impact
01029 | MAJOR | QC-JAV000001[01029] Avoid declaring class instance within loop, performance impact
01297 | MAJOR | QC-JAVCWE390[01297] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01395 | MAJOR | QC-JAV000001[01395] Avoid declaring class instance within loop, performance impact
01402 | MAJOR | QC-JAV000001[01402] Avoid declaring class instance within loop, performance impact
01417 | MAJOR | QC-JAV000001[01417] Avoid declaring class instance within loop, performance impact
01417 | MAJOR | QC-JAV000001[01417] Avoid declaring class instance within loop, performance impact
01418 | MAJOR | QC-JAV000001[01418] Avoid declaring class instance within loop, performance impact
01422 | MAJOR | QC-JAV000001[01422] Avoid declaring class instance within loop, performance impact
01422 | MAJOR | QC-JAVCWE390[01422] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\Indenter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Indenter

Module / class or interface : hudson.Indenter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | getNestLevel(J) | 1 | 1
String | getCss(J) | 1 | 1
String | getRelativeShift(J) | 2 | 3

#### File core\src\main\java\hudson\Launcher.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Launcher

Module / class or interface : hudson.Launcher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Launcher | Launcher(TaskListener;VirtualChannel) | 1 | 2
Launcher | Launcher(Launcher) | 1 | 1
VirtualChannel | getChannel() | 1 | 1
TaskListener | getListener() | 1 | 1
Computer | getComputer() | 3 | 2
ProcStarter | launch() | 1 | 1
Proc | launch(String;Map<String,String>;OutputStream;FilePath) | 1 | 1
Proc | launch(String[];Map<String,String>;OutputStream;FilePath) | 1 | 1
Proc | launch(String[];Map<String,String>;InputStream;OutputStream) | 1 | 1
Proc | launch(String[];boolean[];Map<String,String>;OutputStream;FilePath) | 1 | 1
Proc | launch(String[];boolean[];Map<String,String>;InputStream;OutputStream) | 1 | 1
Proc | launch(String;String[];OutputStream;FilePath) | 1 | 1
Proc | launch(String[];String[];OutputStream;FilePath) | 1 | 1
Proc | launch(String[];String[];InputStream;OutputStream) | 1 | 1
Proc | launch(String[];boolean[];String[];OutputStream;FilePath) | 1 | 1
Proc | launch(String[];boolean[];String[];InputStream;OutputStream) | 1 | 1
Proc | launch(String[];String[];InputStream;OutputStream;FilePath) | 1 | 1
Proc | launch(String[];boolean[];String[];InputStream;OutputStream;FilePath) | 1 | 1
Proc | launch(ProcStarter) | 1 | 1
Channel | launchChannel(String[];OutputStream;FilePath;Map<String,String>) | 1 | 1
boolean | isUnix() | 1 | 1
void | kill(Map<String,String>) | 1 | 1
void | printCommandLine(String[];FilePath) | 7 | 9
void | maskedPrintCommandLine(List<String>;boolean[];FilePath) | 5 | 7
void | maskedPrintCommandLine(String[];boolean[];FilePath) | 1 | 1
Launcher | decorateFor(Node) | 2 | 3
Launcher | decorateByPrefix(String) | 1 | 2
Launcher | decorateByEnv(EnvVars) | 1 | 3
EnvVars | inherit(String[]) | 3 | 2
EnvVars | inherit(Map<String,String>) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00387 | INFO | QC-JAV999996[00387] CPD de longueur 52 commencant en 1062 (ligne 387) et 1107 (ligne 395): String , String _ env , OutputStream out , FilePath workDir ) throws IOException { return launch ( cmd , Util . mapToEnv ( env ) , out , workDir ) ; } public final Proc launch ( String [ ] cmd , Map _ String , String _ env , OutputStream
00890 | MAJOR | QC-JAVCWE390[00890] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01088 | MAJOR | QC-JAVCWE493[01088] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01088 | MINOR | QC-JAVCWE500[01088] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\LauncherDecorator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.LauncherDecorator

Module / class or interface : hudson.LauncherDecorator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Launcher | decorate(Launcher;Node) | 1 | 1
ExtensionList<LauncherDecorator> | all() | 1 | 1

#### File core\src\main\java\hudson\LocalPluginManager.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PluginManager | hudson.LocalPluginManager

Module / class or interface : hudson.LocalPluginManager

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LocalPluginManager | LocalPluginManager(Jenkins) | 1 | 1
LocalPluginManager | LocalPluginManager(File) | 1 | 1
Collection<String> | loadBundledPlugins() | 4 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00081 | MAJOR | QC-JAV000001[00081] Avoid declaring class instance within loop, performance impact
00083 | MAJOR | QC-JAV000001[00083] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\Lookup.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Lookup

Module / class or interface : hudson.Lookup

#### File core\src\main\java\hudson\Main.java 8 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Main

Module / class or interface : hudson.Main

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | main(String[]) | 1 | 3
int | run(String[]) | 3 | 6
String | getHudsonHome() | 2 | 3
int | remotePost(String[]) | 10 | 32
HttpURLConnection | open(URL) | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3
MINOR | QC-JAVCWE500 | Static public field not marked final | 2

Line start | Criticity class | Rule
--- | --- | ---
00131 | MAJOR | QC-JAVCWE390[00131] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00173 | MAJOR | QC-JAV000001[00173] Avoid declaring class instance within loop, performance impact
00182 | MAJOR | QC-JAV000001[00182] Avoid declaring class instance within loop, performance impact
00210 | MAJOR | QC-JAVCWE493[00210] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00210 | MINOR | QC-JAVCWE500[00210] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00215 | MAJOR | QC-JAVCWE493[00215] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00215 | MINOR | QC-JAVCWE500[00215] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\MarkupText.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMarkupText | hudson.MarkupText

Module / class or interface : hudson.MarkupText

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MarkupText | MarkupText(String) | 1 | 1
String | getText() | 1 | 1
SubText | subText(int;int) | 1 | 1
void | addMarkup(int;int;String;String) | 2 | 5
void | addMarkup(int;String) | 1 | 2
void | rangeCheck(int) | 2 | 1
String | toString() | 1 | 1
String | toString(boolean) | 5 | 8
List<SubText> | findTokens(Pattern) | 1 | 1
SubText | createSubText(Matcher) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00067 | CRITICAL | QC-JAVCWE476[00067] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact
00308 | MAJOR | QC-JAV000001[00308] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\PermalinkList.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ArrayList<Permalink> | hudson.PermalinkList

Module / class or interface : hudson.PermalinkList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PermalinkList | PermalinkList(Collection<?extendsPermalink>) | 1 | 1
PermalinkList | PermalinkList() | 1 | 0
Permalink | get(String) | 3 | 2
Permalink | findNearest(String) | 3 | 5

#### File core\src\main\java\hudson\Platform.java 0 rule violation (XML file)

Module / class or interface : hudson.

#### File core\src\main\java\hudson\Plugin.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Plugin

Module / class or interface : hudson.Plugin

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setServletContext(ServletContext) | 1 | 0
PluginWrapper | getWrapper() | 1 | 1
void | start() | 1 | 0
void | postInitialize() | 1 | 0
void | stop() | 1 | 0
void | configure(JSONObject) | 1 | 0
void | configure(StaplerRequest;JSONObject) | 1 | 1
void | doDynamic(StaplerRequest;StaplerResponse) | 3 | 8
void | load() | 2 | 2
void | save() | 2 | 4
XmlFile | getConfigXml() | 1 | 1

#### File core\src\main\java\hudson\PluginFirstClassLoader.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AntClassLoader | hudson.PluginFirstClassLoader

Module / class or interface : hudson.PluginFirstClassLoader

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | addPathFiles(Collection<File>) | 2 | 2
List<URL> | getURLs() | 1 | 1
void | close() | 1 | 1
Enumeration | findResources(String;boolean) | 1 | 2
Enumeration | findResources(String) | 1 | 2
URL | getResource(String) | 1 | 2
InputStream | getResourceAsStream(String) | 1 | 2

#### File core\src\main\java\hudson\PluginManager.java 2 rule violations (XML file)

Module / class or interface : hudson.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00111 | BLOCKER | QC-JAV999999[00111] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\PluginManager.java near following tokens java . util . logging . Level . WARNING ; @ ExportedBean public abstract class PluginManager extends AbstractModelObject implements OnMaster {
00787 | INFO | QC-JAV999996[00787] CPD de longueur 74 commencant en 3989 (ligne 787) et 4178 (ligne 804): ( toInstall . version ) . compareTo ( requestedPlugin . getValue ( ) ) _ 0 ) { LOGGER . log ( WARNING , " { 0 } can only be satisfied in @ { 1 } " , new Object [ ] { requestedPlugin , toInstall . version } ) ; } if ( toInstall . isForNewerHudson ( ) ) { LOGGER . log ( WARNING , " { 0 } @ { 1 } was built for a newer Jenkins" , new Object [ ] { toInstall . name , toInstall . version } ) ; } jobs

#### File core\src\main\java\hudson\PluginStrategy.java 0 rule violation (XML file)

Module / class or interface : hudson.PluginStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PluginWrapper | createPluginWrapper(File) | 1 | 1
void | load(PluginWrapper) | 1 | 1
void | initializeComponents(PluginWrapper) | 1 | 1

#### File core\src\main\java\hudson\PluginWrapper.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.PluginWrapper

Module / class or interface : hudson.PluginWrapper

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PluginWrapper | PluginWrapper(PluginManager;File;Manifest;URL;ClassLoader;File;List<Dependency>;List<Dependency>) | 1 | 11
String | getDisplayName() | 1 | 1
Api | getApi() | 1 | 1
URL | getIndexPage() | 1 | 4
String | computeShortName(Manifest;File) | 3 | 5
String | getBaseName(File) | 2 | 4
List<Dependency> | getDependencies() | 1 | 1
List<Dependency> | getOptionalDependencies() | 1 | 1
String | getShortName() | 1 | 1
Plugin | getPlugin() | 1 | 1
String | getUrl() | 3 | 5
String | toString() | 1 | 1
String | getLongName() | 2 | 3
YesNoMaybe | supportsDynamicLoad() | 2 | 3
String | getVersion() | 3 | 5
VersionNumber | getVersionNumber() | 1 | 1
boolean | isOlderThan(VersionNumber) | 1 | 2
void | stop() | 1 | 4
void | releaseClassLoader() | 2 | 2
void | enable() | 2 | 1
void | disable() | 1 | 2
boolean | isActive() | 1 | 1
boolean | hasCycleDependency() | 1 | 1
void | setHasCycleDependency(boolean) | 1 | 1
boolean | isBundled() | 1 | 1
boolean | isEnabled() | 1 | 1
Manifest | getManifest() | 1 | 1
void | setPlugin(Plugin) | 1 | 2
String | getPluginClass() | 1 | 1
boolean | hasLicensesXml() | 1 | 3
void | resolvePluginDependencies() | 6 | 4
UpdateSite.Plugin | getUpdateInfo() | 2 | 4
UpdateSite.Plugin | getInfo() | 1 | 2
boolean | hasUpdate() | 1 | 1
boolean | isPinned() | 1 | 1
boolean | isDeleted() | 1 | 1
int | compareTo(PluginWrapper) | 1 | 1
boolean | isDowngradable() | 1 | 1
File | getBackupFile() | 1 | 1
String | getBackupVersion() | 3 | 2
HttpResponse | doMakeEnabled() | 1 | 3
HttpResponse | doMakeDisabled() | 1 | 3
HttpResponse | doPin() | 1 | 3
HttpResponse | doUnpin() | 1 | 3
HttpResponse | doDoUninstall() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00169 | MAJOR | QC-JAV000001[00169] Avoid declaring class instance within loop, performance impact
00232 | MAJOR | QC-JAVCWE390[00232] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00446 | CRITICAL | QC-JAVCWE476[00446] The argument plugin is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\Proc.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Proc

Module / class or interface : hudson.Proc

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Proc | Proc() | 1 | 0
boolean | isAlive() | 1 | 1
void | kill() | 1 | 1
int | join() | 1 | 1
InputStream | getStdout() | 1 | 1
InputStream | getStderr() | 1 | 1
OutputStream | getStdin() | 1 | 1
int | joinWithTimeout(long;TimeUnit;TaskListener) | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00402 | MAJOR | QC-JAVCWE481[00402] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)
00410 | MAJOR | QC-JAVCWE390[00410] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00488 | MAJOR | QC-JAVCWE493[00488] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00488 | MINOR | QC-JAVCWE500[00488] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\ProxyConfiguration.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ProxyConfiguration> | hudson.ProxyConfiguration

Module / class or interface : hudson.ProxyConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ProxyConfiguration | ProxyConfiguration(String;int) | 1 | 1
ProxyConfiguration | ProxyConfiguration(String;int;String;String) | 1 | 1
ProxyConfiguration | ProxyConfiguration(String;int;String;String;String) | 1 | 5
String | getUserName() | 1 | 1
String | getPassword() | 1 | 1
String | getEncryptedPassword() | 1 | 1
List<Pattern> | getNoProxyHostPatterns() | 1 | 1
List<Pattern> | getNoProxyHostPatterns(String) | 4 | 5
Proxy | createProxy() | 1 | 1
Proxy | createProxy(String) | 1 | 1
Proxy | createProxy(String;String;int;String) | 3 | 1
void | save() | 2 | 4
Object | readResolve() | 2 | 3
XmlFile | getXmlFile() | 1 | 1
ProxyConfiguration | load() | 3 | 3
URLConnection | open(URL) | 4 | 7
InputStream | getInputStream(URL) | 3 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00208 | INFO | QC-JAV999996[00208] CPD de longueur 51 commencant en 857 (ligne 208) et 1026 (ligne 234): p . createProxy ( url . getHost ( ) ) ) ; if ( p . getUserName ( ) != null ) { Authenticator . setDefault ( new Authenticator ( ) { @ Override public PasswordAuthentication getPasswordAuthentication ( ) { if ( getRequestorType ( ) != RequestorType . PROXY ) return

#### File core\src\main\java\hudson\RelativePath.java 0 rule violation (XML file)

Module / class or interface : hudson.

#### File core\src\main\java\hudson\ResponseHeaderFilter.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.ResponseHeaderFilter

Module / class or interface : hudson.ResponseHeaderFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 1 | 1
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 1 | 6
void | destroy() | 1 | 0

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00095 | MAJOR | QC-JAV000001[00095] Avoid declaring class instance within loop, performance impact
00095 | MAJOR | QC-JAV000001[00095] Avoid declaring class instance within loop, performance impact
00096 | MAJOR | QC-JAV000001[00096] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\RestrictedSince.java 0 rule violation (XML file)

Module / class or interface : hudson.

#### File core\src\main\java\hudson\StructuredForm.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.StructuredForm

Module / class or interface : hudson.StructuredForm

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JSONObject | get(StaplerRequest) | 1 | 1
List<JSONObject> | toList(JSONObject;String) | 4 | 5

#### File core\src\main\java\hudson\TcpSlaveAgentListener.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Thread | hudson.TcpSlaveAgentListener

Module / class or interface : hudson.TcpSlaveAgentListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TcpSlaveAgentListener | TcpSlaveAgentListener(int) | 1 | 6
int | getPort() | 1 | 1
void | run() | 2 | 0
void | shutdown() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00091 | MAJOR | QC-JAV000001[00091] Avoid declaring class instance within loop, performance impact
00160 | MAJOR | QC-JAVCWE390[00160] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00167 | MAJOR | QC-JAVCWE390[00167] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00200 | MAJOR | QC-JAVCWE493[00200] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00200 | MINOR | QC-JAVCWE500[00200] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\UDPBroadcastFragment.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.UDPBroadcastFragment

Module / class or interface : hudson.UDPBroadcastFragment

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildFragment(StringBuilder;SocketAddress) | 1 | 1
ExtensionList<UDPBroadcastFragment> | all() | 1 | 1

#### File core\src\main\java\hudson\UDPBroadcastThread.java 8 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Thread | hudson.UDPBroadcastThread

Module / class or interface : hudson.UDPBroadcastThread

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UDPBroadcastThread | UDPBroadcastThread(Hudson) | 1 | 1
UDPBroadcastThread | UDPBroadcastThread(Jenkins) | 1 | 3
void | run() | 2 | 5
void | tag(StringBuilder;String;Object) | 2 | 2
void | shutdown() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00078 | MAJOR | QC-JAV000001[00078] Avoid declaring class instance within loop, performance impact
00081 | MAJOR | QC-JAV000001[00081] Avoid declaring class instance within loop, performance impact
00084 | MAJOR | QC-JAV000001[00084] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact
00092 | MAJOR | QC-JAV000001[00092] Avoid declaring class instance within loop, performance impact
00100 | MAJOR | QC-JAVCWE390[00100] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00130 | MAJOR | QC-JAVCWE493[00130] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00130 | MINOR | QC-JAVCWE500[00130] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\URLConnectionDecorator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.URLConnectionDecorator

Module / class or interface : hudson.URLConnectionDecorator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | decorate(URLConnection) | 1 | 1
ExtensionList<URLConnectionDecorator> | all() | 1 | 1

#### File core\src\main\java\hudson\Util.java 20 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.Util

Module / class or interface : hudson.Util

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | replaceMacro(String;Map<String,String>) | 1 | 1
String | replaceMacro(String;VariableResolver<String>) | 7 | 7
String | loadFile(File) | 1 | 1
String | loadFile(File;Charset) | 2 | 8
void | deleteContentsRecursive(File) | 3 | 3
void | deleteFile(File) | 4 | 3
void | makeWritable(File) | 1 | 12
void | deleteRecursive(File) | 3 | 4
boolean | isSymlink(File) | 6 | 10
Boolean | isSymlinkJava7(File) | 1 | 4
File | createTempDir() | 3 | 4
void | displayIOException(IOException;TaskListener) | 2 | 2
String | getWin32ErrorMessage(IOException) | 1 | 1
String | getWin32ErrorMessage(Throwable) | 4 | 4
String | getWin32ErrorMessage(int) | 1 | 4
String | getHostName() | 1 | 2
void | copyStream(InputStream;OutputStream) | 1 | 3
void | copyStream(Reader;Writer) | 1 | 3
void | copyStreamAndClose(InputStream;OutputStream) | 1 | 3
void | copyStreamAndClose(Reader;Writer) | 1 | 3
String[] | tokenize(String;String) | 1 | 1
String[] | tokenize(String) | 1 | 1
String[] | mapToEnv(Map<String,String>) | 2 | 4
int | min(int;int) | 3 | 2
String | nullify(String) | 1 | 1
String | removeTrailingSlash(String) | 3 | 2
String | getDigestOf(InputStream) | 1 | 5
String | getDigestOf(String) | 1 | 2
SecretKey | toAes128Key(String) | 1 | 6
String | toHexString(byte[];int;int) | 3 | 7
String | toHexString(byte[]) | 1 | 1
byte[] | fromHexString(String) | 2 | 5
String | getTimeSpanString(long) | 13 | 18
String | makeTimeSpanString(long;String;long;String) | 2 | 3
String | getPastTimeString(long) | 1 | 1
String | combine(long;String) | 2 | 3
String | encode(String) | 2 | 6
String | rawEncode(String) | 5 | 9
char | toDigit(int) | 1 | 1
String | singleQuote(String) | 1 | 1
String | escape(String) | 7 | 7
String | xmlEscape(String) | 6 | 6
void | touch(File) | 1 | 1
void | copyFile(File;File) | 1 | 6
String | fixNull(String) | 3 | 2
String | fixEmpty(String) | 2 | 2
String | fixEmptyAndTrim(String) | 2 | 2
String | getFileName(String) | 3 | 5
String | join(Collection<?>;String) | 4 | 6
FileSet | createFileSet(File;String;String) | 2 | 9
FileSet | createFileSet(File;String) | 1 | 1
void | createSymlink(File;String;String;TaskListener) | 7 | 9
boolean | createSymlinkJava7(File;String;String) | 4 | 12
String | resolveSymlink(File;TaskListener) | 1 | 1
String | resolveSymlink(File) | 5 | 9
String | encodeRFC2396(String) | 1 | 3
String | wrapToErrorSpan(String) | 1 | 2
Number | tryParseNumber(String;Number) | 2 | 3
boolean | isOverridden(Class;Class;String;Class) | 1 | 2
File | changeExtension(File;String) | 3 | 4
String | intern(String) | 1 | 1
boolean | isAbsoluteUri(String) | 2 | 3
int | _indexOf(String;char) | 2 | 3
Properties | loadProperties(String) | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 4
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 3
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8
MINOR | QC-JAVCWE500 | Static public field not marked final | 2
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
01078 | INFO | QC-JAV999996[01078] CPD de longueur 62 commencant en 5548 (ligne 1078) et 5763 (ligne 1118): } if ( x2 instanceof IOException ) { throw ( IOException ) x2 ; } throw ( IOException ) new IOException ( x . toString ( ) ) . initCause ( x ) ; } catch ( Exception x ) { throw ( IOException ) new IOException ( x . toString ( ) ) . initCause ( x ) ; } }
00143 | MAJOR | QC-JAV000001[00143] Avoid declaring class instance within loop, performance impact
00146 | MAJOR | QC-JAV000001[00146] Avoid declaring class instance within loop, performance impact
00149 | MAJOR | QC-JAV000001[00149] Avoid declaring class instance within loop, performance impact
00183 | MAJOR | QC-JAVCWE481[00183] Assigning instead of comparing on len=r.read(buf,0,buf.length) (see http://cwe.mitre.org/data/definitions/481.html)
00267 | MAJOR | QC-JAVCWE390[00267] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00392 | MAJOR | QC-JAVCWE390[00392] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00433 | MAJOR | QC-JAVCWE481[00433] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)
00440 | MAJOR | QC-JAVCWE481[00440] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)
00774 | MAJOR | QC-JAV000001[00774] Avoid declaring class instance within loop, performance impact
00781 | MAJOR | QC-JAV000001[00781] Avoid declaring class instance within loop, performance impact
00781 | MAJOR | QC-JAVCWE390[00781] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00978 | MAJOR | QC-JAV000001[00978] Avoid declaring class instance within loop, performance impact
00984 | MAJOR | QC-JAV000001[00984] Avoid declaring class instance within loop, performance impact
01106 | MAJOR | QC-JAVCWE390[01106] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01133 | MAJOR | QC-JAV000001[01133] Avoid declaring class instance within loop, performance impact
01297 | MAJOR | QC-JAVCWE493[01297] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01297 | MINOR | QC-JAVCWE500[01297] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
01299 | MAJOR | QC-JAVCWE493[01299] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01299 | MINOR | QC-JAVCWE500[01299] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\WebAppMain.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.WebAppMain

Module / class or interface : hudson.WebAppMain

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | contextInitialized(ServletContextEvent) | 4 | 24
void | installExpressionFactory(ServletContextEvent) | 1 | 1
void | installLogger() | 1 | 3
FileAndDescription | getHomeDir(ServletContextEvent) | 9 | 11
void | contextDestroyed(ServletContextEvent) | 3 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 4
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9

Line start | Criticity class | Rule
--- | --- | ---
00095 | MAJOR | QC-JAVCWE392[00095] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00100 | MAJOR | QC-JAVCWE390[00100] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00160 | MAJOR | QC-JAVCWE392[00160] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00168 | MAJOR | QC-JAVCWE392[00168] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00185 | MAJOR | QC-JAVCWE392[00185] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00285 | MAJOR | QC-JAV000001[00285] Avoid declaring class instance within loop, performance impact
00286 | MAJOR | QC-JAV000001[00286] Avoid declaring class instance within loop, performance impact
00286 | MAJOR | QC-JAV000001[00286] Avoid declaring class instance within loop, performance impact
00287 | MAJOR | QC-JAV000001[00287] Avoid declaring class instance within loop, performance impact
00287 | MAJOR | QC-JAV000001[00287] Avoid declaring class instance within loop, performance impact
00291 | MAJOR | QC-JAV000001[00291] Avoid declaring class instance within loop, performance impact
00294 | MAJOR | QC-JAV000001[00294] Avoid declaring class instance within loop, performance impact
00294 | MAJOR | QC-JAVCWE390[00294] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00301 | MAJOR | QC-JAV000001[00301] Avoid declaring class instance within loop, performance impact
00308 | MAJOR | QC-JAV000001[00308] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\WorkspaceSnapshot.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.WorkspaceSnapshot

Module / class or interface : hudson.WorkspaceSnapshot

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | restoreTo(AbstractBuild<?,?>;FilePath;TaskListener) | 1 | 1
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\hudson\XmlFile.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.XmlFile

Module / class or interface : hudson.XmlFile

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
XmlFile | XmlFile(File) | 1 | 1
XmlFile | XmlFile(XStream;File) | 1 | 2
File | getFile() | 1 | 1
XStream | getXStream() | 1 | 1
Object | read() | 2 | 7
Object | unmarshal(Object) | 1 | 6
void | write(Object) | 1 | 7
boolean | exists() | 1 | 1
void | delete() | 1 | 1
void | mkdirs() | 1 | 1
String | toString() | 1 | 1
Reader | readRaw() | 1 | 1
String | asString() | 1 | 3
void | writeRawTo(Writer) | 1 | 3
String | sniffEncoding() | 2 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00138 | INFO | QC-JAV999996[00138] CPD de longueur 72 commencant en 391 (ligne 138) et 502 (ligne 161): catch ( StreamException e ) { throw new IOException2 ( ( "Unable to read " + file ) , e ) ; } catch ( ConversionException e ) { throw new IOException2 ( ( "Unable to read " + file ) , e ) ; } catch ( Error e ) { throw new IOException2 ( ( "Unable to read " + file ) , e ) ; } finally { in . close ( ) ; } } public Object

#### File core\src\main\java\hudson\cli\AbstractBuildRangeCommand.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.AbstractBuildRangeCommand

Module / class or interface : hudson.cli.AbstractBuildRangeCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | run() | 1 | 2
int | act(List<AbstractBuild<?,?>>) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00018 | MAJOR | QC-JAVCWE493[00018] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00021 | MAJOR | QC-JAVCWE493[00021] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\BuildCommand.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.BuildCommand

Module / class or interface : hudson.cli.BuildCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 9 | 11
void | printUsageSummary(PrintStream) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 7
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00071 | MAJOR | QC-JAVCWE493[00071] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00074 | MAJOR | QC-JAVCWE493[00074] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00077 | MAJOR | QC-JAVCWE493[00077] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00080 | MAJOR | QC-JAVCWE493[00080] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00083 | MAJOR | QC-JAVCWE493[00083] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00086 | MAJOR | QC-JAVCWE493[00086] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00089 | MAJOR | QC-JAVCWE493[00089] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00106 | MAJOR | QC-JAV000001[00106] Avoid declaring class instance within loop, performance impact
00107 | MAJOR | QC-JAV000001[00107] Avoid declaring class instance within loop, performance impact
00153 | MAJOR | QC-JAV000001[00153] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\CLICommand.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CLICommand

Module / class or interface : hudson.cli.CLICommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 2 | 5
String | getShortDescription() | 1 | 1
int | main(List<String>;Locale;InputStream;PrintStream;PrintStream) | 3 | 25
Channel | checkChannel() | 2 | 2
Authentication | loadStoredAuthentication() | 2 | 4
boolean | shouldPerformAuthentication(Authentication) | 1 | 1
Authentication | getTransportAuthentication() | 2 | 3
void | setTransportAuth(Authentication) | 1 | 1
int | run() | 1 | 1
void | printUsage(PrintStream;CmdLineParser) | 1 | 3
void | printUsageSummary(PrintStream) | 1 | 1
String | getClientSystemProperty(String) | 1 | 1
Charset | getClientCharset() | 2 | 5
String | getClientEnvironmentVariable(String) | 1 | 1
CLICommand | createClone() | 1 | 3
void | registerOptionHandlers() | 2 | 1
ExtensionList<CLICommand> | all() | 1 | 1
CLICommand | clone(String) | 3 | 2
CLICommand | setCurrent(CLICommand) | 1 | 3
CLICommand | getCurrent() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00117 | MAJOR | QC-JAVCWE493[00117] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00125 | MAJOR | QC-JAVCWE493[00125] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00139 | MAJOR | QC-JAVCWE493[00139] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00144 | MAJOR | QC-JAVCWE493[00144] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00430 | MAJOR | QC-JAV000001[00430] Avoid declaring class instance within loop, performance impact
00491 | MAJOR | QC-JAV000001[00491] Avoid declaring class instance within loop, performance impact
00492 | MAJOR | QC-JAV000001[00492] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\CliManagerImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CliManagerImpl

Module / class or interface : hudson.cli.CliManagerImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CliManagerImpl | CliManagerImpl(Channel) | 1 | 2
int | main(List<String>;Locale;InputStream;OutputStream;OutputStream) | 2 | 10
void | authenticate(String;Pipe;Pipe) | 3 | 1
boolean | hasCommand(String) | 1 | 1
int | protocolVersion() | 1 | 1
Object | writeReplace() | 1 | 1

#### File core\src\main\java\hudson\cli\CliProtocol.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AgentProtocol | hudson.cli.CliProtocol

Module / class or interface : hudson.cli.CliProtocol

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
void | handle(Socket) | 1 | 1

#### File core\src\main\java\hudson\cli\CliProtocol2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CliProtocol | hudson.cli.CliProtocol2

Module / class or interface : hudson.cli.CliProtocol2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
void | handle(Socket) | 1 | 1

#### File core\src\main\java\hudson\cli\CliTransportAuthenticator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CliTransportAuthenticator

Module / class or interface : hudson.cli.CliTransportAuthenticator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | supportsProtocol(String) | 1 | 1
void | authenticate(String;Channel;Connection) | 1 | 1
ExtensionList<CliTransportAuthenticator> | all() | 1 | 1

#### File core\src\main\java\hudson\cli\ClientAuthenticationCache.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.ClientAuthenticationCache

Module / class or interface : hudson.cli.ClientAuthenticationCache

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClientAuthenticationCache | ClientAuthenticationCache(Channel) | 2 | 2
Authentication | get() | 2 | 7
String | getPropertyKey() | 2 | 3
void | set(Authentication) | 1 | 4
void | remove() | 2 | 1
void | save() | 1 | 1

#### File core\src\main\java\hudson\cli\CloneableCLICommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.CloneableCLICommand

Module / class or interface : hudson.cli.CloneableCLICommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CLICommand | createClone() | 1 | 2

#### File core\src\main\java\hudson\cli\CommandDuringBuild.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.CommandDuringBuild

Module / class or interface : hudson.cli.CommandDuringBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Run | getCurrentlyBuilding() | 4 | 8

#### File core\src\main\java\hudson\cli\ConsoleCommand.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.ConsoleCommand

Module / class or interface : hudson.cli.ConsoleCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 6 | 11
long | seek(AbstractBuild<?,?>) | 1 | 11
void | printUsageSummary(PrintStream) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4

Line start | Criticity class | Rule
--- | --- | ---
00033 | MAJOR | QC-JAVCWE493[00033] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00036 | MAJOR | QC-JAVCWE493[00036] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00039 | MAJOR | QC-JAVCWE493[00039] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00042 | MAJOR | QC-JAVCWE493[00042] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00123 | MAJOR | QC-JAVCWE481[00123] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\cli\CopyJobCommand.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.CopyJobCommand

Module / class or interface : hudson.cli.CopyJobCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 6 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00047 | MAJOR | QC-JAVCWE493[00047] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00050 | MAJOR | QC-JAVCWE493[00050] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\CreateJobCommand.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.CreateJobCommand

Module / class or interface : hudson.cli.CreateJobCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 6 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00047 | MAJOR | QC-JAVCWE493[00047] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\DeleteBuildsCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractBuildRangeCommand | hudson.cli.DeleteBuildsCommand

Module / class or interface : hudson.cli.DeleteBuildsCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
void | printUsageSummary(PrintStream) | 1 | 1
int | act(List<AbstractBuild<?,?>>) | 2 | 4

#### File core\src\main\java\hudson\cli\GetJobCommand.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.GetJobCommand

Module / class or interface : hudson.cli.GetJobCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00038 | MAJOR | QC-JAVCWE493[00038] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\GroovyCommand.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.GroovyCommand

Module / class or interface : hudson.cli.GroovyCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 3 | 14
String | loadScript() | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00064 | MAJOR | QC-JAVCWE493[00064] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00070 | MAJOR | QC-JAVCWE493[00070] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\GroovyshCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.GroovyshCommand

Module / class or interface : hudson.cli.GroovyshCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | main(List<String>;Locale;InputStream;PrintStream;PrintStream) | 1 | 5
Groovysh | createShell(InputStream;PrintStream;PrintStream) | 1 | 12
int | run() | 1 | 1

#### File core\src\main\java\hudson\cli\HelpCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.HelpCommand

Module / class or interface : hudson.cli.HelpCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 4 | 7

#### File core\src\main\java\hudson\cli\InstallPluginCommand.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.InstallPluginCommand

Module / class or interface : hudson.cli.InstallPluginCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 6 | 8
FilePath | getTargetFilePath() | 1 | 1
File | getTargetFile() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 10

Line start | Criticity class | Rule
--- | --- | ---
00061 | MAJOR | QC-JAVCWE493[00061] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00064 | MAJOR | QC-JAVCWE493[00064] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00067 | MAJOR | QC-JAVCWE493[00067] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00070 | MAJOR | QC-JAVCWE493[00070] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact
00094 | MAJOR | QC-JAV000001[00094] Avoid declaring class instance within loop, performance impact
00107 | MAJOR | QC-JAV000001[00107] Avoid declaring class instance within loop, performance impact
00112 | MAJOR | QC-JAV000001[00112] Avoid declaring class instance within loop, performance impact
00115 | MAJOR | QC-JAV000001[00115] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00129 | MAJOR | QC-JAV000001[00129] Avoid declaring class instance within loop, performance impact
00130 | MAJOR | QC-JAV000001[00130] Avoid declaring class instance within loop, performance impact
00107 | MAJOR | QC-JAVCWE390[00107] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00130 | MAJOR | QC-JAV000001[00130] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\InstallToolCommand.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.InstallToolCommand

Module / class or interface : hudson.cli.InstallToolCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 5 | 11
int | error(List<String>;String;String) | 3 | 2
int | install(ToolInstallation;BuildIDs;AbstractProject) | 3 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00057 | MAJOR | QC-JAVCWE493[00057] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00060 | MAJOR | QC-JAVCWE493[00060] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00085 | MAJOR | QC-JAV000001[00085] Avoid declaring class instance within loop, performance impact
00085 | MAJOR | QC-JAV000001[00085] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\ListChangesCommand.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractBuildRangeCommand | hudson.cli.ListChangesCommand

Module / class or interface : hudson.cli.ListChangesCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | act(List<AbstractBuild<?,?>>) | 7 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8

Line start | Criticity class | Rule
--- | --- | ---
00039 | MAJOR | QC-JAVCWE493[00039] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00051 | MAJOR | QC-JAV000001[00051] Avoid declaring class instance within loop, performance impact
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00062 | MAJOR | QC-JAV000001[00062] Avoid declaring class instance within loop, performance impact
00071 | MAJOR | QC-JAV000001[00071] Avoid declaring class instance within loop, performance impact
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00074 | MAJOR | QC-JAV000001[00074] Avoid declaring class instance within loop, performance impact
00074 | MAJOR | QC-JAV000001[00074] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\ListJobsCommand.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.ListJobsCommand

Module / class or interface : hudson.cli.ListJobsCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 6 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00049 | MAJOR | QC-JAVCWE493[00049] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\ListPluginsCommand.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.ListPluginsCommand

Module / class or interface : hudson.cli.ListPluginsCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 6 | 7
void | printPlugin(PluginWrapper;int;int) | 3 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00047 | MAJOR | QC-JAVCWE493[00047] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\LoginCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.LoginCommand

Module / class or interface : hudson.cli.LoginCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
Authentication | loadStoredAuthentication() | 1 | 1
int | run() | 2 | 5

#### File core\src\main\java\hudson\cli\LogoutCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.LogoutCommand

Module / class or interface : hudson.cli.LogoutCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 1 | 3

#### File core\src\main\java\hudson\cli\SessionIdCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.SessionIdCommand

Module / class or interface : hudson.cli.SessionIdCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 1 | 2

#### File core\src\main\java\hudson\cli\SetBuildDescriptionCommand.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.SetBuildDescriptionCommand

Module / class or interface : hudson.cli.SetBuildDescriptionCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3

Line start | Criticity class | Rule
--- | --- | ---
00023 | MAJOR | QC-JAVCWE493[00023] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00026 | MAJOR | QC-JAVCWE493[00026] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00029 | MAJOR | QC-JAVCWE493[00029] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\SetBuildDisplayNameCommand.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.SetBuildDisplayNameCommand

Module / class or interface : hudson.cli.SetBuildDisplayNameCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3

Line start | Criticity class | Rule
--- | --- | ---
00022 | MAJOR | QC-JAVCWE493[00022] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00025 | MAJOR | QC-JAVCWE493[00025] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00028 | MAJOR | QC-JAVCWE493[00028] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\SetBuildResultCommand.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CommandDuringBuild | hudson.cli.SetBuildResultCommand

Module / class or interface : hudson.cli.SetBuildResultCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00041 | MAJOR | QC-JAVCWE493[00041] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\UpdateJobCommand.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.UpdateJobCommand

Module / class or interface : hudson.cli.UpdateJobCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00039 | MAJOR | QC-JAVCWE493[00039] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\cli\VersionCommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.VersionCommand

Module / class or interface : hudson.cli.VersionCommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 1 | 2

#### File core\src\main\java\hudson\cli\WhoAmICommand.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CLICommand | hudson.cli.WhoAmICommand

Module / class or interface : hudson.cli.WhoAmICommand

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
int | run() | 2 | 5

#### File core\src\main\java\hudson\cli\declarative\CLIMethod.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.declarative.

#### File core\src\main\java\hudson\cli\declarative\CLIRegisterer.java 33 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ExtensionFinder | hudson.cli.declarative.CLIRegisterer

Module / class or interface : hudson.cli.declarative.CLIRegisterer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionComponentSet | refresh() | 1 | 1
Method | findResolver(Class) | 4 | 5
List<ExtensionComponent<CLICommand>> | discover(Jenkins) | 2 | 4
ResourceBundleHolder | loadMessageBundle(Method) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 33

Line start | Criticity class | Rule
--- | --- | ---
00088 | MAJOR | QC-JAV000001[00088] Avoid declaring class instance within loop, performance impact
00102 | MAJOR | QC-JAV000001[00102] Avoid declaring class instance within loop, performance impact
00104 | MAJOR | QC-JAV000001[00104] Avoid declaring class instance within loop, performance impact
00107 | MAJOR | QC-JAV000001[00107] Avoid declaring class instance within loop, performance impact
00109 | MAJOR | QC-JAV000001[00109] Avoid declaring class instance within loop, performance impact
00113 | MAJOR | QC-JAV000001[00113] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00125 | MAJOR | QC-JAV000001[00125] Avoid declaring class instance within loop, performance impact
00127 | MAJOR | QC-JAV000001[00127] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00131 | MAJOR | QC-JAV000001[00131] Avoid declaring class instance within loop, performance impact
00131 | MAJOR | QC-JAV000001[00131] Avoid declaring class instance within loop, performance impact
00132 | MAJOR | QC-JAV000001[00132] Avoid declaring class instance within loop, performance impact
00139 | MAJOR | QC-JAV000001[00139] Avoid declaring class instance within loop, performance impact
00147 | MAJOR | QC-JAV000001[00147] Avoid declaring class instance within loop, performance impact
00147 | MAJOR | QC-JAV000001[00147] Avoid declaring class instance within loop, performance impact
00153 | MAJOR | QC-JAV000001[00153] Avoid declaring class instance within loop, performance impact
00159 | MAJOR | QC-JAV000001[00159] Avoid declaring class instance within loop, performance impact
00166 | MAJOR | QC-JAV000001[00166] Avoid declaring class instance within loop, performance impact
00167 | MAJOR | QC-JAV000001[00167] Avoid declaring class instance within loop, performance impact
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAV000001[00171] Avoid declaring class instance within loop, performance impact
00174 | MAJOR | QC-JAV000001[00174] Avoid declaring class instance within loop, performance impact
00175 | MAJOR | QC-JAV000001[00175] Avoid declaring class instance within loop, performance impact
00176 | MAJOR | QC-JAV000001[00176] Avoid declaring class instance within loop, performance impact
00177 | MAJOR | QC-JAV000001[00177] Avoid declaring class instance within loop, performance impact
00182 | MAJOR | QC-JAV000001[00182] Avoid declaring class instance within loop, performance impact
00186 | MAJOR | QC-JAV000001[00186] Avoid declaring class instance within loop, performance impact
00196 | MAJOR | QC-JAV000001[00196] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\declarative\CLIResolver.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.declarative.

#### File core\src\main\java\hudson\cli\declarative\MethodBinder.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.declarative.MethodBinder

Module / class or interface : hudson.cli.declarative.MethodBinder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MethodBinder | MethodBinder(Method;CLICommand;CmdLineParser) | 6 | 11
Object | call(Object) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00070 | MAJOR | QC-JAV000001[00070] Avoid declaring class instance within loop, performance impact
00071 | MAJOR | QC-JAV000001[00071] Avoid declaring class instance within loop, performance impact
00075 | MAJOR | QC-JAV000001[00075] Avoid declaring class instance within loop, performance impact
00083 | MAJOR | QC-JAV000001[00083] Avoid declaring class instance within loop, performance impact
00087 | MAJOR | QC-JAV000001[00087] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\cli\declarative\OptionHandlerExtension.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.declarative.

#### File core\src\main\java\hudson\cli\declarative\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.declarative.

#### File core\src\main\java\hudson\cli\handlers\AbstractProjectOptionHandler.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OptionHandler<AbstractProject> | hudson.cli.handlers.AbstractProjectOptionHandler

Module / class or interface : hudson.cli.handlers.AbstractProjectOptionHandler

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractProjectOptionHandler | AbstractProjectOptionHandler(CmdLineParser;OptionDef;Setter<AbstractProject>) | 1 | 1
int | parseArguments(Parameters) | 4 | 8
String | getDefaultMetaVariable() | 1 | 1

#### File core\src\main\java\hudson\cli\handlers\TopLevelItemOptionHandler.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OptionHandler<TopLevelItem> | hudson.cli.handlers.TopLevelItemOptionHandler

Module / class or interface : hudson.cli.handlers.TopLevelItemOptionHandler

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TopLevelItemOptionHandler | TopLevelItemOptionHandler(CmdLineParser;OptionDef;Setter<TopLevelItem>) | 1 | 1
int | parseArguments(Parameters) | 4 | 8
String | getDefaultMetaVariable() | 1 | 1

#### File core\src\main\java\hudson\cli\handlers\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.handlers.

#### File core\src\main\java\hudson\cli\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.cli.

#### File core\src\main\java\hudson\cli\util\ScriptLoader.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.util.ScriptLoader

Module / class or interface : hudson.cli.util.ScriptLoader

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ScriptLoader | ScriptLoader(String) | 1 | 1
String | call() | 2 | 8

#### File core\src\main\java\hudson\console\AnnotatedLargeText.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LargeText | hudson.console.AnnotatedLargeText

Module / class or interface : hudson.console.AnnotatedLargeText

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AnnotatedLargeText | AnnotatedLargeText(File;Charset;boolean;T) | 1 | 2
AnnotatedLargeText | AnnotatedLargeText(ByteBuffer;Charset;boolean;T) | 1 | 2
void | doProgressiveHtml(StaplerRequest;StaplerResponse) | 1 | 2
void | doProgressiveText(StaplerRequest;StaplerResponse) | 1 | 1
boolean | isHtml() | 1 | 2
void | setContentType(StaplerResponse) | 1 | 1
ConsoleAnnotator | createAnnotator(StaplerRequest) | 2 | 3
long | writeLogTo(long;Writer) | 3 | 2
long | writeLogTo(long;OutputStream) | 1 | 1
long | writeHtmlTo(long;Writer) | 2 | 11

#### File core\src\main\java\hudson\console\ConsoleAnnotationDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ConsoleNote<?>> | hudson.console.ConsoleAnnotationDescriptor

Module / class or interface : hudson.console.ConsoleAnnotationDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotationDescriptor | ConsoleAnnotationDescriptor(Class<?extendsConsoleNote<?>>) | 1 | 1
ConsoleAnnotationDescriptor | ConsoleAnnotationDescriptor() | 1 | 0
String | getDisplayName() | 1 | 1
boolean | hasScript() | 1 | 1
boolean | hasStylesheet() | 1 | 1
URL | hasResource(String) | 1 | 1
void | doScriptJs(StaplerRequest;StaplerResponse) | 1 | 1
void | doStyleCss(StaplerRequest;StaplerResponse) | 1 | 1
DescriptorExtensionList<ConsoleNote<?>,ConsoleAnnotationDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\console\ConsoleAnnotationOutputStream.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
LineTransformationOutputStream | hudson.console.ConsoleAnnotationOutputStream

Module / class or interface : hudson.console.ConsoleAnnotationOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotationOutputStream | ConsoleAnnotationOutputStream(Writer;ConsoleAnnotator<?superT>;T;Charset) | 1 | 4
ConsoleAnnotator | getConsoleAnnotator() | 1 | 1
void | eol(byte[];int) | 3 | 10
void | flush() | 1 | 1
void | close() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9

Line start | Criticity class | Rule
--- | --- | ---
00106 | MAJOR | QC-JAV000001[00106] Avoid declaring class instance within loop, performance impact
00109 | MAJOR | QC-JAV000001[00109] Avoid declaring class instance within loop, performance impact
00112 | MAJOR | QC-JAV000001[00112] Avoid declaring class instance within loop, performance impact
00113 | MAJOR | QC-JAV000001[00113] Avoid declaring class instance within loop, performance impact
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00122 | MAJOR | QC-JAV000001[00122] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\console\ConsoleAnnotator.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.console.ConsoleAnnotator

Module / class or interface : hudson.console.ConsoleAnnotator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotator | annotate(T;MarkupText) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00110 | MAJOR | QC-JAV000001[00110] Avoid declaring class instance within loop, performance impact
00111 | MAJOR | QC-JAV000001[00111] Avoid declaring class instance within loop, performance impact
00143 | MAJOR | QC-JAV000001[00143] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\console\ConsoleAnnotatorFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.console.ConsoleAnnotatorFactory

Module / class or interface : hudson.console.ConsoleAnnotatorFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotator | newInstance(T) | 1 | 1
Class | type() | 3 | 3
boolean | hasScript() | 1 | 1
boolean | hasStylesheet() | 1 | 1
URL | getResource(String) | 1 | 2
void | doScriptJs(StaplerRequest;StaplerResponse) | 1 | 1
void | doStyleCss(StaplerRequest;StaplerResponse) | 1 | 1
ExtensionList<ConsoleAnnotatorFactory> | all() | 1 | 1

#### File core\src\main\java\hudson\console\ConsoleLogFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.console.ConsoleLogFilter

Module / class or interface : hudson.console.ConsoleLogFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
OutputStream | decorateLogger(AbstractBuild;OutputStream) | 1 | 1
ExtensionList<ConsoleLogFilter> | all() | 1 | 1

#### File core\src\main\java\hudson\console\ConsoleNote.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.console.ConsoleNote

Module / class or interface : hudson.console.ConsoleNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotator | annotate(T;MarkupText;int) | 1 | 1
ConsoleAnnotationDescriptor | getDescriptor() | 1 | 1
void | encodeTo(OutputStream) | 1 | 1
void | encodeTo(Writer) | 1 | 1
ByteArrayOutputStream | encodeToBytes() | 1 | 12
String | encode() | 1 | 1
ConsoleNote | readFrom(DataInputStream) | 3 | 12
void | skip(DataInputStream) | 2 | 8
int | findPreamble(byte[];int;int) | 3 | 4
List<String> | removeNotes(Collection<String>) | 2 | 3
String | removeNotes(String) | 3 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MINOR | QC-JAVCWE582 | Array declared public, final and static | 2

Line start | Criticity class | Rule
--- | --- | ---
00261 | MINOR | QC-JAVCWE582[00261] Array declared public, final and static (see http://cwe.mitre.org/data/definitions/582.html)
00265 | MINOR | QC-JAVCWE582[00265] Array declared public, final and static (see http://cwe.mitre.org/data/definitions/582.html)

#### File core\src\main\java\hudson\console\ExpandableDetailsNote.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote | hudson.console.ExpandableDetailsNote

Module / class or interface : hudson.console.ExpandableDetailsNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExpandableDetailsNote | ExpandableDetailsNote(String;String) | 1 | 2
ConsoleAnnotator | annotate(Object;MarkupText;int) | 1 | 2
String | encodeTo(String;String) | 1 | 3

#### File core\src\main\java\hudson\console\HudsonExceptionNote.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote<Object> | hudson.console.HudsonExceptionNote

Module / class or interface : hudson.console.HudsonExceptionNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotator | annotate(Object;MarkupText;int) | 4 | 6
String | annotateMethodName(String;String;String;int) | 1 | 1
String | annotateClassName(String) | 1 | 1

#### File core\src\main\java\hudson\console\HyperlinkNote.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote | hudson.console.HyperlinkNote

Module / class or interface : hudson.console.HyperlinkNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HyperlinkNote | HyperlinkNote(String;int) | 1 | 2
ConsoleAnnotator | annotate(Object;MarkupText;int) | 2 | 4
String | extraAttributes() | 1 | 1
String | encodeTo(String;String) | 1 | 3

#### File core\src\main\java\hudson\console\LineTransformationOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.console.LineTransformationOutputStream

Module / class or interface : hudson.console.LineTransformationOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | eol(byte[];int) | 1 | 1
void | write(int) | 2 | 2
void | eol() | 3 | 3
void | write(byte[];int;int) | 2 | 4
void | close() | 1 | 1
void | forceEol() | 2 | 1
String | trimEOL(String) | 2 | 5

#### File core\src\main\java\hudson\console\ModelHyperlinkNote.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HyperlinkNote | hudson.console.ModelHyperlinkNote

Module / class or interface : hudson.console.ModelHyperlinkNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ModelHyperlinkNote | ModelHyperlinkNote(String;int) | 1 | 1
String | extraAttributes() | 1 | 1
String | encodeTo(User) | 1 | 1
String | encodeTo(User;String) | 1 | 1
String | encodeTo(Item) | 1 | 1
String | encodeTo(Item;String) | 1 | 1
String | encodeTo(Run) | 1 | 1
String | encodeTo(Node) | 1 | 1
String | encodeTo(String;String) | 1 | 3

#### File core\src\main\java\hudson\console\PlainTextConsoleOutputStream.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
LineTransformationOutputStream | hudson.console.PlainTextConsoleOutputStream

Module / class or interface : hudson.console.PlainTextConsoleOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PlainTextConsoleOutputStream | PlainTextConsoleOutputStream(OutputStream) | 1 | 1
void | eol(byte[];int) | 3 | 9
void | flush() | 1 | 1
void | close() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00066 | MAJOR | QC-JAV000001[00066] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\console\UrlAnnotator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConsoleAnnotatorFactory<Object> | hudson.console.UrlAnnotator

Module / class or interface : hudson.console.UrlAnnotator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsoleAnnotator | newInstance(Object) | 1 | 1

#### File core\src\main\java\hudson\console\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.console.

#### File core\src\main\java\hudson\diagnosis\HudsonHomeDiskUsageChecker.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PeriodicWork | hudson.diagnosis.HudsonHomeDiskUsageChecker

Module / class or interface : hudson.diagnosis.HudsonHomeDiskUsageChecker

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
long | getRecurrencePeriod() | 1 | 1
void | doRun() | 2 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00076 | MAJOR | QC-JAVCWE493[00076] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00076 | MINOR | QC-JAVCWE500[00076] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\diagnosis\HudsonHomeDiskUsageMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.diagnosis.HudsonHomeDiskUsageMonitor

Module / class or interface : hudson.diagnosis.HudsonHomeDiskUsageMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HudsonHomeDiskUsageMonitor | HudsonHomeDiskUsageMonitor() | 1 | 1
boolean | isActivated() | 1 | 1
HttpResponse | doAct(String) | 3 | 3
List<Solution> | getSolutions() | 1 | 1
Solution | getSolution(String) | 3 | 2
HudsonHomeDiskUsageMonitor | get() | 1 | 1

#### File core\src\main\java\hudson\diagnosis\MemoryUsageMonitor.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PeriodicWork | hudson.diagnosis.MemoryUsageMonitor

Module / class or interface : hudson.diagnosis.MemoryUsageMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MemoryUsageMonitor | MemoryUsageMonitor() | 1 | 3
long | getRecurrencePeriod() | 1 | 1
void | doRun() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\diagnosis\NullIdDescriptorMonitor.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.diagnosis.NullIdDescriptorMonitor

Module / class or interface : hudson.diagnosis.NullIdDescriptorMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isActivated() | 1 | 1
List<Descriptor> | getProblems() | 1 | 1
void | verify() | 3 | 3
void | verifyId() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00066 | MAJOR | QC-JAV000001[00066] Avoid declaring class instance within loop, performance impact
00067 | MAJOR | QC-JAV000001[00067] Avoid declaring class instance within loop, performance impact
00070 | MAJOR | QC-JAV000001[00070] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\diagnosis\OldDataMonitor.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.diagnosis.OldDataMonitor

Module / class or interface : hudson.diagnosis.OldDataMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
OldDataMonitor | OldDataMonitor() | 1 | 1
String | getDisplayName() | 1 | 1
boolean | isActivated() | 1 | 1
Map<Saveable,VersionRange> | getData() | 1 | 1
void | remove(Saveable;boolean) | 4 | 4
void | report(Saveable;String) | 3 | 2
void | report(UnmarshallingContext;String) | 1 | 1
void | report(Saveable;Collection<Throwable>) | 7 | 7
Iterator<VersionNumber> | getVersionList() | 3 | 3
HttpResponse | doAct(StaplerRequest;StaplerResponse) | 3 | 3
HttpResponse | doUpgrade(StaplerRequest;StaplerResponse) | 3 | 9
HttpResponse | doDiscard(StaplerRequest;StaplerResponse) | 3 | 6
HttpResponse | doIndex(StaplerResponse) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00253 | INFO | QC-JAV999996[00253] CPD de longueur 53 commencant en 1339 (ligne 253) et 1474 (ligne 271): = true ; for ( Iterator _ Map . Entry _ Saveable , VersionRange _ _ it = data . entrySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { Map . Entry _ Saveable , VersionRange _ entry = it . next ( ) ; VersionNumber
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAV000001[00171] Avoid declaring class instance within loop, performance impact
00191 | MAJOR | QC-JAVCWE493[00191] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00255 | MAJOR | QC-JAV000001[00255] Avoid declaring class instance within loop, performance impact
00256 | MAJOR | QC-JAV000001[00256] Avoid declaring class instance within loop, performance impact
00273 | MAJOR | QC-JAV000001[00273] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\diagnosis\ReverseProxySetupMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.diagnosis.ReverseProxySetupMonitor

Module / class or interface : hudson.diagnosis.ReverseProxySetupMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isActivated() | 1 | 1
HttpResponse | doTest() | 1 | 1
FormValidation | doFoo() | 1 | 1
HttpResponse | doAct(String) | 3 | 3

#### File core\src\main\java\hudson\diagnosis\TooManyJobsButNoView.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.diagnosis.TooManyJobsButNoView

Module / class or interface : hudson.diagnosis.TooManyJobsButNoView

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isActivated() | 1 | 2
void | doAct(StaplerRequest;StaplerResponse) | 3 | 3

#### File core\src\main\java\hudson\fsp\WorkspaceSnapshotSCM.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
SCM | hudson.fsp.WorkspaceSnapshotSCM

Module / class or interface : hudson.fsp.WorkspaceSnapshotSCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WorkspaceSnapshotSCM | WorkspaceSnapshotSCM(String;String) | 1 | 2
Snapshot | resolve() | 7 | 11
SCMRevisionState | calcRevisionsFromBuild(AbstractBuild<?,?>;Launcher;TaskListener) | 1 | 1
PollingResult | compareRemoteRevisionWith(AbstractProject;Launcher;FilePath;TaskListener;SCMRevisionState) | 1 | 1
boolean | checkout(AbstractBuild;Launcher;FilePath;BuildListener;File) | 1 | 5
ChangeLogParser | createChangeLogParser() | 1 | 1
SCMDescriptor<?> | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00057 | MAJOR | QC-JAVCWE493[00057] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00061 | MAJOR | QC-JAVCWE493[00061] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\init\InitMilestone.java 1 rule violations (XML file)

Module / class or interface : hudson.init.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00043 | BLOCKER | QC-JAV999999[00043] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\init\\InitMilestone.java near following tokens org . jvnet . hudson . reactor . TaskGraphBuilder ; public enum InitMilestone implements Milestone { STARTED ( _Started initialization_ ) ,

#### File core\src\main\java\hudson\init\InitReactorListener.java 0 rule violation (XML file)

Module / class or interface : hudson.init.InitReactorListener

#### File core\src\main\java\hudson\init\InitStrategy.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.init.InitStrategy

Module / class or interface : hudson.init.InitStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<File> | listPluginArchives(PluginManager) | 1 | 7
void | listPluginFiles(PluginManager;String;Collection<File>) | 2 | 3
void | getBundledPluginsFromProperty(List<File>) | 3 | 1
boolean | skipInitTask(Task) | 1 | 1
InitStrategy | get(ClassLoader) | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact
00090 | MAJOR | QC-JAV000001[00090] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\init\Initializer.java 1 rule violations (XML file)

Module / class or interface : hudson.init.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00036 | BLOCKER | QC-JAV999999[00036] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\init\\Initializer.java near following tokens import static hudson . init . InitMilestone . COMPLETED ; @ Indexed @ Documented @ Retention ( RUNTIME ) @ Target

#### File core\src\main\java\hudson\init\InitializerFinder.java 1 rule violations (XML file)

Module / class or interface : hudson.init.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00055 | BLOCKER | QC-JAV999999[00055] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\init\\InitializerFinder.java near following tokens java . util . logging . Level . WARNING ; public class InitializerFinder extends TaskBuilder { private final ClassLoader cl ;

#### File core\src\main\java\hudson\init\impl\GroovyInitScript.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.init.impl.GroovyInitScript

Module / class or interface : hudson.init.impl.GroovyInitScript

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(Jenkins) | 5 | 7
void | execute(File) | 1 | 2
void | execute(GroovyCodeSource) | 1 | 2

#### File core\src\main\java\hudson\init\impl\InitialUserContent.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.init.impl.InitialUserContent

Module / class or interface : hudson.init.impl.InitialUserContent

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(Jenkins) | 2 | 3

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 2 | "userContent"\---java.io.File (correctly sanitized)\------hudson.init.impl.InitialUserContent.init.userContentDir | correctly sanitized
| 1 | hudson.init.impl.InitialUserContent.init.userContentDir\---java.io.File\------FileUtils.writeStringToFile1 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---

Line start | Criticity class | Rule
--- | --- | ---

#### File core\src\main\java\hudson\init\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.init.

#### File core\src\main\java\hudson\lifecycle\Lifecycle.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.lifecycle.Lifecycle

Module / class or interface : hudson.lifecycle.Lifecycle

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Lifecycle | get() | 4 | 5
File | getHudsonWar() | 2 | 3
void | rewriteHudsonWar(File) | 4 | 6
boolean | canRewriteHudsonWar() | 1 | 2
void | restart() | 1 | 1
void | verifyRestartable() | 2 | 1
boolean | canRestart() | 1 | 3

#### File core\src\main\java\hudson\lifecycle\RestartNotSupportedException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Exception | hudson.lifecycle.RestartNotSupportedException

Module / class or interface : hudson.lifecycle.RestartNotSupportedException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RestartNotSupportedException | RestartNotSupportedException(String) | 1 | 1
RestartNotSupportedException | RestartNotSupportedException(String;Throwable) | 1 | 1

#### File core\src\main\java\hudson\lifecycle\SolarisSMFLifecycle.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Lifecycle | hudson.lifecycle.SolarisSMFLifecycle

Module / class or interface : hudson.lifecycle.SolarisSMFLifecycle

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | restart() | 2 | 3

#### File core\src\main\java\hudson\lifecycle\UnixLifecycle.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Lifecycle | hudson.lifecycle.UnixLifecycle

Module / class or interface : hudson.lifecycle.UnixLifecycle

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UnixLifecycle | UnixLifecycle() | 1 | 4
void | restart() | 4 | 11
void | verifyRestartable() | 3 | 2

#### File core\src\main\java\hudson\lifecycle\WindowsInstallerLink.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | hudson.lifecycle.WindowsInstallerLink

Module / class or interface : hudson.lifecycle.WindowsInstallerLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WindowsInstallerLink | WindowsInstallerLink(File) | 1 | 1
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
boolean | isInstalled() | 1 | 1
void | doDoInstall(StaplerRequest;StaplerResponse;String) | 6 | 19
void | copy(StaplerRequest;StaplerResponse;File;URL;String) | 1 | 4
void | doRestart(StaplerRequest;StaplerResponse) | 2 | 6
void | sendError(Exception;StaplerRequest;StaplerResponse) | 1 | 1
void | sendError(String;StaplerRequest;StaplerResponse) | 1 | 3
WindowsInstallerLink | registerIfApplicable() | 5 | 7
int | runElevated(File;String;TaskListener;File) | 4 | 13

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 5 | hudson.lifecycle.WindowsInstallerLink.doDoInstall3\---dummymethode\------hudson.lifecycle.WindowsInstallerLink.doDoInstall._dir |
| 4 | hudson.lifecycle.WindowsInstallerLink.doDoInstall._dir\---java.io.File\------hudson.lifecycle.WindowsInstallerLink.doDoInstall.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 3 | hudson.lifecycle.WindowsInstallerLink.doDoInstall.dir\---hudson.lifecycle.WindowsInstallerLink.copy\------hudson.lifecycle.WindowsInstallerLink.copy3 |
| 2 | hudson.lifecycle.WindowsInstallerLink.copy3\---dummymethode\------hudson.lifecycle.WindowsInstallerLink.copy.dir |
| 1 | hudson.lifecycle.WindowsInstallerLink.copy.dir\---java.io.File\------FileUtils.copyURLToFile2 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00148 | MAJOR | QC-JAVCWE390[00148] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\lifecycle\WindowsServiceLifecycle.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Lifecycle | hudson.lifecycle.WindowsServiceLifecycle

Module / class or interface : hudson.lifecycle.WindowsServiceLifecycle

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WindowsServiceLifecycle | WindowsServiceLifecycle() | 1 | 1
void | updateHudsonExeIfNeeded() | 2 | 4
void | rewriteHudsonWar(File) | 3 | 11
void | restart() | 3 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00070 | MAJOR | QC-JAV000001[00070] Avoid declaring class instance within loop, performance impact
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00076 | MAJOR | QC-JAV000001[00076] Avoid declaring class instance within loop, performance impact
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact
00082 | MAJOR | QC-JAV000001[00082] Avoid declaring class instance within loop, performance impact
00082 | MAJOR | QC-JAVCWE390[00082] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\logging\LogRecorder.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.logging.LogRecorder

Module / class or interface : hudson.logging.LogRecorder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LogRecorder | LogRecorder(String) | 1 | 2
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
String | getName() | 1 | 1
LogRecorderManager | getParent() | 1 | 1
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 4 | 15
void | load() | 2 | 2
void | save() | 2 | 3
void | doDoDelete(StaplerResponse) | 4 | 5
void | doRss(StaplerRequest;StaplerResponse) | 1 | 1
XmlFile | getConfigFile() | 1 | 1
List<LogRecord> | getLogRecords() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00220 | MAJOR | QC-JAV000001[00220] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAVCWE493[00259] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00259 | MINOR | QC-JAVCWE500[00259] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\logging\LogRecorderManager.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.logging.LogRecorderManager

Module / class or interface : hudson.logging.LogRecorderManager

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
LogRecorder | getDynamic(String) | 1 | 1
LogRecorder | getLogRecorder(String) | 1 | 1
void | load() | 3 | 9
HttpResponse | doNewLogRecorder(String) | 1 | 3
HttpResponse | doConfigLogger(String;String) | 3 | 6
void | doRss(StaplerRequest;StaplerResponse) | 1 | 1
void | doRss(StaplerRequest;StaplerResponse;List<LogRecord>) | 3 | 5
void | init(Jenkins) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00092 | MAJOR | QC-JAV000001[00092] Avoid declaring class instance within loop, performance impact
00094 | MAJOR | QC-JAV000001[00094] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\logging\WeakLogHandler.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Handler | hudson.logging.WeakLogHandler

Module / class or interface : hudson.logging.WeakLogHandler

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WeakLogHandler | WeakLogHandler(Handler;Logger) | 1 | 3
void | publish(LogRecord) | 2 | 2
void | flush() | 2 | 2
void | close() | 2 | 2
Handler | resolve() | 2 | 3
void | setFormatter(Formatter) | 2 | 3
void | setEncoding(String) | 2 | 3
void | setFilter(Filter) | 2 | 3
void | setErrorManager(ErrorManager) | 2 | 3
void | setLevel(Level) | 2 | 3
boolean | isLoggable(LogRecord) | 3 | 3

#### File core\src\main\java\hudson\markup\EbayPolicy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.markup.EbayPolicy

Module / class or interface : hudson.markup.EbayPolicy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | main(String[]) | 2 | 6

#### File core\src\main\java\hudson\markup\HtmlPolicyBuilder2.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HtmlPolicyBuilder | hudson.markup.HtmlPolicyBuilder2

Module / class or interface : hudson.markup.HtmlPolicyBuilder2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | tag(String;Object) | 3 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9

Line start | Criticity class | Rule
--- | --- | ---
00019 | MAJOR | QC-JAV000001[00019] Avoid declaring class instance within loop, performance impact
00019 | MAJOR | QC-JAV000001[00019] Avoid declaring class instance within loop, performance impact
00021 | MAJOR | QC-JAV000001[00021] Avoid declaring class instance within loop, performance impact
00022 | MAJOR | QC-JAV000001[00022] Avoid declaring class instance within loop, performance impact
00023 | MAJOR | QC-JAV000001[00023] Avoid declaring class instance within loop, performance impact
00023 | MAJOR | QC-JAV000001[00023] Avoid declaring class instance within loop, performance impact
00029 | MAJOR | QC-JAV000001[00029] Avoid declaring class instance within loop, performance impact
00030 | MAJOR | QC-JAV000001[00030] Avoid declaring class instance within loop, performance impact
00030 | MAJOR | QC-JAV000001[00030] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\markup\MarkupFormatter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<MarkupFormatter> | hudson.markup.MarkupFormatter

Module / class or interface : hudson.markup.MarkupFormatter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | translate(String;Writer) | 1 | 1
String | translate(String) | 1 | 3
String | getHelpUrl() | 1 | 1
MarkupFormatterDescriptor | getDescriptor() | 1 | 1
HttpResponse | doPreviewDescription(String) | 1 | 3

#### File core\src\main\java\hudson\markup\MarkupFormatterDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<MarkupFormatter> | hudson.markup.MarkupFormatterDescriptor

Module / class or interface : hudson.markup.MarkupFormatterDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<MarkupFormatter,MarkupFormatterDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\markup\MyspacePolicy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.markup.MyspacePolicy

Module / class or interface : hudson.markup.MyspacePolicy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | main(String[]) | 1 | 3

#### File core\src\main\java\hudson\markup\RawHtmlMarkupFormatter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MarkupFormatter | hudson.markup.RawHtmlMarkupFormatter

Module / class or interface : hudson.markup.RawHtmlMarkupFormatter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RawHtmlMarkupFormatter | RawHtmlMarkupFormatter(boolean) | 1 | 1
boolean | isDisableSyntaxHighlighting() | 1 | 1
void | translate(String;Writer) | 1 | 2
String | getCodeMirrorMode() | 1 | 1
String | getCodeMirrorConfig() | 1 | 1

#### File core\src\main\java\hudson\matrix\Axis.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<Axis> | hudson.matrix.Axis

Module / class or interface : hudson.matrix.Axis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Axis | Axis(String;List<String>) | 2 | 3
Axis | Axis(String;String) | 1 | 1
Axis | Axis(String;String) | 1 | 2
boolean | isSystem() | 1 | 1
Iterator<String> | iterator() | 1 | 1
int | size() | 1 | 1
String | value(int) | 1 | 1
int | indexOf(String) | 1 | 1
int | compareTo(Axis) | 1 | 1
String | getName() | 1 | 1
List<String> | getValues() | 1 | 1
List<String> | rebuild(MatrixBuildExecution) | 1 | 1
AxisDescriptor | getDescriptor() | 1 | 1
String | toString() | 1 | 1
String | getValueString() | 3 | 6
Axis | parsePrefixed(StaplerRequest;String) | 3 | 7
Object | readResolve() | 4 | 4
DescriptorExtensionList<Axis,AxisDescriptor> | all() | 1 | 1
void | addBuildVariable(String;Map<String,String>) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00221 | MAJOR | QC-JAV000001[00221] Avoid declaring class instance within loop, performance impact
00221 | MAJOR | QC-JAV000001[00221] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\AxisDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<Axis> | hudson.matrix.AxisDescriptor

Module / class or interface : hudson.matrix.AxisDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AxisDescriptor | AxisDescriptor(Class<?extendsAxis>) | 1 | 1
AxisDescriptor | AxisDescriptor() | 1 | 0
boolean | isInstantiable() | 1 | 1
FormValidation | doCheckName(String) | 2 | 4

#### File core\src\main\java\hudson\matrix\AxisList.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ArrayList<Axis> | hudson.matrix.AxisList

Module / class or interface : hudson.matrix.AxisList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AxisList | AxisList() | 1 | 0
AxisList | AxisList(Collection<?extendsAxis>) | 1 | 1
AxisList | AxisList(Axis) | 1 | 1
Axis | find(String) | 3 | 2
AxisList | subList(Class<?extendsAxis>) | 1 | 1
boolean | add(Axis) | 1 | 1
Iterable<Combination> | list() | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\Combination.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TreeMap<String,String> | hudson.matrix.Combination

Module / class or interface : hudson.matrix.Combination

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Combination | Combination(AxisList;List<String>) | 2 | 3
Combination | Combination(AxisList;String) | 1 | 1
Combination | Combination(Map<String,String>) | 2 | 1
String | get(Axis) | 1 | 1
int | toIndex(AxisList) | 2 | 4
long | toModuloIndex(AxisList) | 2 | 4
boolean | evalGroovyExpression(AxisList;String) | 3 | 8
int | compareTo(Combination) | 4 | 11
String | toString(Collection<Axis>) | 5 | 6
List<String> | values(Collection<?extendsAxis>) | 2 | 3
String | toString(char;char) | 4 | 5
String | toString() | 1 | 1
String | digest() | 1 | 1
Combination | fromString(String) | 3 | 8
String | toCompactString(AxisList) | 7 | 8
void | clear() | 1 | 1
void | putAll(Map<?extendsString,?extendsString>) | 1 | 1
String | put(String;String) | 1 | 1
String | remove(Object) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00137 | MAJOR | QC-JAV000001[00137] Avoid declaring class instance within loop, performance impact
00138 | MAJOR | QC-JAV000001[00138] Avoid declaring class instance within loop, performance impact
00215 | MAJOR | QC-JAV000001[00215] Avoid declaring class instance within loop, performance impact
00236 | MAJOR | QC-JAV000001[00236] Avoid declaring class instance within loop, performance impact
00237 | MAJOR | QC-JAV000001[00237] Avoid declaring class instance within loop, performance impact
00237 | MAJOR | QC-JAV000001[00237] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\DefaultAxisDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AxisDescriptor | hudson.matrix.DefaultAxisDescriptor

Module / class or interface : hudson.matrix.DefaultAxisDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultAxisDescriptor | DefaultAxisDescriptor() | 1 | 1
String | getDisplayName() | 1 | 1
boolean | isInstantiable() | 1 | 1

#### File core\src\main\java\hudson\matrix\DefaultMatrixExecutionStrategyImpl.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MatrixExecutionStrategy | hudson.matrix.DefaultMatrixExecutionStrategyImpl

Module / class or interface : hudson.matrix.DefaultMatrixExecutionStrategyImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultMatrixExecutionStrategyImpl | DefaultMatrixExecutionStrategyImpl(Boolean;boolean;String;Result;MatrixConfigurationSorter) | 1 | 1
DefaultMatrixExecutionStrategyImpl | DefaultMatrixExecutionStrategyImpl(boolean;String;Result;MatrixConfigurationSorter) | 1 | 4
DefaultMatrixExecutionStrategyImpl | DefaultMatrixExecutionStrategyImpl() | 1 | 1
boolean | getHasTouchStoneCombinationFilter() | 1 | 1
boolean | isRunSequentially() | 1 | 1
void | setRunSequentially(boolean) | 1 | 1
String | getTouchStoneCombinationFilter() | 1 | 1
void | setTouchStoneCombinationFilter(String) | 1 | 1
Result | getTouchStoneResultCondition() | 1 | 1
void | setTouchStoneResultCondition(Result) | 1 | 1
MatrixConfigurationSorter | getSorter() | 1 | 1
void | setSorter(MatrixConfigurationSorter) | 1 | 1
Result | run(MatrixBuildExecution) | 16 | 24
Result | getResult(MatrixRun) | 1 | 1
boolean | notifyStartBuild(List<MatrixAggregator>) | 3 | 2
void | notifyEndBuild(MatrixRun;List<MatrixAggregator>) | 4 | 2
void | scheduleConfigurationBuild(MatrixBuildExecution;MatrixConfiguration) | 1 | 4
MatrixRun | waitForCompletion(MatrixBuildExecution;MatrixConfiguration) | 6 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00147 | MAJOR | QC-JAV000001[00147] Avoid declaring class instance within loop, performance impact
00164 | MAJOR | QC-JAV000001[00164] Avoid declaring class instance within loop, performance impact
00223 | MAJOR | QC-JAV000001[00223] Avoid declaring class instance within loop, performance impact
00228 | MAJOR | QC-JAV000001[00228] Avoid declaring class instance within loop, performance impact
00232 | MAJOR | QC-JAV000001[00232] Avoid declaring class instance within loop, performance impact
00252 | MAJOR | QC-JAV000001[00252] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\JDKAxis.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Axis | hudson.matrix.JDKAxis

Module / class or interface : hudson.matrix.JDKAxis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JDKAxis | JDKAxis(List<String>) | 1 | 1
JDKAxis | JDKAxis(String[]) | 1 | 1
boolean | isSystem() | 1 | 1

#### File core\src\main\java\hudson\matrix\LabelAxis.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Axis | hudson.matrix.LabelAxis

Module / class or interface : hudson.matrix.LabelAxis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LabelAxis | LabelAxis(String;List<String>) | 1 | 1
boolean | isSystem() | 1 | 1
String | getValueString() | 1 | 1

#### File core\src\main\java\hudson\matrix\LabelExpAxis.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Axis | hudson.matrix.LabelExpAxis

Module / class or interface : hudson.matrix.LabelExpAxis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LabelExpAxis | LabelExpAxis(String;String) | 1 | 1
LabelExpAxis | LabelExpAxis(String;List<String>) | 1 | 1
boolean | isSystem() | 1 | 1
DescriptorImpl | getDescriptor() | 1 | 1
String | getValuesString() | 2 | 4
List<String> | getExprValues(String) | 2 | 4

#### File core\src\main\java\hudson\matrix\Layouter.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.matrix.Layouter

Module / class or interface : hudson.matrix.Layouter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Layouter | Layouter(List<Axis>;List<Axis>;List<Axis>) | 1 | 4
Layouter | Layouter(AxisList) | 8 | 18
void | init() | 1 | 3
int | width(int) | 1 | 1
int | repeatX(int) | 2 | 5
int | height(int) | 1 | 1
int | calc(List<Axis>;int) | 2 | 5
List<Row> | getRows() | 1 | 1
T | getT(Combination) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\LinkedLogRotator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LogRotator | hudson.matrix.LinkedLogRotator

Module / class or interface : hudson.matrix.LinkedLogRotator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LinkedLogRotator | LinkedLogRotator(int;int) | 1 | 1
LinkedLogRotator | LinkedLogRotator() | 1 | 1
void | perform(Job) | 4 | 4

#### File core\src\main\java\hudson\matrix\MatrixAggregatable.java 0 rule violation (XML file)

Module / class or interface : hudson.matrix.MatrixAggregatable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixAggregator | createAggregator(MatrixBuild;Launcher;BuildListener) | 1 | 1

#### File core\src\main\java\hudson\matrix\MatrixAggregator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.matrix.MatrixAggregator

Module / class or interface : hudson.matrix.MatrixAggregator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixAggregator | MatrixAggregator(MatrixBuild;Launcher;BuildListener) | 1 | 3
boolean | startBuild() | 1 | 1
boolean | endRun(MatrixRun) | 1 | 1
boolean | endBuild() | 1 | 1

#### File core\src\main\java\hudson\matrix\MatrixBuild.java 13 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractBuild<MatrixProject,MatrixBuild> | hudson.matrix.MatrixBuild

Module / class or interface : hudson.matrix.MatrixBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixBuild | MatrixBuild(MatrixProject) | 1 | 1
MatrixBuild | MatrixBuild(MatrixProject;Calendar) | 1 | 1
MatrixBuild | MatrixBuild(MatrixProject;File) | 1 | 1
Object | readResolve() | 2 | 2
void | doDoDeleteAll(StaplerRequest;StaplerResponse) | 4 | 9
Layouter<RunPtr> | getLayouter() | 1 | 1
void | setBaseBuild(MatrixBuild) | 1 | 1
MatrixBuild | getBaseBuild() | 1 | 1
MatrixRun | getRun(Combination) | 2 | 3
MatrixRun | getExactRun(Combination) | 2 | 3
List<MatrixRun> | getRuns() | 3 | 4
MatrixRun | getRunForConfiguration(MatrixConfiguration) | 3 | 5
List<MatrixRun> | getExactRuns() | 3 | 4
String | getWhyKeepLog() | 2 | 3
boolean | isLinkedBy(MatrixBuild) | 4 | 4
boolean | isPartial() | 3 | 3
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 2 | 2
void | run() | 1 | 1
Fingerprint.RangeSet | getDownstreamRelationship(AbstractProject) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 12

Line start | Criticity class | Rule
--- | --- | ---
00216 | MAJOR | QC-JAV000001[00216] Avoid declaring class instance within loop, performance impact
00224 | MAJOR | QC-JAV000001[00224] Avoid declaring class instance within loop, performance impact
00240 | MAJOR | QC-JAV000001[00240] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact
00274 | MAJOR | QC-JAV000001[00274] Avoid declaring class instance within loop, performance impact
00296 | MAJOR | QC-JAVCWE390[00296] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00370 | MAJOR | QC-JAV000001[00370] Avoid declaring class instance within loop, performance impact
00376 | MAJOR | QC-JAV000001[00376] Avoid declaring class instance within loop, performance impact
00378 | MAJOR | QC-JAV000001[00378] Avoid declaring class instance within loop, performance impact
00391 | MAJOR | QC-JAV000001[00391] Avoid declaring class instance within loop, performance impact
00392 | MAJOR | QC-JAV000001[00392] Avoid declaring class instance within loop, performance impact
00392 | MAJOR | QC-JAV000001[00392] Avoid declaring class instance within loop, performance impact
00393 | MAJOR | QC-JAV000001[00393] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\MatrixChildAction.java 0 rule violation (XML file)

Module / class or interface : hudson.matrix.MatrixChildAction

#### File core\src\main\java\hudson\matrix\MatrixConfiguration.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Project<MatrixConfiguration,MatrixRun> | hudson.matrix.MatrixConfiguration

Module / class or interface : hudson.matrix.MatrixConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixConfiguration | MatrixConfiguration(MatrixProject;Combination) | 1 | 2
void | onLoad(ItemGroup<?extendsItem>;String) | 1 | 1
EnvVars | getEnvironment(Node;TaskListener) | 4 | 6
void | updateTransientActions() | 1 | 1
boolean | isConcurrentBuild() | 1 | 1
void | setConcurrentBuild(boolean) | 1 | 1
void | setCombination(Combination) | 1 | 2
int | getNextBuildNumber() | 3 | 7
int | assignBuildNumber() | 2 | 4
String | getDisplayName() | 1 | 1
MatrixProject | getParent() | 1 | 1
Combination | getCombination() | 1 | 1
int | getQuietPeriod() | 1 | 1
int | getScmCheckoutRetryCount() | 1 | 1
SCMCheckoutStrategy | getScmCheckoutStrategy() | 1 | 1
boolean | isConfigurable() | 1 | 1
Class<MatrixRun> | getBuildClass() | 1 | 1
MatrixRun | newBuild() | 3 | 6
void | buildDependencyGraph(DependencyGraph) | 1 | 0
MatrixConfiguration | asProject() | 1 | 1
Label | getAssignedLabel() | 3 | 6
String | getPronoun() | 1 | 1
JDK | getJDK() | 1 | 1
List<Builder> | getBuilders() | 1 | 1
Map<Descriptor<Publisher>,Publisher> | getPublishers() | 1 | 1
DescribableList<Builder,Descriptor<Builder>> | getBuildersList() | 1 | 1
DescribableList<Publisher,Descriptor<Publisher>> | getPublishersList() | 1 | 1
Map<Descriptor<BuildWrapper>,BuildWrapper> | getBuildWrappers() | 1 | 1
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> | getBuildWrappersList() | 1 | 1
Publisher | getPublisher(Descriptor<Publisher>) | 1 | 1
BuildDiscarder | getBuildDiscarder() | 2 | 4
SCM | getScm() | 1 | 1
String | getDigestName() | 1 | 1
void | setJDK(JDK) | 1 | 1
void | setBuildDiscarder(BuildDiscarder) | 1 | 1
boolean | isActiveConfiguration() | 1 | 1
boolean | scheduleBuild(ParametersAction) | 1 | 1
boolean | scheduleBuild(ParametersAction;Cause) | 1 | 1
boolean | scheduleBuild(List<?extendsAction>;Cause) | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00098 | MAJOR | QC-JAV000001[00098] Avoid declaring class instance within loop, performance impact
00234 | MAJOR | QC-JAV000001[00234] Avoid declaring class instance within loop, performance impact
00235 | MAJOR | QC-JAV000001[00235] Avoid declaring class instance within loop, performance impact
00378 | MAJOR | QC-JAVCWE493[00378] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00378 | MINOR | QC-JAVCWE500[00378] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00421 | MAJOR | QC-JAVCWE493[00421] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\matrix\MatrixConfigurationSorter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<MatrixConfigurationSorter> | hudson.matrix.MatrixConfigurationSorter

Module / class or interface : hudson.matrix.MatrixConfigurationSorter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | validate(MatrixProject) | 1 | 1
MatrixConfigurationSorterDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\matrix\MatrixConfigurationSorterDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<MatrixConfigurationSorter> | hudson.matrix.MatrixConfigurationSorterDescriptor

Module / class or interface : hudson.matrix.MatrixConfigurationSorterDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixConfigurationSorterDescriptor | MatrixConfigurationSorterDescriptor(Class<?extendsMatrixConfigurationSorter>) | 1 | 1
MatrixConfigurationSorterDescriptor | MatrixConfigurationSorterDescriptor() | 1 | 0
DescriptorExtensionList<MatrixConfigurationSorter,MatrixConfigurationSorterDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\matrix\MatrixExecutionStrategy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<MatrixExecutionStrategy> | hudson.matrix.MatrixExecutionStrategy

Module / class or interface : hudson.matrix.MatrixExecutionStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Result | run(MatrixBuildExecution) | 1 | 1
Result | run(MatrixBuild;List<MatrixAggregator>;BuildListener) | 1 | 1
MatrixExecutionStrategyDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\matrix\MatrixExecutionStrategyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<MatrixExecutionStrategy> | hudson.matrix.MatrixExecutionStrategyDescriptor

Module / class or interface : hudson.matrix.MatrixExecutionStrategyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixExecutionStrategyDescriptor | MatrixExecutionStrategyDescriptor(Class<?extendsMatrixExecutionStrategy>) | 1 | 1
MatrixExecutionStrategyDescriptor | MatrixExecutionStrategyDescriptor() | 1 | 0
DescriptorExtensionList<MatrixExecutionStrategy,MatrixExecutionStrategyDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\matrix\MatrixProject.java 27 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractProject<MatrixProject,MatrixBuild> | hudson.matrix.MatrixProject

Module / class or interface : hudson.matrix.MatrixProject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixProject | MatrixProject(String) | 1 | 1
MatrixProject | MatrixProject(ItemGroup;String) | 1 | 1
String | getChildCustomWorkspace() | 2 | 3
boolean | hasChildCustomWorkspace() | 1 | 1
void | setChildCustomWorkspace(String) | 1 | 2
Set<Label> | getRelevantLabels() | 2 | 3
MatrixConfigurationSorter | getSorter() | 2 | 4
void | setSorter(MatrixConfigurationSorter) | 2 | 4
AxisList | getAxes() | 1 | 1
void | setAxes(AxisList) | 1 | 3
MatrixExecutionStrategy | getExecutionStrategy() | 1 | 1
void | setExecutionStrategy(MatrixExecutionStrategy) | 2 | 3
boolean | isRunSequentially() | 2 | 4
void | setRunSequentially(boolean) | 2 | 4
void | setCombinationFilter(String) | 1 | 3
String | getCombinationFilter() | 1 | 1
String | getTouchStoneCombinationFilter() | 2 | 4
void | setTouchStoneCombinationFilter(String) | 2 | 4
Result | getTouchStoneResultCondition() | 2 | 4
void | setTouchStoneResultCondition(Result) | 2 | 4
List<Action> | createTransientActions() | 5 | 6
void | updateTransientActions() | 3 | 1
List<Axis> | getUserAxes() | 3 | 3
Layouter<MatrixConfiguration> | getLayouter() | 1 | 1
void | onCreatedFromScratch() | 1 | 2
void | onLoad(ItemGroup<?extendsItem>;String) | 2 | 6
void | logRotate() | 3 | 2
void | loadConfigurations(File;CopyOnWriteMap.Tree<Combination,MatrixConfiguration>;Map<String,String>) | 5 | 5
Set<MatrixConfiguration> | rebuildConfigurations(MatrixBuildExecution) | 7 | 12
File | getConfigurationsDir() | 1 | 1
Collection<MatrixConfiguration> | getActiveConfigurations() | 1 | 1
Collection<MatrixConfiguration> | getItems() | 1 | 1
Collection<?extendsJob> | getAllJobs() | 1 | 3
String | getUrlChildPrefix() | 1 | 1
MatrixConfiguration | getItem(String) | 1 | 2
MatrixConfiguration | getItem(Combination) | 1 | 1
File | getRootDirFor(MatrixConfiguration) | 1 | 1
void | onRenamed(MatrixConfiguration;String;String) | 1 | 1
void | onDeleted(MatrixConfiguration) | 1 | 0
File | getRootDirFor(Combination) | 2 | 4
JDK | getJDK() | 1 | 1
Set<JDK> | getJDKs() | 4 | 6
Set<Label> | getLabels() | 2 | 3
List<Builder> | getBuilders() | 1 | 1
DescribableList<Builder,Descriptor<Builder>> | getBuildersList() | 1 | 1
Map<Descriptor<Publisher>,Publisher> | getPublishers() | 1 | 1
DescribableList<Publisher,Descriptor<Publisher>> | getPublishersList() | 1 | 1
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> | getBuildWrappersList() | 1 | 1
Map<Descriptor<BuildWrapper>,BuildWrapper> | getBuildWrappers() | 1 | 1
Publisher | getPublisher(Descriptor<Publisher>) | 3 | 2
Class<MatrixBuild> | getBuildClass() | 1 | 1
boolean | isFingerprintConfigured() | 1 | 1
void | buildDependencyGraph(DependencyGraph) | 1 | 3
MatrixProject | asProject() | 1 | 1
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 2 | 3
void | submit(StaplerRequest;StaplerResponse) | 7 | 17
void | checkAxisNames(Iterable<Axis>) | 4 | 5
HttpResponse | doDoWipeOutWorkspace() | 2 | 3
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 25

Line start | Criticity class | Rule
--- | --- | ---
00516 | MAJOR | QC-JAV000001[00516] Avoid declaring class instance within loop, performance impact
00518 | MAJOR | QC-JAV000001[00518] Avoid declaring class instance within loop, performance impact
00519 | MAJOR | QC-JAV000001[00519] Avoid declaring class instance within loop, performance impact
00525 | MAJOR | QC-JAV000001[00525] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00530 | MAJOR | QC-JAV000001[00530] Avoid declaring class instance within loop, performance impact
00532 | MAJOR | QC-JAV000001[00532] Avoid declaring class instance within loop, performance impact
00535 | MAJOR | QC-JAV000001[00535] Avoid declaring class instance within loop, performance impact
00539 | MAJOR | QC-JAV000001[00539] Avoid declaring class instance within loop, performance impact
00545 | MAJOR | QC-JAV000001[00545] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00526 | MAJOR | QC-JAV000001[00526] Avoid declaring class instance within loop, performance impact
00530 | MAJOR | QC-JAV000001[00530] Avoid declaring class instance within loop, performance impact
00532 | MAJOR | QC-JAV000001[00532] Avoid declaring class instance within loop, performance impact
00535 | MAJOR | QC-JAV000001[00535] Avoid declaring class instance within loop, performance impact
00539 | MAJOR | QC-JAV000001[00539] Avoid declaring class instance within loop, performance impact
00545 | MAJOR | QC-JAV000001[00545] Avoid declaring class instance within loop, performance impact
00574 | MAJOR | QC-JAV000001[00574] Avoid declaring class instance within loop, performance impact
00576 | MAJOR | QC-JAV000001[00576] Avoid declaring class instance within loop, performance impact
00576 | MAJOR | QC-JAVCWE390[00576] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00609 | MAJOR | QC-JAV000001[00609] Avoid declaring class instance within loop, performance impact
00708 | MAJOR | QC-JAV000001[00708] Avoid declaring class instance within loop, performance impact
00782 | MAJOR | QC-JAVCWE390[00782] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00831 | MAJOR | QC-JAV000001[00831] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\MatrixRun.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Build<MatrixConfiguration,MatrixRun> | hudson.matrix.MatrixRun

Module / class or interface : hudson.matrix.MatrixRun

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixRun | MatrixRun(MatrixConfiguration) | 1 | 1
MatrixRun | MatrixRun(MatrixConfiguration;Calendar) | 1 | 1
MatrixRun | MatrixRun(MatrixConfiguration;File) | 1 | 1
String | getUpUrl() | 3 | 3
MatrixBuild | getParentBuild() | 1 | 1
AbstractBuild<?,?> | getRootBuild() | 1 | 1
String | getDisplayName() | 3 | 3
Map<String,String> | getBuildVariables() | 4 | 6
String | getWhyKeepLog() | 2 | 3
MatrixConfiguration | getParent() | 1 | 1
void | run() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00062 | INFO | QC-JAV999996[00062] CPD de longueur 66 commencant en 185 (ligne 62) et 357 (ligne 98): ) { StaplerRequest req = Stapler . getCurrentRequest ( ) ; if ( req != null ) { List _ Ancestor _ ancs = req . getAncestors ( ) ; for ( int i = 1 ; i _ ancs . size ( ) ; i ++ ) { if ( ancs . get ( i ) . getObject ( ) == this ) { Object
00068 | MAJOR | QC-JAV000001[00068] Avoid declaring class instance within loop, performance impact
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact
00104 | MAJOR | QC-JAV000001[00104] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\matrix\NoopMatrixConfigurationSorter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MatrixConfigurationSorter | hudson.matrix.NoopMatrixConfigurationSorter

Module / class or interface : hudson.matrix.NoopMatrixConfigurationSorter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NoopMatrixConfigurationSorter | NoopMatrixConfigurationSorter() | 1 | 0
void | validate(MatrixProject) | 1 | 0
int | compare(MatrixConfiguration;MatrixConfiguration) | 1 | 1

#### File core\src\main\java\hudson\matrix\TextAxis.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Axis | hudson.matrix.TextAxis

Module / class or interface : hudson.matrix.TextAxis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TextAxis | TextAxis(String;List<String>) | 1 | 1
TextAxis | TextAxis(String;String) | 1 | 1
TextAxis | TextAxis(String;String) | 1 | 1

#### File core\src\main\java\hudson\matrix\listeners\MatrixBuildListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.matrix.listeners.MatrixBuildListener

Module / class or interface : hudson.matrix.listeners.MatrixBuildListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | doBuildConfiguration(MatrixBuild;MatrixConfiguration) | 1 | 1
boolean | buildConfiguration(MatrixBuild;MatrixConfiguration) | 3 | 1
ExtensionList<MatrixBuildListener> | all() | 1 | 1

#### File core\src\main\java\hudson\model\AbstractBuild.java 38 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Run<P,R> | hudson.model.AbstractBuild

Module / class or interface : hudson.model.AbstractBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractBuild | AbstractBuild(P) | 1 | 1
AbstractBuild | AbstractBuild(P;Calendar) | 1 | 1
AbstractBuild | AbstractBuild(P;File) | 1 | 1
P | getProject() | 1 | 1
void | dropLinks() | 5 | 4
R | getPreviousBuild() | 4 | 5
R | getNextBuild() | 4 | 5
Node | getBuiltOn() | 3 | 2
String | getBuiltOnStr() | 1 | 1
void | setBuiltOnStr(String) | 1 | 1
AbstractBuild<?,?> | getRootBuild() | 1 | 1
String | getUpUrl() | 1 | 1
FilePath | getWorkspace() | 3 | 4
void | setWorkspace(FilePath) | 1 | 1
FilePath | getModuleRoot() | 2 | 3
FilePath[] | getModuleRoots() | 2 | 3
Set<User> | getCulprits() | 5 | 5
boolean | hasParticipant(User) | 3 | 2
String | getHudsonVersion() | 1 | 1
void | delete() | 3 | 6
void | updateSymlink(String;AbstractBuild<?,?>) | 3 | 2
void | createSymlink(TaskListener;String) | 1 | 1
Collection<Fingerprint> | getBuildFingerprints() | 2 | 3
ChangeLogSet<?extendsEntry> | getChangeSet() | 5 | 6
boolean | hasChangeSetComputed() | 1 | 2
ChangeLogSet<?extendsEntry> | calcChangeSet() | 2 | 6
EnvVars | getEnvironment(TaskListener) | 5 | 8
EnvironmentList | getEnvironments() | 3 | 4
Calendar | due() | 1 | 1
List<Action> | getPersistentActions() | 1 | 1
Set<String> | getSensitiveBuildVariables() | 5 | 3
Map<String,String> | getBuildVariables() | 6 | 5
VariableResolver<String> | getBuildVariableResolver() | 1 | 1
AbstractTestResultAction | getTestResultAction() | 1 | 1
AggregatedTestResultAction | getAggregatedTestResultAction() | 1 | 1
void | run() | 1 | 1
String | getWhyKeepLog() | 5 | 4
RangeSet | getDownstreamRelationship(AbstractProject) | 5 | 4
Iterable<AbstractBuild<?,?>> | getDownstreamBuilds(AbstractProject<?,?>) | 1 | 2
int | getUpstreamRelationship(AbstractProject) | 5 | 4
AbstractBuild<?,?> | getUpstreamRelationshipBuild(AbstractProject<?,?>) | 2 | 3
Map<AbstractProject,RangeSet> | getDownstreamBuilds() | 3 | 3
Map<AbstractProject,Integer> | getUpstreamBuilds() | 1 | 1
Map<AbstractProject,Integer> | getTransitiveUpstreamBuilds() | 1 | 1
Map<AbstractProject,Integer> | _getUpstreamBuilds(Collection<AbstractProject>) | 3 | 4
Map<AbstractProject,DependencyChange> | getDependencyChanges(AbstractBuild) | 5 | 11
void | doStop(StaplerRequest;StaplerResponse) | 1 | 1
HttpResponse | doStop() | 4 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 38

Line start | Criticity class | Rule
--- | --- | ---
00210 | MAJOR | QC-JAV000001[00210] Avoid declaring class instance within loop, performance impact
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact
00216 | MAJOR | QC-JAV000001[00216] Avoid declaring class instance within loop, performance impact
00227 | MAJOR | QC-JAV000001[00227] Avoid declaring class instance within loop, performance impact
00240 | MAJOR | QC-JAV000001[00240] Avoid declaring class instance within loop, performance impact
00242 | MAJOR | QC-JAV000001[00242] Avoid declaring class instance within loop, performance impact
00246 | MAJOR | QC-JAV000001[00246] Avoid declaring class instance within loop, performance impact
00257 | MAJOR | QC-JAV000001[00257] Avoid declaring class instance within loop, performance impact
00420 | MAJOR | QC-JAV000001[00420] Avoid declaring class instance within loop, performance impact
00421 | MAJOR | QC-JAV000001[00421] Avoid declaring class instance within loop, performance impact
00421 | MAJOR | QC-JAV000001[00421] Avoid declaring class instance within loop, performance impact
00457 | MAJOR | QC-JAV000001[00457] Avoid declaring class instance within loop, performance impact
00649 | MAJOR | QC-JAV000001[00649] Avoid declaring class instance within loop, performance impact
00656 | MAJOR | QC-JAV000001[00656] Avoid declaring class instance within loop, performance impact
00663 | MAJOR | QC-JAV000001[00663] Avoid declaring class instance within loop, performance impact
00685 | MAJOR | QC-JAV000001[00685] Avoid declaring class instance within loop, performance impact
00688 | MAJOR | QC-JAV000001[00688] Avoid declaring class instance within loop, performance impact
00690 | MAJOR | QC-JAV000001[00690] Avoid declaring class instance within loop, performance impact
00693 | MAJOR | QC-JAV000001[00693] Avoid declaring class instance within loop, performance impact
00698 | MAJOR | QC-JAV000001[00698] Avoid declaring class instance within loop, performance impact
00700 | MAJOR | QC-JAV000001[00700] Avoid declaring class instance within loop, performance impact
00701 | MAJOR | QC-JAV000001[00701] Avoid declaring class instance within loop, performance impact
00702 | MAJOR | QC-JAV000001[00702] Avoid declaring class instance within loop, performance impact
00693 | MAJOR | QC-JAV000001[00693] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAV000001[00784] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAV000001[00784] Avoid declaring class instance within loop, performance impact
00790 | MAJOR | QC-JAV000001[00790] Avoid declaring class instance within loop, performance impact
00791 | MAJOR | QC-JAV000001[00791] Avoid declaring class instance within loop, performance impact
01044 | MAJOR | QC-JAV000001[01044] Avoid declaring class instance within loop, performance impact
01101 | MAJOR | QC-JAV000001[01101] Avoid declaring class instance within loop, performance impact
01112 | MAJOR | QC-JAV000001[01112] Avoid declaring class instance within loop, performance impact
01112 | MAJOR | QC-JAV000001[01112] Avoid declaring class instance within loop, performance impact
01143 | MAJOR | QC-JAV000001[01143] Avoid declaring class instance within loop, performance impact
01191 | MAJOR | QC-JAV000001[01191] Avoid declaring class instance within loop, performance impact
01196 | MAJOR | QC-JAV000001[01196] Avoid declaring class instance within loop, performance impact
01280 | MAJOR | QC-JAV000001[01280] Avoid declaring class instance within loop, performance impact
01281 | MAJOR | QC-JAV000001[01281] Avoid declaring class instance within loop, performance impact
01282 | MAJOR | QC-JAV000001[01282] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\AbstractCIBase.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Node | hudson.model.AbstractCIBase

Module / class or interface : hudson.model.AbstractCIBase

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getNodeName() | 1 | 1
String | getUrl() | 1 | 1
void | resetLabel(Label) | 1 | 1
void | setViewOwner(View) | 1 | 1
void | interruptReloadThread() | 1 | 1
void | killComputer(Computer) | 1 | 1
List<Node> | getNodes() | 1 | 1
Queue | getQueue() | 1 | 1
Map<Node,Computer> | getComputerMap() | 1 | 1
void | updateComputer(Node;Map<String,Computer>;Set<Computer>;boolean) | 4 | 5
void | removeComputer(Computer) | 3 | 2
Computer | getComputer(Node) | 1 | 2
void | updateComputerList(boolean) | 5 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00046 | MAJOR | QC-JAVCWE493[00046] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00046 | MINOR | QC-JAVCWE500[00046] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\AbstractDescribableImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.AbstractDescribableImpl

Module / class or interface : hudson.model.AbstractDescribableImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Descriptor<T> | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\model\AbstractItem.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Actionable | hudson.model.AbstractItem

Module / class or interface : hudson.model.AbstractItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractItem | AbstractItem(ItemGroup;String) | 1 | 2
void | onCreatedFromScratch() | 1 | 0
String | getName() | 1 | 1
String | getPronoun() | 1 | 1
String | getDisplayName() | 2 | 2
String | getDisplayNameOrNull() | 1 | 1
void | setDisplayNameOrNull(String) | 1 | 1
void | setDisplayName(String) | 1 | 2
File | getRootDir() | 1 | 1
ItemGroup | getParent() | 1 | 2
String | getDescription() | 1 | 1
void | setDescription(String) | 1 | 2
void | doSetName(String) | 1 | 1
void | renameTo(String) | 5 | 8
void | callOnRenamed(String;ItemGroup;String) | 1 | 1
Collection<?extendsJob> | getAllJobs() | 1 | 1
String | getFullName() | 3 | 3
String | getFullDisplayName() | 3 | 3
String | getRelativeNameFrom(ItemGroup) | 7 | 13
String | getRelativeNameFrom(Item) | 1 | 1
void | onLoad(ItemGroup<?extendsItem>;String) | 1 | 2
void | onCopiedFrom(Item) | 1 | 0
String | getUrl() | 3 | 3
String | getShortUrl() | 1 | 1
String | getSearchUrl() | 1 | 1
String | getAbsoluteUrl() | 2 | 3
Api | getApi() | 1 | 1
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
void | save() | 2 | 3
XmlFile | getConfigFile() | 1 | 1
Descriptor | getDescriptorByName(String) | 1 | 1
void | doSubmitDescription(StaplerRequest;StaplerResponse) | 1 | 3
void | doDoDelete(StaplerRequest;StaplerResponse) | 2 | 2
void | delete(StaplerRequest;StaplerResponse) | 1 | 2
void | delete() | 1 | 4
void | invokeOnDeleted() | 1 | 1
void | performDelete() | 1 | 2
void | doConfigDotXml(StaplerRequest;StaplerResponse) | 3 | 7
void | updateByXml(StreamSource) | 1 | 1
void | updateByXml(Source) | 1 | 13
String | getSearchName() | 1 | 1
String | toString() | 1 | 1
AbstractItem | resolveForCLI(String) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8

Line start | Criticity class | Rule
--- | --- | ---
00247 | MAJOR | QC-JAV000001[00247] Avoid declaring class instance within loop, performance impact
00308 | MAJOR | QC-JAVCWE390[00308] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00336 | MAJOR | QC-JAV000001[00336] Avoid declaring class instance within loop, performance impact
00337 | MAJOR | QC-JAV000001[00337] Avoid declaring class instance within loop, performance impact
00347 | MAJOR | QC-JAV000001[00347] Avoid declaring class instance within loop, performance impact
00349 | MAJOR | QC-JAV000001[00349] Avoid declaring class instance within loop, performance impact
00351 | MAJOR | QC-JAV000001[00351] Avoid declaring class instance within loop, performance impact
00357 | MAJOR | QC-JAV000001[00357] Avoid declaring class instance within loop, performance impact
00358 | MAJOR | QC-JAV000001[00358] Avoid declaring class instance within loop, performance impact
00511 | MAJOR | QC-JAVCWE390[00511] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\model\AbstractModelObject.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.AbstractModelObject

Module / class or interface : hudson.model.AbstractModelObject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | sendError(Exception;StaplerRequest;StaplerResponse) | 1 | 1
void | sendError(Exception) | 1 | 1
void | sendError(String;StaplerRequest;StaplerResponse) | 1 | 2
void | sendError(String;StaplerRequest;StaplerResponse;boolean) | 2 | 3
void | sendError(String) | 1 | 1
void | requirePOST() | 3 | 4
SearchIndexBuilder | makeSearchIndex() | 1 | 1
SearchIndex | getSearchIndex() | 1 | 1
Search | getSearch() | 3 | 3
String | getSearchName() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00104 | MAJOR | QC-JAV000001[00104] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\AbstractProject.java 31 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Job<P,R> | hudson.model.AbstractProject

Module / class or interface : hudson.model.AbstractProject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractProject | AbstractProject(ItemGroup;String) | 2 | 2
void | save() | 1 | 2
void | onCreatedFromScratch() | 1 | 3
void | onLoad(ItemGroup<?extendsItem>;String) | 6 | 7
RunMap<R> | createBuildRunMap() | 1 | 1
List<Trigger<?>> | triggers() | 2 | 2
EnvVars | getEnvironment(Node;TaskListener) | 3 | 4
void | performDelete() | 3 | 6
boolean | isConcurrentBuild() | 1 | 1
void | setConcurrentBuild(boolean) | 1 | 2
Label | getAssignedLabel() | 3 | 3
Set<Label> | getRelevantLabels() | 1 | 1
String | getAssignedLabelString() | 2 | 4
void | setAssignedLabel(Label) | 5 | 6
void | setAssignedNode(Node) | 1 | 1
String | getPronoun() | 1 | 1
String | getBuildNowText() | 1 | 1
AbstractProject<?,?> | getRootProject() | 4 | 4
FilePath | getWorkspace() | 1 | 2
AbstractBuild | getBuildForDeprecatedMethods() | 4 | 5
FilePath | getSomeWorkspace() | 4 | 5
R | getSomeBuildWithWorkspace() | 3 | 6
FilePath | getModuleRoot() | 1 | 2
FilePath[] | getModuleRoots() | 1 | 2
int | getQuietPeriod() | 1 | 1
SCMCheckoutStrategy | getScmCheckoutStrategy() | 1 | 1
void | setScmCheckoutStrategy(SCMCheckoutStrategy) | 1 | 2
int | getScmCheckoutRetryCount() | 1 | 1
boolean | getHasCustomQuietPeriod() | 1 | 1
void | setQuietPeriod(Integer) | 1 | 2
boolean | hasCustomScmCheckoutRetryCount() | 1 | 1
boolean | isBuildable() | 1 | 1
boolean | isConfigurable() | 1 | 1
boolean | blockBuildWhenDownstreamBuilding() | 1 | 1
void | setBlockBuildWhenDownstreamBuilding(boolean) | 1 | 2
boolean | blockBuildWhenUpstreamBuilding() | 1 | 1
void | setBlockBuildWhenUpstreamBuilding(boolean) | 1 | 2
boolean | isDisabled() | 1 | 1
FormValidation | doCheckRetryCount(String) | 3 | 3
void | makeDisabled(boolean) | 3 | 4
boolean | supportsMakeDisabled() | 1 | 1
void | disable() | 1 | 1
void | enable() | 1 | 1
BallColor | getIconColor() | 3 | 2
void | updateTransientActions() | 1 | 1
List<Action> | createTransientActions() | 3 | 4
DescribableList<Publisher,Descriptor<Publisher>> | getPublishersList() | 1 | 1
void | addProperty(JobProperty<?superP>) | 1 | 2
List<ProminentProjectAction> | getProminentActions() | 3 | 4
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 4 | 9
boolean | scheduleBuild() | 1 | 1
boolean | scheduleBuild(int) | 1 | 1
boolean | scheduleBuild(Cause) | 1 | 1
boolean | scheduleBuild(int;Cause) | 1 | 1
boolean | scheduleBuild(int;Cause;Action) | 1 | 1
QueueTaskFuture<R> | scheduleBuild2(int;Cause;Action) | 1 | 1
QueueTaskFuture<R> | scheduleBuild2(int;Cause;Collection<?extendsAction>) | 5 | 7
List<ParameterValue> | getDefaultParametersValues() | 4 | 6
QueueTaskFuture<R> | scheduleBuild2(int) | 1 | 1
QueueTaskFuture<R> | scheduleBuild2(int;Cause) | 1 | 1
boolean | schedulePolling() | 3 | 5
boolean | isInQueue() | 1 | 1
Queue.Item | getQueueItem() | 1 | 1
JDK | getJDK() | 1 | 1
void | setJDK(JDK) | 1 | 2
BuildAuthorizationToken | getAuthToken() | 1 | 1
RunMap<R> | _getRuns() | 1 | 2
void | removeRun(R) | 1 | 1
R | getBuild(String) | 1 | 1
R | getBuildByNumber(int) | 1 | 1
R | getFirstBuild() | 1 | 1
R | getLastBuild() | 1 | 1
R | getNearestBuild(int) | 1 | 1
R | getNearestOldBuild(int) | 1 | 1
Class<R> | getBuildClass() | 1 | 1
R | newBuild() | 2 | 9
IOException | handleInvocationTargetException(InvocationTargetException) | 4 | 5
R | loadBuild(File) | 1 | 5
List<Action> | getActions() | 1 | 3
Node | getLastBuiltOn() | 3 | 3
Object | getSameNodeConstraint() | 1 | 1
Task | getOwnerTask() | 1 | 1
boolean | isBuildBlocked() | 1 | 1
String | getWhyBlocked() | 1 | 2
CauseOfBlockage | getCauseOfBlockage() | 6 | 6
AbstractProject | getBuildingDownstream() | 3 | 3
AbstractProject | getBuildingUpstream() | 3 | 3
List<SubTask> | getSubTasks() | 3 | 5
R | createExecutable() | 2 | 2
void | checkAbortPermission() | 1 | 1
boolean | hasAbortPermission() | 1 | 1
Resource | getWorkspaceResource() | 1 | 1
ResourceList | getResourceList() | 3 | 3
Set<ResourceActivity> | getResourceActivities() | 1 | 1
boolean | checkout(AbstractBuild;Launcher;BuildListener;File) | 3 | 7
void | calcPollingBaseline(AbstractBuild;Launcher;TaskListener) | 3 | 3
boolean | pollSCMChanges(TaskListener) | 1 | 1
PollingResult | poll(TaskListener) | 6 | 28
PollingResult | _poll(TaskListener;SCM;R) | 6 | 7
PollingResult | pollWithWorkspace(TaskListener;SCM;R;FilePath;WorkspaceList) | 2 | 8
WorkspaceOfflineReason | workspaceOffline(R) | 4 | 6
boolean | hasParticipant(User) | 3 | 4
SCM | getScm() | 1 | 1
void | setScm(SCM) | 1 | 2
void | addTrigger(Trigger<?>) | 1 | 1
void | removeTrigger(TriggerDescriptor) | 1 | 1
Map<TriggerDescriptor,Trigger> | getTriggers() | 1 | 1
boolean | isFingerprintConfigured() | 1 | 1
List<AbstractProject> | getDownstreamProjects() | 1 | 1
List<AbstractProject> | getUpstreamProjects() | 1 | 1
List<AbstractProject> | getBuildTriggerUpstreamProjects() | 4 | 3
Set<AbstractProject> | getTransitiveUpstreamProjects() | 1 | 1
Set<AbstractProject> | getTransitiveDownstreamProjects() | 1 | 1
SortedMap<Integer,RangeSet> | getRelationship(AbstractProject) | 1 | 3
void | checkAndRecord(AbstractProject;TreeMap<Integer,RangeSet>;Collection<R>) | 5 | 6
void | buildDependencyGraph(DependencyGraph) | 1 | 1
SearchIndexBuilder | makeSearchIndex() | 2 | 3
HistoryWidget | createHistoryWidget() | 1 | 1
boolean | isParameterized() | 1 | 1
void | doBuild(StaplerRequest;StaplerResponse;TimeDuration) | 5 | 10
CauseAction | getBuildCause(StaplerRequest) | 3 | 5
int | getDelay(StaplerRequest) | 4 | 6
void | doBuildWithParameters(StaplerRequest;StaplerResponse;TimeDuration) | 3 | 4
void | doPolling(StaplerRequest;StaplerResponse) | 1 | 3
void | doCancelQueue(StaplerRequest;StaplerResponse) | 1 | 3
void | doDoDelete(StaplerRequest;StaplerResponse) | 4 | 5
void | submit(StaplerRequest;StaplerResponse) | 15 | 24
DirectoryBrowserSupport | doWs(StaplerRequest;StaplerResponse) | 3 | 5
HttpResponse | doDoWipeOutWorkspace() | 4 | 6
HttpResponse | doDisable() | 1 | 3
HttpResponse | doEnable() | 1 | 3
void | doRssChangelog(StaplerRequest;StaplerResponse) | 3 | 8
AbstractProject | findNearest(String) | 1 | 1
AbstractProject | findNearest(String;ItemGroup) | 2 | 7
AbstractProject | resolveForCLI(String) | 2 | 3
String | getCustomWorkspace() | 1 | 1
void | setCustomWorkspace(String) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 28
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
01070 | INFO | QC-JAV999996[01070] CPD de longueur 58 commencant en 4059 (ligne 1070) et 4212 (ligne 1095): } catch ( InstantiationException e ) { throw new Error ( e ) ; } catch ( IllegalAccessException e ) { throw new Error ( e ) ; } catch ( InvocationTargetException e ) { throw handleInvocationTargetException ( e ) ; } catch ( NoSuchMethodException e ) { throw new Error ( e ) ; } } private
00520 | MAJOR | QC-JAV000001[00520] Avoid declaring class instance within loop, performance impact
00534 | MAJOR | QC-JAV000001[00534] Avoid declaring class instance within loop, performance impact
00705 | MAJOR | QC-JAV000001[00705] Avoid declaring class instance within loop, performance impact
00731 | MAJOR | QC-JAV000001[00731] Avoid declaring class instance within loop, performance impact
00732 | MAJOR | QC-JAV000001[00732] Avoid declaring class instance within loop, performance impact
00761 | MAJOR | QC-JAV000001[00761] Avoid declaring class instance within loop, performance impact
00762 | MAJOR | QC-JAV000001[00762] Avoid declaring class instance within loop, performance impact
00763 | MAJOR | QC-JAV000001[00763] Avoid declaring class instance within loop, performance impact
00763 | MAJOR | QC-JAV000001[00763] Avoid declaring class instance within loop, performance impact
00778 | MAJOR | QC-JAV000001[00778] Avoid declaring class instance within loop, performance impact
00779 | MAJOR | QC-JAV000001[00779] Avoid declaring class instance within loop, performance impact
00789 | MAJOR | QC-JAV000001[00789] Avoid declaring class instance within loop, performance impact
00789 | MAJOR | QC-JAV000001[00789] Avoid declaring class instance within loop, performance impact
00790 | MAJOR | QC-JAV000001[00790] Avoid declaring class instance within loop, performance impact
00792 | MAJOR | QC-JAV000001[00792] Avoid declaring class instance within loop, performance impact
00914 | MAJOR | QC-JAV000001[00914] Avoid declaring class instance within loop, performance impact
00953 | BLOCKER | QC-JAVCWE572[00953] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
01063 | MAJOR | QC-JAVCWE390[01063] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01407 | MAJOR | QC-JAV000001[01407] Avoid declaring class instance within loop, performance impact
01658 | MAJOR | QC-JAV000001[01658] Avoid declaring class instance within loop, performance impact
01708 | MAJOR | QC-JAV000001[01708] Avoid declaring class instance within loop, performance impact
01714 | MAJOR | QC-JAV000001[01714] Avoid declaring class instance within loop, performance impact
01919 | MAJOR | QC-JAV000001[01919] Avoid declaring class instance within loop, performance impact
01919 | MAJOR | QC-JAV000001[01919] Avoid declaring class instance within loop, performance impact
01920 | MAJOR | QC-JAV000001[01920] Avoid declaring class instance within loop, performance impact
01940 | MAJOR | QC-JAV000001[01940] Avoid declaring class instance within loop, performance impact
01941 | MAJOR | QC-JAV000001[01941] Avoid declaring class instance within loop, performance impact
02025 | MAJOR | QC-JAV000001[02025] Avoid declaring class instance within loop, performance impact
02107 | MAJOR | QC-JAV000001[02107] Avoid declaring class instance within loop, performance impact
02142 | MAJOR | QC-JAV000001[02142] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\AbstractStatusIcon.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.AbstractStatusIcon

Module / class or interface : hudson.model.AbstractStatusIcon

#### File core\src\main\java\hudson\model\Action.java 0 rule violation (XML file)

Module / class or interface : hudson.model.Action

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\hudson\model\Actionable.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.Actionable

Module / class or interface : hudson.model.Actionable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<Action> | getActions() | 2 | 1
void | addAction(Action) | 2 | 2
Action | getAction(int) | 2 | 2
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 5 | 5
ContextMenu | doContextMenu(StaplerRequest;StaplerResponse) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00132 | MAJOR | QC-JAV000001[00132] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\AdministrativeMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.AdministrativeMonitor

Module / class or interface : hudson.model.AdministrativeMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AdministrativeMonitor | AdministrativeMonitor(String) | 1 | 1
AdministrativeMonitor | AdministrativeMonitor() | 1 | 1
String | getUrl() | 1 | 1
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
void | disable(boolean) | 3 | 5
boolean | isEnabled() | 1 | 1
boolean | isActivated() | 1 | 1
void | doDisable(StaplerRequest;StaplerResponse) | 1 | 3
ExtensionList<AdministrativeMonitor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\AllView.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
View | hudson.model.AllView

Module / class or interface : hudson.model.AllView

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AllView | AllView(String) | 1 | 1
AllView | AllView(String;ViewGroup) | 1 | 2
String | getDescription() | 1 | 1
boolean | isEditable() | 1 | 1
boolean | contains(TopLevelItem) | 1 | 1
Item | doCreateItem(StaplerRequest;StaplerResponse) | 2 | 3
Collection<TopLevelItem> | getItems() | 1 | 1
void | doSubmitDescription(StaplerRequest;StaplerResponse) | 1 | 3
String | getPostConstructLandingPage() | 1 | 1
void | onJobRenamed(Item;String;String) | 1 | 0
void | submit(StaplerRequest) | 1 | 0

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00113 | MAJOR | QC-JAV000001[00113] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\AperiodicWork.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SafeTimerTask | hudson.model.AperiodicWork

Module / class or interface : hudson.model.AperiodicWork

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
long | getRecurrencePeriod() | 1 | 1
AperiodicWork | getNewInstance() | 1 | 1
long | getInitialDelay() | 2 | 3
void | doRun() | 2 | 3
void | doAperiodicRun() | 1 | 1
ExtensionList<AperiodicWork> | all() | 1 | 1

#### File core\src\main\java\hudson\model\Api.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.Api

Module / class or interface : hudson.model.Api

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Api | Api(Object) | 1 | 1
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
void | doXml(StaplerRequest;StaplerResponse;String;String;String;int) | 6 | 16
void | doSchema(StaplerRequest;StaplerResponse) | 1 | 5
void | doJson(StaplerRequest;StaplerResponse) | 3 | 3
void | doPython(StaplerRequest;StaplerResponse) | 1 | 2
void | setHeaders(StaplerResponse) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00115 | MAJOR | QC-JAV000001[00115] Avoid declaring class instance within loop, performance impact
00116 | MAJOR | QC-JAV000001[00116] Avoid declaring class instance within loop, performance impact
00116 | MAJOR | QC-JAV000001[00116] Avoid declaring class instance within loop, performance impact
00130 | MAJOR | QC-JAV000001[00130] Avoid declaring class instance within loop, performance impact
00133 | MAJOR | QC-JAV000001[00133] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\AsyncAperiodicWork.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AperiodicWork | hudson.model.AsyncAperiodicWork

Module / class or interface : hudson.model.AsyncAperiodicWork

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AsyncAperiodicWork | AsyncAperiodicWork(String) | 1 | 1
void | doAperiodicRun() | 2 | 3
StreamTaskListener | createListener() | 1 | 2
File | getLogFile() | 1 | 1
void | execute(TaskListener) | 1 | 1

#### File core\src\main\java\hudson\model\AsyncPeriodicWork.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
PeriodicWork | hudson.model.AsyncPeriodicWork

Module / class or interface : hudson.model.AsyncPeriodicWork

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AsyncPeriodicWork | AsyncPeriodicWork(String) | 1 | 1
void | doRun() | 2 | 3
StreamTaskListener | createListener() | 1 | 2
File | getLogFile() | 1 | 1
void | execute(TaskListener) | 1 | 1

#### File core\src\main\java\hudson\model\AutoCompletionCandidates.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.AutoCompletionCandidates

Module / class or interface : hudson.model.AutoCompletionCandidates

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AutoCompletionCandidates | add(String) | 1 | 2
AutoCompletionCandidates | add(String) | 1 | 2
List<String> | getValues() | 1 | 1
void | generateResponse(StaplerRequest;StaplerResponse;Object) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00142 | MAJOR | QC-JAV000001[00142] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\BallColor.java 0 rule violation (XML file)

Module / class or interface : hudson.model.

#### File core\src\main\java\hudson\model\BooleanParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleParameterDefinition | hudson.model.BooleanParameterDefinition

Module / class or interface : hudson.model.BooleanParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BooleanParameterDefinition | BooleanParameterDefinition(String;boolean;String) | 1 | 2
ParameterDefinition | copyWithDefaultValue(ParameterValue) | 3 | 3
boolean | isDefaultValue() | 1 | 1
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 3
ParameterValue | createValue(String) | 1 | 1
BooleanParameterValue | getDefaultParameterValue() | 1 | 1

#### File core\src\main\java\hudson\model\BooleanParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterValue | hudson.model.BooleanParameterValue

Module / class or interface : hudson.model.BooleanParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BooleanParameterValue | BooleanParameterValue(String;boolean) | 1 | 1
BooleanParameterValue | BooleanParameterValue(String;boolean;String) | 1 | 2
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 2
VariableResolver<String> | createVariableResolver(AbstractBuild<?,?>) | 1 | 1
boolean | equals(Object) | 5 | 6
int | hashCode() | 1 | 3
String | toString() | 1 | 1

#### File core\src\main\java\hudson\model\Build.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractBuild<P,B> | hudson.model.Build

Module / class or interface : hudson.model.Build

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Build | Build(P) | 1 | 1
Build | Build(P;Calendar) | 1 | 1
Build | Build(P;File) | 1 | 1
void | run() | 1 | 1
Runner | createRunner() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00154 | MAJOR | QC-JAV000001[00154] Avoid declaring class instance within loop, performance impact
00154 | MAJOR | QC-JAV000001[00154] Avoid declaring class instance within loop, performance impact
00156 | MAJOR | QC-JAVCWE481[00156] Assigning instead of comparing on r=FAILURE (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\model\BuildAuthorizationToken.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.BuildAuthorizationToken

Module / class or interface : hudson.model.BuildAuthorizationToken

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildAuthorizationToken | BuildAuthorizationToken(String) | 1 | 1
BuildAuthorizationToken | create(StaplerRequest) | 3 | 3
void | checkPermission(AbstractProject;BuildAuthorizationToken;StaplerRequest;StaplerResponse) | 7 | 8
String | getToken() | 1 | 1

#### File core\src\main\java\hudson\model\BuildBadgeAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.BuildBadgeAction

#### File core\src\main\java\hudson\model\BuildListener.java 0 rule violation (XML file)

Module / class or interface : hudson.model.BuildListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | started(List<Cause>) | 1 | 1
void | finished(Result) | 1 | 1

#### File core\src\main\java\hudson\model\BuildStepListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.BuildStepListener

Module / class or interface : hudson.model.BuildStepListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | started(AbstractBuild;BuildStep;BuildListener) | 1 | 1
void | finished(AbstractBuild;BuildStep;BuildListener;boolean) | 1 | 1
ExtensionList<BuildStepListener> | all() | 1 | 1

#### File core\src\main\java\hudson\model\BuildTimelineWidget.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.BuildTimelineWidget

Module / class or interface : hudson.model.BuildTimelineWidget

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildTimelineWidget | BuildTimelineWidget(RunList<?>) | 1 | 1
Run<?,?> | getFirstBuild() | 1 | 1
Run<?,?> | getLastBuild() | 1 | 1
TimelineEventList | doData(StaplerRequest;long;long) | 2 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00062 | MAJOR | QC-JAV000001[00062] Avoid declaring class instance within loop, performance impact
00070 | MAJOR | QC-JAV000001[00070] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\BuildVariableContributor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.BuildVariableContributor

Module / class or interface : hudson.model.BuildVariableContributor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildVariablesFor(AbstractBuild;Map<String,String>) | 1 | 1
ExtensionList<BuildVariableContributor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\BuildableItem.java 0 rule violation (XML file)

Module / class or interface : hudson.model.BuildableItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | scheduleBuild() | 1 | 1
boolean | scheduleBuild(Cause) | 1 | 1
boolean | scheduleBuild(int) | 1 | 1
boolean | scheduleBuild(int;Cause) | 1 | 1

#### File core\src\main\java\hudson\model\BuildableItemWithBuildWrappers.java 0 rule violation (XML file)

Module / class or interface : hudson.model.BuildableItemWithBuildWrappers

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractProject<?,?> | asProject() | 1 | 1
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> | getBuildWrappersList() | 1 | 1

#### File core\src\main\java\hudson\model\Cause.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Cause

Module / class or interface : hudson.model.Cause

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
void | onAddedTo(AbstractBuild) | 1 | 0
void | print(TaskListener) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00228 | MAJOR | QC-JAV000001[00228] Avoid declaring class instance within loop, performance impact
00229 | MAJOR | QC-JAV000001[00229] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\CauseAction.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.CauseAction

Module / class or interface : hudson.model.CauseAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CauseAction | CauseAction(Cause) | 1 | 1
CauseAction | CauseAction(CauseAction) | 1 | 1
List<Cause> | getCauses() | 1 | 1
String | getDisplayName() | 1 | 1
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
Map<Cause,Integer> | getCauseCounts() | 2 | 4
String | getShortDescription() | 2 | 2
void | onLoad() | 1 | 0
void | onBuildComplete() | 1 | 0
void | onAttached(Run) | 3 | 1
void | foldIntoExisting(hudson.model.Queue.Item;Task;List<Action>) | 2 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00093 | MAJOR | QC-JAV000001[00093] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\CheckPoint.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.CheckPoint

Module / class or interface : hudson.model.CheckPoint

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CheckPoint | CheckPoint(String;Object) | 1 | 2
CheckPoint | CheckPoint(String) | 1 | 1
boolean | equals(Object) | 2 | 2
int | hashCode() | 1 | 1
String | toString() | 1 | 1
void | report() | 1 | 1
void | block() | 1 | 1

#### File core\src\main\java\hudson\model\ChoiceParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleParameterDefinition | hudson.model.ChoiceParameterDefinition

Module / class or interface : hudson.model.ChoiceParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChoiceParameterDefinition | ChoiceParameterDefinition(String;String;String) | 2 | 4
ChoiceParameterDefinition | ChoiceParameterDefinition(String;String[];String) | 2 | 4
ChoiceParameterDefinition | ChoiceParameterDefinition(String;List<String>;String;String) | 1 | 3
ParameterDefinition | copyWithDefaultValue(ParameterValue) | 3 | 3
List<String> | getChoices() | 1 | 1
String | getChoicesText() | 1 | 1
StringParameterValue | getDefaultParameterValue() | 1 | 1
StringParameterValue | checkValue(StringParameterValue) | 2 | 2
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 3
StringParameterValue | createValue(String) | 1 | 1

#### File core\src\main\java\hudson\model\Computer.java 12 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Actionable | hudson.model.Computer

Module / class or interface : hudson.model.Computer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Computer | Computer(Node) | 1 | 2
List<ComputerPanelBox> | getComputerPanelBoxs() | 1 | 1
List<Action> | getActions() | 2 | 4
void | addAction(Action) | 2 | 2
File | getLogFile() | 1 | 3
WorkspaceList | getWorkspaceList() | 1 | 1
String | getLog() | 1 | 1
AnnotatedLargeText<Computer> | getLogText() | 1 | 1
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
OfflineCause | getOfflineCause() | 1 | 1
String | getOfflineCauseReason() | 2 | 6
VirtualChannel | getChannel() | 1 | 1
Charset | getDefaultCharset() | 1 | 1
List<LogRecord> | getLogRecords() | 1 | 1
void | doLaunchSlaveAgent(StaplerRequest;StaplerResponse) | 1 | 1
void | launch() | 1 | 1
Future<?> | connect(boolean) | 1 | 2
Future<?> | _connect(boolean) | 1 | 1
void | cliConnect(boolean) | 1 | 2
long | getConnectTime() | 1 | 1
Future<?> | disconnect(OfflineCause) | 2 | 4
Future<?> | disconnect() | 2 | 3
void | cliDisconnect(String) | 1 | 2
void | cliOffline(String) | 1 | 2
void | cliOnline() | 1 | 2
int | getNumExecutors() | 1 | 1
String | getName() | 1 | 1
Node | getNode() | 2 | 2
LoadStatistics | getLoadStatistics() | 1 | 1
BuildTimelineWidget | getTimeline() | 1 | 1
void | taskAccepted(Executor;Queue.Task) | 1 | 0
void | taskCompleted(Executor;Queue.Task;long) | 1 | 0
void | taskCompletedWithProblems(Executor;Queue.Task;long;Throwable) | 1 | 0
boolean | isOffline() | 1 | 1
boolean | isOnline() | 1 | 1
boolean | isManualLaunchAllowed() | 1 | 1
boolean | isConnecting() | 1 | 1
boolean | isJnlpAgent() | 1 | 1
boolean | isLaunchSupported() | 1 | 1
boolean | isTemporarilyOffline() | 1 | 1
void | setTemporarilyOffline(boolean) | 1 | 1
void | setTemporarilyOffline(boolean;OfflineCause) | 5 | 8
String | getIcon() | 3 | 2
String | getIconAltText() | 3 | 2
String | getDisplayName() | 1 | 1
String | getCaption() | 1 | 1
String | getUrl() | 1 | 1
List<AbstractProject> | getTiedJobs() | 1 | 2
RunList | getBuilds() | 1 | 1
void | setNode(Node) | 4 | 5
void | kill() | 1 | 1
void | setNumExecutors(int) | 6 | 5
void | addNewExecutorIfNecessary() | 4 | 8
int | countIdle() | 3 | 3
int | countBusy() | 1 | 1
int | countExecutors() | 1 | 1
List<Executor> | getExecutors() | 1 | 1
List<OneOffExecutor> | getOneOffExecutors() | 1 | 1
boolean | isIdle() | 4 | 3
boolean | isPartiallyIdle() | 3 | 2
long | getIdleStartMilliseconds() | 3 | 4
long | getDemandStartMilliseconds() | 2 | 3
void | removeExecutor(Executor) | 2 | 4
boolean | isAlive() | 3 | 2
void | interrupt() | 2 | 1
String | getSearchUrl() | 1 | 1
RetentionStrategy | getRetentionStrategy() | 1 | 1
Map<String,Object> | getMonitorData() | 2 | 3
Map<Object,Object> | getSystemProperties() | 1 | 1
Map<String,String> | getEnvVars() | 1 | 1
EnvVars | getEnvironment() | 1 | 1
EnvVars | buildEnvironment(TaskListener) | 5 | 9
Map<String,String> | getThreadDump() | 1 | 1
HeapDump | getHeapDump() | 1 | 1
String | getHostName() | 4 | 6
void | startFlyWeightTask(WorkUnit) | 1 | 3
void | remove(OneOffExecutor) | 1 | 1
void | doRssAll(StaplerRequest;StaplerResponse) | 1 | 1
void | doRssFailed(StaplerRequest;StaplerResponse) | 1 | 1
void | rss(StaplerRequest;StaplerResponse;String;RunList) | 1 | 1
HttpResponse | doToggleOffline(String) | 3 | 6
HttpResponse | doChangeOfflineCause(String) | 1 | 4
Api | getApi() | 1 | 1
void | doDumpExportTable(StaplerRequest;StaplerResponse) | 3 | 11
void | doScript(StaplerRequest;StaplerResponse) | 1 | 1
void | doScriptText(StaplerRequest;StaplerResponse) | 1 | 1
void | _doScript(StaplerRequest;StaplerResponse;String) | 2 | 3
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 2 | 8
void | doConfigDotXml(StaplerRequest;StaplerResponse) | 3 | 8
void | replaceBy(Node) | 2 | 5
HttpResponse | doDoDelete() | 3 | 6
void | waitUntilOnline() | 1 | 1
void | waitUntilOffline() | 1 | 1
void | doProgressiveLog(StaplerRequest;StaplerResponse) | 1 | 1
Computer | currentComputer() | 1 | 2
boolean | isAcceptingTasks() | 1 | 1
Computer | resolveForCLI(String) | 4 | 5
void | relocateOldLogs() | 1 | 1
void | relocateOldLogs(File) | 5 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 12

Line start | Criticity class | Rule
--- | --- | ---
00695 | MAJOR | QC-JAV000001[00695] Avoid declaring class instance within loop, performance impact
00963 | MAJOR | QC-JAV000001[00963] Avoid declaring class instance within loop, performance impact
00964 | MAJOR | QC-JAV000001[00964] Avoid declaring class instance within loop, performance impact
00975 | MAJOR | QC-JAV000001[00975] Avoid declaring class instance within loop, performance impact
01006 | MAJOR | QC-JAV000001[01006] Avoid declaring class instance within loop, performance impact
01008 | MAJOR | QC-JAV000001[01008] Avoid declaring class instance within loop, performance impact
01010 | MAJOR | QC-JAV000001[01010] Avoid declaring class instance within loop, performance impact
01016 | MAJOR | QC-JAV000001[01016] Avoid declaring class instance within loop, performance impact
01010 | MAJOR | QC-JAV000001[01010] Avoid declaring class instance within loop, performance impact
01016 | MAJOR | QC-JAV000001[01016] Avoid declaring class instance within loop, performance impact
01318 | MAJOR | QC-JAV000001[01318] Avoid declaring class instance within loop, performance impact
01320 | MAJOR | QC-JAV000001[01320] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\ComputerPanelBox.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ComputerPanelBox

Module / class or interface : hudson.model.ComputerPanelBox

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setComputer(Computer) | 1 | 1
Computer | getComputer() | 1 | 1
List<ComputerPanelBox> | all(Computer) | 2 | 4

#### File core\src\main\java\hudson\model\ComputerPinger.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ComputerPinger

Module / class or interface : hudson.model.ComputerPinger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isReachable(InetAddress;int) | 1 | 1
ExtensionList<ComputerPinger> | all() | 1 | 1
boolean | checkIsReachable(InetAddress;int) | 2 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00045 | MAJOR | QC-JAV000001[00045] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\ComputerSet.java 1 rule violations (XML file)

Module / class or interface : hudson.model.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00058 | BLOCKER | QC-JAV999999[00058] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\model\\ComputerSet.java near following tokens ; import net . sf . json . JSONObject ; @ ExportedBean public final class ComputerSet extends AbstractModelObject implements Describable _

#### File core\src\main\java\hudson\model\DependecyDeclarer.java 0 rule violation (XML file)

Module / class or interface : hudson.model.DependecyDeclarer

#### File core\src\main\java\hudson\model\DependencyGraph.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.DependencyGraph

Module / class or interface : hudson.model.DependencyGraph

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DependencyGraph | DependencyGraph() | 1 | 0
void | build() | 2 | 8
Collection<AbstractProject> | getAllProjects() | 1 | 1
DependencyGraph | DependencyGraph(boolean) | 1 | 2
List<AbstractProject> | getDownstream(AbstractProject) | 1 | 1
List<AbstractProject> | getUpstream(AbstractProject) | 1 | 1
List<AbstractProject> | get(Map<AbstractProject,List<DependencyGroup>>;AbstractProject;boolean) | 3 | 5
List<Dependency> | getDownstreamDependencies(AbstractProject) | 1 | 1
List<Dependency> | getUpstreamDependencies(AbstractProject) | 1 | 1
List<Dependency> | get(Map<AbstractProject,List<DependencyGroup>>;AbstractProject) | 4 | 4
void | addDependency(AbstractProject;AbstractProject) | 1 | 1
void | addDependency(Dependency) | 2 | 3
void | addDependency(AbstractProject;Collection<?extendsAbstractProject>) | 2 | 1
void | addDependency(Collection<?extendsAbstractProject>;AbstractProject) | 2 | 1
void | addDependencyDeclarers(AbstractProject;Collection<?>) | 3 | 0
boolean | hasIndirectDependencies(AbstractProject;AbstractProject) | 3 | 8
Set<AbstractProject> | getTransitiveUpstream(AbstractProject) | 1 | 1
Set<AbstractProject> | getTransitiveDownstream(AbstractProject) | 1 | 1
Set<AbstractProject> | getTransitive(Map<AbstractProject,List<DependencyGroup>>;AbstractProject;boolean) | 2 | 5
void | add(Map<AbstractProject,List<DependencyGroup>>;AbstractProject;Dependency) | 4 | 7
Map<AbstractProject,List<DependencyGroup>> | finalize(Map<AbstractProject,List<DependencyGroup>>) | 2 | 3
int | compare(AbstractProject;AbstractProject) | 7 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00229 | MAJOR | QC-JAV000001[00229] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00250 | MAJOR | QC-JAV000001[00250] Avoid declaring class instance within loop, performance impact
00281 | MAJOR | QC-JAV000001[00281] Avoid declaring class instance within loop, performance impact
00283 | MAJOR | QC-JAV000001[00283] Avoid declaring class instance within loop, performance impact
00299 | MAJOR | QC-JAV000001[00299] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\Describable.java 0 rule violation (XML file)

Module / class or interface : hudson.model.Describable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Descriptor<T> | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\model\Descriptor.java 27 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Descriptor

Module / class or interface : hudson.model.Descriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Descriptor | Descriptor(Class<?extendsT>) | 2 | 2
Descriptor | Descriptor() | 5 | 8
String | getDisplayName() | 1 | 1
String | getId() | 1 | 1
Class<T> | getT() | 2 | 3
String | getDescriptorUrl() | 1 | 1
String | getDescriptorFullUrl() | 1 | 1
String | getCurrentDescriptorByNameUrl() | 2 | 5
String | getCheckUrl(String) | 3 | 5
String | calcCheckUrl(String) | 2 | 4
StringBuilder | buildParameterList(Method;StringBuilder) | 4 | 4
void | calcFillSettings(String;Map<String,Object>) | 3 | 7
List<String> | buildFillDependencies(Method;List<String>) | 4 | 4
void | calcAutoCompleteSettings(String;Map<String,Object>) | 2 | 5
PropertyType | getPropertyType(Object;String) | 1 | 1
PropertyType | getPropertyTypeOrDie(Object;String) | 5 | 4
PropertyType | getPropertyType(String) | 2 | 2
PropertyType | getGlobalPropertyType(String) | 2 | 2
Map<String,PropertyType> | buildPropertyTypes(Class<?>) | 4 | 4
String | getJsonSafeClassName() | 1 | 1
T | newInstance(StaplerRequest) | 1 | 1
T | newInstance(StaplerRequest;JSONObject) | 3 | 5
T | verifyNewInstance(T) | 2 | 2
Klass<?> | getKlass() | 1 | 1
String | getHelpFile() | 1 | 1
String | getHelpFile(String) | 1 | 1
String | getHelpFile(Klass<?>;String) | 6 | 6
void | addHelpFileRedirect(String;Class<?extendsDescribable>;String) | 1 | 1
boolean | isInstance(T) | 1 | 1
boolean | isSubTypeOf(Class) | 1 | 1
boolean | configure(StaplerRequest) | 1 | 1
boolean | configure(StaplerRequest;JSONObject) | 1 | 1
String | getConfigPage() | 1 | 1
String | getGlobalConfigPage() | 1 | 1
String | getViewPage(Class<?>;String;String) | 1 | 1
String | getViewPage(Class<?>;Collection<String>;String) | 2 | 2
String | getViewPage(Class<?>;String) | 1 | 1
List<String> | getPossibleViewNames(String) | 3 | 2
void | save() | 2 | 4
void | load() | 2 | 4
XmlFile | getConfigFile() | 1 | 1
PluginWrapper | getPlugin() | 1 | 1
void | doHelp(StaplerRequest;StaplerResponse) | 6 | 12
URL | getStaticHelpUrl(Klass<?>;String) | 4 | 10
Descriptor | find(String) | 1 | 1
Class | self() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 26
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00384 | INFO | QC-JAV999996[00384] CPD de longueur 116 commencant en 1436 (ligne 384) et 1800 (ligne 434): ) { for ( Parameter p : ReflectionUtils . getParameters ( method ) ) { QueryParameter qp = p . annotation ( QueryParameter . class ) ; if ( qp != null ) { String name = qp . value ( ) ; if ( name . length ( ) == 0 ) name = p . name ( ) ; if ( ( name == null ) || ( name . length ( ) == 0 ) ) continue ; RelativePath rp = p . annotation ( RelativePath . class ) ; if ( rp != null ) name = ( rp . value ( ) + ( ' / ' + name ) ) ; if
00386 | MAJOR | QC-JAV000001[00386] Avoid declaring class instance within loop, performance impact
00388 | MAJOR | QC-JAV000001[00388] Avoid declaring class instance within loop, performance impact
00393 | MAJOR | QC-JAV000001[00393] Avoid declaring class instance within loop, performance impact
00408 | MAJOR | QC-JAV000001[00408] Avoid declaring class instance within loop, performance impact
00436 | MAJOR | QC-JAV000001[00436] Avoid declaring class instance within loop, performance impact
00438 | MAJOR | QC-JAV000001[00438] Avoid declaring class instance within loop, performance impact
00443 | MAJOR | QC-JAV000001[00443] Avoid declaring class instance within loop, performance impact
00451 | MAJOR | QC-JAV000001[00451] Avoid declaring class instance within loop, performance impact
00664 | MAJOR | QC-JAV000001[00664] Avoid declaring class instance within loop, performance impact
00665 | MAJOR | QC-JAV000001[00665] Avoid declaring class instance within loop, performance impact
00676 | MAJOR | QC-JAV000001[00676] Avoid declaring class instance within loop, performance impact
00747 | MAJOR | QC-JAV000001[00747] Avoid declaring class instance within loop, performance impact
00748 | MAJOR | QC-JAV000001[00748] Avoid declaring class instance within loop, performance impact
00748 | MAJOR | QC-JAV000001[00748] Avoid declaring class instance within loop, performance impact
00769 | MAJOR | QC-JAV000001[00769] Avoid declaring class instance within loop, performance impact
00770 | MAJOR | QC-JAV000001[00770] Avoid declaring class instance within loop, performance impact
00770 | MAJOR | QC-JAV000001[00770] Avoid declaring class instance within loop, performance impact
00771 | MAJOR | QC-JAV000001[00771] Avoid declaring class instance within loop, performance impact
00844 | MAJOR | QC-JAV000001[00844] Avoid declaring class instance within loop, performance impact
00850 | MAJOR | QC-JAV000001[00850] Avoid declaring class instance within loop, performance impact
00854 | MAJOR | QC-JAV000001[00854] Avoid declaring class instance within loop, performance impact
00856 | MAJOR | QC-JAV000001[00856] Avoid declaring class instance within loop, performance impact
00937 | MAJOR | QC-JAV000001[00937] Avoid declaring class instance within loop, performance impact
00937 | MAJOR | QC-JAV000001[00937] Avoid declaring class instance within loop, performance impact
00938 | MAJOR | QC-JAV000001[00938] Avoid declaring class instance within loop, performance impact
00939 | MAJOR | QC-JAV000001[00939] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\DescriptorByNameOwner.java 0 rule violation (XML file)

Module / class or interface : hudson.model.DescriptorByNameOwner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Descriptor | getDescriptorByName(String) | 1 | 1

#### File core\src\main\java\hudson\model\DescriptorVisibilityFilter.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.DescriptorVisibilityFilter

Module / class or interface : hudson.model.DescriptorVisibilityFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | filter(Object;Descriptor) | 1 | 1
ExtensionList<DescriptorVisibilityFilter> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00049 | MAJOR | QC-JAV000001[00049] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\DirectoryBrowserSupport.java 14 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.DirectoryBrowserSupport

Module / class or interface : hudson.model.DirectoryBrowserSupport

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DirectoryBrowserSupport | DirectoryBrowserSupport(ModelObject;String) | 1 | 1
DirectoryBrowserSupport | DirectoryBrowserSupport(ModelObject;FilePath;String;String;boolean) | 1 | 5
void | generateResponse(StaplerRequest;StaplerResponse;Object) | 1 | 2
void | setIndexFileName(String) | 1 | 1
void | serveFile(StaplerRequest;StaplerResponse;FilePath;String;boolean) | 17 | 31
String | getPath(StaplerRequest) | 2 | 3
List<Path> | buildParentPath(String;int) | 1 | 8
String | createBackRef(int) | 3 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 14

Line start | Criticity class | Rule
--- | --- | ---
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00180 | MAJOR | QC-JAV000001[00180] Avoid declaring class instance within loop, performance impact
00316 | MAJOR | QC-JAV000001[00316] Avoid declaring class instance within loop, performance impact
00457 | MAJOR | QC-JAV000001[00457] Avoid declaring class instance within loop, performance impact
00462 | MAJOR | QC-JAV000001[00462] Avoid declaring class instance within loop, performance impact
00462 | MAJOR | QC-JAV000001[00462] Avoid declaring class instance within loop, performance impact
00464 | MAJOR | QC-JAV000001[00464] Avoid declaring class instance within loop, performance impact
00467 | MAJOR | QC-JAV000001[00467] Avoid declaring class instance within loop, performance impact
00468 | MAJOR | QC-JAV000001[00468] Avoid declaring class instance within loop, performance impact
00468 | MAJOR | QC-JAV000001[00468] Avoid declaring class instance within loop, performance impact
00467 | MAJOR | QC-JAV000001[00467] Avoid declaring class instance within loop, performance impact
00468 | MAJOR | QC-JAV000001[00468] Avoid declaring class instance within loop, performance impact
00468 | MAJOR | QC-JAV000001[00468] Avoid declaring class instance within loop, performance impact
00513 | MAJOR | QC-JAV000001[00513] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\DisplayNameListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ItemListener | hudson.model.DisplayNameListener

Module / class or interface : hudson.model.DisplayNameListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onCopied(Item;Item) | 2 | 1
void | onRenamed(Item;String;String) | 3 | 1

#### File core\src\main\java\hudson\model\DownloadService.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PageDecorator | hudson.model.DownloadService

Module / class or interface : hudson.model.DownloadService

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | generateFragment() | 5 | 5
boolean | doesNotSupportPostMessage() | 3 | 5
String | mapHttps(String) | 2 | 2
Downloadable | getById(String) | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MINOR | QC-JAVCWE500 | Static public field not marked final | 2

Line start | Criticity class | Rule
--- | --- | ---
00297 | MAJOR | QC-JAVCWE493[00297] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00297 | MINOR | QC-JAVCWE500[00297] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00302 | MAJOR | QC-JAVCWE493[00302] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00302 | MINOR | QC-JAVCWE500[00302] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\Environment.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Environment

Module / class or interface : hudson.model.Environment

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildEnvVars(Map<String,String>) | 1 | 0
boolean | tearDown(AbstractBuild;BuildListener) | 1 | 1
Environment | create(EnvVars) | 1 | 1

#### File core\src\main\java\hudson\model\EnvironmentContributingAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.EnvironmentContributingAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 1

#### File core\src\main\java\hudson\model\EnvironmentContributor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.EnvironmentContributor

Module / class or interface : hudson.model.EnvironmentContributor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildEnvironmentFor(Run;EnvVars;TaskListener) | 1 | 1
ExtensionList<EnvironmentContributor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\EnvironmentList.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<Environment> | hudson.model.EnvironmentList

Module / class or interface : hudson.model.EnvironmentList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EnvironmentList | EnvironmentList(List<Environment>) | 1 | 1
Environment | get(int) | 1 | 1
int | size() | 1 | 1
Environment | set(int;Environment) | 1 | 1
void | add(int;Environment) | 1 | 1
Environment | remove(int) | 1 | 1

#### File core\src\main\java\hudson\model\EnvironmentSpecific.java 0 rule violation (XML file)

Module / class or interface : hudson.model.EnvironmentSpecific

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
T | forEnvironment(EnvVars) | 1 | 1

#### File core\src\main\java\hudson\model\Executor.java 11 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Thread | hudson.model.Executor

Module / class or interface : hudson.model.Executor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Executor | Executor(Computer;int) | 1 | 4
void | interrupt() | 1 | 1
void | interrupt(Result) | 3 | 3
void | interrupt(Result;CauseOfInterruption) | 2 | 2
Result | abortResult() | 2 | 3
void | recordCauseOfInterruption(Run<?,?>;TaskListener) | 3 | 6
void | run() | 1 | 6
void | killHard() | 1 | 2
boolean | shouldRun() | 1 | 1
WorkUnit | grabJob() | 1 | 1
Queue.Executable | getCurrentExecutable() | 1 | 1
WorkUnit | getCurrentWorkUnit() | 1 | 1
FilePath | getCurrentWorkspace() | 3 | 5
String | getDisplayName() | 1 | 1
int | getNumber() | 1 | 1
boolean | isIdle() | 1 | 1
boolean | isBusy() | 1 | 1
Throwable | getCauseOfDeath() | 1 | 1
int | getProgress() | 4 | 7
boolean | isLikelyStuck() | 4 | 6
long | getElapsedTime() | 1 | 1
long | getTimeSpentInQueue() | 1 | 1
String | getTimestampString() | 1 | 1
String | getEstimatedRemainingTime() | 4 | 7
long | getEstimatedRemainingTimeMillis() | 4 | 7
void | doStop(StaplerRequest;StaplerResponse) | 1 | 1
HttpResponse | doStop() | 2 | 4
HttpResponse | doYank() | 2 | 4
boolean | hasStopPermission() | 1 | 2
Computer | getOwner() | 1 | 1
long | getIdleStartMilliseconds() | 3 | 2
Api | getApi() | 1 | 1
Executor | currentExecutor() | 2 | 3
long | getEstimatedDurationFor(Executable) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 11

Line start | Criticity class | Rule
--- | --- | ---
00201 | MAJOR | QC-JAV000001[00201] Avoid declaring class instance within loop, performance impact
00216 | MAJOR | QC-JAV000001[00216] Avoid declaring class instance within loop, performance impact
00219 | MAJOR | QC-JAV000001[00219] Avoid declaring class instance within loop, performance impact
00224 | MAJOR | QC-JAV000001[00224] Avoid declaring class instance within loop, performance impact
00225 | MAJOR | QC-JAV000001[00225] Avoid declaring class instance within loop, performance impact
00229 | MAJOR | QC-JAV000001[00229] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00231 | MAJOR | QC-JAV000001[00231] Avoid declaring class instance within loop, performance impact
00238 | MAJOR | QC-JAV000001[00238] Avoid declaring class instance within loop, performance impact
00252 | MAJOR | QC-JAV000001[00252] Avoid declaring class instance within loop, performance impact
00231 | MAJOR | QC-JAV000001[00231] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\ExecutorListener.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ExecutorListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | taskAccepted(Executor;Queue.Task) | 1 | 1
void | taskCompleted(Executor;Queue.Task;long) | 1 | 1
void | taskCompletedWithProblems(Executor;Queue.Task;long;Throwable) | 1 | 1

#### File core\src\main\java\hudson\model\Failure.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
RuntimeException | hudson.model.Failure

Module / class or interface : hudson.model.Failure

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Failure | Failure(String) | 1 | 1
Failure | Failure(String;boolean) | 1 | 2
void | generateResponse(StaplerRequest;StaplerResponse;Object) | 4 | 4

#### File core\src\main\java\hudson\model\FileParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterDefinition | hudson.model.FileParameterDefinition

Module / class or interface : hudson.model.FileParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FileParameterDefinition | FileParameterDefinition(String;String) | 1 | 1
FileParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 4
ParameterValue | createValue(StaplerRequest) | 2 | 9
ParameterValue | createValue(CLICommand;String) | 1 | 7

#### File core\src\main\java\hudson\model\FileParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterValue | hudson.model.FileParameterValue

Module / class or interface : hudson.model.FileParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FileParameterValue | FileParameterValue(String;FileItem) | 1 | 1
FileParameterValue | FileParameterValue(String;File;String) | 1 | 1
FileParameterValue | FileParameterValue(String;FileItem;String) | 1 | 3
void | setLocation(String) | 1 | 1
String | getLocation() | 1 | 1
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 1
VariableResolver<String> | createVariableResolver(AbstractBuild<?,?>) | 1 | 1
String | getOriginalFileName() | 1 | 1
FileItem | getFile() | 1 | 1
BuildWrapper | createBuildWrapper(AbstractBuild<?,?>) | 1 | 1
int | hashCode() | 1 | 4
boolean | equals(Object) | 8 | 7
String | getShortDescription() | 1 | 1
void | doDynamic(StaplerRequest;StaplerResponse) | 3 | 2
File | getLocationUnderBuild(AbstractBuild) | 1 | 1

#### File core\src\main\java\hudson\model\Fingerprint.java 18 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Fingerprint

Module / class or interface : hudson.model.Fingerprint

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Fingerprint | Fingerprint(Run;String;byte[]) | 1 | 5
BuildPtr | getOriginal() | 1 | 1
String | getDisplayName() | 1 | 1
String | getFileName() | 1 | 1
String | getHashString() | 1 | 1
Date | getTimestamp() | 1 | 1
String | getTimestampString() | 1 | 2
RangeSet | getRangeSet(String) | 2 | 3
RangeSet | getRangeSet(Job) | 1 | 1
List<String> | getJobs() | 1 | 4
Hashtable<String,RangeSet> | getUsages() | 1 | 1
List<RangeItem> | _getUsages() | 2 | 3
void | add(AbstractBuild) | 1 | 1
void | add(String;int) | 2 | 3
boolean | isAlive() | 6 | 8
Collection<FingerprintFacet> | getFacets() | 3 | 3
Collection<FingerprintFacet> | getSortedFacets() | 1 | 3
List<Action> | getActions() | 2 | 3
void | save() | 4 | 7
void | rename(String;String) | 6 | 3
Api | getApi() | 1 | 1
XmlFile | getConfigFile(File) | 1 | 1
File | getFingerprintFile(byte[]) | 1 | 2
Fingerprint | load(byte[]) | 1 | 1
Fingerprint | load(File) | 7 | 11

Deadlock risks Ressources definition
R0:hudson.model.Fingerprint.this
R1:hudson.model.Fingerprint.usages

Deadlock risks Sequences definition

Sequence | Step
--- | ---
No 0
| S0:hudson.model.Fingerprint.add (R0,R1)
| S0:hudson.model.Fingerprint.save (R0)
| S0:SaveableListener.fireOnChange

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 17

Line start | Criticity class | Rule
--- | --- | ---
00173 | MAJOR | QC-JAV000001[00173] Avoid declaring class instance within loop, performance impact
00174 | MAJOR | QC-JAV000001[00174] Avoid declaring class instance within loop, performance impact
00178 | MAJOR | QC-JAV000001[00178] Avoid declaring class instance within loop, performance impact
00229 | CRITICAL | QC-JAVCWE476[00229] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00344 | MAJOR | QC-JAV000001[00344] Avoid declaring class instance within loop, performance impact
00389 | MAJOR | QC-JAV000001[00389] Avoid declaring class instance within loop, performance impact
00390 | MAJOR | QC-JAV000001[00390] Avoid declaring class instance within loop, performance impact
00405 | MAJOR | QC-JAV000001[00405] Avoid declaring class instance within loop, performance impact
00477 | MAJOR | QC-JAV000001[00477] Avoid declaring class instance within loop, performance impact
00483 | MAJOR | QC-JAV000001[00483] Avoid declaring class instance within loop, performance impact
00543 | MAJOR | QC-JAV000001[00543] Avoid declaring class instance within loop, performance impact
00544 | MAJOR | QC-JAV000001[00544] Avoid declaring class instance within loop, performance impact
00544 | MAJOR | QC-JAV000001[00544] Avoid declaring class instance within loop, performance impact
00545 | MAJOR | QC-JAV000001[00545] Avoid declaring class instance within loop, performance impact
00548 | MAJOR | QC-JAV000001[00548] Avoid declaring class instance within loop, performance impact
00548 | MAJOR | QC-JAV000001[00548] Avoid declaring class instance within loop, performance impact
00730 | MAJOR | QC-JAV000001[00730] Avoid declaring class instance within loop, performance impact
00734 | MAJOR | QC-JAV000001[00734] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\FingerprintCleanupThread.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AsyncPeriodicWork | hudson.model.FingerprintCleanupThread

Module / class or interface : hudson.model.FingerprintCleanupThread

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FingerprintCleanupThread | FingerprintCleanupThread() | 1 | 1
long | getRecurrencePeriod() | 1 | 1
void | invoke() | 1 | 1
FingerprintCleanupThread | getInstance() | 1 | 1
void | execute(TaskListener) | 3 | 4
void | deleteIfEmpty(File) | 3 | 3
boolean | check(File) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00057 | BLOCKER | QC-JAVCWE572[00057] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
00071 | MAJOR | QC-JAV000001[00071] Avoid declaring class instance within loop, performance impact
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00073 | MAJOR | QC-JAV000001[00073] Avoid declaring class instance within loop, performance impact
00074 | MAJOR | QC-JAV000001[00074] Avoid declaring class instance within loop, performance impact
00073 | MAJOR | QC-JAV000001[00073] Avoid declaring class instance within loop, performance impact
00074 | MAJOR | QC-JAV000001[00074] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\FingerprintMap.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
KeyedDataStorage<Fingerprint,FingerprintMap.FingerprintParams> | hudson.model.FingerprintMap

Module / class or interface : hudson.model.FingerprintMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isReady() | 1 | 1
Fingerprint | getOrCreate(AbstractBuild;String;byte[]) | 1 | 1
Fingerprint | getOrCreate(AbstractBuild;String;String) | 1 | 1
Fingerprint | getOrCreate(Run;String;String) | 1 | 1
Fingerprint | get(String;boolean;FingerprintParams) | 2 | 3
byte[] | toByteArray(String) | 2 | 5
Fingerprint | create(String;FingerprintParams) | 1 | 1
Fingerprint | load(String) | 1 | 1

#### File core\src\main\java\hudson\model\FreeStyleBuild.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Build<FreeStyleProject,FreeStyleBuild> | hudson.model.FreeStyleBuild

Module / class or interface : hudson.model.FreeStyleBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FreeStyleBuild | FreeStyleBuild(FreeStyleProject) | 1 | 1
FreeStyleBuild | FreeStyleBuild(FreeStyleProject;File) | 1 | 1
void | run() | 1 | 1

#### File core\src\main\java\hudson\model\FreeStyleProject.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Project<FreeStyleProject,FreeStyleBuild> | hudson.model.FreeStyleProject

Module / class or interface : hudson.model.FreeStyleProject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FreeStyleProject | FreeStyleProject(Jenkins;String) | 1 | 1
FreeStyleProject | FreeStyleProject(ItemGroup;String) | 1 | 1
Class<FreeStyleBuild> | getBuildClass() | 1 | 1
DescriptorImpl | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\model\FullDuplexHttpChannel.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.FullDuplexHttpChannel

Module / class or interface : hudson.model.FullDuplexHttpChannel

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FullDuplexHttpChannel | FullDuplexHttpChannel(UUID;boolean) | 1 | 2
void | download(StaplerRequest;StaplerResponse) | 2 | 15
void | main(Channel) | 1 | 1
void | upload(StaplerRequest;StaplerResponse) | 2 | 6
Channel | getChannel() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00147 | MAJOR | QC-JAVCWE493[00147] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00147 | MINOR | QC-JAVCWE500[00147] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\HealthReport.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.HealthReport

Module / class or interface : hudson.model.HealthReport

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HealthReport | HealthReport(int;String;String) | 1 | 1
HealthReport | HealthReport(int;String;Localizable) | 9 | 4
HealthReport | HealthReport(int;String) | 1 | 1
HealthReport | HealthReport(int;Localizable) | 1 | 1
HealthReport | HealthReport() | 1 | 1
int | getScore() | 1 | 1
void | setScore(int) | 1 | 1
String | getIconUrl() | 1 | 1
String | getIconUrl(String) | 3 | 3
void | setIconUrl(String) | 1 | 1
String | getDescription() | 1 | 1
void | setDescription(String) | 1 | 1
Localizable | getLocalizableDescription() | 1 | 1
void | setLocalizibleDescription(Localizable) | 1 | 1
List<HealthReport> | getAggregatedReports() | 1 | 1
boolean | isAggregateReport() | 1 | 1
int | compareTo(HealthReport) | 1 | 1
HealthReport | min(HealthReport;HealthReport) | 5 | 5
HealthReport | max(HealthReport;HealthReport) | 5 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00291 | INFO | QC-JAV999996[00291] CPD de longueur 51 commencant en 671 (ligne 291) et 736 (ligne 302): HealthReport a , HealthReport b ) { if ( ( a == null ) __ ( b == null ) ) return null ; if ( a == null ) return b ; if ( b == null ) return a ; if ( a . compareTo ( b ) _=

#### File core\src\main\java\hudson\model\HealthReportingAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.HealthReportingAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HealthReport | getBuildHealth() | 1 | 1

#### File core\src\main\java\hudson\model\Hudson.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Jenkins | hudson.model.Hudson

Module / class or interface : hudson.model.Hudson

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Hudson | getInstance() | 1 | 1
Hudson | Hudson(File;ServletContext) | 1 | 1
Hudson | Hudson(File;ServletContext;PluginManager) | 1 | 1
CopyOnWriteList<ItemListener> | getJobListeners() | 1 | 1
CopyOnWriteList<ComputerListener> | getComputerListeners() | 1 | 1
Slave | getSlave(String) | 2 | 3
List<Slave> | getSlaves() | 1 | 1
void | setSlaves(List<Slave>) | 1 | 1
TopLevelItem | getJob(String) | 1 | 1
TopLevelItem | getJobCaseInsensitive(String) | 3 | 2
void | doQuietDown(StaplerResponse) | 1 | 1
void | doLogRss(StaplerRequest;StaplerResponse) | 1 | 2
void | doFieldCheck(StaplerRequest;StaplerResponse) | 1 | 1
FormValidation | doFieldCheck(String;String;String;String) | 5 | 4
boolean | isWindows() | 1 | 1
boolean | isDarwin() | 1 | 1
boolean | adminCheck() | 1 | 1
boolean | adminCheck(StaplerRequest;StaplerResponse) | 2 | 3
boolean | isAdmin() | 1 | 1
boolean | isAdmin(StaplerRequest) | 1 | 1

#### File core\src\main\java\hudson\model\InvisibleAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.InvisibleAction

Module / class or interface : hudson.model.InvisibleAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\hudson\model\Item.java 0 rule violation (XML file)

Module / class or interface : hudson.model.Item

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ItemGroup<?extendsItem> | getParent() | 1 | 1
Collection<?extendsJob> | getAllJobs() | 1 | 1
String | getName() | 1 | 1
String | getFullName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getFullDisplayName() | 1 | 1
String | getRelativeNameFrom(ItemGroup) | 1 | 1
String | getRelativeNameFrom(Item) | 1 | 1
String | getUrl() | 1 | 1
String | getShortUrl() | 1 | 1
String | getAbsoluteUrl() | 1 | 1
void | onLoad(ItemGroup<?extendsItem>;String) | 1 | 1
void | onCopiedFrom(Item) | 1 | 1
void | onCreatedFromScratch() | 1 | 1
void | save() | 1 | 1
void | delete() | 1 | 1

#### File core\src\main\java\hudson\model\ItemGroup.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ItemGroup

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getFullName() | 1 | 1
String | getFullDisplayName() | 1 | 1
Collection<T> | getItems() | 1 | 1
String | getUrl() | 1 | 1
String | getUrlChildPrefix() | 1 | 1
T | getItem(String) | 1 | 1
File | getRootDirFor(T) | 1 | 1
void | onRenamed(T;String;String) | 1 | 1
void | onDeleted(T) | 1 | 1

#### File core\src\main\java\hudson\model\ItemGroupMixIn.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ItemGroupMixIn

Module / class or interface : hudson.model.ItemGroupMixIn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ItemGroupMixIn | ItemGroupMixIn(ItemGroup;AccessControlled) | 1 | 2
void | add(TopLevelItem) | 1 | 1
File | getRootDirFor(String) | 1 | 1
TopLevelItem | createTopLevelItem(StaplerRequest;StaplerResponse) | 12 | 19
String | redirectAfterCreateItem(StaplerRequest;TopLevelItem) | 1 | 1
TopLevelItem | createProjectFromXML(String;InputStream) | 1 | 13
TopLevelItem | createProject(TopLevelItemDescriptor;String;boolean) | 3 | 11
void | callOnCreatedFromScratch(TopLevelItem) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00098 | MAJOR | QC-JAV000001[00098] Avoid declaring class instance within loop, performance impact
00099 | MAJOR | QC-JAV000001[00099] Avoid declaring class instance within loop, performance impact
00101 | MAJOR | QC-JAV000001[00101] Avoid declaring class instance within loop, performance impact
00268 | MAJOR | QC-JAVCWE390[00268] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\model\ItemVisitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ItemVisitor

Module / class or interface : hudson.model.ItemVisitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onItemGroup(ItemGroup<?>) | 3 | 1
void | onItem(Item) | 2 | 1
void | walk() | 1 | 1

#### File core\src\main\java\hudson\model\Items.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Items

Module / class or interface : hudson.model.Items

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<TopLevelItem,TopLevelItemDescriptor> | all() | 1 | 1
TopLevelItemDescriptor | getDescriptor(String) | 1 | 1
String | toNameList(Collection<?extendsItem>) | 3 | 4
String | getCanonicalName(ItemGroup;String) | 7 | 11
String | computeRelativeNamesAfterRenaming(String;String;String;ItemGroup) | 3 | 5
String | computeRelativeNameAfterRenaming(String;String;String) | 6 | 9
Item | load(ItemGroup;File) | 1 | 3
XmlFile | getConfigFile(File) | 1 | 1
XmlFile | getConfigFile(Item) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00109 | MAJOR | QC-JAV000001[00109] Avoid declaring class instance within loop, performance impact
00109 | MAJOR | QC-JAV000001[00109] Avoid declaring class instance within loop, performance impact
00167 | MAJOR | QC-JAV000001[00167] Avoid declaring class instance within loop, performance impact
00168 | MAJOR | QC-JAV000001[00168] Avoid declaring class instance within loop, performance impact
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00192 | MAJOR | QC-JAV000001[00192] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\JDK.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ToolInstallation | hudson.model.JDK

Module / class or interface : hudson.model.JDK

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JDK | JDK(String;String) | 1 | 1
JDK | JDK(String;String;List<?extendsToolProperty<?>>) | 1 | 1
String | getJavaHome() | 1 | 1
File | getBinDir() | 1 | 1
File | getExecutable() | 1 | 2
boolean | getExists() | 1 | 1
void | buildEnvVars(Map<String,String>) | 1 | 2
void | buildEnvVars(EnvVars) | 1 | 1
JDK | forNode(Node;TaskListener) | 1 | 1
JDK | forEnvironment(EnvVars) | 1 | 1
boolean | isDefaultJDKValid(Node) | 1 | 5

#### File core\src\main\java\hudson\model\Job.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractItem | hudson.model.Job

Module / class or interface : hudson.model.Job

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Job | Job(ItemGroup;String) | 1 | 1
void | save() | 1 | 2
void | onLoad(ItemGroup<?extendsItem>;String) | 5 | 5
void | onCopiedFrom(Item) | 1 | 3
void | performDelete() | 3 | 3
TextFile | getNextBuildNumberFile() | 1 | 1
boolean | isHoldOffBuildUntilSave() | 1 | 1
void | saveNextBuildNumber() | 2 | 2
boolean | isInQueue() | 1 | 1
Queue.Item | getQueueItem() | 1 | 1
boolean | isBuilding() | 1 | 2
boolean | isLogUpdated() | 1 | 2
String | getPronoun() | 1 | 1
boolean | isNameEditable() | 1 | 1
boolean | isKeepDependencies() | 1 | 1
int | assignBuildNumber() | 1 | 3
int | getNextBuildNumber() | 1 | 1
EnvVars | getCharacteristicEnvVars() | 1 | 5
EnvVars | getEnvironment(Node;TaskListener) | 3 | 6
void | updateNextBuildNumber(int) | 2 | 3
BuildDiscarder | getBuildDiscarder() | 1 | 1
void | setBuildDiscarder(BuildDiscarder) | 1 | 2
LogRotator | getLogRotator() | 2 | 2
void | setLogRotator(LogRotator) | 1 | 1
void | logRotate() | 2 | 2
boolean | supportsLogRotator() | 1 | 1
SearchIndexBuilder | makeSearchIndex() | 1 | 1
Collection<?extendsJob> | getAllJobs() | 1 | 1
void | addProperty(JobProperty<?superJobT>) | 1 | 3
void | removeProperty(JobProperty<?superJobT>) | 1 | 2
Map<JobPropertyDescriptor,JobProperty<?superJobT>> | getProperties() | 1 | 1
List<JobProperty<?superJobT>> | getAllProperties() | 1 | 1
JobProperty | getProperty(String) | 3 | 2
Collection<?> | getOverrides() | 2 | 3
List<Widget> | getWidgets() | 1 | 3
HistoryWidget | createHistoryWidget() | 1 | 1
void | renameTo(String) | 1 | 1
boolean | isBuildable() | 1 | 1
RunList<RunT> | getBuilds() | 1 | 1
RunList<RunT> | getNewBuilds() | 1 | 1
List<RunT> | getBuilds(RangeSet) | 3 | 2
SortedMap<Integer,RunT> | getBuildsAsMap() | 1 | 1
RunT | getBuild(String) | 3 | 2
RunT | getBuildByNumber(int) | 1 | 1
RunList<RunT> | getBuildsByTimestamp(long;long) | 1 | 1
RunT | getBuildForCLI(String) | 2 | 5
RunT | getNearestBuild(int) | 2 | 3
RunT | getNearestOldBuild(int) | 2 | 3
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 3 | 2
File | getBuildDir() | 1 | 1
SortedMap<Integer,?extendsRunT> | _getRuns() | 1 | 1
void | removeRun(RunT) | 1 | 1
RunT | getLastBuild() | 2 | 3
RunT | getFirstBuild() | 2 | 3
RunT | getLastSuccessfulBuild() | 1 | 3
RunT | getLastUnsuccessfulBuild() | 1 | 3
RunT | getLastUnstableBuild() | 1 | 3
RunT | getLastStableBuild() | 1 | 3
RunT | getLastFailedBuild() | 1 | 3
RunT | getLastCompletedBuild() | 1 | 3
List<RunT> | getLastBuildsOverThreshold(int;Result) | 2 | 4
long | getEstimatedDuration() | 4 | 6
PermalinkList | getPermalinks() | 3 | 2
BallColor | getIconColor() | 3 | 4
HealthReport | getBuildHealth() | 1 | 2
List<HealthReport> | getBuildHealthReports() | 7 | 9
HealthReport | getBuildStabilityHealthReport() | 6 | 8
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 6 | 23
void | submit(StaplerRequest;StaplerResponse) | 1 | 0
void | doDescription(StaplerRequest;StaplerResponse) | 4 | 5
void | doBuildStatus(StaplerRequest;StaplerResponse) | 1 | 1
String | getBuildStatusUrl() | 1 | 1
Graph | getBuildTimeGraph() | 1 | 1
void | doDoRename(StaplerRequest;StaplerResponse) | 3 | 8
void | doRssAll(StaplerRequest;StaplerResponse) | 1 | 1
void | doRssFailed(StaplerRequest;StaplerResponse) | 1 | 1
void | rss(StaplerRequest;StaplerResponse;String;RunList) | 1 | 1
ACL | getACL() | 1 | 1
BuildTimelineWidget | getTimeline() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00613 | MAJOR | QC-JAV000001[00613] Avoid declaring class instance within loop, performance impact
00910 | MAJOR | QC-JAV000001[00910] Avoid declaring class instance within loop, performance impact
00911 | MAJOR | QC-JAV000001[00911] Avoid declaring class instance within loop, performance impact
00911 | MAJOR | QC-JAV000001[00911] Avoid declaring class instance within loop, performance impact
00964 | MAJOR | QC-JAV000001[00964] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\JobParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleParameterDefinition | hudson.model.JobParameterDefinition

Module / class or interface : hudson.model.JobParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JobParameterDefinition | JobParameterDefinition(String) | 1 | 1
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 1
ParameterValue | createValue(String) | 1 | 1

#### File core\src\main\java\hudson\model\JobParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterValue | hudson.model.JobParameterValue

Module / class or interface : hudson.model.JobParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JobParameterValue | JobParameterValue(String;Job) | 1 | 2
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 2

#### File core\src\main\java\hudson\model\JobProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.JobProperty

Module / class or interface : hudson.model.JobProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setOwner(J) | 1 | 1
JobPropertyDescriptor | getDescriptor() | 1 | 1
Action | getJobAction(J) | 1 | 1
Collection<?extendsAction> | getJobActions(J) | 2 | 3
boolean | prebuild(AbstractBuild<?,?>;BuildListener) | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 1
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
Action | getProjectAction(AbstractProject<?,?>) | 1 | 1
Collection<?extendsAction> | getProjectActions(AbstractProject<?,?>) | 1 | 1
Collection<?> | getJobOverrides() | 1 | 1
JobProperty<?> | reconfigure(StaplerRequest;JSONObject) | 1 | 1
Collection<?extendsSubTask> | getSubTasks() | 1 | 1

#### File core\src\main\java\hudson\model\JobPropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<JobProperty<?>> | hudson.model.JobPropertyDescriptor

Module / class or interface : hudson.model.JobPropertyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JobPropertyDescriptor | JobPropertyDescriptor(Class<?extendsJobProperty<?>>) | 1 | 1
JobPropertyDescriptor | JobPropertyDescriptor() | 1 | 0
JobProperty<?> | newInstance(StaplerRequest;JSONObject) | 2 | 2
boolean | isApplicable(Class<?extendsJob>) | 3 | 5
List<JobPropertyDescriptor> | getPropertyDescriptors(Class<?extendsJob>) | 3 | 3
Collection<JobPropertyDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\Jobs.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Jobs

Module / class or interface : hudson.model.Jobs

#### File core\src\main\java\hudson\model\Label.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Actionable | hudson.model.Label

Module / class or interface : hudson.model.Label

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Label | Label(String) | 1 | 3
String | getName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getExpression() | 1 | 1
String | getUrl() | 1 | 1
String | getSearchUrl() | 1 | 1
boolean | matches(VariableResolver<Boolean>) | 1 | 1
boolean | matches(Collection<LabelAtom>) | 1 | 1
boolean | matches(Node) | 1 | 1
boolean | isSelfLabel() | 1 | 2
Set<Node> | getNodes() | 5 | 7
Set<Cloud> | getClouds() | 3 | 4
boolean | isAssignable() | 3 | 2
int | getTotalConfiguredExecutors() | 2 | 3
int | getTotalExecutors() | 3 | 4
int | getBusyExecutors() | 3 | 4
int | getIdleExecutors() | 3 | 4
boolean | isOffline() | 3 | 3
String | getDescription() | 4 | 6
String | toString(Collection<?extendsModelObject>) | 5 | 6
List<AbstractProject> | getTiedJobs() | 3 | 3
boolean | contains(Node) | 1 | 1
boolean | isEmpty() | 1 | 1
void | reset() | 1 | 2
Api | getApi() | 1 | 1
Set<LabelAtom> | listAtoms() | 1 | 3
Label | and(Label) | 1 | 1
Label | or(Label) | 1 | 1
Label | iff(Label) | 1 | 1
Label | implies(Label) | 1 | 1
Label | not() | 1 | 1
Label | paren() | 1 | 1
LabelOperatorPrecedence | precedence() | 1 | 1
boolean | equals(Object) | 3 | 3
int | hashCode() | 1 | 1
int | compareTo(Label) | 1 | 1
String | toString() | 1 | 1
Set<LabelAtom> | parse(String) | 3 | 4
Label | get(String) | 1 | 1
Label | parseExpression(String) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00188 | MAJOR | QC-JAVCWE481[00188] Assigning instead of comparing on this.nodes=Collections.unmodifiableSet(r) (see http://cwe.mitre.org/data/definitions/481.html)
00249 | MAJOR | QC-JAV000001[00249] Avoid declaring class instance within loop, performance impact
00263 | MAJOR | QC-JAV000001[00263] Avoid declaring class instance within loop, performance impact
00277 | MAJOR | QC-JAV000001[00277] Avoid declaring class instance within loop, performance impact
00290 | MAJOR | QC-JAV000001[00290] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\LabelFinder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.LabelFinder

Module / class or interface : hudson.model.LabelFinder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionList<LabelFinder> | all() | 1 | 1
Collection<LabelAtom> | findLabels(Node) | 1 | 1

#### File core\src\main\java\hudson\model\LargeText.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.LargeText

Module / class or interface : hudson.model.LargeText

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LargeText | LargeText(File;boolean) | 1 | 2
LargeText | LargeText(ByteBuffer;boolean) | 1 | 2
void | markAsComplete() | 1 | 1
boolean | isComplete() | 1 | 1
Reader | readAll() | 1 | 1
long | writeLogTo(long;Writer) | 3 | 13
void | doProgressText(StaplerRequest;StaplerResponse) | 7 | 18

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00155 | MAJOR | QC-JAVCWE481[00155] Assigning instead of comparing on sz=f.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)
00240 | CRITICAL | QC-JAVCWE476[00240] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\model\ListView.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
View | hudson.model.ListView

Module / class or interface : hudson.model.ListView

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ListView | ListView(String) | 1 | 3
ListView | ListView(String;ViewGroup) | 1 | 2
Object | readResolve() | 2 | 4
void | initColumns() | 2 | 1
void | initJobFilters() | 2 | 1
boolean | hasJobFilterExtensions() | 1 | 1
DescribableList<ViewJobFilter,Descriptor<ViewJobFilter>> | getJobFilters() | 1 | 1
DescribableList<ListViewColumn,Descriptor<ListViewColumn>> | getColumns() | 1 | 1
List<TopLevelItem> | getItems() | 7 | 11
boolean | contains(TopLevelItem) | 1 | 1
void | add(TopLevelItem) | 1 | 2
String | getIncludeRegex() | 1 | 1
Boolean | getStatusFilter() | 1 | 1
Item | doCreateItem(StaplerRequest;StaplerResponse) | 3 | 4
HttpResponse | doAddJobToView(String) | 4 | 5
HttpResponse | doRemoveJobFromView(String) | 3 | 4
void | onJobRenamed(Item;String;String) | 2 | 1
void | submit(StaplerRequest) | 8 | 12
List<ListViewColumn> | getDefaultColumns() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00148 | MAJOR | QC-JAV000001[00148] Avoid declaring class instance within loop, performance impact
00160 | MAJOR | QC-JAV000001[00160] Avoid declaring class instance within loop, performance impact
00161 | MAJOR | QC-JAV000001[00161] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\LoadBalancer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.LoadBalancer

Module / class or interface : hudson.model.LoadBalancer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Mapping | map(Task;MappingWorksheet) | 1 | 1
LoadBalancer | sanitize() | 1 | 2

#### File core\src\main\java\hudson\model\LoadStatistics.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.LoadStatistics

Module / class or interface : hudson.model.LoadStatistics

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LoadStatistics | LoadStatistics(int;int) | 1 | 3
float | getLatestIdleExecutors(TimeScale) | 1 | 1
int | computeIdleExecutors() | 1 | 1
int | computeTotalExecutors() | 1 | 1
int | computeQueueLength() | 1 | 1
JFreeChart | createChart(CategoryDataset) | 1 | 20
void | configureRenderer(LineAndShapeRenderer) | 1 | 3
TrendChart | createTrendChart(TimeScale) | 1 | 1
TrendChart | doGraph(String) | 1 | 1
Api | getApi() | 1 | 1
void | updateExecutorCounts() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00201 | MAJOR | QC-JAVCWE493[00201] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00201 | MINOR | QC-JAVCWE500[00201] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\ManageJenkinsAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ManageJenkinsAction

Module / class or interface : hudson.model.ManageJenkinsAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 3 | 2
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\hudson\model\ManagementLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ManagementLink

Module / class or interface : hudson.model.ManagementLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1
ExtensionList<ManagementLink> | all() | 1 | 1
Permission | getRequiredPermission() | 1 | 1

#### File core\src\main\java\hudson\model\ModelObject.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ModelObject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDisplayName() | 1 | 1

#### File core\src\main\java\hudson\model\ModifiableItemGroup.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ModifiableItemGroup

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
T | doCreateItem(StaplerRequest;StaplerResponse) | 1 | 1

#### File core\src\main\java\hudson\model\MultiStageTimeSeries.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.MultiStageTimeSeries

Module / class or interface : hudson.model.MultiStageTimeSeries

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MultiStageTimeSeries | MultiStageTimeSeries(Localizable;Color;float;float) | 1 | 5
MultiStageTimeSeries | MultiStageTimeSeries(float;float) | 1 | 1
void | update(float) | 3 | 4
TimeSeries | pick(TimeScale) | 4 | 4
float | getLatest(TimeScale) | 1 | 1
Api | getApi() | 1 | 1
TrendChart | createTrendChart(TimeScale;MultiStageTimeSeries) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00223 | MAJOR | QC-JAV000001[00223] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\MyView.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
View | hudson.model.MyView

Module / class or interface : hudson.model.MyView

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MyView | MyView(String) | 1 | 1
MyView | MyView(String;ViewGroup) | 1 | 2
boolean | contains(TopLevelItem) | 1 | 1
TopLevelItem | doCreateItem(StaplerRequest;StaplerResponse) | 2 | 3
Collection<TopLevelItem> | getItems() | 3 | 2
String | getPostConstructLandingPage() | 1 | 1
void | onJobRenamed(Item;String;String) | 1 | 0
void | submit(StaplerRequest) | 1 | 0

#### File core\src\main\java\hudson\model\MyViewsProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UserProperty | hudson.model.MyViewsProperty

Module / class or interface : hudson.model.MyViewsProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MyViewsProperty | MyViewsProperty(String) | 1 | 1
MyViewsProperty | MyViewsProperty() | 1 | 1
Object | readResolve() | 3 | 4
String | getPrimaryViewName() | 1 | 1
void | setPrimaryViewName(String) | 1 | 1
User | getUser() | 1 | 1
String | getUrl() | 1 | 1
void | save() | 1 | 1
Collection<View> | getViews() | 1 | 1
View | getView(String) | 1 | 1
boolean | canDelete(View) | 1 | 1
void | deleteView(View) | 1 | 1
void | onViewRenamed(View;String;String) | 1 | 1
void | addView(View) | 1 | 1
View | getPrimaryView() | 1 | 1
HttpResponse | doIndex() | 1 | 1
void | doCreateView(StaplerRequest;StaplerResponse) | 1 | 2
FormValidation | doViewExistsCheck(String;boolean) | 4 | 5
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
String | getDisplayName() | 1 | 1
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
UserProperty | reconfigure(StaplerRequest;JSONObject) | 1 | 2
ViewsTabBar | getViewsTabBar() | 1 | 1
ItemGroup<?extendsTopLevelItem> | getItemGroup() | 1 | 1
List<Action> | getViewActions() | 1 | 1
Object | getStaplerFallback() | 1 | 1
MyViewsTabBar | getMyViewsTabBar() | 1 | 1

#### File core\src\main\java\hudson\model\NoFingerprintMatch.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.NoFingerprintMatch

Module / class or interface : hudson.model.NoFingerprintMatch

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NoFingerprintMatch | NoFingerprintMatch(String) | 1 | 1
String | getDisplayName() | 1 | 1

#### File core\src\main\java\hudson\model\Node.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.Node

Module / class or interface : hudson.model.Node

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
boolean | isHoldOffLaunchUntilSave() | 1 | 1
String | getNodeName() | 1 | 1
void | setNodeName(String) | 1 | 1
String | getNodeDescription() | 1 | 1
Launcher | createLauncher(TaskListener) | 1 | 1
int | getNumExecutors() | 1 | 1
Mode | getMode() | 1 | 1
Computer | toComputer() | 1 | 2
VirtualChannel | getChannel() | 1 | 2
Computer | createComputer() | 1 | 1
void | setTemporaryOfflineCause(OfflineCause) | 2 | 1
TagCloud<LabelAtom> | getLabelCloud() | 1 | 1
Set<LabelAtom> | getAssignedLabels() | 1 | 4
HashSet<LabelAtom> | getDynamicLabels() | 4 | 2
String | getLabelString() | 1 | 1
void | setLabelString(String) | 1 | 1
LabelAtom | getSelfLabel() | 1 | 1
CauseOfBlockage | canTake(Task) | 1 | 1
CauseOfBlockage | canTake(Queue.BuildableItem) | 5 | 6
FilePath | getWorkspaceFor(TopLevelItem) | 1 | 1
FilePath | getRootPath() | 1 | 1
FilePath | createPath(String) | 2 | 3
FileSystemProvisioner | getFileSystemProvisioner() | 1 | 1
DescribableList<NodeProperty<?>,NodePropertyDescriptor> | getNodeProperties() | 1 | 1
List<NodePropertyDescriptor> | getNodePropertyDescriptors() | 1 | 1
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
Node | reconfigure(StaplerRequest;JSONObject) | 2 | 5
NodeDescriptor | getDescriptor() | 1 | 1
ClockDifference | getClockDifference() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00258 | MAJOR | QC-JAV000001[00258] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAV000001[00259] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAV000001[00259] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAV000001[00259] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAV000001[00259] Avoid declaring class instance within loop, performance impact
00331 | MAJOR | QC-JAV000001[00331] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\OneOffExecutor.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Executor | hudson.model.OneOffExecutor

Module / class or interface : hudson.model.OneOffExecutor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
OneOffExecutor | OneOffExecutor(Computer;WorkUnit) | 1 | 2
boolean | shouldRun() | 1 | 1
WorkUnit | getAssignedWorkUnit() | 1 | 1
WorkUnit | grabJob() | 1 | 4
void | run() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1

Line start | Criticity class | Rule
--- | --- | ---
00066 | BLOCKER | QC-JAVCWE572[00066] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)

#### File core\src\main\java\hudson\model\OverallLoadStatistics.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LoadStatistics | hudson.model.OverallLoadStatistics

Module / class or interface : hudson.model.OverallLoadStatistics

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
OverallLoadStatistics | OverallLoadStatistics() | 1 | 1
int | computeIdleExecutors() | 1 | 1
int | computeTotalExecutors() | 1 | 1
int | computeQueueLength() | 1 | 1
TrendChart | createOverallTrendChart(TimeScale) | 1 | 1

#### File core\src\main\java\hudson\model\PageDecorator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<PageDecorator> | hudson.model.PageDecorator

Module / class or interface : hudson.model.PageDecorator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PageDecorator | PageDecorator(Class<?extendsPageDecorator>) | 1 | 1
PageDecorator | PageDecorator() | 1 | 1
Descriptor<PageDecorator> | getDescriptor() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrl() | 1 | 1
ExtensionList<PageDecorator> | all() | 1 | 1

#### File core\src\main\java\hudson\model\ParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ParameterDefinition

Module / class or interface : hudson.model.ParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ParameterDefinition | ParameterDefinition(String) | 1 | 1
ParameterDefinition | ParameterDefinition(String;String) | 1 | 2
ParameterDefinition | copyWithDefaultValue(ParameterValue) | 1 | 1
String | getType() | 1 | 1
String | getName() | 1 | 1
String | getDescription() | 1 | 1
ParameterDescriptor | getDescriptor() | 1 | 1
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 1
ParameterValue | createValue(StaplerRequest) | 1 | 1
ParameterValue | createValue(CLICommand;String) | 1 | 1
ParameterValue | getDefaultParameterValue() | 1 | 1
DescriptorExtensionList<ParameterDefinition,ParameterDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\ParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ParameterValue

Module / class or interface : hudson.model.ParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ParameterValue | ParameterValue(String;String) | 1 | 2
ParameterValue | ParameterValue(String) | 1 | 1
String | getDescription() | 1 | 1
void | setDescription(String) | 1 | 1
String | getName() | 1 | 1
void | buildEnvVars(AbstractBuild<?,?>;Map<String,String>) | 2 | 1
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 1
BuildWrapper | createBuildWrapper(AbstractBuild<?,?>) | 1 | 1
VariableResolver<String> | createVariableResolver(AbstractBuild<?,?>) | 1 | 1
ParameterDefinition | getDefinition() | 1 | 1
int | hashCode() | 1 | 4
boolean | equals(Object) | 8 | 7
String | getShortDescription() | 1 | 1
boolean | isSensitive() | 1 | 1
Label | getAssignedLabel(SubTask) | 1 | 1

#### File core\src\main\java\hudson\model\ParametersAction.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ParametersAction

Module / class or interface : hudson.model.ParametersAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ParametersAction | ParametersAction(List<ParameterValue>) | 1 | 1
ParametersAction | ParametersAction(ParameterValue) | 1 | 1
void | createBuildWrappers(AbstractBuild<?,?>;Collection<?superBuildWrapper>) | 3 | 2
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 2 | 1
String | substitute(AbstractBuild<?,?>;String) | 1 | 1
VariableResolver<String> | createVariableResolver(AbstractBuild<?,?>) | 2 | 5
Iterator<ParameterValue> | iterator() | 1 | 1
List<ParameterValue> | getParameters() | 1 | 1
ParameterValue | getParameter(String) | 3 | 2
Label | getAssignedLabel(SubTask) | 3 | 3
String | getDisplayName() | 1 | 1
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
boolean | shouldSchedule(List<Action>) | 4 | 4
Object | readResolve() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00075 | MAJOR | QC-JAV000001[00075] Avoid declaring class instance within loop, performance impact
00127 | MAJOR | QC-JAV000001[00127] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\ParametersDefinitionProperty.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
JobProperty<AbstractProject<?,?>> | hudson.model.ParametersDefinitionProperty

Module / class or interface : hudson.model.ParametersDefinitionProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ParametersDefinitionProperty | ParametersDefinitionProperty(List<ParameterDefinition>) | 1 | 1
ParametersDefinitionProperty | ParametersDefinitionProperty(ParameterDefinition) | 1 | 1
AbstractProject<?,?> | getOwner() | 1 | 1
List<ParameterDefinition> | getParameterDefinitions() | 1 | 1
List<String> | getParameterDefinitionNames() | 1 | 1
Collection<Action> | getJobActions(AbstractProject<?,?>) | 1 | 1
AbstractProject<?,?> | getProject() | 1 | 1
void | _doBuild(StaplerRequest;StaplerResponse) | 1 | 1
void | _doBuild(StaplerRequest;StaplerResponse;TimeDuration) | 4 | 12
void | buildWithParameters(StaplerRequest;StaplerResponse) | 1 | 1
void | buildWithParameters(StaplerRequest;StaplerResponse;TimeDuration) | 6 | 7
boolean | requestWantsJson(StaplerRequest) | 2 | 3
ParameterDefinition | getParameterDefinition(String) | 3 | 2
String | getDisplayName() | 1 | 1
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00125 | MAJOR | QC-JAV000001[00125] Avoid declaring class instance within loop, performance impact
00125 | MAJOR | QC-JAV000001[00125] Avoid declaring class instance within loop, performance impact
00126 | MAJOR | QC-JAV000001[00126] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00131 | MAJOR | QC-JAV000001[00131] Avoid declaring class instance within loop, performance impact
00149 | MAJOR | QC-JAV000001[00149] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\PasswordParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleParameterDefinition | hudson.model.PasswordParameterDefinition

Module / class or interface : hudson.model.PasswordParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PasswordParameterDefinition | PasswordParameterDefinition(String;String;String) | 1 | 2
ParameterDefinition | copyWithDefaultValue(ParameterValue) | 3 | 3
ParameterValue | createValue(String) | 1 | 1
PasswordParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 3
ParameterValue | getDefaultParameterValue() | 1 | 1
String | getDefaultValue() | 1 | 1
void | setDefaultValue(String) | 1 | 1

#### File core\src\main\java\hudson\model\PasswordParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterValue | hudson.model.PasswordParameterValue

Module / class or interface : hudson.model.PasswordParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PasswordParameterValue | PasswordParameterValue(String;String) | 1 | 1
PasswordParameterValue | PasswordParameterValue(String;String;String) | 1 | 2
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 3
VariableResolver<String> | createVariableResolver(AbstractBuild<?,?>) | 1 | 1
boolean | isSensitive() | 1 | 1
Secret | getValue() | 1 | 1

#### File core\src\main\java\hudson\model\PeriodicWork.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SafeTimerTask | hudson.model.PeriodicWork

Module / class or interface : hudson.model.PeriodicWork

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
long | getRecurrencePeriod() | 1 | 1
long | getInitialDelay() | 2 | 3
ExtensionList<PeriodicWork> | all() | 1 | 1

#### File core\src\main\java\hudson\model\PermalinkProjectAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.PermalinkProjectAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<Permalink> | getPermalinks() | 1 | 1

#### File core\src\main\java\hudson\model\PersistenceRoot.java 0 rule violation (XML file)

Module / class or interface : hudson.model.PersistenceRoot

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
File | getRootDir() | 1 | 1

#### File core\src\main\java\hudson\model\Project.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractProject<P,B> | hudson.model.Project

Module / class or interface : hudson.model.Project

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Project | Project(ItemGroup;String) | 1 | 1
void | onLoad(ItemGroup<?extendsItem>;String) | 1 | 4
AbstractProject<?,?> | asProject() | 1 | 1
List<Builder> | getBuilders() | 1 | 1
Map<Descriptor<Publisher>,Publisher> | getPublishers() | 1 | 1
DescribableList<Builder,Descriptor<Builder>> | getBuildersList() | 2 | 2
DescribableList<Publisher,Descriptor<Publisher>> | getPublishersList() | 2 | 2
Map<Descriptor<BuildWrapper>,BuildWrapper> | getBuildWrappers() | 1 | 1
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> | getBuildWrappersList() | 2 | 2
Set<ResourceActivity> | getResourceActivities() | 1 | 6
void | addPublisher(Publisher) | 1 | 1
void | removePublisher(Descriptor<Publisher>) | 1 | 1
Publisher | getPublisher(Descriptor<Publisher>) | 3 | 2
void | buildDependencyGraph(DependencyGraph) | 1 | 3
boolean | isFingerprintConfigured() | 1 | 1
MavenInstallation | inferMavenInstallation() | 2 | 3
void | submit(StaplerRequest;StaplerResponse) | 1 | 5
List<Action> | createTransientActions() | 5 | 6

#### File core\src\main\java\hudson\model\ProminentProjectAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ProminentProjectAction

#### File core\src\main\java\hudson\model\ProxyView.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
View | hudson.model.ProxyView

Module / class or interface : hudson.model.ProxyView

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ProxyView | ProxyView(String) | 2 | 2
View | getProxiedView() | 3 | 2
String | getProxiedViewName() | 1 | 1
void | setProxiedViewName(String) | 1 | 1
Collection<TopLevelItem> | getItems() | 1 | 1
boolean | contains(TopLevelItem) | 1 | 1
void | onJobRenamed(Item;String;String) | 2 | 1
void | submit(StaplerRequest) | 2 | 3
Item | doCreateItem(StaplerRequest;StaplerResponse) | 1 | 1
FormValidation | doViewExistsCheck(String) | 4 | 5
Object | getStaplerFallback() | 1 | 1

#### File core\src\main\java\hudson\model\Queue.java 44 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ResourceController | hudson.model.Queue

Module / class or interface : hudson.model.Queue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Queue | Queue(LoadBalancer) | 1 | 2
LoadBalancer | getLoadBalancer() | 1 | 1
void | setLoadBalancer(LoadBalancer) | 2 | 2
QueueSorter | getSorter() | 1 | 1
void | setSorter(QueueSorter) | 1 | 1
void | load() | 3 | 2
void | save() | 4 | 8
void | clear() | 2 | 6
File | getQueueFile() | 1 | 1
File | getXMLQueueFile() | 1 | 1
boolean | add(AbstractProject) | 1 | 1
WaitingItem | schedule(AbstractProject) | 1 | 1
boolean | add(AbstractProject;int) | 1 | 1
WaitingItem | schedule(Task;int;List<Action>) | 5 | 7
WaitingItem | scheduleInternal(Task;int;List<Action>) | 12 | 17
boolean | add(Task;int) | 1 | 1
WaitingItem | schedule(Task;int) | 1 | 1
boolean | add(Task;int;Action) | 1 | 1
WaitingItem | schedule(Task;int;Action) | 1 | 1
boolean | cancel(Task) | 3 | 5
boolean | cancel(Item) | 2 | 4
HttpResponse | doCancelItem(int) | 2 | 3
boolean | isEmpty() | 1 | 1
WaitingItem | peek() | 1 | 1
Item[] | getItems() | 4 | 7
List<Item> | getApproximateItemsQuickly() | 1 | 1
Item | getItem(int) | 9 | 5
List<BuildableItem> | getBuildableItems(Computer) | 1 | 4
void | _getBuildableItems(Computer;ItemList<BuildableItem>;List<BuildableItem>) | 3 | 2
List<BuildableItem> | getBuildableItems() | 1 | 3
List<BuildableItem> | getPendingItems() | 1 | 1
List<Item> | getUnblockedItems() | 1 | 5
Set<Task> | getUnblockedTasks() | 2 | 4
boolean | isPending(Task) | 3 | 2
int | countBuildableItemsFor(Label) | 5 | 4
int | countBuildableItems() | 1 | 1
Item | getItem(Task) | 6 | 8
List<Item> | getItems(Task) | 3 | 6
boolean | contains(Task) | 4 | 3
WorkUnit | pop() | 3 | 7
void | scheduleMaintenance() | 3 | 0
boolean | isBuildBlocked(Item) | 4 | 3
boolean | allowNewBuildableTask(Task) | 2 | 2
void | maintain() | 11 | 19
void | makeBuildable(BuildableItem) | 4 | 6
boolean | ifBlockedByHudsonShutdown(Task) | 1 | 1
Api | getApi() | 1 | 1
Queue | getInstance() | 1 | 1
void | init(Jenkins) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 3
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 38

Line start | Criticity class | Rule
--- | --- | ---
00320 | MAJOR | QC-JAVCWE481[00320] Assigning instead of comparing on line=in.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00321 | MAJOR | QC-JAV000001[00321] Avoid declaring class instance within loop, performance impact
00336 | MAJOR | QC-JAV000001[00336] Avoid declaring class instance within loop, performance impact
00338 | MAJOR | QC-JAV000001[00338] Avoid declaring class instance within loop, performance impact
00339 | MAJOR | QC-JAV000001[00339] Avoid declaring class instance within loop, performance impact
00340 | MAJOR | QC-JAV000001[00340] Avoid declaring class instance within loop, performance impact
00340 | MAJOR | QC-JAV000001[00340] Avoid declaring class instance within loop, performance impact
00345 | MAJOR | QC-JAV000001[00345] Avoid declaring class instance within loop, performance impact
00346 | MAJOR | QC-JAV000001[00346] Avoid declaring class instance within loop, performance impact
00347 | MAJOR | QC-JAV000001[00347] Avoid declaring class instance within loop, performance impact
00348 | MAJOR | QC-JAV000001[00348] Avoid declaring class instance within loop, performance impact
00349 | MAJOR | QC-JAV000001[00349] Avoid declaring class instance within loop, performance impact
00350 | MAJOR | QC-JAV000001[00350] Avoid declaring class instance within loop, performance impact
00383 | MAJOR | QC-JAV000001[00383] Avoid declaring class instance within loop, performance impact
00472 | MAJOR | QC-JAV000001[00472] Avoid declaring class instance within loop, performance impact
00503 | MAJOR | QC-JAV000001[00503] Avoid declaring class instance within loop, performance impact
00506 | MAJOR | QC-JAV000001[00506] Avoid declaring class instance within loop, performance impact
00527 | MAJOR | QC-JAV000001[00527] Avoid declaring class instance within loop, performance impact
00593 | MAJOR | QC-JAV000001[00593] Avoid declaring class instance within loop, performance impact
00853 | MAJOR | QC-JAV000001[00853] Avoid declaring class instance within loop, performance impact
00958 | MAJOR | QC-JAVCWE390[00958] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00983 | MAJOR | QC-JAV000001[00983] Avoid declaring class instance within loop, performance impact
00995 | MAJOR | QC-JAV000001[00995] Avoid declaring class instance within loop, performance impact
01001 | MAJOR | QC-JAV000001[01001] Avoid declaring class instance within loop, performance impact
01021 | MAJOR | QC-JAV000001[01021] Avoid declaring class instance within loop, performance impact
01030 | MAJOR | QC-JAV000001[01030] Avoid declaring class instance within loop, performance impact
01030 | MAJOR | QC-JAV000001[01030] Avoid declaring class instance within loop, performance impact
01031 | MAJOR | QC-JAV000001[01031] Avoid declaring class instance within loop, performance impact
01035 | MAJOR | QC-JAV000001[01035] Avoid declaring class instance within loop, performance impact
01036 | MAJOR | QC-JAV000001[01036] Avoid declaring class instance within loop, performance impact
01044 | MAJOR | QC-JAV000001[01044] Avoid declaring class instance within loop, performance impact
01067 | MAJOR | QC-JAV000001[01067] Avoid declaring class instance within loop, performance impact
01353 | MAJOR | QC-JAV000001[01353] Avoid declaring class instance within loop, performance impact
01414 | MAJOR | QC-JAV000001[01414] Avoid declaring class instance within loop, performance impact
01415 | MAJOR | QC-JAV000001[01415] Avoid declaring class instance within loop, performance impact
01415 | MAJOR | QC-JAV000001[01415] Avoid declaring class instance within loop, performance impact
01416 | MAJOR | QC-JAV000001[01416] Avoid declaring class instance within loop, performance impact
01521 | MAJOR | QC-JAVCWE493[01521] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01528 | CRITICAL | QC-JAVCWE476[01528] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
01559 | CRITICAL | QC-JAVCWE476[01559] The argument ni is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
01586 | MAJOR | QC-JAV000001[01586] Avoid declaring class instance within loop, performance impact
01641 | MAJOR | QC-JAV000001[01641] Avoid declaring class instance within loop, performance impact
01797 | MAJOR | QC-JAV000001[01797] Avoid declaring class instance within loop, performance impact
01807 | CRITICAL | QC-JAVCWE476[01807] The argument item is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\model\RSS.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.RSS

Module / class or interface : hudson.model.RSS

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | doTrackback(Object;StaplerRequest;StaplerResponse) | 2 | 9

#### File core\src\main\java\hudson\model\ReconfigurableDescribable.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ReconfigurableDescribable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
T | reconfigure(StaplerRequest;JSONObject) | 1 | 1

#### File core\src\main\java\hudson\model\Resource.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Resource

Module / class or interface : hudson.model.Resource

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Resource | Resource(Resource;String) | 1 | 1
Resource | Resource(Resource;String;int) | 2 | 4
Resource | Resource(String) | 1 | 1
boolean | isCollidingWith(Resource;int) | 5 | 8
boolean | equals(Object) | 3 | 4
boolean | eq(Object;Object) | 3 | 3
int | hashCode() | 1 | 1
String | toString() | 2 | 4

#### File core\src\main\java\hudson\model\ResourceActivity.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ResourceActivity

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ResourceList | getResourceList() | 1 | 1
String | getDisplayName() | 1 | 1

#### File core\src\main\java\hudson\model\ResourceController.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ResourceController

Module / class or interface : hudson.model.ResourceController

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | execute(Runnable;ResourceActivity) | 1 | 5
boolean | canRun(ResourceList) | 1 | 1
Resource | getMissingResource(ResourceList) | 1 | 1
ResourceActivity | getBlockingActivity(ResourceActivity) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1

Line start | Criticity class | Rule
--- | --- | ---
00088 | BLOCKER | QC-JAVCWE572[00088] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)

#### File core\src\main\java\hudson\model\ResourceList.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ResourceList

Module / class or interface : hudson.model.ResourceList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ResourceList | union(ResourceList) | 1 | 1
ResourceList | union(Collection<ResourceList>) | 4 | 4
ResourceList | r(Resource) | 1 | 2
ResourceList | w(Resource) | 1 | 3
boolean | isCollidingWith(ResourceList) | 1 | 1
Resource | getConflict(ResourceList) | 2 | 3
Resource | _getConflict(ResourceList;ResourceList) | 3 | 1
String | toString() | 3 | 4
int | unbox(Integer) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00082 | MAJOR | QC-JAV000001[00082] Avoid declaring class instance within loop, performance impact
00125 | MAJOR | QC-JAV000001[00125] Avoid declaring class instance within loop, performance impact
00126 | MAJOR | QC-JAV000001[00126] Avoid declaring class instance within loop, performance impact
00126 | MAJOR | QC-JAV000001[00126] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\RestartListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.RestartListener

Module / class or interface : hudson.model.RestartListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isReadyToRestart() | 1 | 1
void | onRestart() | 1 | 0
ExtensionList<RestartListener> | all() | 1 | 1
boolean | isAllReady() | 3 | 2

#### File core\src\main\java\hudson\model\Result.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.Result

Module / class or interface : hudson.model.Result

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Result | Result(String;BallColor;int) | 1 | 3
Result | combine(Result) | 3 | 2
boolean | isWorseThan(Result) | 1 | 1
boolean | isWorseOrEqualTo(Result) | 1 | 1
boolean | isBetterThan(Result) | 1 | 1
boolean | isBetterOrEqualTo(Result) | 1 | 1
String | toString() | 1 | 1
String | toExportedObject() | 1 | 1
Result | fromString(String) | 3 | 2
List<String> | getNames() | 2 | 3
Object | readResolve() | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 4

Line start | Criticity class | Rule
--- | --- | ---
00105 | CRITICAL | QC-JAVCWE476[00105] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00109 | CRITICAL | QC-JAVCWE476[00109] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00113 | CRITICAL | QC-JAVCWE476[00113] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00117 | CRITICAL | QC-JAVCWE476[00117] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\model\ResultTrend.java 0 rule violation (XML file)

Module / class or interface : hudson.model.

#### File core\src\main\java\hudson\model\RootAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.RootAction

#### File core\src\main\java\hudson\model\Run.java 31 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Actionable | hudson.model.Run

Module / class or interface : hudson.model.Run

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Run | Run(JobT) | 1 | 2
Run | Run(JobT;Calendar) | 1 | 1
Run | Run(JobT;long) | 1 | 4
Run | Run(JobT;File) | 1 | 3
void | reload() | 1 | 3
void | onLoad() | 3 | 1
List<Action> | getTransientActions() | 2 | 3
void | addAction(Action) | 2 | 2
long | parseTimestampFromBuildDir(File) | 1 | 3
RunT | _this() | 1 | 1
int | compareTo(RunT) | 1 | 1
Result | getResult() | 1 | 1
void | setResult(Result) | 4 | 3
List<BuildBadgeAction> | getBadgeActions() | 7 | 5
boolean | isBuilding() | 1 | 1
boolean | isLogUpdated() | 1 | 1
Executor | getExecutor() | 4 | 3
Executor | getOneOffExecutor() | 3 | 1
Charset | getCharset() | 2 | 2
List<Cause> | getCauses() | 2 | 3
boolean | isKeepLog() | 1 | 1
String | getWhyKeepLog() | 2 | 2
JobT | getParent() | 1 | 1
Calendar | getTimestamp() | 1 | 3
Date | getTime() | 1 | 1
long | getTimeInMillis() | 1 | 1
long | getStartTimeInMillis() | 2 | 2
String | getDescription() | 1 | 1
String | getTruncatedDescription() | 9 | 14
String | getTimestampString() | 1 | 2
String | getTimestampString2() | 1 | 1
String | getDurationString() | 2 | 2
long | getDuration() | 1 | 1
BallColor | getIconColor() | 4 | 6
boolean | hasntStartedYet() | 1 | 1
String | toString() | 1 | 1
String | getFullDisplayName() | 1 | 1
String | getDisplayName() | 1 | 1
boolean | hasCustomDisplayName() | 1 | 1
void | setDisplayName(String) | 1 | 3
int | getNumber() | 1 | 1
void | dropLinks() | 3 | 2
RunT | getPreviousBuild() | 1 | 1
RunT | getPreviousCompletedBuild() | 1 | 3
RunT | getPreviousBuildInProgress() | 6 | 9
RunT | getPreviousBuiltBuild() | 1 | 3
RunT | getPreviousNotFailedBuild() | 1 | 3
RunT | getPreviousFailedBuild() | 1 | 3
RunT | getPreviousSuccessfulBuild() | 1 | 3
List<RunT> | getPreviousBuildsOverThreshold(int;Result) | 2 | 4
RunT | getNextBuild() | 1 | 1
String | getUrl() | 3 | 3
String | getAbsoluteUrl() | 1 | 1
String | getSearchUrl() | 1 | 1
String | getId() | 1 | 1
DateFormat | getIDFormatter() | 1 | 1
Descriptor | getDescriptorByName(String) | 1 | 1
File | getRootDir() | 1 | 1
File | getArtifactsDir() | 1 | 1
List<Artifact> | getArtifacts() | 1 | 1
List<Artifact> | getArtifactsUpTo(int) | 1 | 4
boolean | getHasArtifacts() | 1 | 1
int | addArtifacts(File;String;String;ArtifactList;Artifact;int) | 7 | 11
File | getLogFile() | 3 | 5
InputStream | getLogInputStream() | 4 | 4
Reader | getLogReader() | 3 | 2
void | writeLogTo(long;XMLOutput) | 1 | 2
void | writeWholeLogTo(OutputStream) | 2 | 5
AnnotatedLargeText | getLogText() | 1 | 1
SearchIndexBuilder | makeSearchIndex() | 3 | 3
Api | getApi() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
ACL | getACL() | 1 | 1
void | deleteArtifacts() | 1 | 2
void | delete() | 4 | 11
void | removeRunFromParent() | 1 | 1
void | reportCheckpoint(CheckPoint) | 1 | 1
void | waitForCheckpoint(CheckPoint) | 4 | 4
void | run(Runner) | 1 | 1
void | execute(RunExecution) | 2 | 9
void | handleFatalBuildProblem(BuildListener;Throwable) | 5 | 4
void | onStartBuilding() | 2 | 3
void | onEndBuilding() | 4 | 8
void | save() | 2 | 3
XmlFile | getDataFile() | 1 | 1
String | getLog() | 1 | 1
List<String> | getLog(int) | 3 | 6
void | doBuildStatus(StaplerRequest;StaplerResponse) | 1 | 1
String | getBuildStatusUrl() | 1 | 1
Summary | getBuildStatusSummary() | 12 | 15
Summary | determineDetailedUnstableSummary(Boolean) | 4 | 4
DirectoryBrowserSupport | doArtifact() | 2 | 2
void | doBuildNumber(StaplerResponse) | 1 | 4
void | doBuildTimestamp(StaplerRequest;StaplerResponse;String) | 1 | 5
void | doConsoleText(StaplerRequest;StaplerResponse) | 1 | 5
void | doProgressiveLog(StaplerRequest;StaplerResponse) | 1 | 1
void | doToggleLogKeep(StaplerRequest;StaplerResponse) | 1 | 2
void | keepLog() | 1 | 1
void | keepLog(boolean) | 1 | 3
void | doDoDelete(StaplerRequest;StaplerResponse) | 2 | 6
void | setDescription(String) | 1 | 3
void | doSubmitDescription(StaplerRequest;StaplerResponse) | 1 | 2
Map<String,String> | getEnvVars() | 1 | 3
EnvVars | getEnvironment() | 1 | 1
EnvVars | getEnvironment(TaskListener) | 2 | 6
EnvVars | getCharacteristicEnvVars() | 1 | 5
String | getExternalizableId() | 1 | 1
Run<?,?> | fromExternalizableId(String) | 3 | 7
long | getEstimatedDuration() | 1 | 1
HttpResponse | doConfigSubmit(StaplerRequest) | 1 | 7
void | submit(JSONObject) | 1 | 2
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 26

Line start | Criticity class | Rule
--- | --- | ---
00147 | MAJOR | QC-JAVCWE493[00147] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00318 | MAJOR | QC-JAV000001[00318] Avoid declaring class instance within loop, performance impact
00319 | MAJOR | QC-JAV000001[00319] Avoid declaring class instance within loop, performance impact
00365 | CRITICAL | QC-JAVCWE476[00365] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00403 | MAJOR | QC-JAV000001[00403] Avoid declaring class instance within loop, performance impact
00405 | MAJOR | QC-JAV000001[00405] Avoid declaring class instance within loop, performance impact
00406 | MAJOR | QC-JAV000001[00406] Avoid declaring class instance within loop, performance impact
00450 | MAJOR | QC-JAV000001[00450] Avoid declaring class instance within loop, performance impact
00465 | MAJOR | QC-JAV000001[00465] Avoid declaring class instance within loop, performance impact
00769 | MAJOR | QC-JAV000001[00769] Avoid declaring class instance within loop, performance impact
00980 | MAJOR | QC-JAV000001[00980] Avoid declaring class instance within loop, performance impact
00981 | MAJOR | QC-JAV000001[00981] Avoid declaring class instance within loop, performance impact
00982 | MAJOR | QC-JAV000001[00982] Avoid declaring class instance within loop, performance impact
00983 | MAJOR | QC-JAV000001[00983] Avoid declaring class instance within loop, performance impact
00985 | MAJOR | QC-JAV000001[00985] Avoid declaring class instance within loop, performance impact
01052 | MAJOR | QC-JAV000001[01052] Avoid declaring class instance within loop, performance impact
01052 | MAJOR | QC-JAV000001[01052] Avoid declaring class instance within loop, performance impact
01052 | MAJOR | QC-JAV000001[01052] Avoid declaring class instance within loop, performance impact
01054 | MAJOR | QC-JAV000001[01054] Avoid declaring class instance within loop, performance impact
01055 | MAJOR | QC-JAV000001[01055] Avoid declaring class instance within loop, performance impact
01056 | MAJOR | QC-JAV000001[01056] Avoid declaring class instance within loop, performance impact
01054 | MAJOR | QC-JAV000001[01054] Avoid declaring class instance within loop, performance impact
01055 | MAJOR | QC-JAV000001[01055] Avoid declaring class instance within loop, performance impact
01056 | MAJOR | QC-JAV000001[01056] Avoid declaring class instance within loop, performance impact
01378 | MAJOR | QC-JAV000001[01378] Avoid declaring class instance within loop, performance impact
01380 | MAJOR | QC-JAV000001[01380] Avoid declaring class instance within loop, performance impact
01547 | MAJOR | QC-JAV000001[01547] Avoid declaring class instance within loop, performance impact
01554 | MAJOR | QC-JAV000001[01554] Avoid declaring class instance within loop, performance impact
01656 | MAJOR | QC-JAVCWE390[01656] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01771 | MAJOR | QC-JAVCWE493[01771] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01772 | MAJOR | QC-JAVCWE493[01772] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\model\RunAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.RunAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onLoad() | 1 | 1
void | onAttached(Run) | 1 | 1
void | onBuildComplete() | 1 | 1

#### File core\src\main\java\hudson\model\RunMap.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractLazyLoadRunMap<R> | hudson.model.RunMap

Module / class or interface : hudson.model.RunMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RunMap | RunMap() | 1 | 1
RunMap | RunMap(File;Constructor) | 1 | 2
boolean | remove(R) | 1 | 1
Iterator<R> | iterator() | 1 | 1
boolean | removeValue(R) | 1 | 2
SortedMap<Integer,R> | getView() | 1 | 1
R | newestValue() | 1 | 1
R | oldestValue() | 1 | 1
int | getNumberOf(R) | 1 | 1
String | getIdOf(R) | 1 | 1
R | put(R) | 1 | 1
BuildReference<R> | createReference(R) | 3 | 2
FilenameFilter | createDirectoryFilter() | 1 | 2
R | retrieve(File) | 2 | 1
void | load(Job;Constructor<R>) | 1 | 2

#### File core\src\main\java\hudson\model\RunParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleParameterDefinition | hudson.model.RunParameterDefinition

Module / class or interface : hudson.model.RunParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RunParameterDefinition | RunParameterDefinition(String;String;String) | 1 | 3
RunParameterDefinition | RunParameterDefinition(String;String;String;String) | 1 | 3
ParameterDefinition | copyWithDefaultValue(ParameterValue) | 3 | 3
String | getProjectName() | 1 | 1
Job | getProject() | 1 | 1
ParameterValue | getDefaultParameterValue() | 4 | 4
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 3
RunParameterValue | createValue(String) | 1 | 1

#### File core\src\main\java\hudson\model\RunParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterValue | hudson.model.RunParameterValue

Module / class or interface : hudson.model.RunParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RunParameterValue | RunParameterValue(String;String;String) | 1 | 2
RunParameterValue | RunParameterValue(String;String) | 1 | 2
Run | getRun() | 1 | 1
String | getRunId() | 1 | 1
String | getJobName() | 1 | 1
String | getNumber() | 1 | 1
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 7
String | getShortDescription() | 1 | 1

#### File core\src\main\java\hudson\model\RunnerStack.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.RunnerStack

Module / class or interface : hudson.model.RunnerStack

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | push(RunExecution) | 2 | 4
void | pop() | 2 | 4
RunExecution | peek() | 1 | 1

#### File core\src\main\java\hudson\model\SCMedItem.java 0 rule violation (XML file)

Module / class or interface : hudson.model.SCMedItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SCM | getScm() | 1 | 1
AbstractProject<?,?> | asProject() | 1 | 1
boolean | pollSCMChanges(TaskListener) | 1 | 1
PollingResult | poll(TaskListener) | 1 | 1

#### File core\src\main\java\hudson\model\Saveable.java 0 rule violation (XML file)

Module / class or interface : hudson.model.Saveable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | save() | 1 | 1

#### File core\src\main\java\hudson\model\SimpleParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterDefinition | hudson.model.SimpleParameterDefinition

Module / class or interface : hudson.model.SimpleParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SimpleParameterDefinition | SimpleParameterDefinition(String) | 1 | 1
SimpleParameterDefinition | SimpleParameterDefinition(String;String) | 1 | 1
ParameterValue | createValue(String) | 1 | 1
ParameterValue | createValue(StaplerRequest) | 5 | 4
ParameterValue | createValue(CLICommand;String) | 1 | 1

#### File core\src\main\java\hudson\model\Slave.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Node | hudson.model.Slave

Module / class or interface : hudson.model.Slave

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Slave | Slave(String;String;String;String;Mode;String;ComputerLauncher;RetentionStrategy;List<?extendsNodeProperty<?>>) | 1 | 1
Slave | Slave(String;String;String;int;Mode;String;ComputerLauncher;RetentionStrategy) | 1 | 1
Slave | Slave(String;String;String;int;Mode;String;ComputerLauncher;RetentionStrategy;List<?extendsNodeProperty<?>>) | 5 | 16
String | getUserId() | 1 | 1
void | setUserId(String) | 1 | 1
ComputerLauncher | getLauncher() | 1 | 1
void | setLauncher(ComputerLauncher) | 1 | 1
String | getRemoteFS() | 1 | 1
String | getNodeName() | 1 | 1
void | setNodeName(String) | 1 | 1
String | getNodeDescription() | 1 | 1
int | getNumExecutors() | 1 | 1
Mode | getMode() | 1 | 1
void | setMode(Mode) | 1 | 1
DescribableList<NodeProperty<?>,NodePropertyDescriptor> | getNodeProperties() | 1 | 1
RetentionStrategy | getRetentionStrategy() | 1 | 1
void | setRetentionStrategy(RetentionStrategy) | 1 | 1
String | getLabelString() | 1 | 1
void | setLabelString(String) | 1 | 2
ClockDifference | getClockDifference() | 2 | 6
Computer | createComputer() | 1 | 1
FilePath | getWorkspaceFor(TopLevelItem) | 2 | 3
FilePath | getRootPath() | 1 | 1
FilePath | getWorkspaceRoot() | 2 | 3
Launcher | createLauncher(TaskListener) | 1 | 2
SlaveComputer | getComputer() | 1 | 1
boolean | equals(Object) | 3 | 4
int | hashCode() | 1 | 1
Object | readResolve() | 3 | 3
SlaveDescriptor | getDescriptor() | 2 | 3

#### File core\src\main\java\hudson\model\StatusIcon.java 0 rule violation (XML file)

Module / class or interface : hudson.model.StatusIcon

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getImageOf(String) | 1 | 1
String | getDescription() | 1 | 1

#### File core\src\main\java\hudson\model\StockStatusIcon.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractStatusIcon | hudson.model.StockStatusIcon

Module / class or interface : hudson.model.StockStatusIcon

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StockStatusIcon | StockStatusIcon(String;Localizable) | 1 | 2
String | getImageOf(String) | 1 | 1
String | getDescription() | 1 | 1

#### File core\src\main\java\hudson\model\StreamBuildListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
StreamTaskListener | hudson.model.StreamBuildListener

Module / class or interface : hudson.model.StreamBuildListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StreamBuildListener | StreamBuildListener(OutputStream;Charset) | 1 | 1
StreamBuildListener | StreamBuildListener(File;Charset) | 1 | 1
StreamBuildListener | StreamBuildListener(OutputStream) | 1 | 1
StreamBuildListener | StreamBuildListener(PrintStream) | 1 | 1
StreamBuildListener | StreamBuildListener(PrintStream;Charset) | 1 | 1
void | started(List<Cause>) | 4 | 3
void | finished(Result) | 1 | 1

#### File core\src\main\java\hudson\model\StringParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleParameterDefinition | hudson.model.StringParameterDefinition

Module / class or interface : hudson.model.StringParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StringParameterDefinition | StringParameterDefinition(String;String;String) | 1 | 2
StringParameterDefinition | StringParameterDefinition(String;String) | 1 | 1
ParameterDefinition | copyWithDefaultValue(ParameterValue) | 3 | 3
String | getDefaultValue() | 1 | 1
void | setDefaultValue(String) | 1 | 1
StringParameterValue | getDefaultParameterValue() | 1 | 2
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 3
ParameterValue | createValue(String) | 1 | 1

#### File core\src\main\java\hudson\model\StringParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParameterValue | hudson.model.StringParameterValue

Module / class or interface : hudson.model.StringParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StringParameterValue | StringParameterValue(String;String) | 1 | 1
StringParameterValue | StringParameterValue(String;String;String) | 1 | 2
void | buildEnvVars(AbstractBuild<?,?>;EnvVars) | 1 | 2
VariableResolver<String> | createVariableResolver(AbstractBuild<?,?>) | 1 | 1
int | hashCode() | 1 | 4
boolean | equals(Object) | 8 | 7
String | toString() | 1 | 1

#### File core\src\main\java\hudson\model\TaskAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.TaskAction

Module / class or interface : hudson.model.TaskAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Permission | getPermission() | 1 | 1
ACL | getACL() | 1 | 1
LargeText | getLog() | 1 | 1
AnnotatedLargeText | obtainLog() | 2 | 3
String | getSearchUrl() | 1 | 1
TaskThread | getWorkerThread() | 1 | 1
void | doProgressiveLog(StaplerRequest;StaplerResponse) | 2 | 4
void | doProgressiveHtml(StaplerRequest;StaplerResponse) | 2 | 4
void | doClearError(StaplerRequest;StaplerResponse) | 2 | 3

#### File core\src\main\java\hudson\model\TaskListener.java 0 rule violation (XML file)

Module / class or interface : hudson.model.TaskListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PrintStream | getLogger() | 1 | 1
void | annotate(ConsoleNote) | 1 | 1
void | hyperlink(String;String) | 1 | 1
PrintWriter | error(String) | 1 | 1
PrintWriter | error(String;Object) | 1 | 1
PrintWriter | fatalError(String) | 1 | 1
PrintWriter | fatalError(String;Object) | 1 | 1

#### File core\src\main\java\hudson\model\TaskThread.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Thread | hudson.model.TaskThread

Module / class or interface : hudson.model.TaskThread

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TaskThread | TaskThread(TaskAction;ListenerAndText) | 1 | 5
Reader | readAll() | 1 | 1
void | associateWith(TaskAction) | 1 | 2
void | start() | 1 | 2
boolean | isRunning() | 1 | 1
ListenerAndText | createListener() | 1 | 1
void | run() | 1 | 9
void | perform(TaskListener) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 2

Line start | Criticity class | Rule
--- | --- | ---
00075 | CRITICAL | QC-JAVCWE476[00075] The argument output is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00096 | CRITICAL | QC-JAVCWE476[00096] The argument action is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\model\TextParameterDefinition.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
StringParameterDefinition | hudson.model.TextParameterDefinition

Module / class or interface : hudson.model.TextParameterDefinition

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TextParameterDefinition | TextParameterDefinition(String;String;String) | 1 | 1
ParameterValue | createValue(StaplerRequest;JSONObject) | 1 | 3
ParameterValue | createValue(String) | 1 | 1

#### File core\src\main\java\hudson\model\TextParameterValue.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
StringParameterValue | hudson.model.TextParameterValue

Module / class or interface : hudson.model.TextParameterValue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TextParameterValue | TextParameterValue(String;String) | 1 | 1
TextParameterValue | TextParameterValue(String;String;String) | 1 | 1
String | toString() | 1 | 1

#### File core\src\main\java\hudson\model\TimeSeries.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.TimeSeries

Module / class or interface : hudson.model.TimeSeries

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TimeSeries | TimeSeries(float;float;int) | 1 | 3
void | update(float) | 1 | 5
float[] | getHistory() | 1 | 1
float | getLatest() | 1 | 1
String | toString() | 1 | 1

#### File core\src\main\java\hudson\model\TopLevelItem.java 0 rule violation (XML file)

Module / class or interface : hudson.model.TopLevelItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TopLevelItemDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\model\TopLevelItemDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<TopLevelItem> | hudson.model.TopLevelItemDescriptor

Module / class or interface : hudson.model.TopLevelItemDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TopLevelItemDescriptor | TopLevelItemDescriptor(Class<?extendsTopLevelItem>) | 1 | 1
TopLevelItemDescriptor | TopLevelItemDescriptor() | 1 | 0
boolean | isApplicable(Descriptor) | 1 | 1
boolean | testInstance(TopLevelItem) | 1 | 1
String | getDisplayName() | 1 | 1
TopLevelItem | newInstance(StaplerRequest) | 1 | 1
TopLevelItem | newInstance(String) | 1 | 1
TopLevelItem | newInstance(ItemGroup;String) | 1 | 1
ExtensionList<TopLevelItemDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\TransientBuildActionFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.TransientBuildActionFactory

Module / class or interface : hudson.model.TransientBuildActionFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | createFor(Run) | 3 | 2
Collection<?extendsAction> | createFor(AbstractBuild) | 1 | 1
ExtensionList<TransientBuildActionFactory> | all() | 1 | 1

#### File core\src\main\java\hudson\model\TransientComputerActionFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.TransientComputerActionFactory

Module / class or interface : hudson.model.TransientComputerActionFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | createFor(Computer) | 1 | 1
ExtensionList<TransientComputerActionFactory> | all() | 1 | 1
List<Action> | createAllFor(Computer) | 2 | 3

#### File core\src\main\java\hudson\model\TransientProjectActionFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.TransientProjectActionFactory

Module / class or interface : hudson.model.TransientProjectActionFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | createFor(AbstractProject) | 1 | 1
ExtensionList<TransientProjectActionFactory> | all() | 1 | 1

#### File core\src\main\java\hudson\model\TransientUserActionFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.TransientUserActionFactory

Module / class or interface : hudson.model.TransientUserActionFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | createFor(User) | 1 | 1
ExtensionList<TransientUserActionFactory> | all() | 1 | 1

#### File core\src\main\java\hudson\model\TransientViewActionFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.TransientViewActionFactory

Module / class or interface : hudson.model.TransientViewActionFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<Action> | createFor(View) | 1 | 1
ExtensionList<TransientViewActionFactory> | all() | 1 | 1
List<Action> | createAllFor(View) | 2 | 3

#### File core\src\main\java\hudson\model\TreeView.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
View | hudson.model.TreeView

Module / class or interface : hudson.model.TreeView

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TreeView | TreeView(String) | 1 | 1
Indenter | createFixedIndenter(String) | 1 | 2
List<TopLevelItem> | getItems() | 1 | 1
boolean | contains(TopLevelItem) | 1 | 1
TopLevelItem | doCreateItem(StaplerRequest;StaplerResponse) | 3 | 4
void | onJobRenamed(Item;String;String) | 3 | 2
void | submit(StaplerRequest) | 1 | 0
boolean | canDelete(View) | 1 | 1
void | deleteView(View) | 1 | 1
Collection<View> | getViews() | 1 | 1
View | getView(String) | 3 | 2
View | getPrimaryView() | 1 | 1
void | onViewRenamed(View;String;String) | 1 | 0
void | doCreateView(StaplerRequest;StaplerResponse) | 1 | 3
ViewDescriptor | register() | 3 | 2
ViewsTabBar | getViewsTabBar() | 1 | 1
ItemGroup<?extendsTopLevelItem> | getItemGroup() | 1 | 1
List<Action> | getViewActions() | 1 | 1

#### File core\src\main\java\hudson\model\UnprotectedRootAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.UnprotectedRootAction

#### File core\src\main\java\hudson\model\UpdateCenter.java 36 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.UpdateCenter

Module / class or interface : hudson.model.UpdateCenter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UpdateCenter | UpdateCenter() | 1 | 1
Api | getApi() | 1 | 1
void | configure(UpdateCenterConfiguration) | 2 | 1
List<UpdateCenterJob> | getJobs() | 1 | 1
UpdateCenterJob | getJob(int) | 2 | 1
InstallationJob | getJob(Plugin) | 4 | 4
HudsonUpgradeJob | getHudsonJob() | 3 | 4
PersistedList<UpdateSite> | getSites() | 1 | 1
List<UpdateSite> | getSiteList() | 1 | 1
UpdateSite | getSite(String) | 1 | 1
String | getLastUpdatedString() | 4 | 3
UpdateSite | getById(String) | 3 | 1
UpdateSite | getCoreSource() | 3 | 3
String | getDefaultBaseUrl() | 1 | 1
Plugin | getPlugin(String) | 3 | 3
void | doUpgrade(StaplerResponse) | 2 | 7
HttpResponse | doInvalidateData() | 2 | 3
void | doSafeRestart(StaplerRequest;StaplerResponse) | 2 | 1
void | doCancelRestart(StaplerResponse) | 2 | 1
boolean | isRestartRequiredForCompletion() | 1 | 1
boolean | isRestartScheduled() | 3 | 1
boolean | isDowngradable() | 1 | 1
void | doDowngrade(StaplerResponse) | 2 | 7
void | doRestart(StaplerResponse) | 1 | 5
String | getBackupVersion() | 2 | 7
Future<UpdateCenterJob> | addJob(UpdateCenterJob) | 2 | 2
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
void | save() | 2 | 4
void | load() | 5 | 2
XmlFile | getConfigFile() | 1 | 1
List<Plugin> | getAvailables() | 3 | 2
PluginEntry[] | getCategorizedAvailables() | 5 | 3
String | getCategoryDisplayName(String) | 2 | 3
List<Plugin> | getUpdates() | 3 | 2
List<FormValidation> | updateAllSites() | 4 | 5
void | init(Jenkins) | 1 | 1

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 2 | " . tmp"\---java.io.File (correctly sanitized)\------hudson.model.UpdateCenter.UpdateCenterConfiguration.download.tmp | correctly sanitized
| 1 | hudson.model.UpdateCenter.UpdateCenterConfiguration.download.tmp\---java.io.FileOutputStream\------hudson.model.UpdateCenter.UpdateCenterConfiguration.download.out | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 5
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 26
MINOR | QC-JAVCWE500 | Static public field not marked final | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 3

Line start | Criticity class | Rule
--- | --- | ---
00555 | INFO | QC-JAV999996[00555] CPD de longueur 108 commencant en 2212 (ligne 555) et 2542 (ligne 603): ) ) { final Plugin existing = pluginMap . get ( plugin . name ) ; if ( existing == null ) { pluginMap . put ( plugin . name , plugin ) ; } else if ( ! existing . version . equals ( plugin . version ) ) { final String altKey = plugin . name + ( " : " + plugin . version ) ; if ( ! pluginMap . containsKey ( altKey ) ) { pluginMap . put ( altKey , plugin ) ; } } } } return new ArrayList _ Plugin _ ( pluginMap . values ( ) ) ; } public PluginEntry
01389 | INFO | QC-JAV999996[01389] CPD de longueur 72 commencant en 5313 (ligne 1389) et 5761 (ligne 1485): getName ( ) ) ; status = ( new Success ( ) ) ; onSuccess ( ) ; } catch ( Throwable e ) { LOGGER . log ( Level . SEVERE , ( "Failed to downgrade " + getName ( ) ) , e ) ; status = ( new Failure ( e ) ) ; error = e ; } } @ Override protected void _run ( ) throws IOException { File dst
01433 | INFO | QC-JAV999996[01433] CPD de longueur 86 commencant en 5512 (ligne 1433) et 5633 (ligne 1460): UpdateSite site , Authentication auth ) { super ( site , auth ) ; } protected URL getURL ( ) throws MalformedURLException { return new URL ( site . getData ( ) . core . url ) ; } protected File getDestination ( ) { return Lifecycle . get ( ) . getHudsonWar ( ) ; } public String getName ( ) { return "jenkins . war" ; } protected void onSuccess ( ) { status = ( new Success ( ) ) ; } @ Override protected
00229 | MAJOR | QC-JAV000001[00229] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00245 | MAJOR | QC-JAV000001[00245] Avoid declaring class instance within loop, performance impact
00246 | MAJOR | QC-JAV000001[00246] Avoid declaring class instance within loop, performance impact
00312 | MAJOR | QC-JAV000001[00312] Avoid declaring class instance within loop, performance impact
00335 | MAJOR | QC-JAV000001[00335] Avoid declaring class instance within loop, performance impact
00393 | MAJOR | QC-JAV000001[00393] Avoid declaring class instance within loop, performance impact
00394 | MAJOR | QC-JAV000001[00394] Avoid declaring class instance within loop, performance impact
00426 | MAJOR | QC-JAV000001[00426] Avoid declaring class instance within loop, performance impact
00427 | MAJOR | QC-JAV000001[00427] Avoid declaring class instance within loop, performance impact
00427 | MAJOR | QC-JAV000001[00427] Avoid declaring class instance within loop, performance impact
00428 | MAJOR | QC-JAV000001[00428] Avoid declaring class instance within loop, performance impact
00429 | MAJOR | QC-JAV000001[00429] Avoid declaring class instance within loop, performance impact
00555 | MAJOR | QC-JAV000001[00555] Avoid declaring class instance within loop, performance impact
00556 | MAJOR | QC-JAV000001[00556] Avoid declaring class instance within loop, performance impact
00562 | MAJOR | QC-JAV000001[00562] Avoid declaring class instance within loop, performance impact
00556 | MAJOR | QC-JAV000001[00556] Avoid declaring class instance within loop, performance impact
00562 | MAJOR | QC-JAV000001[00562] Avoid declaring class instance within loop, performance impact
00583 | MAJOR | QC-JAV000001[00583] Avoid declaring class instance within loop, performance impact
00603 | MAJOR | QC-JAV000001[00603] Avoid declaring class instance within loop, performance impact
00604 | MAJOR | QC-JAV000001[00604] Avoid declaring class instance within loop, performance impact
00610 | MAJOR | QC-JAV000001[00610] Avoid declaring class instance within loop, performance impact
00604 | MAJOR | QC-JAV000001[00604] Avoid declaring class instance within loop, performance impact
00610 | MAJOR | QC-JAV000001[00610] Avoid declaring class instance within loop, performance impact
00634 | MAJOR | QC-JAV000001[00634] Avoid declaring class instance within loop, performance impact
00762 | MAJOR | QC-JAVCWE481[00762] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)
00944 | MAJOR | QC-JAVCWE493[00944] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01062 | MAJOR | QC-JAVCWE493[01062] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01511 | MAJOR | QC-JAVCWE493[01511] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01512 | MAJOR | QC-JAVCWE493[01512] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01550 | MAJOR | QC-JAVCWE493[01550] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01550 | MINOR | QC-JAVCWE500[01550] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\UpdateSite.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.UpdateSite

Module / class or interface : hudson.model.UpdateSite

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UpdateSite | UpdateSite(String;String) | 1 | 2
Object | readResolve() | 1 | 2
String | getId() | 1 | 1
long | getDataTimestamp() | 1 | 1
Future<FormValidation> | updateDirectly(boolean) | 2 | 2
FormValidation | doPostBack(StaplerRequest) | 1 | 1
FormValidation | updateData(String;boolean) | 4 | 9
FormValidation | doVerifySignature() | 1 | 1
FormValidation | verifySignature(JSONObject) | 1 | 1
boolean | isDue() | 4 | 8
HttpResponse | doInvalidateData() | 1 | 3
Data | getData() | 4 | 3
JSONObject | getJSONObject() | 3 | 2
List<Plugin> | getAvailables() | 4 | 5
Plugin | getPlugin(String) | 2 | 3
Api | getApi() | 1 | 1
String | getConnectionCheckUrl() | 2 | 3
TextFile | getDataFile() | 1 | 1
List<Plugin> | getUpdates() | 4 | 6
boolean | hasUpdates() | 4 | 4
String | getUrl() | 1 | 1
String | getDownloadUrl() | 2 | 2
boolean | isLegacyDefault() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00375 | MAJOR | QC-JAV000001[00375] Avoid declaring class instance within loop, performance impact
00611 | MAJOR | QC-JAV000001[00611] Avoid declaring class instance within loop, performance impact
00611 | MAJOR | QC-JAV000001[00611] Avoid declaring class instance within loop, performance impact
00675 | MAJOR | QC-JAV000001[00675] Avoid declaring class instance within loop, performance impact
00680 | MAJOR | QC-JAV000001[00680] Avoid declaring class instance within loop, performance impact
00683 | MAJOR | QC-JAV000001[00683] Avoid declaring class instance within loop, performance impact
00735 | MAJOR | QC-JAV000001[00735] Avoid declaring class instance within loop, performance impact
00736 | MAJOR | QC-JAV000001[00736] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAVCWE493[00784] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00784 | MINOR | QC-JAVCWE500[00784] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\UsageStatistics.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PageDecorator | hudson.model.UsageStatistics

Module / class or interface : hudson.model.UsageStatistics

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UsageStatistics | UsageStatistics() | 1 | 1
UsageStatistics | UsageStatistics(String) | 1 | 2
boolean | isDue() | 3 | 5
RSAPublicKey | getKey() | 2 | 2
String | getStatData() | 7 | 31
boolean | configure(StaplerRequest;JSONObject) | 1 | 3
String | getKeyAlgorithm(String) | 1 | 2
Cipher | toCipher(RSAKey;int) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00134 | MAJOR | QC-JAV000001[00134] Avoid declaring class instance within loop, performance impact
00141 | MAJOR | QC-JAV000001[00141] Avoid declaring class instance within loop, performance impact
00150 | MAJOR | QC-JAV000001[00150] Avoid declaring class instance within loop, performance impact
00161 | MAJOR | QC-JAV000001[00161] Avoid declaring class instance within loop, performance impact
00270 | MAJOR | QC-JAVCWE493[00270] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00270 | MINOR | QC-JAVCWE500[00270] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\User.java 19 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.User

Module / class or interface : hudson.model.User

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
User | User(String;String) | 1 | 3
int | compareTo(User) | 1 | 1
void | load() | 7 | 8
String | getId() | 1 | 1
String | getUrl() | 1 | 1
String | getSearchUrl() | 1 | 1
String | getAbsoluteUrl() | 1 | 1
String | getFullName() | 1 | 1
void | setFullName(String) | 2 | 2
String | getDescription() | 1 | 1
Map<Descriptor<UserProperty>,UserProperty> | getProperties() | 1 | 1
void | addProperty(UserProperty) | 2 | 7
List<UserProperty> | getAllProperties() | 1 | 1
Authentication | impersonate() | 1 | 3
void | doSubmitDescription(StaplerRequest;StaplerResponse) | 1 | 4
User | getUnknown() | 1 | 1
User | get(String;boolean) | 1 | 1
User | get(String;boolean;Map) | 4 | 7
User | getOrCreate(String;String;boolean) | 3 | 6
User | get(String) | 1 | 1
User | current() | 2 | 3
Collection<User> | getAll() | 5 | 7
void | reload() | 2 | 1
void | clear() | 1 | 1
String | getDisplayName() | 1 | 1
RunList | getBuilds() | 4 | 3
Set<AbstractProject<?,?>> | getProjects() | 3 | 3
String | toString() | 1 | 1
XmlFile | getConfigFile() | 1 | 1
File | getConfigFileFor(String) | 1 | 1
File | getRootDir() | 1 | 1
void | save() | 2 | 3
void | delete() | 1 | 2
Api | getApi() | 1 | 1
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 4 | 12
void | doDoDelete(StaplerRequest;StaplerResponse) | 2 | 5
void | doRssAll(StaplerRequest;StaplerResponse) | 1 | 1
void | doRssFailed(StaplerRequest;StaplerResponse) | 1 | 1
void | doRssLatest(StaplerRequest;StaplerResponse) | 4 | 3
void | rss(StaplerRequest;StaplerResponse;String;RunList;FeedAdapter) | 1 | 1
ACL | getACL() | 1 | 2
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
boolean | canDelete() | 1 | 1
List<String> | getAuthorities() | 5 | 4
Descriptor | getDescriptorByName(String) | 1 | 1
Object | getDynamic(String) | 5 | 3
List<Action> | getPropertyActions() | 3 | 2
List<Action> | getTransientActions() | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 17

Line start | Criticity class | Rule
--- | --- | ---
00152 | MAJOR | QC-JAV000001[00152] Avoid declaring class instance within loop, performance impact
00257 | MAJOR | QC-JAVCWE390[00257] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00259 | MAJOR | QC-JAVCWE390[00259] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00387 | MAJOR | QC-JAV000001[00387] Avoid declaring class instance within loop, performance impact
00435 | MAJOR | QC-JAV000001[00435] Avoid declaring class instance within loop, performance impact
00517 | MAJOR | QC-JAV000001[00517] Avoid declaring class instance within loop, performance impact
00519 | MAJOR | QC-JAV000001[00519] Avoid declaring class instance within loop, performance impact
00566 | MAJOR | QC-JAV000001[00566] Avoid declaring class instance within loop, performance impact
00567 | MAJOR | QC-JAV000001[00567] Avoid declaring class instance within loop, performance impact
00567 | MAJOR | QC-JAV000001[00567] Avoid declaring class instance within loop, performance impact
00568 | MAJOR | QC-JAV000001[00568] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00568 | MAJOR | QC-JAV000001[00568] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00646 | MAJOR | QC-JAV000001[00646] Avoid declaring class instance within loop, performance impact
00678 | MAJOR | QC-JAV000001[00678] Avoid declaring class instance within loop, performance impact
00679 | MAJOR | QC-JAV000001[00679] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\UserProperties.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.UserProperties

Module / class or interface : hudson.model.UserProperties

#### File core\src\main\java\hudson\model\UserProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.UserProperty

Module / class or interface : hudson.model.UserProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUser(User) | 1 | 1
UserPropertyDescriptor | getDescriptor() | 1 | 1
DescriptorExtensionList<UserProperty,UserPropertyDescriptor> | all() | 1 | 1
UserProperty | reconfigure(StaplerRequest;JSONObject) | 1 | 1

#### File core\src\main\java\hudson\model\UserPropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<UserProperty> | hudson.model.UserPropertyDescriptor

Module / class or interface : hudson.model.UserPropertyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UserPropertyDescriptor | UserPropertyDescriptor(Class<?extendsUserProperty>) | 1 | 1
UserPropertyDescriptor | UserPropertyDescriptor() | 1 | 0
UserProperty | newInstance(User) | 1 | 1
boolean | isEnabled() | 1 | 1

#### File core\src\main\java\hudson\model\View.java 79 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.model.View

Module / class or interface : hudson.model.View

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
View | View(String) | 1 | 1
View | View(String;ViewGroup) | 1 | 2
Collection<TopLevelItem> | getItems() | 1 | 1
TopLevelItem | getItem(String) | 1 | 1
TopLevelItem | getJob(String) | 1 | 1
boolean | contains(TopLevelItem) | 1 | 1
String | getViewName() | 1 | 1
void | rename(String) | 3 | 6
ViewGroup | getOwner() | 1 | 1
ItemGroup<?extendsTopLevelItem> | getOwnerItemGroup() | 1 | 2
ItemGroup<?extendsTopLevelItem> | _getOwnerItemGroup() | 1 | 1
View | getOwnerPrimaryView() | 1 | 2
View | _getOwnerPrimaryView() | 1 | 1
List<Action> | getOwnerViewActions() | 1 | 2
List<Action> | _getOwnerViewActions() | 1 | 1
String | getDescription() | 1 | 1
DescribableList<ViewProperty,ViewPropertyDescriptor> | getProperties() | 3 | 1
List<ViewPropertyDescriptor> | getApplicablePropertyDescriptors() | 3 | 3
void | save() | 2 | 1
List<ViewProperty> | getAllProperties() | 1 | 1
ViewDescriptor | getDescriptor() | 1 | 1
String | getDisplayName() | 1 | 1
String | getNewPronoun() | 1 | 1
boolean | isEditable() | 1 | 1
boolean | isFilterExecutors() | 1 | 1
boolean | isFilterQueue() | 1 | 1
List<Widget> | getWidgets() | 1 | 1
Iterable<?extendsListViewColumn> | getColumns() | 1 | 1
Indenter | getIndenter() | 1 | 1
boolean | isDefault() | 1 | 1
List<Computer> | getComputers() | 6 | 6
boolean | isDisjoint(Collection;Collection) | 3 | 2
List<Queue.Item> | filterQueue(List<Queue.Item>) | 6 | 4
List<Queue.Item> | getQueueItems() | 1 | 1
List<Queue.Item> | getApproximateQueueItemsQuickly() | 1 | 1
String | getUrl() | 1 | 1
String | getViewUrl() | 1 | 1
String | getSearchUrl() | 1 | 1
List<Action> | getActions() | 2 | 4
void | updateTransientActions() | 1 | 1
Object | getDynamic(String) | 4 | 4
String | getAbsoluteUrl() | 1 | 1
Api | getApi() | 1 | 1
String | getPostConstructLandingPage() | 1 | 1
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
void | onJobRenamed(Item;String;String) | 1 | 1
boolean | hasPeople() | 1 | 1
People | getPeople() | 1 | 1
AsynchPeople | getAsynchPeople() | 1 | 1
void | addDisplayNamesToSearchIndex(SearchIndexBuilder;Collection<TopLevelItem>) | 3 | 1
SearchIndexBuilder | makeSearchIndex() | 1 | 4
void | doSubmitDescription(StaplerRequest;StaplerResponse) | 1 | 4
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 1 | 10
void | submit(StaplerRequest) | 1 | 1
void | doDoDelete(StaplerRequest;StaplerResponse) | 1 | 3
Item | doCreateItem(StaplerRequest;StaplerResponse) | 1 | 1
void | doRssAll(StaplerRequest;StaplerResponse) | 1 | 1
void | doRssFailed(StaplerRequest;StaplerResponse) | 1 | 1
RunList | getBuilds() | 1 | 1
BuildTimelineWidget | getTimeline() | 1 | 1
void | rss(StaplerRequest;StaplerResponse;String;RunList) | 1 | 1
void | doRssLatest(StaplerRequest;StaplerResponse) | 3 | 2
HttpResponse | doConfigDotXml(StaplerRequest) | 3 | 5
void | updateByXml(Source) | 1 | 12
DescriptorExtensionList<View,ViewDescriptor> | all() | 1 | 1
List<ViewDescriptor> | allInstantiable() | 3 | 3
Permission | getItemCreatePermission() | 1 | 1
View | create(StaplerRequest;StaplerResponse;ViewGroup) | 6 | 12
View | createViewFromXML(String;InputStream) | 1 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 77
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00683 | INFO | QC-JAV999996[00683] CPD de longueur 77 commencant en 2633 (ligne 683) et 2880 (ligne 722): Item item : items ) { for ( Job job : item . getAllJobs ( ) ) { if ( job instanceof AbstractProject ) { AbstractProject _ ? , ? _ p = ( AbstractProject ) job ; for ( AbstractBuild _ ? , ? _ build : p . getBuilds ( ) ) { for ( Entry entry : build . getChangeSet ( ) ) { User user = entry . getAuthor ( ) ; UserInfo
01057 | INFO | QC-JAV999996[01057] CPD de longueur 61 commencant en 4801 (ligne 1057) et 5451 (ligne 1152): catch ( StreamException e ) { throw new IOException2 ( "Unable to read" , e ) ; } catch ( ConversionException e ) { throw new IOException2 ( "Unable to read" , e ) ; } catch ( Error e ) { throw new IOException2 ( "Unable to read" , e ) ; } finally { in . close ( ) ; } } public static final
00407 | MAJOR | QC-JAV000001[00407] Avoid declaring class instance within loop, performance impact
00408 | MAJOR | QC-JAV000001[00408] Avoid declaring class instance within loop, performance impact
00413 | MAJOR | QC-JAV000001[00413] Avoid declaring class instance within loop, performance impact
00442 | MAJOR | QC-JAV000001[00442] Avoid declaring class instance within loop, performance impact
00443 | MAJOR | QC-JAV000001[00443] Avoid declaring class instance within loop, performance impact
00443 | MAJOR | QC-JAV000001[00443] Avoid declaring class instance within loop, performance impact
00509 | MAJOR | QC-JAV000001[00509] Avoid declaring class instance within loop, performance impact
00684 | MAJOR | QC-JAV000001[00684] Avoid declaring class instance within loop, performance impact
00685 | MAJOR | QC-JAV000001[00685] Avoid declaring class instance within loop, performance impact
00686 | MAJOR | QC-JAV000001[00686] Avoid declaring class instance within loop, performance impact
00686 | MAJOR | QC-JAV000001[00686] Avoid declaring class instance within loop, performance impact
00687 | MAJOR | QC-JAV000001[00687] Avoid declaring class instance within loop, performance impact
00688 | MAJOR | QC-JAV000001[00688] Avoid declaring class instance within loop, performance impact
00689 | MAJOR | QC-JAV000001[00689] Avoid declaring class instance within loop, performance impact
00691 | MAJOR | QC-JAV000001[00691] Avoid declaring class instance within loop, performance impact
00685 | MAJOR | QC-JAV000001[00685] Avoid declaring class instance within loop, performance impact
00686 | MAJOR | QC-JAV000001[00686] Avoid declaring class instance within loop, performance impact
00686 | MAJOR | QC-JAV000001[00686] Avoid declaring class instance within loop, performance impact
00687 | MAJOR | QC-JAV000001[00687] Avoid declaring class instance within loop, performance impact
00688 | MAJOR | QC-JAV000001[00688] Avoid declaring class instance within loop, performance impact
00689 | MAJOR | QC-JAV000001[00689] Avoid declaring class instance within loop, performance impact
00691 | MAJOR | QC-JAV000001[00691] Avoid declaring class instance within loop, performance impact
00688 | MAJOR | QC-JAV000001[00688] Avoid declaring class instance within loop, performance impact
00689 | MAJOR | QC-JAV000001[00689] Avoid declaring class instance within loop, performance impact
00691 | MAJOR | QC-JAV000001[00691] Avoid declaring class instance within loop, performance impact
00689 | MAJOR | QC-JAV000001[00689] Avoid declaring class instance within loop, performance impact
00691 | MAJOR | QC-JAV000001[00691] Avoid declaring class instance within loop, performance impact
00723 | MAJOR | QC-JAV000001[00723] Avoid declaring class instance within loop, performance impact
00724 | MAJOR | QC-JAV000001[00724] Avoid declaring class instance within loop, performance impact
00725 | MAJOR | QC-JAV000001[00725] Avoid declaring class instance within loop, performance impact
00725 | MAJOR | QC-JAV000001[00725] Avoid declaring class instance within loop, performance impact
00726 | MAJOR | QC-JAV000001[00726] Avoid declaring class instance within loop, performance impact
00727 | MAJOR | QC-JAV000001[00727] Avoid declaring class instance within loop, performance impact
00728 | MAJOR | QC-JAV000001[00728] Avoid declaring class instance within loop, performance impact
00724 | MAJOR | QC-JAV000001[00724] Avoid declaring class instance within loop, performance impact
00725 | MAJOR | QC-JAV000001[00725] Avoid declaring class instance within loop, performance impact
00725 | MAJOR | QC-JAV000001[00725] Avoid declaring class instance within loop, performance impact
00726 | MAJOR | QC-JAV000001[00726] Avoid declaring class instance within loop, performance impact
00727 | MAJOR | QC-JAV000001[00727] Avoid declaring class instance within loop, performance impact
00728 | MAJOR | QC-JAV000001[00728] Avoid declaring class instance within loop, performance impact
00727 | MAJOR | QC-JAV000001[00727] Avoid declaring class instance within loop, performance impact
00728 | MAJOR | QC-JAV000001[00728] Avoid declaring class instance within loop, performance impact
00728 | MAJOR | QC-JAV000001[00728] Avoid declaring class instance within loop, performance impact
00775 | MAJOR | QC-JAV000001[00775] Avoid declaring class instance within loop, performance impact
00776 | MAJOR | QC-JAV000001[00776] Avoid declaring class instance within loop, performance impact
00777 | MAJOR | QC-JAV000001[00777] Avoid declaring class instance within loop, performance impact
00777 | MAJOR | QC-JAV000001[00777] Avoid declaring class instance within loop, performance impact
00778 | MAJOR | QC-JAV000001[00778] Avoid declaring class instance within loop, performance impact
00780 | MAJOR | QC-JAV000001[00780] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAV000001[00784] Avoid declaring class instance within loop, performance impact
00785 | MAJOR | QC-JAV000001[00785] Avoid declaring class instance within loop, performance impact
00786 | MAJOR | QC-JAV000001[00786] Avoid declaring class instance within loop, performance impact
00788 | MAJOR | QC-JAV000001[00788] Avoid declaring class instance within loop, performance impact
00776 | MAJOR | QC-JAV000001[00776] Avoid declaring class instance within loop, performance impact
00777 | MAJOR | QC-JAV000001[00777] Avoid declaring class instance within loop, performance impact
00777 | MAJOR | QC-JAV000001[00777] Avoid declaring class instance within loop, performance impact
00778 | MAJOR | QC-JAV000001[00778] Avoid declaring class instance within loop, performance impact
00780 | MAJOR | QC-JAV000001[00780] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAV000001[00784] Avoid declaring class instance within loop, performance impact
00785 | MAJOR | QC-JAV000001[00785] Avoid declaring class instance within loop, performance impact
00786 | MAJOR | QC-JAV000001[00786] Avoid declaring class instance within loop, performance impact
00788 | MAJOR | QC-JAV000001[00788] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAV000001[00784] Avoid declaring class instance within loop, performance impact
00785 | MAJOR | QC-JAV000001[00785] Avoid declaring class instance within loop, performance impact
00786 | MAJOR | QC-JAV000001[00786] Avoid declaring class instance within loop, performance impact
00788 | MAJOR | QC-JAV000001[00788] Avoid declaring class instance within loop, performance impact
00785 | MAJOR | QC-JAV000001[00785] Avoid declaring class instance within loop, performance impact
00786 | MAJOR | QC-JAV000001[00786] Avoid declaring class instance within loop, performance impact
00788 | MAJOR | QC-JAV000001[00788] Avoid declaring class instance within loop, performance impact
00820 | MAJOR | QC-JAV000001[00820] Avoid declaring class instance within loop, performance impact
00834 | MAJOR | QC-JAV000001[00834] Avoid declaring class instance within loop, performance impact
00835 | MAJOR | QC-JAV000001[00835] Avoid declaring class instance within loop, performance impact
00842 | MAJOR | QC-JAV000001[00842] Avoid declaring class instance within loop, performance impact
00995 | MAJOR | QC-JAV000001[00995] Avoid declaring class instance within loop, performance impact
00996 | MAJOR | QC-JAV000001[00996] Avoid declaring class instance within loop, performance impact
00996 | MAJOR | QC-JAV000001[00996] Avoid declaring class instance within loop, performance impact
00997 | MAJOR | QC-JAV000001[00997] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\ViewDescriptor.java 1 rule violations (XML file)

Module / class or interface : hudson.model.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00040 | BLOCKER | QC-JAV999999[00040] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\model\\ViewDescriptor.java near following tokens . QueryParameter ; import java . util . List ; public abstract class ViewDescriptor extends Descriptor _ View _ { public

#### File core\src\main\java\hudson\model\ViewGroup.java 0 rule violation (XML file)

Module / class or interface : hudson.model.ViewGroup

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | canDelete(View) | 1 | 1
void | deleteView(View) | 1 | 1
Collection<View> | getViews() | 1 | 1
View | getView(String) | 1 | 1
View | getPrimaryView() | 1 | 1
String | getUrl() | 1 | 1
void | onViewRenamed(View;String;String) | 1 | 1
ViewsTabBar | getViewsTabBar() | 1 | 1
ItemGroup<?extendsTopLevelItem> | getItemGroup() | 1 | 1
List<Action> | getViewActions() | 1 | 1

#### File core\src\main\java\hudson\model\ViewGroupMixIn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ViewGroupMixIn

Module / class or interface : hudson.model.ViewGroupMixIn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<View> | views() | 1 | 1
String | primaryView() | 1 | 1
void | primaryView(String) | 1 | 1
ViewGroupMixIn | ViewGroupMixIn(ViewGroup) | 1 | 1
void | addView(View) | 1 | 3
boolean | canDelete(View) | 1 | 1
void | deleteView(View) | 2 | 3
View | getView(String) | 5 | 4
Collection<View> | getViews() | 3 | 5
View | getPrimaryView() | 2 | 3
void | onViewRenamed(View;String;String) | 2 | 1

#### File core\src\main\java\hudson\model\ViewJob.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Job<JobT,RunT> | hudson.model.ViewJob

Module / class or interface : hudson.model.ViewJob

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ViewJob | ViewJob(Jenkins;String) | 1 | 1
ViewJob | ViewJob(ItemGroup;String) | 1 | 1
boolean | isBuildable() | 1 | 1
void | onLoad(ItemGroup<?extendsItem>;String) | 1 | 2
SortedMap<Integer,RunT> | _getRuns() | 4 | 1
void | removeRun(RunT) | 1 | 1
void | _reload() | 1 | 3
void | reload() | 1 | 1
void | submit(StaplerRequest;StaplerResponse) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00189 | MAJOR | QC-JAV000001[00189] Avoid declaring class instance within loop, performance impact
00192 | MAJOR | QC-JAV000001[00192] Avoid declaring class instance within loop, performance impact
00191 | MAJOR | QC-JAVCWE392[00191] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00211 | MAJOR | QC-JAVCWE493[00211] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00211 | MINOR | QC-JAVCWE500[00211] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\model\ViewProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ViewProperty

Module / class or interface : hudson.model.ViewProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setView(View) | 1 | 1
ViewPropertyDescriptor | getDescriptor() | 1 | 1
DescriptorExtensionList<ViewProperty,ViewPropertyDescriptor> | all() | 1 | 1
ViewProperty | reconfigure(StaplerRequest;JSONObject) | 1 | 1

#### File core\src\main\java\hudson\model\ViewPropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ViewProperty> | hudson.model.ViewPropertyDescriptor

Module / class or interface : hudson.model.ViewPropertyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ViewPropertyDescriptor | ViewPropertyDescriptor(Class<?extendsViewProperty>) | 1 | 1
ViewPropertyDescriptor | ViewPropertyDescriptor() | 1 | 0
ViewProperty | newInstance(View) | 1 | 1
boolean | isEnabledFor(View) | 1 | 1

#### File core\src\main\java\hudson\model\WorkspaceBrowser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.WorkspaceBrowser

Module / class or interface : hudson.model.WorkspaceBrowser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePath | getWorkspace(Job) | 1 | 1
WorkspaceList | getWorkspaceList() | 1 | 1

#### File core\src\main\java\hudson\model\WorkspaceCleanupThread.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AsyncPeriodicWork | hudson.model.WorkspaceCleanupThread

Module / class or interface : hudson.model.WorkspaceCleanupThread

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WorkspaceCleanupThread | WorkspaceCleanupThread() | 1 | 1
long | getRecurrencePeriod() | 1 | 1
void | invoke() | 1 | 1
void | execute(TaskListener) | 4 | 5
void | process(Jenkins) | 4 | 4
boolean | shouldBeDeleted(String;FilePath;Node) | 7 | 11
void | process(Slave) | 4 | 6
void | delete(FilePath) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00055 | BLOCKER | QC-JAVCWE572[00055] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00085 | MAJOR | QC-JAV000001[00085] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\WorkspaceListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.WorkspaceListener

Module / class or interface : hudson.model.WorkspaceListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | afterDelete(AbstractProject) | 1 | 0
void | beforeUse(AbstractBuild;FilePath;BuildListener) | 1 | 0
ExtensionList<WorkspaceListener> | all() | 1 | 1

#### File core\src\main\java\hudson\model\labels\LabelAssignmentAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.labels.LabelAssignmentAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Label | getAssignedLabel(SubTask) | 1 | 1

#### File core\src\main\java\hudson\model\labels\LabelAtom.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Label | hudson.model.labels.LabelAtom

Module / class or interface : hudson.model.labels.LabelAtom

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LabelAtom | LabelAtom(String) | 1 | 1
String | getExpression() | 1 | 1
List<Action> | getActions() | 1 | 3
void | updateTransientActions() | 3 | 4
DescribableList<LabelAtomProperty,LabelAtomPropertyDescriptor> | getProperties() | 1 | 1
List<LabelAtomProperty> | getPropertiesList() | 1 | 1
boolean | matches(VariableResolver<Boolean>) | 1 | 1
Set<LabelAtom> | listAtoms() | 1 | 1
LabelOperatorPrecedence | precedence() | 1 | 1
XmlFile | getConfigFile() | 1 | 1
void | save() | 2 | 4
void | load() | 2 | 3
List<LabelAtomPropertyDescriptor> | getApplicablePropertyDescriptors() | 1 | 1
void | doConfigSubmit(StaplerRequest;StaplerResponse) | 1 | 6
LabelAtom | get(String) | 1 | 1
LabelAtom | findNearest(String) | 2 | 3
boolean | needsEscape(String) | 2 | 3
String | escape(String) | 2 | 2

#### File core\src\main\java\hudson\model\labels\LabelAtomProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<LabelAtomProperty> | hudson.model.labels.LabelAtomProperty

Module / class or interface : hudson.model.labels.LabelAtomProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | getActions(LabelAtom) | 1 | 1
DescriptorExtensionList<LabelAtomProperty,LabelAtomPropertyDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\labels\LabelAtomPropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<LabelAtomProperty> | hudson.model.labels.LabelAtomPropertyDescriptor

Module / class or interface : hudson.model.labels.LabelAtomPropertyDescriptor

#### File core\src\main\java\hudson\model\labels\LabelExpression.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Label | hudson.model.labels.LabelExpression

Module / class or interface : hudson.model.labels.LabelExpression

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LabelExpression | LabelExpression(String) | 1 | 1
String | getExpression() | 1 | 1
String | paren(LabelOperatorPrecedence;Label) | 2 | 2

#### File core\src\main\java\hudson\model\labels\LabelOperatorPrecedence.java 0 rule violation (XML file)

Module / class or interface : hudson.model.labels.

#### File core\src\main\java\hudson\model\labels\LabelVisitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.labels.LabelVisitor

Module / class or interface : hudson.model.labels.LabelVisitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
V | onAtom(LabelAtom;P) | 1 | 1
V | onParen(LabelExpression.Paren;P) | 1 | 1
V | onNot(LabelExpression.Not;P) | 1 | 1
V | onAnd(LabelExpression.And;P) | 1 | 1
V | onOr(LabelExpression.Or;P) | 1 | 1
V | onIff(LabelExpression.Iff;P) | 1 | 1
V | onImplies(LabelExpression.Implies;P) | 1 | 1

#### File core\src\main\java\hudson\model\labels\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.model.labels.

#### File core\src\main\java\hudson\model\listeners\ItemListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.listeners.ItemListener

Module / class or interface : hudson.model.listeners.ItemListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onCreated(Item) | 1 | 0
void | onCopied(Item;Item) | 1 | 1
void | onLoaded() | 1 | 0
void | onDeleted(Item) | 1 | 0
void | onRenamed(Item;String;String) | 1 | 0
void | onUpdated(Item) | 1 | 0
void | onBeforeShutdown() | 1 | 0
void | register() | 1 | 1
ExtensionList<ItemListener> | all() | 1 | 1
void | fireOnCopied(Item;Item) | 2 | 1
void | fireOnCreated(Item) | 2 | 1
void | fireOnUpdated(Item) | 2 | 1

#### File core\src\main\java\hudson\model\listeners\RunListener.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.listeners.RunListener

Module / class or interface : hudson.model.listeners.RunListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RunListener | RunListener(Class<R>) | 1 | 1
RunListener | RunListener() | 3 | 3
void | onCompleted(R;TaskListener) | 1 | 0
void | onFinalized(R) | 1 | 0
void | onStarted(R;TaskListener) | 1 | 0
Environment | setUpEnvironment(AbstractBuild;Launcher;BuildListener) | 1 | 1
void | onDeleted(R) | 1 | 0
void | register() | 1 | 1
void | unregister() | 1 | 1
void | fireCompleted(Run;TaskListener) | 3 | 0
void | fireStarted(Run;TaskListener) | 3 | 0
void | fireFinalized(Run) | 4 | 1
void | fireDeleted(Run) | 3 | 0
ExtensionList<RunListener> | all() | 1 | 1
void | report(Throwable) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00183 | MAJOR | QC-JAV000001[00183] Avoid declaring class instance within loop, performance impact
00197 | MAJOR | QC-JAV000001[00197] Avoid declaring class instance within loop, performance impact
00214 | MAJOR | QC-JAV000001[00214] Avoid declaring class instance within loop, performance impact
00228 | MAJOR | QC-JAV000001[00228] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\listeners\SCMListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.listeners.SCMListener

Module / class or interface : hudson.model.listeners.SCMListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onChangeLogParsed(AbstractBuild<?,?>;BuildListener;ChangeLogSet<?>) | 1 | 0
void | register() | 1 | 1
boolean | unregister() | 1 | 1

#### File core\src\main\java\hudson\model\listeners\SCMPollListener.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.listeners.SCMPollListener

Module / class or interface : hudson.model.listeners.SCMPollListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onBeforePolling(AbstractProject<?,?>;TaskListener) | 1 | 0
void | onPollingSuccess(AbstractProject<?,?>;TaskListener;PollingResult) | 1 | 0
void | onPollingFailed(AbstractProject<?,?>;TaskListener;Throwable) | 1 | 0
void | fireBeforePolling(AbstractProject<?,?>;TaskListener) | 2 | 0
void | firePollingSuccess(AbstractProject<?,?>;TaskListener;PollingResult) | 2 | 0
void | firePollingFailed(AbstractProject<?,?>;TaskListener;Throwable) | 2 | 0
ExtensionList<SCMPollListener> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 3
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00074 | MAJOR | QC-JAV000001[00074] Avoid declaring class instance within loop, performance impact
00074 | MAJOR | QC-JAVCWE390[00074] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00084 | MAJOR | QC-JAV000001[00084] Avoid declaring class instance within loop, performance impact
00084 | MAJOR | QC-JAVCWE390[00084] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00094 | MAJOR | QC-JAV000001[00094] Avoid declaring class instance within loop, performance impact
00094 | MAJOR | QC-JAVCWE390[00094] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\model\listeners\SaveableListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.listeners.SaveableListener

Module / class or interface : hudson.model.listeners.SaveableListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onChange(Saveable;XmlFile) | 1 | 0
void | register() | 1 | 1
void | unregister() | 1 | 1
void | fireOnChange(Saveable;XmlFile) | 2 | 1
ExtensionList<SaveableListener> | all() | 1 | 1

#### File core\src\main\java\hudson\model\queue\AbstractQueueSorterImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
QueueSorter | hudson.model.queue.AbstractQueueSorterImpl

Module / class or interface : hudson.model.queue.AbstractQueueSorterImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | sortBuildableItems(List<BuildableItem>) | 1 | 1
int | compare(BuildableItem;BuildableItem) | 1 | 1
int | compare(long;long) | 3 | 3
int | compare(int;int) | 3 | 3

#### File core\src\main\java\hudson\model\queue\AbstractQueueTask.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.AbstractQueueTask

Module / class or interface : hudson.model.queue.AbstractQueueTask

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsSubTask> | getSubTasks() | 1 | 1
Task | getOwnerTask() | 1 | 1
boolean | isConcurrentBuild() | 1 | 1
CauseOfBlockage | getCauseOfBlockage() | 1 | 1
Object | getSameNodeConstraint() | 1 | 1

#### File core\src\main\java\hudson\model\queue\AbstractSubTask.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.AbstractSubTask

Module / class or interface : hudson.model.queue.AbstractSubTask

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Label | getAssignedLabel() | 1 | 1
Node | getLastBuiltOn() | 1 | 1
long | getEstimatedDuration() | 1 | 1
Object | getSameNodeConstraint() | 1 | 1
ResourceList | getResourceList() | 1 | 1

#### File core\src\main\java\hudson\model\queue\BackFiller.java 11 rule violations (XML file)

Ancestor class | Children classes
--- | ---
LoadPredictor | hudson.model.queue.BackFiller

Module / class or interface : hudson.model.queue.BackFiller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Iterable<FutureLoad> | predict(MappingWorksheet;Computer;long;long) | 7 | 9
TentativePlan | makeTentativePlan(BuildableItem) | 7 | 14
BackFiller | newInstance() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 11

Line start | Criticity class | Rule
--- | --- | ---
00037 | MAJOR | QC-JAV000001[00037] Avoid declaring class instance within loop, performance impact
00058 | MAJOR | QC-JAV000001[00058] Avoid declaring class instance within loop, performance impact
00099 | MAJOR | QC-JAV000001[00099] Avoid declaring class instance within loop, performance impact
00113 | MAJOR | QC-JAV000001[00113] Avoid declaring class instance within loop, performance impact
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00133 | MAJOR | QC-JAV000001[00133] Avoid declaring class instance within loop, performance impact
00134 | MAJOR | QC-JAV000001[00134] Avoid declaring class instance within loop, performance impact
00135 | MAJOR | QC-JAV000001[00135] Avoid declaring class instance within loop, performance impact
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact
00141 | MAJOR | QC-JAV000001[00141] Avoid declaring class instance within loop, performance impact
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\queue\CauseOfBlockage.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.CauseOfBlockage

Module / class or interface : hudson.model.queue.CauseOfBlockage

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
void | print(TaskListener) | 1 | 1
CauseOfBlockage | fromMessage(Localizable) | 1 | 1
CauseOfBlockage | createNeedsMoreExecutor(Localizable) | 1 | 1

#### File core\src\main\java\hudson\model\queue\Executables.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.Executables

Module / class or interface : hudson.model.queue.Executables

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SubTask | getParentOf(Executable) | 1 | 1
SubTask | _getParentOf(Executable) | 1 | 1
long | getEstimatedDurationFor(Executable) | 1 | 2
long | _getEstimatedDuration(Executable) | 1 | 1

#### File core\src\main\java\hudson\model\queue\FoldableAction.java 0 rule violation (XML file)

Module / class or interface : hudson.model.queue.FoldableAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | foldIntoExisting(Queue.Item;Task;List<Action>) | 1 | 1

#### File core\src\main\java\hudson\model\queue\FutureImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AsyncFutureImpl<Executable> | hudson.model.queue.FutureImpl

Module / class or interface : hudson.model.queue.FutureImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FutureImpl | FutureImpl(Task) | 1 | 1
Future<Executable> | getStartCondition() | 1 | 1
Executable | waitForStart() | 1 | 1
boolean | cancel(boolean) | 1 | 1
void | addExecutor(Executor) | 1 | 1

#### File core\src\main\java\hudson\model\queue\FutureLoad.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.FutureLoad

Module / class or interface : hudson.model.queue.FutureLoad

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FutureLoad | FutureLoad(long;long;int) | 1 | 3
String | toString() | 1 | 1

#### File core\src\main\java\hudson\model\queue\Latch.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.Latch

Module / class or interface : hudson.model.queue.Latch

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Latch | Latch(int) | 1 | 1
void | abort(Throwable) | 2 | 3
void | synchronize() | 1 | 7
void | check(int) | 4 | 3
void | onCriteriaMet() | 1 | 0

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00097 | MAJOR | QC-JAV000001[00097] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\queue\LoadPredictor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.LoadPredictor

Module / class or interface : hudson.model.queue.LoadPredictor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Iterable<FutureLoad> | predict(MappingWorksheet;Computer;long;long) | 1 | 1
Iterable<FutureLoad> | predict(Computer;long;long) | 1 | 1
ExtensionList<LoadPredictor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\queue\MappingWorksheet.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.MappingWorksheet

Module / class or interface : hudson.model.queue.MappingWorksheet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MappingWorksheet | MappingWorksheet(BuildableItem;List<?extendsExecutorSlot>) | 1 | 1
MappingWorksheet | MappingWorksheet(BuildableItem;List<?extendsExecutorSlot>;Collection<?extendsLoadPredictor>) | 11 | 22
WorkChunk | works(int) | 1 | 1
ExecutorChunk | executors(int) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 14

Line start | Criticity class | Rule
--- | --- | ---
00199 | MAJOR | QC-JAV000001[00199] Avoid declaring class instance within loop, performance impact
00270 | MAJOR | QC-JAV000001[00270] Avoid declaring class instance within loop, performance impact
00274 | MAJOR | QC-JAVCWE481[00274] Assigning instead of comparing on used[ec.index]+=works(i).size() (see http://cwe.mitre.org/data/definitions/481.html)
00312 | MAJOR | QC-JAV000001[00312] Avoid declaring class instance within loop, performance impact
00313 | MAJOR | QC-JAV000001[00313] Avoid declaring class instance within loop, performance impact
00315 | MAJOR | QC-JAV000001[00315] Avoid declaring class instance within loop, performance impact
00324 | MAJOR | QC-JAV000001[00324] Avoid declaring class instance within loop, performance impact
00328 | MAJOR | QC-JAV000001[00328] Avoid declaring class instance within loop, performance impact
00331 | MAJOR | QC-JAV000001[00331] Avoid declaring class instance within loop, performance impact
00332 | MAJOR | QC-JAV000001[00332] Avoid declaring class instance within loop, performance impact
00332 | MAJOR | QC-JAV000001[00332] Avoid declaring class instance within loop, performance impact
00354 | MAJOR | QC-JAV000001[00354] Avoid declaring class instance within loop, performance impact
00363 | MAJOR | QC-JAV000001[00363] Avoid declaring class instance within loop, performance impact
00366 | MAJOR | QC-JAV000001[00366] Avoid declaring class instance within loop, performance impact
00368 | MAJOR | QC-JAV000001[00368] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\queue\QueueSorter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.QueueSorter

Module / class or interface : hudson.model.queue.QueueSorter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | sortBuildableItems(List<BuildableItem>) | 1 | 1
ExtensionList<QueueSorter> | all() | 1 | 1
void | installDefaultQueueSorter() | 4 | 6

#### File core\src\main\java\hudson\model\queue\QueueTaskDispatcher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.QueueTaskDispatcher

Module / class or interface : hudson.model.queue.QueueTaskDispatcher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CauseOfBlockage | canTake(Node;Task) | 1 | 1
CauseOfBlockage | canTake(Node;BuildableItem) | 1 | 1
CauseOfBlockage | canRun(Queue.Item) | 1 | 1
ExtensionList<QueueTaskDispatcher> | all() | 1 | 1

#### File core\src\main\java\hudson\model\queue\QueueTaskFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.QueueTaskFilter

Module / class or interface : hudson.model.queue.QueueTaskFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
QueueTaskFilter | QueueTaskFilter(Task) | 1 | 1
Label | getAssignedLabel() | 1 | 1
Node | getLastBuiltOn() | 1 | 1
boolean | isBuildBlocked() | 1 | 1
String | getWhyBlocked() | 1 | 1
CauseOfBlockage | getCauseOfBlockage() | 1 | 1
String | getName() | 1 | 1
String | getFullDisplayName() | 1 | 1
long | getEstimatedDuration() | 1 | 1
Executable | createExecutable() | 1 | 1
void | checkAbortPermission() | 1 | 1
boolean | hasAbortPermission() | 1 | 1
String | getUrl() | 1 | 1
boolean | isConcurrentBuild() | 1 | 1
String | getDisplayName() | 1 | 1
ResourceList | getResourceList() | 1 | 1
Collection<?extendsSubTask> | getSubTasks() | 1 | 1
Task | getOwnerTask() | 1 | 1
Object | getSameNodeConstraint() | 1 | 1

#### File core\src\main\java\hudson\model\queue\QueueTaskFuture.java 0 rule violation (XML file)

Module / class or interface : hudson.model.queue.QueueTaskFuture

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Future<R> | getStartCondition() | 1 | 1
R | waitForStart() | 1 | 1

#### File core\src\main\java\hudson\model\queue\SubTask.java 0 rule violation (XML file)

Module / class or interface : hudson.model.queue.SubTask

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Label | getAssignedLabel() | 1 | 1
Node | getLastBuiltOn() | 1 | 1
long | getEstimatedDuration() | 1 | 1
Executable | createExecutable() | 1 | 1
Task | getOwnerTask() | 1 | 1
Object | getSameNodeConstraint() | 1 | 1

#### File core\src\main\java\hudson\model\queue\SubTaskContributor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.SubTaskContributor

Module / class or interface : hudson.model.queue.SubTaskContributor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsSubTask> | forProject(AbstractProject<?,?>) | 1 | 1
ExtensionList<SubTaskContributor> | all() | 1 | 1

#### File core\src\main\java\hudson\model\queue\Tasks.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.Tasks

Module / class or interface : hudson.model.queue.Tasks

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsSubTask> | _getSubTasksOf(Task) | 1 | 1
Collection<?extendsSubTask> | getSubTasksOf(Task) | 1 | 2
Object | _getSameNodeConstraintOf(SubTask) | 1 | 1
Object | getSameNodeConstraintOf(SubTask) | 1 | 2
Task | _getOwnerTaskOf(SubTask) | 1 | 1
Task | getOwnerTaskOf(SubTask) | 1 | 2

#### File core\src\main\java\hudson\model\queue\Timeline.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.Timeline

Module / class or interface : hudson.model.queue.Timeline

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | at(long) | 2 | 3
Long | next(long) | 1 | 2
void | splitAt(long) | 2 | 4
int | insert(long;long;int) | 2 | 5
Long | fit(long;long;int) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00110 | MAJOR | QC-JAV000001[00110] Avoid declaring class instance within loop, performance impact
00115 | MAJOR | QC-JAV000001[00115] Avoid declaring class instance within loop, performance impact
00110 | MAJOR | QC-JAV000001[00110] Avoid declaring class instance within loop, performance impact
00115 | MAJOR | QC-JAV000001[00115] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\model\queue\WorkUnit.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.WorkUnit

Module / class or interface : hudson.model.queue.WorkUnit

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WorkUnit | WorkUnit(WorkUnitContext;SubTask) | 1 | 2
Executor | getExecutor() | 1 | 1
void | setExecutor(Executor) | 1 | 1
Executable | getExecutable() | 1 | 1
boolean | isMainWork() | 1 | 1
String | toString() | 3 | 2

#### File core\src\main\java\hudson\model\queue\WorkUnitContext.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.queue.WorkUnitContext

Module / class or interface : hudson.model.queue.WorkUnitContext

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WorkUnitContext | WorkUnitContext(BuildableItem) | 1 | 7
WorkUnit | createWorkUnit(SubTask) | 1 | 4
List<WorkUnit> | getWorkUnits() | 1 | 1
WorkUnit | getPrimaryWorkUnit() | 1 | 1
void | synchronizeStart() | 2 | 4
void | synchronizeEnd(Queue.Executable;Throwable;long) | 4 | 3
void | abort(Throwable) | 5 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00066 | CRITICAL | QC-JAVCWE476[00066] The argument item is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00157 | MAJOR | QC-JAV000001[00157] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\node_monitors\AbstractDiskSpaceMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NodeMonitor | hudson.node_monitors.AbstractDiskSpaceMonitor

Module / class or interface : hudson.node_monitors.AbstractDiskSpaceMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractDiskSpaceMonitor | AbstractDiskSpaceMonitor(String) | 1 | 2
AbstractDiskSpaceMonitor | AbstractDiskSpaceMonitor() | 1 | 1
long | getThresholdBytes() | 2 | 3
Object | data(Computer) | 6 | 3

#### File core\src\main\java\hudson\node_monitors\AbstractNodeMonitorDescriptor.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<NodeMonitor> | hudson.node_monitors.AbstractNodeMonitorDescriptor

Module / class or interface : hudson.node_monitors.AbstractNodeMonitorDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractNodeMonitorDescriptor | AbstractNodeMonitorDescriptor() | 1 | 1
AbstractNodeMonitorDescriptor | AbstractNodeMonitorDescriptor(long) | 1 | 1
AbstractNodeMonitorDescriptor | AbstractNodeMonitorDescriptor(Class<?extendsNodeMonitor>) | 1 | 1
AbstractNodeMonitorDescriptor | AbstractNodeMonitorDescriptor(Class<?extendsNodeMonitor>;long) | 1 | 2
void | schedule(long) | 2 | 2
T | monitor(Computer) | 1 | 1
T | get(Computer) | 3 | 2
boolean | isIgnored() | 1 | 2
boolean | markOnline(Computer) | 2 | 3
boolean | markOffline(Computer;OfflineCause) | 3 | 5
boolean | markOffline(Computer) | 1 | 1
Thread | triggerUpdate() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00220 | MAJOR | QC-JAV000001[00220] Avoid declaring class instance within loop, performance impact
00222 | MAJOR | QC-JAV000001[00222] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\node_monitors\ArchitectureMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NodeMonitor | hudson.node_monitors.ArchitectureMonitor

Module / class or interface : hudson.node_monitors.ArchitectureMonitor

#### File core\src\main\java\hudson\node_monitors\ClockMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NodeMonitor | hudson.node_monitors.ClockMonitor

Module / class or interface : hudson.node_monitors.ClockMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClockDifference | getDifferenceFor(Computer) | 1 | 1

#### File core\src\main\java\hudson\node_monitors\DiskSpaceMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDiskSpaceMonitor | hudson.node_monitors.DiskSpaceMonitor

Module / class or interface : hudson.node_monitors.DiskSpaceMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DiskSpaceMonitor | DiskSpaceMonitor(String) | 1 | 1
DiskSpaceMonitor | DiskSpaceMonitor() | 1 | 0
DiskSpace | getFreeSpace(Computer) | 1 | 1
String | getColumnCaption() | 1 | 1
DiskSpaceMonitorDescriptor | install() | 2 | 2

#### File core\src\main\java\hudson\node_monitors\DiskSpaceMonitorDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractNodeMonitorDescriptor<DiskSpace> | hudson.node_monitors.DiskSpaceMonitorDescriptor

Module / class or interface : hudson.node_monitors.DiskSpaceMonitorDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DiskSpace | monitor(Computer) | 1 | 1
DiskSpace | getFreeSpace(Computer) | 1 | 1

#### File core\src\main\java\hudson\node_monitors\MonitorMarkedNodeOffline.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.node_monitors.MonitorMarkedNodeOffline

Module / class or interface : hudson.node_monitors.MonitorMarkedNodeOffline

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isActivated() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00040 | MAJOR | QC-JAVCWE493[00040] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\node_monitors\NodeMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.node_monitors.NodeMonitor

Module / class or interface : hudson.node_monitors.NodeMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getColumnCaption() | 1 | 1
AbstractNodeMonitorDescriptor<?> | getDescriptor() | 1 | 1
Object | data(Computer) | 1 | 1
Thread | triggerUpdate() | 1 | 1
List<NodeMonitor> | getAll() | 1 | 1
boolean | isIgnored() | 1 | 1
void | setIgnored(boolean) | 1 | 1
DescriptorExtensionList<NodeMonitor,Descriptor<NodeMonitor>> | all() | 1 | 1

#### File core\src\main\java\hudson\node_monitors\NodeMonitorUpdater.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerListener | hudson.node_monitors.NodeMonitorUpdater

Module / class or interface : hudson.node_monitors.NodeMonitorUpdater

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | onOnline(Computer;TaskListener) | 1 | 2

#### File core\src\main\java\hudson\node_monitors\ResponseTimeMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NodeMonitor | hudson.node_monitors.ResponseTimeMonitor

Module / class or interface : hudson.node_monitors.ResponseTimeMonitor

#### File core\src\main\java\hudson\node_monitors\SwapSpaceMonitor.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
NodeMonitor | hudson.node_monitors.SwapSpaceMonitor

Module / class or interface : hudson.node_monitors.SwapSpaceMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | toHtml(MemoryUsage) | 3 | 6
long | toMB(MemoryUsage) | 2 | 5
String | getColumnCaption() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 2

Line start | Criticity class | Rule
--- | --- | ---
00050 | CRITICAL | QC-JAVCWE476[00050] The argument usage is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00064 | CRITICAL | QC-JAVCWE476[00064] The argument usage is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\node_monitors\TemporarySpaceMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDiskSpaceMonitor | hudson.node_monitors.TemporarySpaceMonitor

Module / class or interface : hudson.node_monitors.TemporarySpaceMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TemporarySpaceMonitor | TemporarySpaceMonitor(String) | 1 | 1
TemporarySpaceMonitor | TemporarySpaceMonitor() | 1 | 0
DiskSpace | getFreeSpace(Computer) | 1 | 1
String | getColumnCaption() | 1 | 1
DiskSpaceMonitorDescriptor | install() | 2 | 2

#### File core\src\main\java\hudson\org\apache\tools\tar\TarInputStream.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
FilterInputStream | hudson.org.apache.tools.tar.TarInputStream

Module / class or interface : hudson.org.apache.tools.tar.TarInputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TarInputStream | TarInputStream(InputStream) | 1 | 1
TarInputStream | TarInputStream(InputStream;int) | 1 | 1
TarInputStream | TarInputStream(InputStream;int;int) | 1 | 6
void | setDebug(boolean) | 1 | 2
void | close() | 1 | 1
int | getRecordSize() | 1 | 1
int | available() | 2 | 2
long | skip(long) | 2 | 6
boolean | markSupported() | 1 | 1
void | mark(int) | 1 | 0
void | reset() | 1 | 0
TarEntry | getNextEntry() | 16 | 17
int | read() | 1 | 2
int | read(byte[];int;int) | 9 | 16
void | copyEntryContents(OutputStream) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00085 | CRITICAL | QC-JAVCWE476[00085] The argument is is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00264 | MAJOR | QC-JAVCWE481[00264] Assigning instead of comparing on length=read(buf) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\org\apache\tools\tar\TarOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FilterOutputStream | hudson.org.apache.tools.tar.TarOutputStream

Module / class or interface : hudson.org.apache.tools.tar.TarOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TarOutputStream | TarOutputStream(OutputStream) | 1 | 1
TarOutputStream | TarOutputStream(OutputStream;int) | 1 | 1
TarOutputStream | TarOutputStream(OutputStream;int;int) | 1 | 7
void | setLongFileMode(int) | 1 | 1
void | setDebug(boolean) | 1 | 1
void | setBufferDebug(boolean) | 1 | 1
void | finish() | 1 | 2
void | close() | 2 | 4
int | getRecordSize() | 1 | 1
void | putNextEntry(TarEntry) | 7 | 6
void | closeEntry() | 4 | 4
void | write(int) | 1 | 2
void | write(byte[]) | 1 | 1
void | write(byte[];int;int) | 6 | 6
void | writeEOFRecord() | 2 | 4

#### File core\src\main\java\hudson\os\PosixAPI.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.os.PosixAPI

Module / class or interface : hudson.os.PosixAPI

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
POSIX | get() | 1 | 1
boolean | isNative() | 1 | 1
boolean | supportsNative() | 1 | 1

#### File core\src\main\java\hudson\os\PosixException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
RuntimeException | hudson.os.PosixException

Module / class or interface : hudson.os.PosixException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PosixException | PosixException(String;ERRORS) | 1 | 2
ERRORS | getErrorCode() | 1 | 1
String | toString() | 1 | 1

#### File core\src\main\java\hudson\os\SU.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.os.SU

Module / class or interface : hudson.os.SU

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SU | SU() | 1 | 0
VirtualChannel | start(TaskListener;String;String) | 4 | 5
LocalChannel | newLocalChannel() | 1 | 1

#### File core\src\main\java\hudson\os\solaris\ZFSInstaller.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.os.solaris.ZFSInstaller

Module / class or interface : hudson.os.solaris.ZFSInstaller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isActivated() | 1 | 1
boolean | isRoot() | 1 | 1
String | getProspectiveZfsFileSystemName() | 1 | 1
boolean | shouldBeActive() | 4 | 14
HttpResponse | doAct(StaplerRequest) | 2 | 4
String | createZfsFileSystem(TaskListener;String;String) | 2 | 7
void | doStart(StaplerRequest;StaplerResponse;String;String) | 2 | 13
AdministrativeMonitor | init() | 3 | 7
boolean | migrate(TaskListener;String) | 7 | 36
int | system(File;TaskListener;String) | 1 | 1
String | computeHudsonFileSystemName(LibZFS;ZFSFileSystem) | 4 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00245 | MAJOR | QC-JAVCWE392[00245] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00400 | MAJOR | QC-JAV000001[00400] Avoid declaring class instance within loop, performance impact
00439 | MAJOR | QC-JAVCWE493[00439] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00439 | MINOR | QC-JAVCWE500[00439] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\os\solaris\ZFSProvisioner.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FileSystemProvisioner | hudson.os.solaris.ZFSProvisioner

Module / class or interface : hudson.os.solaris.ZFSProvisioner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ZFSProvisioner | ZFSProvisioner(Node) | 1 | 1
void | prepareWorkspace(AbstractBuild<?,?>;FilePath;TaskListener) | 1 | 2
void | discardWorkspace(AbstractProject<?,?>;FilePath) | 1 | 1
WorkspaceSnapshot | snapshot(AbstractBuild<?,?>;FilePath;TaskListener) | 1 | 1
WorkspaceSnapshot | snapshot(AbstractBuild<?,?>;FilePath;String;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\os\solaris\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.os.solaris.

#### File core\src\main\java\hudson\os\windows\ManagedWindowsServiceAccount.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ManagedWindowsServiceAccount> | hudson.os.windows.ManagedWindowsServiceAccount

Module / class or interface : hudson.os.windows.ManagedWindowsServiceAccount

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AccountInfo | getAccount(ManagedWindowsServiceLauncher) | 1 | 1

#### File core\src\main\java\hudson\os\windows\ManagedWindowsServiceConnector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerConnector | hudson.os.windows.ManagedWindowsServiceConnector

Module / class or interface : hudson.os.windows.ManagedWindowsServiceConnector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ManagedWindowsServiceConnector | ManagedWindowsServiceConnector(String;String) | 1 | 2
ManagedWindowsServiceLauncher | launch(String;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\os\windows\ManagedWindowsServiceLauncher.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ComputerLauncher | hudson.os.windows.ManagedWindowsServiceLauncher

Module / class or interface : hudson.os.windows.ManagedWindowsServiceLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ManagedWindowsServiceLauncher | ManagedWindowsServiceLauncher(String;String) | 1 | 1
ManagedWindowsServiceLauncher | ManagedWindowsServiceLauncher(String;String;String) | 1 | 1
ManagedWindowsServiceLauncher | ManagedWindowsServiceLauncher(String;String;String;AccountInfo) | 1 | 1
ManagedWindowsServiceLauncher | ManagedWindowsServiceLauncher(String;String;String;ManagedWindowsServiceAccount;String) | 1 | 1
ManagedWindowsServiceLauncher | ManagedWindowsServiceLauncher(String;String;String;ManagedWindowsServiceAccount;String;String) | 1 | 7
Object | readResolve() | 2 | 2
JIDefaultAuthInfoImpl | createAuth() | 2 | 3
NtlmPasswordAuthentication | createSmbAuth() | 1 | 2
ManagedWindowsServiceAccount | getAccount() | 1 | 1
AccountInfo | getLogOn() | 2 | 2
void | launch(SlaveComputer;TaskListener) | 10 | 39
String | resolveJava(SlaveComputer) | 2 | 2
EnvVars | getEnvVars(SlaveComputer) | 7 | 4
EnvVars | getEnvVars(Hudson) | 1 | 1
EnvVars | getEnvVars(Node) | 1 | 1
EnvVars | getEnvVars(DescribableList<NodeProperty<?>,NodePropertyDescriptor>) | 2 | 3
void | checkPort135Access(PrintStream;String;InetAddress) | 1 | 4
String | determineHost(Computer) | 3 | 2
String | createAndCopyJenkinsSlaveXml(String;String;PrintStream;SmbFile) | 1 | 4
void | copySlaveJar(PrintStream;SmbFile) | 1 | 2
int | readSmbFile(SmbFile) | 1 | 4
void | afterDisconnect(SlaveComputer;TaskListener) | 2 | 10
String | generateServiceId(String) | 1 | 1
String | generateSlaveXml(String;String;String;String) | 1 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 1

Line start | Criticity class | Rule
--- | --- | ---
00259 | MAJOR | QC-JAVCWE392[00259] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)

#### File core\src\main\java\hudson\os\windows\WindowsRemoteFileSystem.java 1 rule violations (XML file)

Module / class or interface : hudson.os.windows.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00019 | BLOCKER | QC-JAV999999[00019] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\os\\windows\\WindowsRemoteFileSystem.java near following tokens import static java . util . Arrays . asList ; public class WindowsRemoteFileSystem implements FileSystem { private final String hostName ;

#### File core\src\main\java\hudson\os\windows\WindowsRemoteLauncher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Launcher | hudson.os.windows.WindowsRemoteLauncher

Module / class or interface : hudson.os.windows.WindowsRemoteLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WindowsRemoteLauncher | WindowsRemoteLauncher(TaskListener;WindowsRemoteProcessLauncher) | 1 | 2
String | buildCommandLine(ProcStarter) | 5 | 5
Proc | launch(ProcStarter) | 1 | 11
Channel | launchChannel(String[];OutputStream;FilePath;Map<String,String>) | 1 | 4
void | kill(Map<String,String>) | 1 | 0

#### File core\src\main\java\hudson\scheduler\BaseParser.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
LLkParser | hudson.scheduler.BaseParser

Module / class or interface : hudson.scheduler.BaseParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BaseParser | BaseParser(int) | 1 | 1
BaseParser | BaseParser(ParserSharedInputState;int) | 1 | 1
BaseParser | BaseParser(TokenBuffer;int) | 1 | 1
BaseParser | BaseParser(TokenStream;int) | 1 | 1
void | setHash(Hash) | 2 | 2
long | doRange(int;int;int;int) | 4 | 9
long | doRange(int;int) | 1 | 1
long | doHash(int) | 3 | 5
long | doHash(int;int) | 1 | 1
void | rangeCheck(int;int) | 2 | 1
void | error(String) | 1 | 2
Hash | getHashForTokens() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00127 | MAJOR | QC-JAVCWE493[00127] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00127 | MINOR | QC-JAVCWE500[00127] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\scheduler\CronTab.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scheduler.CronTab

Module / class or interface : hudson.scheduler.CronTab

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CronTab | CronTab(String) | 1 | 1
CronTab | CronTab(String;Hash) | 1 | 1
CronTab | CronTab(String;int) | 1 | 1
CronTab | CronTab(String;int;Hash) | 1 | 1
void | set(String;int;Hash) | 2 | 8
boolean | check(Calendar) | 6 | 6
Calendar | ceil(long) | 1 | 3
Calendar | ceil(Calendar) | 2 | 1
Calendar | floor(long) | 1 | 3
Calendar | floor(Calendar) | 2 | 1
void | set(String;Hash) | 1 | 1
boolean | checkBits(long;int) | 1 | 1
String | toString() | 1 | 1
String | toString(String;long) | 1 | 1
String | checkSanity() | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00298 | INFO | QC-JAV999996[00298] CPD de longueur 53 commencant en 1227 (ligne 298) et 1402 (ligne 350): this , cur ) ; if ( cur == next ) continue ; for ( CalendarField l = f . lowerField ; l != null ; l = l . lowerField ) l . clear ( cal ) ; if ( next _ 0 ) { f . rollUp ( cal , 1
00296 | MAJOR | QC-JAV000001[00296] Avoid declaring class instance within loop, performance impact
00302 | MAJOR | QC-JAV000001[00302] Avoid declaring class instance within loop, performance impact
00302 | MAJOR | QC-JAV000001[00302] Avoid declaring class instance within loop, performance impact
00348 | MAJOR | QC-JAV000001[00348] Avoid declaring class instance within loop, performance impact
00354 | MAJOR | QC-JAV000001[00354] Avoid declaring class instance within loop, performance impact
00354 | MAJOR | QC-JAV000001[00354] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\scheduler\CronTabList.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scheduler.CronTabList

Module / class or interface : hudson.scheduler.CronTabList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CronTabList | CronTabList(Collection<CronTab>) | 1 | 1
boolean | check(Calendar) | 3 | 2
String | checkSanity() | 3 | 3
CronTabList | create(String) | 1 | 1
CronTabList | create(String;Hash) | 3 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00066 | MAJOR | QC-JAV000001[00066] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\scheduler\Hash.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scheduler.Hash

Module / class or interface : hudson.scheduler.Hash

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Hash | Hash() | 1 | 0
int | next(int) | 1 | 1
Hash | from(String) | 3 | 10
Hash | zero() | 1 | 1

#### File core\src\main\java\hudson\scm\AbstractScmTagAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TaskAction | hudson.scm.AbstractScmTagAction

Module / class or interface : hudson.scm.AbstractScmTagAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractScmTagAction | AbstractScmTagAction(AbstractBuild) | 1 | 1
String | getUrlName() | 1 | 1
Permission | getPermission() | 1 | 1
AbstractBuild | getBuild() | 1 | 1
String | getTooltip() | 1 | 1
boolean | isTagged() | 1 | 1
ACL | getACL() | 1 | 1
void | doIndex(StaplerRequest;StaplerResponse) | 1 | 1
String | chooseAction() | 2 | 2

#### File core\src\main\java\hudson\scm\AutoBrowserHolder.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.AutoBrowserHolder

Module / class or interface : hudson.scm.AutoBrowserHolder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AutoBrowserHolder | AutoBrowserHolder(SCM) | 1 | 1
RepositoryBrowser | get() | 2 | 4
RepositoryBrowser | infer() | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00068 | MAJOR | QC-JAV000001[00068] Avoid declaring class instance within loop, performance impact
00070 | MAJOR | QC-JAV000001[00070] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\scm\ChangeLogAnnotator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.ChangeLogAnnotator

Module / class or interface : hudson.scm.ChangeLogAnnotator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | annotate(AbstractBuild<?,?>;Entry;MarkupText) | 1 | 1
void | register() | 1 | 1
boolean | unregister() | 1 | 1
ExtensionList<ChangeLogAnnotator> | all() | 1 | 1

#### File core\src\main\java\hudson\scm\ChangeLogParser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.ChangeLogParser

Module / class or interface : hudson.scm.ChangeLogParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChangeLogSet<?extendsEntry> | parse(AbstractBuild;File) | 1 | 1

#### File core\src\main\java\hudson\scm\ChangeLogSet.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.ChangeLogSet

Module / class or interface : hudson.scm.ChangeLogSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChangeLogSet | ChangeLogSet(AbstractBuild<?,?>) | 1 | 1
boolean | isEmptySet() | 1 | 1
Object[] | getItems() | 2 | 3
String | getKind() | 1 | 1
ChangeLogSet<?extendsChangeLogSet.Entry> | createEmpty(AbstractBuild) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00213 | MAJOR | QC-JAV000001[00213] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\scm\EditType.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.EditType

Module / class or interface : hudson.scm.EditType

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EditType | EditType(String;String) | 1 | 2
String | getName() | 1 | 1
String | getDescription() | 1 | 1
String | toExportedObject() | 1 | 1

#### File core\src\main\java\hudson\scm\EmptyChangeLogSet.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChangeLogSet<ChangeLogSet.Entry> | hudson.scm.EmptyChangeLogSet

Module / class or interface : hudson.scm.EmptyChangeLogSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EmptyChangeLogSet | EmptyChangeLogSet(AbstractBuild<?,?>) | 1 | 1
boolean | isEmptySet() | 1 | 1
Iterator<Entry> | iterator() | 1 | 1

#### File core\src\main\java\hudson\scm\NullChangeLogParser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChangeLogParser | hudson.scm.NullChangeLogParser

Module / class or interface : hudson.scm.NullChangeLogParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChangeLogSet<?extendsChangeLogSet.Entry> | parse(AbstractBuild;File) | 1 | 1
Object | readResolve() | 1 | 1

#### File core\src\main\java\hudson\scm\NullSCM.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SCM | hudson.scm.NullSCM

Module / class or interface : hudson.scm.NullSCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SCMRevisionState | calcRevisionsFromBuild(AbstractBuild<?,?>;Launcher;TaskListener) | 1 | 1
PollingResult | compareRemoteRevisionWith(AbstractProject;Launcher;FilePath;TaskListener;SCMRevisionState) | 1 | 1
boolean | checkout(AbstractBuild<?,?>;Launcher;FilePath;BuildListener;File) | 1 | 1
ChangeLogParser | createChangeLogParser() | 1 | 1

#### File core\src\main\java\hudson\scm\PollingResult.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.PollingResult

Module / class or interface : hudson.scm.PollingResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PollingResult | PollingResult(SCMRevisionState;SCMRevisionState;Change) | 2 | 4
PollingResult | PollingResult(Change) | 1 | 1
boolean | hasChanges() | 1 | 1

#### File core\src\main\java\hudson\scm\RepositoryBrowser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<RepositoryBrowser<?>> | hudson.scm.RepositoryBrowser

Module / class or interface : hudson.scm.RepositoryBrowser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
URL | getChangeSetLink(E) | 1 | 1
String | trimHeadSlash(String) | 2 | 2
URL | normalizeToEndWithSlash(URL) | 2 | 5
DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>> | all() | 1 | 1

#### File core\src\main\java\hudson\scm\RepositoryBrowsers.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.RepositoryBrowsers

Module / class or interface : hudson.scm.RepositoryBrowsers

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<Descriptor<RepositoryBrowser<?>>> | filter(Class<?extendsRepositoryBrowser>) | 3 | 3

#### File core\src\main\java\hudson\scm\SCM.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.SCM

Module / class or interface : hudson.scm.SCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Api | getApi() | 1 | 1
RepositoryBrowser<?> | getBrowser() | 1 | 1
String | getType() | 1 | 1
RepositoryBrowser<?> | getEffectiveBrowser() | 3 | 4
boolean | supportsPolling() | 1 | 1
boolean | requiresWorkspaceForPolling() | 1 | 1
boolean | processWorkspaceBeforeDeletion(AbstractProject<?,?>;FilePath;Node) | 1 | 1
boolean | pollChanges(AbstractProject<?,?>;Launcher;FilePath;TaskListener) | 1 | 1
SCMRevisionState | calcRevisionsFromBuild(AbstractBuild<?,?>;Launcher;TaskListener) | 1 | 1
SCMRevisionState | _calcRevisionsFromBuild(AbstractBuild<?,?>;Launcher;TaskListener) | 1 | 1
PollingResult | compareRemoteRevisionWith(AbstractProject<?,?>;Launcher;FilePath;TaskListener;SCMRevisionState) | 1 | 1
PollingResult | _compareRemoteRevisionWith(AbstractProject<?,?>;Launcher;FilePath;TaskListener;SCMRevisionState) | 1 | 1
PollingResult | poll(AbstractProject<?,?>;Launcher;FilePath;TaskListener;SCMRevisionState) | 5 | 3
boolean | is1_346OrLater() | 2 | 3
boolean | checkout(AbstractBuild<?,?>;Launcher;FilePath;BuildListener;File) | 1 | 1
void | buildEnvVars(AbstractBuild<?,?>;Map<String,String>) | 1 | 0
FilePath | getModuleRoot(FilePath;AbstractBuild) | 1 | 1
FilePath | getModuleRoot(FilePath) | 2 | 2
FilePath[] | getModuleRoots(FilePath;AbstractBuild) | 2 | 2
FilePath[] | getModuleRoots(FilePath) | 2 | 2
ChangeLogParser | createChangeLogParser() | 1 | 1
SCMDescriptor<?> | getDescriptor() | 1 | 1
boolean | createEmptyChangeLog(File;BuildListener;String) | 1 | 6
String | nullify(String) | 3 | 3
DescriptorExtensionList<SCM,SCMDescriptor<?>> | all() | 1 | 1
List<SCMDescriptor<?>> | _for(AbstractProject) | 5 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00384 | MAJOR | QC-JAV000001[00384] Avoid declaring class instance within loop, performance impact
00384 | MAJOR | QC-JAVCWE390[00384] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00615 | MAJOR | QC-JAV000001[00615] Avoid declaring class instance within loop, performance impact
00616 | MAJOR | QC-JAV000001[00616] Avoid declaring class instance within loop, performance impact
00616 | MAJOR | QC-JAV000001[00616] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\scm\SCMDescriptor.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<SCM> | hudson.scm.SCMDescriptor

Module / class or interface : hudson.scm.SCMDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SCMDescriptor | SCMDescriptor(Class<T>;Class<?extendsRepositoryBrowser>) | 1 | 2
SCMDescriptor | SCMDescriptor(Class<?extendsRepositoryBrowser>) | 1 | 1
void | load() | 2 | 2
boolean | isBrowserReusable(T;T) | 1 | 1
boolean | isApplicable(AbstractProject) | 1 | 1
List<Descriptor<RepositoryBrowser<?>>> | getBrowserDescriptors() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00056 | MAJOR | QC-JAVCWE493[00056] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\scm\SCMRevisionState.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.SCMRevisionState

Module / class or interface : hudson.scm.SCMRevisionState

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00048 | MAJOR | QC-JAVCWE493[00048] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00048 | MINOR | QC-JAVCWE500[00048] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\scm\SCMS.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.SCMS

Module / class or interface : hudson.scm.SCMS

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SCM | parseSCM(StaplerRequest;AbstractProject) | 2 | 6
SCM | parseSCM(StaplerRequest) | 1 | 1

#### File core\src\main\java\hudson\scm\browsers\QueryBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scm.browsers.QueryBuilder

Module / class or interface : hudson.scm.browsers.QueryBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
QueryBuilder | QueryBuilder(String) | 1 | 1
QueryBuilder | add(String) | 4 | 5
String | toString() | 1 | 1

#### File core\src\main\java\hudson\search\CollectionSearchIndex.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.CollectionSearchIndex

Module / class or interface : hudson.search.CollectionSearchIndex

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SearchItem | get(String) | 1 | 1
Collection<SMT> | all() | 1 | 1
void | find(String;List<SearchItem>) | 2 | 2
void | suggest(String;List<SearchItem>) | 6 | 6
String | getName(SMT) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00060 | MAJOR | QC-JAV000001[00060] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\search\FixedSet.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.FixedSet

Module / class or interface : hudson.search.FixedSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FixedSet | FixedSet(Collection<?extendsSearchItem>) | 1 | 1
FixedSet | FixedSet(SearchItem) | 1 | 1
void | find(String;List<SearchItem>) | 4 | 3
void | suggest(String;List<SearchItem>) | 4 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00046 | INFO | QC-JAV999996[00046] CPD de longueur 62 commencant en 84 (ligne 46) et 168 (ligne 59): ( String token , List _ SearchItem _ result ) { boolean caseInsensitive = UserSearchProperty . isCaseInsensitive ( ) ; for ( SearchItem i : items ) { String name = i . getSearchName ( ) ; if ( caseInsensitive ) { token = token . toLowerCase ( ) ; name = name . toLowerCase ( ) ; } if ( token
00049 | MAJOR | QC-JAV000001[00049] Avoid declaring class instance within loop, performance impact
00062 | MAJOR | QC-JAV000001[00062] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\search\ParsedQuickSilver.java 8 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.ParsedQuickSilver

Module / class or interface : hudson.search.ParsedQuickSilver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ParsedQuickSilver | get(Class<?extendsSearchableModelObject>) | 2 | 3
ParsedQuickSilver | ParsedQuickSilver(Class<?extendsSearchableModelObject>) | 5 | 3
String | splitName(String) | 3 | 4
String | stripGetPrefix(Method) | 2 | 3
IllegalAccessError | toError(IllegalAccessException) | 1 | 3
void | addTo(SearchIndexBuilder;Object) | 2 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8

Line start | Criticity class | Rule
--- | --- | ---
00059 | MAJOR | QC-JAV000001[00059] Avoid declaring class instance within loop, performance impact
00063 | MAJOR | QC-JAV000001[00063] Avoid declaring class instance within loop, performance impact
00074 | MAJOR | QC-JAV000001[00074] Avoid declaring class instance within loop, performance impact
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00167 | MAJOR | QC-JAV000001[00167] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAV000001[00171] Avoid declaring class instance within loop, performance impact
00172 | MAJOR | QC-JAV000001[00172] Avoid declaring class instance within loop, performance impact
00174 | MAJOR | QC-JAV000001[00174] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\search\QuickSilver.java 0 rule violation (XML file)

Module / class or interface : hudson.search.

#### File core\src\main\java\hudson\search\Search.java 21 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.Search

Module / class or interface : hudson.search.Search

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | doIndex(StaplerRequest;StaplerResponse) | 3 | 6
void | doSuggestOpenSearch(StaplerRequest;StaplerResponse;String) | 2 | 8
void | doSuggest(StaplerRequest;StaplerResponse;String) | 2 | 3
SearchResult | getSuggestions(StaplerRequest;String) | 4 | 5
SearchIndex | makeSuggestIndex(StaplerRequest) | 3 | 2
SuggestedItem | findClosestSuggestedItem(List<SuggestedItem>;String) | 4 | 1
SuggestedItem | find(SearchIndex;String) | 5 | 4
List<SuggestedItem> | suggest(SearchIndex;String) | 3 | 10
List<SuggestedItem> | find(Mode;SearchIndex;String) | 8 | 16

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 18

Line start | Criticity class | Rule
--- | --- | ---
00065 | MAJOR | QC-JAV000001[00065] Avoid declaring class instance within loop, performance impact
00066 | MAJOR | QC-JAV000001[00066] Avoid declaring class instance within loop, performance impact
00067 | MAJOR | QC-JAV000001[00067] Avoid declaring class instance within loop, performance impact
00067 | MAJOR | QC-JAV000001[00067] Avoid declaring class instance within loop, performance impact
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00073 | MAJOR | QC-JAV000001[00073] Avoid declaring class instance within loop, performance impact
00075 | MAJOR | QC-JAV000001[00075] Avoid declaring class instance within loop, performance impact
00151 | MAJOR | QC-JAV000001[00151] Avoid declaring class instance within loop, performance impact
00152 | MAJOR | QC-JAV000001[00152] Avoid declaring class instance within loop, performance impact
00152 | MAJOR | QC-JAV000001[00152] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAVCWE493[00171] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00177 | MAJOR | QC-JAVCWE493[00177] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00260 | CRITICAL | QC-JAVCWE476[00260] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00331 | MAJOR | QC-JAV000001[00331] Avoid declaring class instance within loop, performance impact
00344 | MAJOR | QC-JAV000001[00344] Avoid declaring class instance within loop, performance impact
00355 | MAJOR | QC-JAV000001[00355] Avoid declaring class instance within loop, performance impact
00357 | MAJOR | QC-JAV000001[00357] Avoid declaring class instance within loop, performance impact
00360 | MAJOR | QC-JAV000001[00360] Avoid declaring class instance within loop, performance impact
00357 | MAJOR | QC-JAV000001[00357] Avoid declaring class instance within loop, performance impact
00360 | MAJOR | QC-JAV000001[00360] Avoid declaring class instance within loop, performance impact
00360 | MAJOR | QC-JAV000001[00360] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\search\SearchFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.SearchFactory

Module / class or interface : hudson.search.SearchFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Search | createFor(SearchableModelObject) | 1 | 1
ExtensionList<SearchFactory> | all() | 1 | 1

#### File core\src\main\java\hudson\search\SearchIndex.java 0 rule violation (XML file)

Module / class or interface : hudson.search.SearchIndex

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | find(String;List<SearchItem>) | 1 | 1
void | suggest(String;List<SearchItem>) | 1 | 1

#### File core\src\main\java\hudson\search\SearchIndexBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.SearchIndexBuilder

Module / class or interface : hudson.search.SearchIndexBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SearchIndexBuilder | addAllAnnotations(SearchableModelObject) | 1 | 2
SearchIndexBuilder | add(String) | 1 | 1
SearchIndexBuilder | add(String;String) | 1 | 2
SearchIndexBuilder | add(String;String) | 2 | 2
SearchIndexBuilder | add(SearchItem) | 1 | 2
SearchIndexBuilder | add(String;SearchableModelObject;String) | 1 | 2
SearchIndexBuilder | add(String;SearchableModelObject;String) | 2 | 2
SearchIndexBuilder | add(SearchIndex) | 1 | 2
SearchIndexBuilder | add(SearchIndexBuilder) | 1 | 1
SearchIndex | make() | 2 | 3

#### File core\src\main\java\hudson\search\SearchItem.java 0 rule violation (XML file)

Module / class or interface : hudson.search.SearchItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getSearchName() | 1 | 1
String | getSearchUrl() | 1 | 1
SearchIndex | getSearchIndex() | 1 | 1

#### File core\src\main\java\hudson\search\SearchItems.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.SearchItems

Module / class or interface : hudson.search.SearchItems

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SearchItem | create(String;String) | 1 | 1
SearchItem | create(String;String;SearchIndex) | 1 | 1
SearchItem | create(String;String;SearchableModelObject) | 1 | 1

#### File core\src\main\java\hudson\search\SearchResult.java 0 rule violation (XML file)

Module / class or interface : hudson.search.SearchResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | hasMoreResults() | 1 | 1

#### File core\src\main\java\hudson\search\SearchableModelObject.java 0 rule violation (XML file)

Module / class or interface : hudson.search.SearchableModelObject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Search | getSearch() | 1 | 1

#### File core\src\main\java\hudson\search\SuggestedItem.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.SuggestedItem

Module / class or interface : hudson.search.SuggestedItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SuggestedItem | SuggestedItem(SearchItem) | 1 | 1
SuggestedItem | SuggestedItem(SuggestedItem;SearchItem) | 1 | 2
String | getPath() | 4 | 5
void | getPath(StringBuilder) | 3 | 3
String | getUrl() | 1 | 3
void | getUrl(StringBuilder) | 5 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 2

Line start | Criticity class | Rule
--- | --- | ---
00048 | MAJOR | QC-JAVCWE481[00048] Assigning instead of comparing on path=item.getSearchName() (see http://cwe.mitre.org/data/definitions/481.html)
00052 | MAJOR | QC-JAVCWE481[00052] Assigning instead of comparing on path=buf.toString() (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\search\UnionSearchIndex.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.search.UnionSearchIndex

Module / class or interface : hudson.search.UnionSearchIndex

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SearchIndex | combine(SearchIndex) | 3 | 2
UnionSearchIndex | UnionSearchIndex(SearchIndex;SearchIndex) | 1 | 2
void | find(String;List<SearchItem>) | 1 | 2
void | suggest(String;List<SearchItem>) | 1 | 2

#### File core\src\main\java\hudson\search\UserSearchProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
hudson.model.UserProperty | hudson.search.UserSearchProperty

Module / class or interface : hudson.search.UserSearchProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UserSearchProperty | UserSearchProperty(boolean) | 1 | 1
boolean | getInsensitiveSearch() | 1 | 1
boolean | isCaseInsensitive() | 2 | 4

#### File core\src\main\java\hudson\security\ACL.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.ACL

Module / class or interface : hudson.security.ACL

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | checkPermission(Permission) | 2 | 2
boolean | hasPermission(Permission) | 1 | 1
boolean | hasPermission(Authentication;Permission) | 1 | 1
SecurityContext | impersonate(Authentication) | 1 | 3

#### File core\src\main\java\hudson\security\AbstractPasswordBasedSecurityRealm.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SecurityRealm | hudson.security.AbstractPasswordBasedSecurityRealm

Module / class or interface : hudson.security.AbstractPasswordBasedSecurityRealm

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SecurityComponents | createSecurityComponents() | 1 | 6
CliAuthenticator | createCliAuthenticator(CLICommand) | 1 | 1
UserDetails | authenticate(String;String) | 1 | 1
UserDetails | loadUserByUsername(String) | 1 | 1
GroupDetails | loadGroupByGroupname(String) | 1 | 1

#### File core\src\main\java\hudson\security\AccessControlled.java 0 rule violation (XML file)

Module / class or interface : hudson.security.AccessControlled

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1

#### File core\src\main\java\hudson\security\AccessDeniedException2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AccessDeniedException | hudson.security.AccessDeniedException2

Module / class or interface : hudson.security.AccessDeniedException2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AccessDeniedException2 | AccessDeniedException2(Authentication;Permission) | 1 | 1
AccessDeniedException2 | AccessDeniedException2(Throwable;Authentication;Permission) | 1 | 3

#### File core\src\main\java\hudson\security\AccessDeniedHandlerImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.AccessDeniedHandlerImpl

Module / class or interface : hudson.security.AccessDeniedHandlerImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | handle(ServletRequest;ServletResponse;AccessDeniedException) | 1 | 7

#### File core\src\main\java\hudson\security\AuthenticationManagerProxy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.AuthenticationManagerProxy

Module / class or interface : hudson.security.AuthenticationManagerProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Authentication | authenticate(Authentication) | 3 | 3
void | setDelegate(AuthenticationManager) | 1 | 1

#### File core\src\main\java\hudson\security\AuthenticationProcessingFilter2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AuthenticationProcessingFilter | hudson.security.AuthenticationProcessingFilter2

Module / class or interface : hudson.security.AuthenticationProcessingFilter2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | determineTargetUrl(HttpServletRequest) | 4 | 6
String | determineFailureUrl(HttpServletRequest;AuthenticationException) | 1 | 5
void | onSuccessfulAuthentication(HttpServletRequest;HttpServletResponse;Authentication) | 1 | 2
void | onUnsuccessfulAuthentication(HttpServletRequest;HttpServletResponse;AuthenticationException) | 1 | 2

#### File core\src\main\java\hudson\security\AuthorizationMatrixProperty.java 12 rule violations (XML file)

Ancestor class | Children classes
--- | ---
JobProperty<Job<?,?>> | hudson.security.AuthorizationMatrixProperty

Module / class or interface : hudson.security.AuthorizationMatrixProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AuthorizationMatrixProperty | AuthorizationMatrixProperty() | 1 | 0
AuthorizationMatrixProperty | AuthorizationMatrixProperty(Map<Permission,Set<String>>) | 2 | 1
Set<String> | getGroups() | 1 | 1
List<String> | getAllSIDs() | 2 | 6
Map<Permission,Set<String>> | getGrantedPermissions() | 1 | 1
void | add(Permission;String) | 2 | 4
SidACL | getACL() | 1 | 1
boolean | hasPermission(String;Permission) | 3 | 5
boolean | hasExplicitPermission(String;Permission) | 1 | 2
void | add(String) | 2 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 12

Line start | Criticity class | Rule
--- | --- | ---
00092 | MAJOR | QC-JAV000001[00092] Avoid declaring class instance within loop, performance impact
00148 | MAJOR | QC-JAV000001[00148] Avoid declaring class instance within loop, performance impact
00149 | MAJOR | QC-JAV000001[00149] Avoid declaring class instance within loop, performance impact
00150 | MAJOR | QC-JAV000001[00150] Avoid declaring class instance within loop, performance impact
00150 | MAJOR | QC-JAV000001[00150] Avoid declaring class instance within loop, performance impact
00150 | MAJOR | QC-JAV000001[00150] Avoid declaring class instance within loop, performance impact
00153 | MAJOR | QC-JAV000001[00153] Avoid declaring class instance within loop, performance impact
00153 | MAJOR | QC-JAV000001[00153] Avoid declaring class instance within loop, performance impact
00208 | MAJOR | QC-JAV000001[00208] Avoid declaring class instance within loop, performance impact
00250 | MAJOR | QC-JAV000001[00250] Avoid declaring class instance within loop, performance impact
00251 | MAJOR | QC-JAV000001[00251] Avoid declaring class instance within loop, performance impact
00273 | MAJOR | QC-JAV000001[00273] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\security\AuthorizationStrategy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<AuthorizationStrategy> | hudson.security.AuthorizationStrategy

Module / class or interface : hudson.security.AuthorizationStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ACL | getRootACL() | 1 | 1
ACL | getACL(AbstractProject<?,?>) | 1 | 1
ACL | getACL(Job<?,?>) | 1 | 1
ACL | getACL(View) | 1 | 1
ACL | getACL(AbstractItem) | 1 | 1
ACL | getACL(User) | 1 | 1
ACL | getACL(Computer) | 1 | 1
ACL | getACL(Cloud) | 1 | 1
ACL | getACL(Node) | 1 | 1
Collection<String> | getGroups() | 1 | 1
DescriptorExtensionList<AuthorizationStrategy,Descriptor<AuthorizationStrategy>> | all() | 1 | 1

#### File core\src\main\java\hudson\security\BasicAuthenticationFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.BasicAuthenticationFilter

Module / class or interface : hudson.security.BasicAuthenticationFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 1 | 1
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 7 | 23
void | destroy() | 1 | 0

#### File core\src\main\java\hudson\security\ChainedServletFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.ChainedServletFilter

Module / class or interface : hudson.security.ChainedServletFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChainedServletFilter | ChainedServletFilter() | 1 | 1
ChainedServletFilter | ChainedServletFilter(Filter) | 1 | 1
ChainedServletFilter | ChainedServletFilter(Collection<?extendsFilter>) | 1 | 1
void | setFilters(Collection<?extendsFilter>) | 1 | 1
void | init(FilterConfig) | 4 | 2
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 1 | 2
void | destroy() | 2 | 1

#### File core\src\main\java\hudson\security\CliAuthenticator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.CliAuthenticator

Module / class or interface : hudson.security.CliAuthenticator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Authentication | authenticate() | 1 | 1

#### File core\src\main\java\hudson\security\ContainerAuthentication.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.ContainerAuthentication

Module / class or interface : hudson.security.ContainerAuthentication

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ContainerAuthentication | ContainerAuthentication(HttpServletRequest) | 4 | 6
GrantedAuthority[] | getAuthorities() | 1 | 1
Object | getCredentials() | 1 | 1
Object | getDetails() | 1 | 1
String | getPrincipal() | 1 | 1
boolean | isAuthenticated() | 1 | 1
void | setAuthenticated(boolean) | 1 | 0
String | getName() | 1 | 1

#### File core\src\main\java\hudson\security\DeferredCreationLdapAuthoritiesPopulator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.DeferredCreationLdapAuthoritiesPopulator

Module / class or interface : hudson.security.DeferredCreationLdapAuthoritiesPopulator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DeferredCreationLdapAuthoritiesPopulator | DeferredCreationLdapAuthoritiesPopulator(InitialDirContextFactory;String) | 1 | 2
GrantedAuthority[] | getGrantedAuthorities(LdapUserDetails) | 1 | 1
void | setConvertToUpperCase(boolean) | 1 | 1
void | setDefaultRole(String) | 1 | 1
void | setGroupRoleAttribute(String) | 1 | 1
void | setGroupSearchBase(String) | 1 | 1
void | setGroupSearchFilter(String) | 1 | 1
void | setInitialDirContextFactory(InitialDirContextFactory) | 1 | 1
void | setRolePrefix(String) | 1 | 1
void | setSearchSubtree(boolean) | 1 | 1
DefaultLdapAuthoritiesPopulator | create() | 2 | 8

#### File core\src\main\java\hudson\security\FederatedLoginService.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.FederatedLoginService

Module / class or interface : hudson.security.FederatedLoginService

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getUrlName() | 1 | 1
Class<?extendsFederatedLoginServiceUserProperty> | getUserPropertyClass() | 1 | 1
ExtensionList<FederatedLoginService> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00243 | MAJOR | QC-JAVCWE390[00243] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\security\FederatedLoginServiceUserProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UserProperty | hudson.security.FederatedLoginServiceUserProperty

Module / class or interface : hudson.security.FederatedLoginServiceUserProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FederatedLoginServiceUserProperty | FederatedLoginServiceUserProperty(Collection<String>) | 1 | 1
boolean | has(String) | 1 | 1
Collection<String> | getIdentifiers() | 1 | 1
void | addIdentifier(String) | 1 | 2

#### File core\src\main\java\hudson\security\FullControlOnceLoggedInAuthorizationStrategy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AuthorizationStrategy | hudson.security.FullControlOnceLoggedInAuthorizationStrategy

Module / class or interface : hudson.security.FullControlOnceLoggedInAuthorizationStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ACL | getRootACL() | 1 | 1
List<String> | getGroups() | 1 | 1

#### File core\src\main\java\hudson\security\GlobalMatrixAuthorizationStrategy.java 16 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AuthorizationStrategy | hudson.security.GlobalMatrixAuthorizationStrategy

Module / class or interface : hudson.security.GlobalMatrixAuthorizationStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | add(Permission;String) | 3 | 5
void | add(String) | 2 | 4
SidACL | getRootACL() | 1 | 1
Set<String> | getGroups() | 1 | 1
boolean | migrateHudson2324(Map<Permission,Set<String>>) | 3 | 3
boolean | hasPermission(String;Permission) | 3 | 5
boolean | hasExplicitPermission(String;Permission) | 1 | 2
List<String> | getAllSIDs() | 2 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 4
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 11
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00305 | INFO | QC-JAV999996[00305] CPD de longueur 54 commencant en 1665 (ligne 305) et 1748 (ligne 320): + ev ) ) ; } catch ( UserMayOrMayNotExistException e ) { return FormValidation . respond ( Kind . OK , ev ) ; } catch ( UsernameNotFoundException e ) { } catch ( DataAccessException e ) { } catch ( AuthenticationException e ) { return FormValidation . error ( e , ( "Failed to test the validity of the user name "
00149 | MAJOR | QC-JAV000001[00149] Avoid declaring class instance within loop, performance impact
00208 | MAJOR | QC-JAV000001[00208] Avoid declaring class instance within loop, performance impact
00209 | MAJOR | QC-JAV000001[00209] Avoid declaring class instance within loop, performance impact
00209 | MAJOR | QC-JAV000001[00209] Avoid declaring class instance within loop, performance impact
00211 | MAJOR | QC-JAV000001[00211] Avoid declaring class instance within loop, performance impact
00227 | MAJOR | QC-JAV000001[00227] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact
00263 | MAJOR | QC-JAV000001[00263] Avoid declaring class instance within loop, performance impact
00263 | MAJOR | QC-JAV000001[00263] Avoid declaring class instance within loop, performance impact
00265 | MAJOR | QC-JAV000001[00265] Avoid declaring class instance within loop, performance impact
00265 | MAJOR | QC-JAV000001[00265] Avoid declaring class instance within loop, performance impact
00309 | MAJOR | QC-JAVCWE390[00309] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00311 | MAJOR | QC-JAVCWE390[00311] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00324 | MAJOR | QC-JAVCWE390[00324] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00326 | MAJOR | QC-JAVCWE390[00326] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\security\GlobalSecurityConfiguration.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | hudson.security.GlobalSecurityConfiguration

Module / class or interface : hudson.security.GlobalSecurityConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MarkupFormatter | getMarkupFormatter() | 1 | 1
int | getSlaveAgentPort() | 1 | 1
void | doConfigure(StaplerRequest;StaplerResponse) | 1 | 6
boolean | configure(StaplerRequest;JSONObject) | 6 | 9
boolean | configureDescriptor(StaplerRequest;JSONObject;Descriptor<?>) | 1 | 4
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
Permission | getRequiredPermission() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00145 | MAJOR | QC-JAVCWE493[00145] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00145 | MINOR | QC-JAVCWE500[00145] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\security\GroupDetails.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.GroupDetails

Module / class or interface : hudson.security.GroupDetails

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
String | getDisplayName() | 1 | 1

#### File core\src\main\java\hudson\security\HttpSessionContextIntegrationFilter2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HttpSessionContextIntegrationFilter | hudson.security.HttpSessionContextIntegrationFilter2

Module / class or interface : hudson.security.HttpSessionContextIntegrationFilter2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HttpSessionContextIntegrationFilter2 | HttpSessionContextIntegrationFilter2() | 1 | 1
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 3 | 3

#### File core\src\main\java\hudson\security\HudsonAuthenticationEntryPoint.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AuthenticationProcessingFilterEntryPoint | hudson.security.HudsonAuthenticationEntryPoint

Module / class or interface : hudson.security.HudsonAuthenticationEntryPoint

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | commence(ServletRequest;ServletResponse;AuthenticationException) | 5 | 15

#### File core\src\main\java\hudson\security\HudsonFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.HudsonFilter

Module / class or interface : hudson.security.HudsonFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 2 | 4
HudsonFilter | get(ServletContext) | 1 | 1
void | reset(SecurityRealm) | 4 | 13
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 3 | 4
void | destroy() | 2 | 1

#### File core\src\main\java\hudson\security\HudsonPrivateSecurityRealm.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractPasswordBasedSecurityRealm | hudson.security.HudsonPrivateSecurityRealm

Module / class or interface : hudson.security.HudsonPrivateSecurityRealm

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HudsonPrivateSecurityRealm | HudsonPrivateSecurityRealm(boolean) | 1 | 1
HudsonPrivateSecurityRealm | HudsonPrivateSecurityRealm(boolean;boolean;CaptchaSupport) | 2 | 3
boolean | allowsSignup() | 1 | 1
boolean | isEnableCaptcha() | 1 | 1
boolean | hasSomeUser() | 3 | 2
GroupDetails | loadGroupByGroupname(String) | 1 | 1
Details | loadUserByUsername(String) | 3 | 5
Details | authenticate(String;String) | 2 | 3
HttpResponse | commenceSignup(FederatedIdentity) | 1 | 2
User | doCreateAccountWithFederatedIdentity(StaplerRequest;StaplerResponse) | 2 | 3
User | doCreateAccount(StaplerRequest;StaplerResponse) | 1 | 1
User | _doCreateAccount(StaplerRequest;StaplerResponse;String) | 4 | 6
void | loginAndTakeBack(StaplerRequest;StaplerResponse;User) | 1 | 4
void | doCreateAccountByAdmin(StaplerRequest;StaplerResponse) | 2 | 2
void | doCreateFirstAccount(StaplerRequest;StaplerResponse) | 3 | 5
void | tryToMakeAdmin(User) | 2 | 3
User | createAccount(StaplerRequest;StaplerResponse;boolean;String) | 10 | 21
User | createAccount(String;String) | 1 | 3
String | getDisplayName() | 1 | 1
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
List<User> | getAllUsers() | 3 | 4
User | getUser(String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00399 | MAJOR | QC-JAVCWE493[00399] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00404 | MAJOR | QC-JAVCWE493[00404] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\security\InvalidatableUserDetails.java 0 rule violation (XML file)

Module / class or interface : hudson.security.InvalidatableUserDetails

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isInvalid() | 1 | 1

#### File core\src\main\java\hudson\security\LegacyAuthorizationStrategy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AuthorizationStrategy | hudson.security.LegacyAuthorizationStrategy

Module / class or interface : hudson.security.LegacyAuthorizationStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ACL | getRootACL() | 1 | 1
Collection<String> | getGroups() | 1 | 1

#### File core\src\main\java\hudson\security\LegacySecurityRealm.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SecurityRealm | hudson.security.LegacySecurityRealm

Module / class or interface : hudson.security.LegacySecurityRealm

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SecurityComponents | createSecurityComponents() | 1 | 1
Authentication | authenticate(Authentication) | 3 | 2
String | getAuthenticationGatewayUrl() | 1 | 1
String | getLoginUrl() | 1 | 1
Filter | createFilter(FilterConfig) | 1 | 8

#### File core\src\main\java\hudson\security\NoopFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.NoopFilter

Module / class or interface : hudson.security.NoopFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 1 | 0
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 1 | 1
void | destroy() | 1 | 0

#### File core\src\main\java\hudson\security\NotSerilizableSecurityContext.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.NotSerilizableSecurityContext

Module / class or interface : hudson.security.NotSerilizableSecurityContext

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NotSerilizableSecurityContext | NotSerilizableSecurityContext() | 1 | 0
NotSerilizableSecurityContext | NotSerilizableSecurityContext(Authentication) | 1 | 1
boolean | equals(Object) | 4 | 2
Authentication | getAuthentication() | 1 | 1
int | hashCode() | 3 | 2
void | setAuthentication(Authentication) | 1 | 1
String | toString() | 3 | 5

#### File core\src\main\java\hudson\security\Permission.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.Permission

Module / class or interface : hudson.security.Permission

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Permission | Permission(PermissionGroup;String;Localizable;Permission;boolean;PermissionScope[]) | 2 | 10
Permission | Permission(PermissionGroup;String;Localizable;Permission;PermissionScope) | 1 | 2
Permission | Permission(PermissionGroup;String;Localizable;Permission;boolean) | 1 | 1
Permission | Permission(PermissionGroup;String;Localizable;Permission) | 1 | 1
Permission | Permission(PermissionGroup;String;Permission) | 1 | 1
Permission | Permission(PermissionGroup;String) | 1 | 1
boolean | isContainedBy(PermissionScope) | 3 | 2
String | getId() | 1 | 1
Permission | fromId(String) | 3 | 7
String | toString() | 1 | 1
void | setEnabled(boolean) | 1 | 1
boolean | getEnabled() | 1 | 1
List<Permission> | getAll() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00115 | MAJOR | QC-JAVCWE493[00115] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00146 | CRITICAL | QC-JAVCWE476[00146] The argument group is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\security\PermissionGroup.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.PermissionGroup

Module / class or interface : hudson.security.PermissionGroup

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PermissionGroup | PermissionGroup(Class;Localizable) | 1 | 7
Iterator<Permission> | iterator() | 1 | 1
void | add(Permission) | 1 | 1
List<Permission> | getPermissions() | 1 | 1
boolean | hasPermissionContainedBy(PermissionScope) | 3 | 2
Permission | find(String) | 3 | 2
int | compareTo(PermissionGroup) | 2 | 3
int | compareOrder() | 2 | 2
int | size() | 1 | 1
List<PermissionGroup> | getAll() | 1 | 1
PermissionGroup | get(Class) | 1 | 1

#### File core\src\main\java\hudson\security\PermissionScope.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.PermissionScope

Module / class or interface : hudson.security.PermissionScope

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PermissionScope | PermissionScope(Class;PermissionScope) | 1 | 2
boolean | isContainedBy(PermissionScope) | 4 | 3

#### File core\src\main\java\hudson\security\ProjectMatrixAuthorizationStrategy.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
GlobalMatrixAuthorizationStrategy | hudson.security.ProjectMatrixAuthorizationStrategy

Module / class or interface : hudson.security.ProjectMatrixAuthorizationStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ACL | getACL(Job<?,?>) | 3 | 3
SidACL | getACL(ItemGroup) | 2 | 3
SidACL | getACL(AbstractItem) | 1 | 1
Set<String> | getGroups() | 3 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\security\RememberMeServicesProxy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.RememberMeServicesProxy

Module / class or interface : hudson.security.RememberMeServicesProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Authentication | autoLogin(HttpServletRequest;HttpServletResponse) | 2 | 3
void | loginFail(HttpServletRequest;HttpServletResponse) | 2 | 2
void | loginSuccess(HttpServletRequest;HttpServletResponse;Authentication) | 2 | 2
void | setDelegate(RememberMeServices) | 1 | 1

#### File core\src\main\java\hudson\security\SecurityMode.java 0 rule violation (XML file)

Module / class or interface : hudson.security.

#### File core\src\main\java\hudson\security\SecurityRealm.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<SecurityRealm> | hudson.security.SecurityRealm

Module / class or interface : hudson.security.SecurityRealm

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SecurityComponents | createSecurityComponents() | 1 | 1
CliAuthenticator | createCliAuthenticator(CLICommand) | 1 | 1
Descriptor<SecurityRealm> | getDescriptor() | 1 | 1
String | getAuthenticationGatewayUrl() | 1 | 1
String | getLoginUrl() | 1 | 1
boolean | canLogOut() | 1 | 1
String | getPostLogOutUrl(StaplerRequest;Authentication) | 1 | 1
CaptchaSupport | getCaptchaSupport() | 1 | 1
void | setCaptchaSupport(CaptchaSupport) | 1 | 1
List<Descriptor<CaptchaSupport>> | getCaptchaSupportDescriptors() | 1 | 1
void | doLogout(StaplerRequest;StaplerResponse) | 2 | 8
boolean | allowsSignup() | 1 | 2
UserDetails | loadUserByUsername(String) | 1 | 1
GroupDetails | loadGroupByGroupname(String) | 1 | 1
HttpResponse | commenceSignup(FederatedIdentity) | 1 | 1
void | doCaptcha(StaplerRequest;StaplerResponse) | 2 | 4
boolean | validateCaptcha(String) | 2 | 3
SecurityComponents | getSecurityComponents() | 2 | 2
Filter | createFilter(FilterConfig) | 1 | 9
DescriptorExtensionList<SecurityRealm,Descriptor<SecurityRealm>> | all() | 1 | 1

#### File core\src\main\java\hudson\security\SidACL.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ACL | hudson.security.SidACL

Module / class or interface : hudson.security.SidACL

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | hasPermission(Authentication;Permission) | 5 | 6
Boolean | _hasPermission(Authentication;Permission) | 9 | 10
Boolean | hasPermission(Sid;Permission) | 1 | 1
String | toString(Sid) | 4 | 4
SidACL | newInheritingACL(SidACL) | 1 | 2

#### File core\src\main\java\hudson\security\SparseACL.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
SidACL | hudson.security.SparseACL

Module / class or interface : hudson.security.SparseACL

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SparseACL | SparseACL(ACL) | 1 | 1
void | add(Entry) | 1 | 1
void | add(Sid;Permission;boolean) | 1 | 1
boolean | hasPermission(Authentication;Permission) | 5 | 6
Boolean | hasPermission(Sid;Permission) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00090 | MAJOR | QC-JAV000001[00090] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\security\TokenBasedRememberMeServices2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TokenBasedRememberMeServices | hudson.security.TokenBasedRememberMeServices2

Module / class or interface : hudson.security.TokenBasedRememberMeServices2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | makeTokenSignature(long;UserDetails) | 1 | 2
String | retrievePassword(Authentication) | 1 | 1
void | loginSuccess(HttpServletRequest;HttpServletResponse;Authentication) | 4 | 11

#### File core\src\main\java\hudson\security\UnwrapSecurityExceptionFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.UnwrapSecurityExceptionFilter

Module / class or interface : hudson.security.UnwrapSecurityExceptionFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 1 | 0
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 2 | 3
void | destroy() | 1 | 0

#### File core\src\main\java\hudson\security\UserDetailsServiceProxy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.UserDetailsServiceProxy

Module / class or interface : hudson.security.UserDetailsServiceProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UserDetails | loadUserByUsername(String) | 2 | 3
void | setDelegate(UserDetailsService) | 1 | 1

#### File core\src\main\java\hudson\security\UserMayOrMayNotExistException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UsernameNotFoundException | hudson.security.UserMayOrMayNotExistException

Module / class or interface : hudson.security.UserMayOrMayNotExistException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UserMayOrMayNotExistException | UserMayOrMayNotExistException(String) | 1 | 1
UserMayOrMayNotExistException | UserMayOrMayNotExistException(String;Object) | 1 | 1
UserMayOrMayNotExistException | UserMayOrMayNotExistException(String;Throwable) | 1 | 1

#### File core\src\main\java\hudson\security\WhoAmI.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.WhoAmI

Module / class or interface : hudson.security.WhoAmI

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Api | getApi() | 1 | 1
String | getName() | 1 | 1
boolean | isAuthenticated() | 1 | 1
boolean | isAnonymous() | 1 | 1
String | getDetails() | 1 | 1
String | getToString() | 1 | 1
Authentication | auth() | 1 | 1
String[] | getAuthorities() | 3 | 4
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\hudson\security\captcha\CaptchaSupport.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<CaptchaSupport> | hudson.security.captcha.CaptchaSupport

Module / class or interface : hudson.security.captcha.CaptchaSupport

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<CaptchaSupport,Descriptor<CaptchaSupport>> | all() | 1 | 1
boolean | validateCaptcha(String;String) | 1 | 1
void | generateImage(String;OutputStream) | 1 | 1
CaptchaSupportDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\security\captcha\CaptchaSupportDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<CaptchaSupport> | hudson.security.captcha.CaptchaSupportDescriptor

Module / class or interface : hudson.security.captcha.CaptchaSupportDescriptor

#### File core\src\main\java\hudson\security\csrf\CrumbExclusion.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.csrf.CrumbExclusion

Module / class or interface : hudson.security.csrf.CrumbExclusion

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | process(HttpServletRequest;HttpServletResponse;FilterChain) | 1 | 1
ExtensionList<CrumbExclusion> | all() | 1 | 1

#### File core\src\main\java\hudson\security\csrf\CrumbFilter.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.csrf.CrumbFilter

Module / class or interface : hudson.security.csrf.CrumbFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CrumbIssuer | getCrumbIssuer() | 2 | 3
void | init(FilterConfig) | 1 | 0
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 9 | 10
boolean | isMultipart(HttpServletRequest) | 6 | 8
void | destroy() | 1 | 0

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00068 | MAJOR | QC-JAV000001[00068] Avoid declaring class instance within loop, performance impact
00068 | MAJOR | QC-JAV000001[00068] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\security\csrf\CrumbIssuer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.security.csrf.CrumbIssuer

Module / class or interface : hudson.security.csrf.CrumbIssuer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getCrumbRequestField() | 1 | 1
String | getCrumb() | 1 | 1
String | getCrumb(ServletRequest) | 4 | 4
String | issueCrumb(ServletRequest;String) | 1 | 1
boolean | validateCrumb(ServletRequest) | 1 | 4
boolean | validateCrumb(ServletRequest;MultipartFormDataParser) | 1 | 4
boolean | validateCrumb(ServletRequest;String;String) | 1 | 1
CrumbIssuerDescriptor<CrumbIssuer> | getDescriptor() | 1 | 1
DescriptorExtensionList<CrumbIssuer,Descriptor<CrumbIssuer>> | all() | 1 | 1
Api | getApi() | 1 | 1
void | initStaplerCrumbIssuer() | 1 | 1

#### File core\src\main\java\hudson\security\csrf\CrumbIssuerDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<CrumbIssuer> | hudson.security.csrf.CrumbIssuerDescriptor

Module / class or interface : hudson.security.csrf.CrumbIssuerDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CrumbIssuerDescriptor | CrumbIssuerDescriptor(String;String) | 1 | 2
String | getCrumbSalt() | 1 | 1
void | setCrumbSalt(String) | 3 | 2
String | getCrumbRequestField() | 1 | 1
void | setCrumbRequestField(String) | 3 | 2

#### File core\src\main\java\hudson\security\csrf\DefaultCrumbIssuer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CrumbIssuer | hudson.security.csrf.DefaultCrumbIssuer

Module / class or interface : hudson.security.csrf.DefaultCrumbIssuer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultCrumbIssuer | DefaultCrumbIssuer(boolean) | 1 | 5
boolean | isExcludeClientIPFromCrumb() | 1 | 1
Object | readResolve() | 1 | 4
String | issueCrumb(ServletRequest;String) | 3 | 1
boolean | validateCrumb(ServletRequest;String;String) | 3 | 2
String | getClientIP(HttpServletRequest) | 3 | 4

#### File core\src\main\java\hudson\security\csrf\GlobalCrumbIssuerConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | hudson.security.csrf.GlobalCrumbIssuerConfiguration

Module / class or interface : hudson.security.csrf.GlobalCrumbIssuerConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
GlobalConfigurationCategory | getCategory() | 1 | 1
boolean | configure(StaplerRequest;JSONObject) | 3 | 5

#### File core\src\main\java\hudson\slaves\AbstractCloudComputer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SlaveComputer | hudson.slaves.AbstractCloudComputer

Module / class or interface : hudson.slaves.AbstractCloudComputer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractCloudComputer | AbstractCloudComputer(T) | 1 | 1
T | getNode() | 1 | 1
HttpResponse | doDoDelete() | 1 | 4

#### File core\src\main\java\hudson\slaves\AbstractCloudImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Cloud | hudson.slaves.AbstractCloudImpl

Module / class or interface : hudson.slaves.AbstractCloudImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractCloudImpl | AbstractCloudImpl(String;String) | 1 | 2
void | setInstanceCapStr(String) | 3 | 2
String | getInstanceCapStr() | 3 | 2
int | getInstanceCap() | 1 | 1
void | setInstanceCap(int) | 1 | 1

#### File core\src\main\java\hudson\slaves\AbstractCloudSlave.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Slave | hudson.slaves.AbstractCloudSlave

Module / class or interface : hudson.slaves.AbstractCloudSlave

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractCloudSlave | AbstractCloudSlave(String;String;String;String;Mode;String;ComputerLauncher;RetentionStrategy;List<?extendsNodeProperty<?>>) | 1 | 1
AbstractCloudSlave | AbstractCloudSlave(String;String;String;int;Mode;String;ComputerLauncher;RetentionStrategy;List<?extendsNodeProperty<?>>) | 1 | 1
AbstractCloudComputer | createComputer() | 1 | 1
void | terminate() | 1 | 1
void | _terminate(TaskListener) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00045 | INFO | QC-JAV999996[00045] CPD de longueur 52 commencant en 105 (ligne 45) et 170 (ligne 49): , Mode mode , String labelString , ComputerLauncher launcher , RetentionStrategy retentionStrategy , List _ ? extends NodeProperty _ ? _ _ nodeProperties ) throws FormException , IOException { super ( name , nodeDescription , remoteFS , numExecutors , mode , labelString , launcher , retentionStrategy , nodeProperties ) ; } public

#### File core\src\main\java\hudson\slaves\ChannelPinger.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerListener | hudson.slaves.ChannelPinger

Module / class or interface : hudson.slaves.ChannelPinger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChannelPinger | ChannelPinger() | 2 | 1
void | preOnline(Computer;Channel;FilePath;TaskListener) | 2 | 6
void | setUpPingForChannel(Channel;int) | 1 | 5

#### File core\src\main\java\hudson\slaves\Channels.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.Channels

Module / class or interface : hudson.slaves.Channels

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Channel | forProcess(String;ExecutorService;InputStream;OutputStream;Proc) | 1 | 1
Channel | forProcess(String;ExecutorService;InputStream;OutputStream;OutputStream;Proc) | 1 | 1
Channel | forProcess(String;ExecutorService;Process;OutputStream) | 1 | 3
Channel | newJVM(String;TaskListener;FilePath;ClasspathBuilder;Map<String,String>) | 1 | 3
Channel | newJVM(String;TaskListener;JVMBuilder;FilePath;ClasspathBuilder) | 2 | 12

#### File core\src\main\java\hudson\slaves\Cloud.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.slaves.Cloud

Module / class or interface : hudson.slaves.Cloud

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Cloud | Cloud(String) | 1 | 1
String | getDisplayName() | 1 | 1
String | getSearchUrl() | 1 | 1
ACL | getACL() | 1 | 1
void | checkPermission(Permission) | 1 | 1
boolean | hasPermission(Permission) | 1 | 1
Collection<PlannedNode> | provision(Label;int) | 1 | 1
boolean | canProvision(Label) | 1 | 1
Descriptor<Cloud> | getDescriptor() | 1 | 1
DescriptorExtensionList<Cloud,Descriptor<Cloud>> | all() | 1 | 1

#### File core\src\main\java\hudson\slaves\CloudRetentionStrategy.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
RetentionStrategy<AbstractCloudComputer> | hudson.slaves.CloudRetentionStrategy

Module / class or interface : hudson.slaves.CloudRetentionStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CloudRetentionStrategy | CloudRetentionStrategy(int) | 1 | 1
long | check(AbstractCloudComputer) | 3 | 2
void | start(AbstractCloudComputer) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00073 | MAJOR | QC-JAVCWE493[00073] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00073 | MINOR | QC-JAVCWE500[00073] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\slaves\CommandConnector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerConnector | hudson.slaves.CommandConnector

Module / class or interface : hudson.slaves.CommandConnector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CommandConnector | CommandConnector(String) | 1 | 1
CommandLauncher | launch(String;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\slaves\CommandLauncher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerLauncher | hudson.slaves.CommandLauncher

Module / class or interface : hudson.slaves.CommandLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CommandLauncher | CommandLauncher(String) | 1 | 1
CommandLauncher | CommandLauncher(String;EnvVars) | 1 | 2
String | getCommand() | 1 | 1
String | getTimestamp() | 1 | 1
void | launch(SlaveComputer;TaskListener) | 7 | 21

#### File core\src\main\java\hudson\slaves\ComputerConnector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ComputerConnector> | hudson.slaves.ComputerConnector

Module / class or interface : hudson.slaves.ComputerConnector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ComputerLauncher | launch(String;TaskListener) | 1 | 1
ComputerConnectorDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\slaves\ComputerConnectorDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ComputerConnector> | hudson.slaves.ComputerConnectorDescriptor

Module / class or interface : hudson.slaves.ComputerConnectorDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<ComputerConnector,ComputerConnectorDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\slaves\ComputerLauncher.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ComputerLauncher> | hudson.slaves.ComputerLauncher

Module / class or interface : hudson.slaves.ComputerLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isLaunchSupported() | 1 | 1
void | launch(SlaveComputer;TaskListener) | 1 | 1
void | launch(SlaveComputer;StreamTaskListener) | 1 | 1
void | afterDisconnect(SlaveComputer;TaskListener) | 1 | 1
void | afterDisconnect(SlaveComputer;StreamTaskListener) | 1 | 0
void | beforeDisconnect(SlaveComputer;TaskListener) | 1 | 1
void | beforeDisconnect(SlaveComputer;StreamTaskListener) | 1 | 0
StreamTaskListener | cast(TaskListener) | 2 | 2
void | checkJavaVersion(PrintStream;String;BufferedReader) | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00180 | MAJOR | QC-JAVCWE481[00180] Assigning instead of comparing on line=r.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00181 | MAJOR | QC-JAV000001[00181] Avoid declaring class instance within loop, performance impact
00183 | MAJOR | QC-JAV000001[00183] Avoid declaring class instance within loop, performance impact
00190 | MAJOR | QC-JAV000001[00190] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\slaves\ComputerLauncherFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerLauncher | hudson.slaves.ComputerLauncherFilter

Module / class or interface : hudson.slaves.ComputerLauncherFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ComputerLauncherFilter | ComputerLauncherFilter(ComputerLauncher) | 1 | 1
ComputerLauncher | getCore() | 1 | 1
boolean | isLaunchSupported() | 1 | 1
void | launch(SlaveComputer;TaskListener) | 1 | 1
void | afterDisconnect(SlaveComputer;TaskListener) | 1 | 1
void | beforeDisconnect(SlaveComputer;TaskListener) | 1 | 1
Descriptor<ComputerLauncher> | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\slaves\ComputerListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.ComputerListener

Module / class or interface : hudson.slaves.ComputerListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | preLaunch(Computer;TaskListener) | 1 | 0
void | onLaunchFailure(Computer;TaskListener) | 1 | 0
void | preOnline(Computer;Channel;FilePath;TaskListener) | 1 | 0
void | onOnline(Computer) | 1 | 0
void | onOnline(Computer;TaskListener) | 1 | 1
void | onOffline(Computer) | 1 | 0
void | onTemporarilyOnline(Computer) | 1 | 0
void | onTemporarilyOffline(Computer;OfflineCause) | 1 | 0
void | onConfigurationChange() | 1 | 0
void | register() | 1 | 1
boolean | unregister() | 1 | 1
ExtensionList<ComputerListener> | all() | 1 | 1

#### File core\src\main\java\hudson\slaves\ComputerRetentionWork.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PeriodicWork | hudson.slaves.ComputerRetentionWork

Module / class or interface : hudson.slaves.ComputerRetentionWork

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
long | getRecurrencePeriod() | 1 | 1
void | doRun() | 4 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00060 | MAJOR | QC-JAV000001[00060] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\slaves\ConnectionActivityMonitor.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AsyncPeriodicWork | hudson.slaves.ConnectionActivityMonitor

Module / class or interface : hudson.slaves.ConnectionActivityMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConnectionActivityMonitor | ConnectionActivityMonitor() | 1 | 1
void | execute(TaskListener) | 4 | 3
long | getRecurrencePeriod() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00060 | MAJOR | QC-JAV000001[00060] Avoid declaring class instance within loop, performance impact
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00062 | MAJOR | QC-JAV000001[00062] Avoid declaring class instance within loop, performance impact
00062 | MAJOR | QC-JAV000001[00062] Avoid declaring class instance within loop, performance impact
00065 | MAJOR | QC-JAV000001[00065] Avoid declaring class instance within loop, performance impact
00065 | MAJOR | QC-JAV000001[00065] Avoid declaring class instance within loop, performance impact
00102 | MAJOR | QC-JAVCWE493[00102] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\slaves\DelegatingComputerLauncher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerLauncher | hudson.slaves.DelegatingComputerLauncher

Module / class or interface : hudson.slaves.DelegatingComputerLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DelegatingComputerLauncher | DelegatingComputerLauncher(ComputerLauncher) | 1 | 1
ComputerLauncher | getLauncher() | 1 | 1
void | launch(SlaveComputer;TaskListener) | 1 | 1
void | afterDisconnect(SlaveComputer;TaskListener) | 1 | 1
void | beforeDisconnect(SlaveComputer;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\slaves\DumbSlave.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Slave | hudson.slaves.DumbSlave

Module / class or interface : hudson.slaves.DumbSlave

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DumbSlave | DumbSlave(String;String;String;String;Mode;String;ComputerLauncher;RetentionStrategy) | 1 | 1
DumbSlave | DumbSlave(String;String;String;String;Mode;String;ComputerLauncher;RetentionStrategy;List<?extendsNodeProperty<?>>) | 1 | 1

#### File core\src\main\java\hudson\slaves\EnvironmentVariablesNodeProperty.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
NodeProperty<Node> | hudson.slaves.EnvironmentVariablesNodeProperty

Module / class or interface : hudson.slaves.EnvironmentVariablesNodeProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EnvironmentVariablesNodeProperty | EnvironmentVariablesNodeProperty(List<Entry>) | 1 | 1
EnvironmentVariablesNodeProperty | EnvironmentVariablesNodeProperty(Entry) | 1 | 1
EnvVars | getEnvVars() | 1 | 1
Environment | setUp(AbstractBuild;Launcher;BuildListener) | 1 | 1
void | buildEnvVars(EnvVars;TaskListener) | 1 | 1
EnvVars | toMap(List<Entry>) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00100 | MAJOR | QC-JAVCWE493[00100] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\slaves\EphemeralNode.java 0 rule violation (XML file)

Module / class or interface : hudson.slaves.EphemeralNode

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Node | asNode() | 1 | 1

#### File core\src\main\java\hudson\slaves\JNLPLauncher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerLauncher | hudson.slaves.JNLPLauncher

Module / class or interface : hudson.slaves.JNLPLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JNLPLauncher | JNLPLauncher(String;String) | 1 | 2
JNLPLauncher | JNLPLauncher() | 1 | 1
boolean | isLaunchSupported() | 1 | 1
void | launch(SlaveComputer;TaskListener) | 1 | 0

#### File core\src\main\java\hudson\slaves\NodeDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<Node> | hudson.slaves.NodeDescriptor

Module / class or interface : hudson.slaves.NodeDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NodeDescriptor | NodeDescriptor(Class<?extendsNode>) | 1 | 1
NodeDescriptor | NodeDescriptor() | 1 | 0
boolean | isInstantiable() | 1 | 1
String | newInstanceDetailPage() | 1 | 1
void | handleNewNodePage(ComputerSet;String;StaplerRequest;StaplerResponse) | 1 | 3
String | getConfigPage() | 1 | 1
FormValidation | doCheckName(String) | 2 | 5
DescriptorExtensionList<Node,NodeDescriptor> | all() | 1 | 1
List<NodeDescriptor> | allInstantiable() | 3 | 3

#### File core\src\main\java\hudson\slaves\NodeList.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ArrayList<Node> | hudson.slaves.NodeList

Module / class or interface : hudson.slaves.NodeList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NodeList | NodeList() | 1 | 0
NodeList | NodeList(Collection<?extendsNode>) | 3 | 1
NodeList | NodeList(Node) | 1 | 1
Node | getNode(String) | 1 | 1
void | add(int;Node) | 1 | 1
Node | remove(int) | 1 | 1
boolean | remove(Object) | 1 | 1
void | clear() | 1 | 1
boolean | addAll(Collection<?extendsNode>) | 1 | 1
boolean | addAll(int;Collection<?extendsNode>) | 1 | 1
void | removeRange(int;int) | 1 | 1
boolean | removeAll(Collection<?>) | 1 | 1
boolean | retainAll(Collection<?>) | 1 | 1
boolean | add(Node) | 1 | 1
Node | set(int;Node) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00149 | MAJOR | QC-JAV000001[00149] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\slaves\NodeProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.NodeProperty

Module / class or interface : hudson.slaves.NodeProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setNode(N) | 1 | 1
NodePropertyDescriptor | getDescriptor() | 1 | 1
CauseOfBlockage | canTake(Task) | 1 | 1
CauseOfBlockage | canTake(BuildableItem) | 1 | 1
Environment | setUp(AbstractBuild;Launcher;BuildListener) | 1 | 1
void | buildEnvVars(EnvVars;TaskListener) | 1 | 0
NodeProperty<?> | reconfigure(StaplerRequest;JSONObject) | 1 | 1
DescriptorExtensionList<NodeProperty<?>,NodePropertyDescriptor> | all() | 1 | 1
List<NodePropertyDescriptor> | for_(Node) | 1 | 1

#### File core\src\main\java\hudson\slaves\NodePropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
PropertyDescriptor<NodeProperty<?>,Node> | hudson.slaves.NodePropertyDescriptor

Module / class or interface : hudson.slaves.NodePropertyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NodePropertyDescriptor | NodePropertyDescriptor(Class<?extendsNodeProperty<?>>) | 1 | 1
NodePropertyDescriptor | NodePropertyDescriptor() | 1 | 0

#### File core\src\main\java\hudson\slaves\NodeProvisioner.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.NodeProvisioner

Module / class or interface : hudson.slaves.NodeProvisioner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NodeProvisioner | NodeProvisioner(Label;LoadStatistics) | 1 | 2
List<PlannedNode> | getPendingLaunches() | 1 | 1
void | suggestReviewNow() | 2 | 2
void | update() | 7 | 17
float | calcThresholdMargin(int) | 1 | 4
float | getFloatSystemProperty(String;float) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6
MINOR | QC-JAVCWE500 | Static public field not marked final | 2

Line start | Criticity class | Rule
--- | --- | ---
00177 | MAJOR | QC-JAV000001[00177] Avoid declaring class instance within loop, performance impact
00182 | MAJOR | QC-JAV000001[00182] Avoid declaring class instance within loop, performance impact
00184 | MAJOR | QC-JAV000001[00184] Avoid declaring class instance within loop, performance impact
00186 | MAJOR | QC-JAV000001[00186] Avoid declaring class instance within loop, performance impact
00264 | MAJOR | QC-JAV000001[00264] Avoid declaring class instance within loop, performance impact
00265 | MAJOR | QC-JAV000001[00265] Avoid declaring class instance within loop, performance impact
00330 | MAJOR | QC-JAVCWE493[00330] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00330 | MINOR | QC-JAVCWE500[00330] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00331 | MAJOR | QC-JAVCWE493[00331] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00331 | MINOR | QC-JAVCWE500[00331] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\slaves\NodeSpecific.java 0 rule violation (XML file)

Module / class or interface : hudson.slaves.NodeSpecific

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
T | forNode(Node;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\slaves\OfflineCause.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.OfflineCause

Module / class or interface : hudson.slaves.OfflineCause

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
OfflineCause | create(Localizable) | 2 | 2

#### File core\src\main\java\hudson\slaves\RetentionStrategy.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<RetentionStrategy<?>> | hudson.slaves.RetentionStrategy

Module / class or interface : hudson.slaves.RetentionStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
long | check(T) | 1 | 1
boolean | isManualLaunchAllowed(T) | 1 | 1
void | start(T) | 1 | 1
DescriptorExtensionList<RetentionStrategy<?>,Descriptor<RetentionStrategy<?>>> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00213 | MAJOR | QC-JAV000001[00213] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\slaves\SimpleScheduledRetentionStrategy.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
RetentionStrategy<SlaveComputer> | hudson.slaves.SimpleScheduledRetentionStrategy

Module / class or interface : hudson.slaves.SimpleScheduledRetentionStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SimpleScheduledRetentionStrategy | SimpleScheduledRetentionStrategy(String;int;boolean) | 1 | 6
int | getUpTimeMins() | 1 | 1
boolean | isKeepUpWhenActive() | 1 | 1
String | getStartTimeSpec() | 1 | 1
void | updateStartStopWindow() | 3 | 18
Object | readResolve() | 1 | 11
boolean | isManualLaunchAllowed(SlaveComputer) | 1 | 1
long | check(SlaveComputer) | 7 | 4
boolean | isOnlineScheduled() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2

Line start | Criticity class | Rule
--- | --- | ---
00186 | MAJOR | QC-JAVCWE390[00186] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00187 | MAJOR | QC-JAVCWE390[00187] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\slaves\SlaveComputer.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Computer | hudson.slaves.SlaveComputer

Module / class or interface : hudson.slaves.SlaveComputer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SlaveComputer | SlaveComputer(Slave) | 1 | 3
boolean | isAcceptingTasks() | 1 | 1
String | getJnlpMac() | 1 | 1
void | setAcceptingTasks(boolean) | 1 | 1
Boolean | isUnix() | 1 | 1
Slave | getNode() | 1 | 1
String | getIcon() | 2 | 3
boolean | isJnlpAgent() | 1 | 1
boolean | isLaunchSupported() | 1 | 1
ComputerLauncher | getLauncher() | 1 | 1
Future<?> | _connect(boolean) | 4 | 5
void | taskAccepted(Executor;Queue.Task) | 3 | 4
void | taskCompleted(Executor;Queue.Task;long) | 3 | 4
void | taskCompletedWithProblems(Executor;Queue.Task;long;Throwable) | 3 | 4
boolean | isConnecting() | 1 | 2
OutputStream | openLogFile() | 1 | 4
void | setChannel(InputStream;OutputStream;TaskListener;Channel.Listener) | 1 | 1
void | setChannel(InputStream;OutputStream;OutputStream;Channel.Listener) | 1 | 2
int | getClassLoadingCount() | 1 | 1
int | getResourceLoadingCount() | 1 | 1
long | getClassLoadingTime() | 1 | 1
long | getResourceLoadingTime() | 1 | 1
void | setChannel(Channel;OutputStream;Channel.Listener) | 7 | 25
Channel | getChannel() | 1 | 1
Charset | getDefaultCharset() | 1 | 1
List<LogRecord> | getLogRecords() | 3 | 2
HttpResponse | doDoDisconnect(String) | 2 | 4
Future<?> | disconnect(OfflineCause) | 1 | 2
void | doLaunchSlaveAgent(StaplerRequest;StaplerResponse) | 2 | 4
void | tryReconnect() | 2 | 3
Slave.JnlpJar | getJnlpJars(String) | 1 | 1
void | doSlaveAgentJnlp(StaplerRequest;StaplerResponse) | 3 | 14
void | kill() | 1 | 3
RetentionStrategy | getRetentionStrategy() | 1 | 2
void | closeChannel() | 3 | 4
void | setNode(Node) | 4 | 4
ComputerLauncher | grabLauncher(Node) | 1 | 1
String | getSlaveVersion() | 1 | 1
String | getOSDescription() | 1 | 1
VirtualChannel | getChannelToMaster() | 3 | 4

Deadlock risks Ressources definition
R0:hudson.slaves.SlaveComputer.channelLock
R1:hudson.model.Computer.statusChangeLock

Deadlock risks Sequences definition

Sequence | Step
--- | ---
No 0
| S0:hudson.slaves.SlaveComputer.setChannel (R0,R1)
| S0:Charset.forName
No 1
| S1:hudson.slaves.SlaveComputer.setChannel (R0,R1)
| S1:hudson.slaves.SlaveComputer.setChannel (R0,R1)
| S1:Charset.forName

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00212 | MAJOR | QC-JAVCWE481[00212] Assigning instead of comparing on lastConnectActivity=Computer.threadPoolForRemoting.submit(new java.util.concurrent.Callable&lt;Object &gt;(){public Object call()throws Exception{try {log.rewind();try {for (ComputerListener cl:ComputerListener.all())cl.preLaunch(SlaveComputer.this,taskListener);launcher.launch(SlaveComputer.this,taskListener);}catch (AbortException e){taskListener.error(e.getMessage());throw e;}catch (IOException e){Util.displayIOException(e,taskListener);e.printStackTrace(taskListener.error(Messages.ComputerLauncher_unexpectedError()));throw e;}catch (InterruptedException e){e.printStackTrace(taskListener.error(Messages.ComputerLauncher_abortedLaunch()));throw e;}}finally {if (channel==null ){offlineCause=(new OfflineCause.LaunchFailed());for (ComputerListener cl:ComputerListener.all())cl.onLaunchFailure(SlaveComputer.this,taskListener);}}if (channel==null )throw new IOException("Slave failed to connect , even though the launcher didn't report it . See the log output for details . ");return null ;}}) (see http://cwe.mitre.org/data/definitions/481.html)
00715 | MAJOR | QC-JAVCWE390[00715] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\slaves\WorkspaceList.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.WorkspaceList

Module / class or interface : hudson.slaves.WorkspaceList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WorkspaceList | WorkspaceList() | 1 | 0
Lease | allocate(FilePath) | 1 | 1
Lease | allocate(FilePath;Object) | 3 | 6
Lease | record(FilePath) | 2 | 4
void | _release(FilePath) | 3 | 5
Lease | acquire(FilePath) | 1 | 1
Lease | acquire(FilePath;boolean) | 1 | 1
Lease | acquire(FilePath;boolean;Object) | 3 | 9
Lease | lease(FilePath) | 1 | 1
void | log(String) | 2 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00076 | MAJOR | QC-JAVCWE493[00076] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00161 | MAJOR | QC-JAV000001[00161] Avoid declaring class instance within loop, performance impact
00162 | MAJOR | QC-JAV000001[00162] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\ArtifactArchiver.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.tasks.ArtifactArchiver

Module / class or interface : hudson.tasks.ArtifactArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ArtifactArchiver | ArtifactArchiver(String;String;boolean) | 1 | 3
String | getArtifacts() | 1 | 1
String | getExcludes() | 1 | 1
boolean | isLatestOnly() | 1 | 1
void | listenerWarnOrError(BuildListener;String) | 3 | 2
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 4 | 12
boolean | prebuild(AbstractBuild<?,?>;BuildListener) | 2 | 3
BuildStepMonitor | getRequiredMonitorService() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00155 | MAJOR | QC-JAV000001[00155] Avoid declaring class instance within loop, performance impact
00160 | MAJOR | QC-JAV000001[00160] Avoid declaring class instance within loop, performance impact
00180 | MAJOR | QC-JAVCWE493[00180] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00180 | MINOR | QC-JAVCWE500[00180] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\tasks\BatchFile.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CommandInterpreter | hudson.tasks.BatchFile

Module / class or interface : hudson.tasks.BatchFile

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BatchFile | BatchFile(String) | 1 | 1
String[] | buildCommandLine(FilePath) | 1 | 1
String | getContents() | 1 | 1
String | getFileExtension() | 1 | 1

#### File core\src\main\java\hudson\tasks\BuildStep.java 0 rule violation (XML file)

Module / class or interface : hudson.tasks.BuildStep

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | prebuild(AbstractBuild<?,?>;BuildListener) | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 1
Action | getProjectAction(AbstractProject<?,?>) | 1 | 1
Collection<?extendsAction> | getProjectActions(AbstractProject<?,?>) | 1 | 1
BuildStepMonitor | getRequiredMonitorService() | 1 | 1

#### File core\src\main\java\hudson\tasks\BuildStepCompatibilityLayer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.BuildStepCompatibilityLayer

Module / class or interface : hudson.tasks.BuildStepCompatibilityLayer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | prebuild(AbstractBuild<?,?>;BuildListener) | 3 | 2
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 3 | 2
Action | getProjectAction(AbstractProject<?,?>) | 3 | 2
Collection<?extendsAction> | getProjectActions(AbstractProject<?,?>) | 2 | 3
boolean | prebuild(Build<?,?>;BuildListener) | 1 | 1
boolean | perform(Build<?,?>;Launcher;BuildListener) | 1 | 1
Action | getProjectAction(Project<?,?>) | 1 | 1

#### File core\src\main\java\hudson\tasks\BuildStepDescriptor.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<T> | hudson.tasks.BuildStepDescriptor

Module / class or interface : hudson.tasks.BuildStepDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildStepDescriptor | BuildStepDescriptor(Class<?extendsT>) | 1 | 1
BuildStepDescriptor | BuildStepDescriptor() | 1 | 0
boolean | isApplicable(Class<?extendsAbstractProject>) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact
00082 | MAJOR | QC-JAV000001[00082] Avoid declaring class instance within loop, performance impact
00083 | MAJOR | QC-JAV000001[00083] Avoid declaring class instance within loop, performance impact
00083 | MAJOR | QC-JAV000001[00083] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\BuildStepMonitor.java 0 rule violation (XML file)

Module / class or interface : hudson.tasks.

#### File core\src\main\java\hudson\tasks\BuildTrigger.java 14 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.tasks.BuildTrigger

Module / class or interface : hudson.tasks.BuildTrigger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildTrigger | BuildTrigger(String;boolean) | 1 | 1
BuildTrigger | BuildTrigger(String;String) | 1 | 1
BuildTrigger | BuildTrigger(String;Result) | 2 | 3
BuildTrigger | BuildTrigger(List<AbstractProject>;Result) | 1 | 1
BuildTrigger | BuildTrigger(Collection<?extendsAbstractProject>;Result) | 1 | 1
String | getChildProjectsValue() | 1 | 1
Result | getThreshold() | 3 | 2
List<AbstractProject> | getChildProjects() | 1 | 1
List<AbstractProject> | getChildProjects(AbstractProject) | 1 | 1
List<AbstractProject> | getChildProjects(ItemGroup) | 1 | 1
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
boolean | hasSame(AbstractProject;Collection<?extendsAbstractProject>) | 1 | 2
boolean | hasSame(Collection<?extendsAbstractProject>) | 1 | 1
boolean | perform(AbstractBuild;Launcher;BuildListener) | 1 | 1
boolean | execute(AbstractBuild;BuildListener;BuildTrigger) | 1 | 1
boolean | execute(AbstractBuild;BuildListener) | 4 | 7
void | buildDependencyGraph(AbstractProject;DependencyGraph) | 2 | 1
boolean | needsToRunAfterFinalized() | 1 | 1
boolean | onJobRenamed(String;String) | 6 | 8
Object | readResolve() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 13

Line start | Criticity class | Rule
--- | --- | ---
00207 | MAJOR | QC-JAV000001[00207] Avoid declaring class instance within loop, performance impact
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact
00216 | MAJOR | QC-JAV000001[00216] Avoid declaring class instance within loop, performance impact
00217 | MAJOR | QC-JAV000001[00217] Avoid declaring class instance within loop, performance impact
00233 | MAJOR | QC-JAV000001[00233] Avoid declaring class instance within loop, performance impact
00233 | MAJOR | QC-JAV000001[00233] Avoid declaring class instance within loop, performance impact
00234 | MAJOR | QC-JAV000001[00234] Avoid declaring class instance within loop, performance impact
00283 | MAJOR | QC-JAVCWE481[00283] Assigning instead of comparing on childProjects="" (see http://cwe.mitre.org/data/definitions/481.html)
00329 | MAJOR | QC-JAV000001[00329] Avoid declaring class instance within loop, performance impact
00331 | MAJOR | QC-JAV000001[00331] Avoid declaring class instance within loop, performance impact
00335 | MAJOR | QC-JAV000001[00335] Avoid declaring class instance within loop, performance impact
00361 | MAJOR | QC-JAV000001[00361] Avoid declaring class instance within loop, performance impact
00366 | MAJOR | QC-JAV000001[00366] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\BuildWrapper.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<BuildWrapper> | hudson.tasks.BuildWrapper

Module / class or interface : hudson.tasks.BuildWrapper

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Environment | setUp(AbstractBuild;Launcher;BuildListener) | 3 | 2
Environment | setUp(Build;Launcher;BuildListener) | 1 | 1
Launcher | decorateLauncher(AbstractBuild;Launcher;BuildListener) | 1 | 1
OutputStream | decorateLogger(AbstractBuild;OutputStream) | 1 | 1
void | preCheckout(AbstractBuild;Launcher;BuildListener) | 1 | 0
Action | getProjectAction(AbstractProject) | 1 | 1
Collection<?extendsAction> | getProjectActions(AbstractProject) | 2 | 3
void | makeBuildVariables(AbstractBuild;Map<String,String>) | 1 | 0
void | makeSensitiveBuildVariables(AbstractBuild;Set<String>) | 1 | 0
DescriptorExtensionList<BuildWrapper,Descriptor<BuildWrapper>> | all() | 1 | 1

#### File core\src\main\java\hudson\tasks\BuildWrapperDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<BuildWrapper> | hudson.tasks.BuildWrapperDescriptor

Module / class or interface : hudson.tasks.BuildWrapperDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildWrapperDescriptor | BuildWrapperDescriptor(Class<?extendsBuildWrapper>) | 1 | 1
BuildWrapperDescriptor | BuildWrapperDescriptor() | 1 | 0
boolean | isApplicable(AbstractProject<?,?>) | 1 | 1

#### File core\src\main\java\hudson\tasks\BuildWrappers.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.BuildWrappers

Module / class or interface : hudson.tasks.BuildWrappers

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<Descriptor<BuildWrapper>> | getFor(AbstractProject<?,?>) | 5 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00063 | MAJOR | QC-JAV000001[00063] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\Builder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
BuildStepCompatibilityLayer | hudson.tasks.Builder

Module / class or interface : hudson.tasks.Builder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | prebuild(Build;BuildListener) | 1 | 1
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
Descriptor<Builder> | getDescriptor() | 1 | 1
DescriptorExtensionList<Builder,Descriptor<Builder>> | all() | 1 | 1

#### File core\src\main\java\hudson\tasks\CommandInterpreter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Builder | hudson.tasks.CommandInterpreter

Module / class or interface : hudson.tasks.CommandInterpreter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CommandInterpreter | CommandInterpreter(String) | 1 | 1
String | getCommand() | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;TaskListener) | 3 | 6
FilePath | createScriptFile(FilePath) | 1 | 1
String[] | buildCommandLine(FilePath) | 1 | 1
String | getContents() | 1 | 1
String | getFileExtension() | 1 | 1

#### File core\src\main\java\hudson\tasks\Fingerprinter.java 33 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.tasks.Fingerprinter

Module / class or interface : hudson.tasks.Fingerprinter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Fingerprinter | Fingerprinter(String;boolean) | 1 | 2
String | getTargets() | 1 | 1
boolean | getRecordBuildArtifacts() | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 4 | 7
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
void | buildDependencyGraph(AbstractProject;DependencyGraph) | 3 | 2
void | record(AbstractBuild<?,?>;BuildListener;Map<String,String>;String) | 4 | 14

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 31
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00085 | MAJOR | QC-JAVCWE493[00085] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00085 | MINOR | QC-JAVCWE500[00085] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00160 | MAJOR | QC-JAV000001[00160] Avoid declaring class instance within loop, performance impact
00160 | MAJOR | QC-JAV000001[00160] Avoid declaring class instance within loop, performance impact
00161 | MAJOR | QC-JAV000001[00161] Avoid declaring class instance within loop, performance impact
00162 | MAJOR | QC-JAV000001[00162] Avoid declaring class instance within loop, performance impact
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00164 | MAJOR | QC-JAV000001[00164] Avoid declaring class instance within loop, performance impact
00169 | MAJOR | QC-JAV000001[00169] Avoid declaring class instance within loop, performance impact
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00181 | MAJOR | QC-JAV000001[00181] Avoid declaring class instance within loop, performance impact
00182 | MAJOR | QC-JAV000001[00182] Avoid declaring class instance within loop, performance impact
00183 | MAJOR | QC-JAV000001[00183] Avoid declaring class instance within loop, performance impact
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00164 | MAJOR | QC-JAV000001[00164] Avoid declaring class instance within loop, performance impact
00169 | MAJOR | QC-JAV000001[00169] Avoid declaring class instance within loop, performance impact
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00181 | MAJOR | QC-JAV000001[00181] Avoid declaring class instance within loop, performance impact
00182 | MAJOR | QC-JAV000001[00182] Avoid declaring class instance within loop, performance impact
00183 | MAJOR | QC-JAV000001[00183] Avoid declaring class instance within loop, performance impact
00169 | MAJOR | QC-JAV000001[00169] Avoid declaring class instance within loop, performance impact
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00181 | MAJOR | QC-JAV000001[00181] Avoid declaring class instance within loop, performance impact
00182 | MAJOR | QC-JAV000001[00182] Avoid declaring class instance within loop, performance impact
00183 | MAJOR | QC-JAV000001[00183] Avoid declaring class instance within loop, performance impact
00254 | MAJOR | QC-JAV000001[00254] Avoid declaring class instance within loop, performance impact
00376 | MAJOR | QC-JAV000001[00376] Avoid declaring class instance within loop, performance impact
00379 | MAJOR | QC-JAV000001[00379] Avoid declaring class instance within loop, performance impact
00403 | MAJOR | QC-JAV000001[00403] Avoid declaring class instance within loop, performance impact
00406 | MAJOR | QC-JAV000001[00406] Avoid declaring class instance within loop, performance impact
00434 | MAJOR | QC-JAV000001[00434] Avoid declaring class instance within loop, performance impact
00437 | MAJOR | QC-JAV000001[00437] Avoid declaring class instance within loop, performance impact
00444 | MAJOR | QC-JAV000001[00444] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\LogRotator.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
BuildDiscarder | hudson.tasks.LogRotator

Module / class or interface : hudson.tasks.LogRotator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LogRotator | LogRotator(String;String;String;String) | 1 | 1
int | parse(String) | 2 | 3
LogRotator | LogRotator(int;int) | 1 | 1
LogRotator | LogRotator(int;int;int;int) | 1 | 4
void | perform(Job<?,?>) | 9 | 9
int | getDaysToKeep() | 1 | 1
int | getNumToKeep() | 1 | 1
int | getArtifactDaysToKeep() | 1 | 1
int | getArtifactNumToKeep() | 1 | 1
String | getDaysToKeepStr() | 1 | 1
String | getNumToKeepStr() | 1 | 1
String | getArtifactDaysToKeepStr() | 1 | 1
String | getArtifactNumToKeepStr() | 1 | 1
int | unbox(Integer) | 1 | 1
String | toString(Integer) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00165 | INFO | QC-JAV999996[00165] CPD de longueur 66 commencant en 721 (ligne 165) et 860 (ligne 186): if ( r . isKeepLog ( ) ) { LOGGER . log ( FINER , " { 0 } is not purged of artifacts because it''s marked as a keeper" , r ) ; continue ; } if ( r == lsb ) { LOGGER . log ( FINER , " { 0 } is not purged of artifacts because it''s the last successful build" , r ) ; continue ; } if ( r == lstb ) { LOGGER . log ( FINER , " { 0 } is not purged of artifacts because it''s the last stable build" , r ) ; continue ; } LOGGER

#### File core\src\main\java\hudson\tasks\Maven.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Builder | hudson.tasks.Maven

Module / class or interface : hudson.tasks.Maven

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Maven | Maven(String;String) | 1 | 1
Maven | Maven(String;String;String;String;String) | 1 | 1
Maven | Maven(String;String;String;String;String;boolean) | 1 | 1
Maven | Maven(String;String;String;String;String;boolean;SettingsProvider;GlobalSettingsProvider) | 1 | 8
String | getTargets() | 1 | 1
SettingsProvider | getSettings() | 1 | 1
GlobalSettingsProvider | getGlobalSettings() | 1 | 1
void | setUsePrivateRepository(boolean) | 1 | 1
boolean | usesPrivateRepository() | 1 | 1
MavenInstallation | getMaven() | 3 | 2
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 9 | 23
void | wrapUpArguments(ArgumentListBuilder;String;AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 0
void | buildEnvVars(EnvVars;MavenInstallation) | 3 | 4
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 12
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00126 | MAJOR | QC-JAVCWE493[00126] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00227 | MAJOR | QC-JAV000001[00227] Avoid declaring class instance within loop, performance impact
00229 | MAJOR | QC-JAV000001[00229] Avoid declaring class instance within loop, performance impact
00271 | MAJOR | QC-JAV000001[00271] Avoid declaring class instance within loop, performance impact
00275 | MAJOR | QC-JAV000001[00275] Avoid declaring class instance within loop, performance impact
00276 | MAJOR | QC-JAV000001[00276] Avoid declaring class instance within loop, performance impact
00278 | MAJOR | QC-JAV000001[00278] Avoid declaring class instance within loop, performance impact
00283 | MAJOR | QC-JAV000001[00283] Avoid declaring class instance within loop, performance impact
00295 | MAJOR | QC-JAV000001[00295] Avoid declaring class instance within loop, performance impact
00301 | MAJOR | QC-JAV000001[00301] Avoid declaring class instance within loop, performance impact
00307 | MAJOR | QC-JAV000001[00307] Avoid declaring class instance within loop, performance impact
00319 | MAJOR | QC-JAV000001[00319] Avoid declaring class instance within loop, performance impact
00324 | MAJOR | QC-JAV000001[00324] Avoid declaring class instance within loop, performance impact
00376 | MAJOR | QC-JAVCWE493[00376] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00376 | MINOR | QC-JAVCWE500[00376] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\tasks\Notifier.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Publisher | hudson.tasks.Notifier

Module / class or interface : hudson.tasks.Notifier

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Notifier | Notifier() | 1 | 0
BuildStepDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\tasks\Publisher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
BuildStepCompatibilityLayer | hudson.tasks.Publisher

Module / class or interface : hudson.tasks.Publisher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Publisher | Publisher() | 1 | 0
boolean | prebuild(Build;BuildListener) | 1 | 1
Action | getProjectAction(Project) | 1 | 1
boolean | needsToRunAfterFinalized() | 1 | 1
Descriptor<Publisher> | getDescriptor() | 1 | 1
DescriptorExtensionList<Publisher,Descriptor<Publisher>> | all() | 1 | 1

#### File core\src\main\java\hudson\tasks\Recorder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Publisher | hudson.tasks.Recorder

Module / class or interface : hudson.tasks.Recorder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Recorder | Recorder() | 1 | 0
BuildStepDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\tasks\Shell.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CommandInterpreter | hudson.tasks.Shell

Module / class or interface : hudson.tasks.Shell

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Shell | Shell(String) | 1 | 1
String | fixCrLf(String) | 1 | 3
String | addCrForNonASCII(String) | 3 | 1
String[] | buildCommandLine(FilePath) | 4 | 8
String | getContents() | 1 | 1
String | getFileExtension() | 1 | 1
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00062 | MAJOR | QC-JAVCWE481[00062] Assigning instead of comparing on idx=s.indexOf("\\r n") (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\tasks\UserAvatarResolver.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.UserAvatarResolver

Module / class or interface : hudson.tasks.UserAvatarResolver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | findAvatarFor(User;int;int) | 1 | 1
String | resolve(User;String) | 4 | 5
ExtensionList<UserAvatarResolver> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00093 | MAJOR | QC-JAV000001[00093] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\UserNameResolver.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.UserNameResolver

Module / class or interface : hudson.tasks.UserNameResolver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | findNameFor(User) | 1 | 1
String | resolve(User) | 3 | 3
ExtensionList<UserNameResolver> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00075 | MAJOR | QC-JAV000001[00075] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\_maven\Maven3MojoNote.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote | hudson.tasks._maven.Maven3MojoNote

Module / class or interface : hudson.tasks._maven.Maven3MojoNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Maven3MojoNote | Maven3MojoNote() | 1 | 0
ConsoleAnnotator | annotate(Object;MarkupText;int) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00067 | MAJOR | QC-JAVCWE493[00067] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00067 | MINOR | QC-JAVCWE500[00067] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\tasks\_maven\MavenConsoleAnnotator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LineTransformationOutputStream | hudson.tasks._maven.MavenConsoleAnnotator

Module / class or interface : hudson.tasks._maven.MavenConsoleAnnotator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenConsoleAnnotator | MavenConsoleAnnotator(OutputStream;Charset) | 1 | 2
void | eol(byte[];int) | 5 | 11
void | close() | 1 | 2

#### File core\src\main\java\hudson\tasks\_maven\MavenErrorNote.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote | hudson.tasks._maven.MavenErrorNote

Module / class or interface : hudson.tasks._maven.MavenErrorNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenErrorNote | MavenErrorNote() | 1 | 0
ConsoleAnnotator | annotate(Object;MarkupText;int) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00054 | MAJOR | QC-JAVCWE493[00054] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00054 | MINOR | QC-JAVCWE500[00054] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\tasks\_maven\MavenMojoNote.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote | hudson.tasks._maven.MavenMojoNote

Module / class or interface : hudson.tasks._maven.MavenMojoNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenMojoNote | MavenMojoNote() | 1 | 0
ConsoleAnnotator | annotate(Object;MarkupText;int) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00059 | MAJOR | QC-JAVCWE493[00059] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00059 | MINOR | QC-JAVCWE500[00059] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\tasks\_maven\MavenWarningNote.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ConsoleNote | hudson.tasks._maven.MavenWarningNote

Module / class or interface : hudson.tasks._maven.MavenWarningNote

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenWarningNote | MavenWarningNote() | 1 | 0
ConsoleAnnotator | annotate(Object;MarkupText;int) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00056 | MAJOR | QC-JAVCWE493[00056] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00056 | MINOR | QC-JAVCWE500[00056] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\tasks\junit\CaseResult.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestResult | hudson.tasks.junit.CaseResult

Module / class or interface : hudson.tasks.junit.CaseResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
float | parseTime(Element) | 2 | 3
CaseResult | CaseResult(SuiteResult;Element;String;boolean) | 2 | 13
String | possiblyTrimStdio(Collection<CaseResult>;boolean;CharSequence) | 6 | 6
CaseResult | CaseResult(SuiteResult;String;String) | 1 | 9
ClassResult | getParent() | 1 | 1
String | getError(Element) | 2 | 3
String | getErrorMessage(Element) | 3 | 4
boolean | isMarkedAsSkipped(Element) | 1 | 1
String | getDisplayName() | 1 | 1
String | getName() | 1 | 1
String | getTitle() | 1 | 1
float | getDuration() | 1 | 1
String | getSafeName() | 4 | 8
String | getClassName() | 1 | 1
String | getSimpleName() | 1 | 2
String | getPackageName() | 3 | 3
String | getFullName() | 1 | 1
int | getFailCount() | 3 | 2
int | getSkipCount() | 3 | 2
int | getPassCount() | 1 | 1
int | getFailedSince() | 6 | 3
Run<?,?> | getFailedSinceRun() | 1 | 1
int | getAge() | 5 | 4
String | getStdout() | 3 | 4
String | getStderr() | 3 | 4
CaseResult | getPreviousResult() | 3 | 4
TestResult | findCorrespondingResult(String) | 2 | 2
Collection<?extendsTestResult> | getFailedTests() | 1 | 1
Collection<?extendsTestResult> | getPassedTests() | 1 | 1
Collection<?extendsTestResult> | getSkippedTests() | 1 | 1
Collection<?extendshudson.tasks.test.TestResult> | singletonListOrEmpty(boolean) | 3 | 2
String | getErrorStackTrace() | 1 | 1
String | getErrorDetails() | 1 | 1
boolean | isPassed() | 1 | 1
boolean | isSkipped() | 1 | 1
SuiteResult | getSuiteResult() | 1 | 1
AbstractBuild<?,?> | getOwner() | 3 | 7
void | setParentSuiteResult(SuiteResult) | 1 | 1
void | freeze(SuiteResult) | 4 | 4
int | compareTo(CaseResult) | 1 | 1
Status | getStatus() | 5 | 5
void | setClass(ClassResult) | 1 | 1
void | replaceParent(SuiteResult) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00090 | MAJOR | QC-JAVCWE390[00090] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00247 | MAJOR | QC-JAVCWE481[00247] Assigning instead of comparing on safeName=uniquifyName(siblings,buf.toString()) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\tasks\junit\ClassResult.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TabulatedResult | hudson.tasks.junit.ClassResult

Module / class or interface : hudson.tasks.junit.ClassResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClassResult | ClassResult(PackageResult;String) | 1 | 2
AbstractBuild<?,?> | getOwner() | 1 | 1
PackageResult | getParent() | 1 | 1
ClassResult | getPreviousResult() | 4 | 5
hudson.tasks.test.TestResult | findCorrespondingResult(String) | 4 | 9
String | getTitle() | 1 | 1
String | getChildTitle() | 1 | 1
String | getName() | 3 | 3
String | getSafeName() | 2 | 2
CaseResult | getCaseResult(String) | 3 | 2
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 3 | 3
List<CaseResult> | getChildren() | 1 | 1
boolean | hasChildren() | 1 | 1
float | getDuration() | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
void | add(CaseResult) | 1 | 1
void | tally() | 6 | 4
void | freeze() | 6 | 5
String | getClassName() | 1 | 1
int | compareTo(ClassResult) | 1 | 1
String | getDisplayName() | 1 | 1
String | getFullName() | 1 | 1
String | getRelativePathFrom(TestObject) | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00179 | INFO | QC-JAV999996[00179] CPD de longueur 77 commencant en 687 (ligne 179) et 766 (ligne 198): ( ) { passCount = ( failCount = ( skipCount = 0 ) ) ; duration = 0 ; for ( CaseResult r : cases ) { r . setClass ( this ) ; if ( r . isSkipped ( ) ) { skipCount ++ ; } else if ( r . isPassed ( ) ) { passCount ++ ; } else { failCount ++ ; } duration += r . getDuration ( ) ; } }
00120 | MAJOR | QC-JAVCWE481[00120] Assigning instead of comparing on safeName=uniquifyName(parent.getChildren(),safe(getName())) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\tasks\junit\History.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.junit.History

Module / class or interface : hudson.tasks.junit.History

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
History | History(TestObject) | 1 | 1
TestObject | getTestObject() | 1 | 1
boolean | historyAvailable() | 3 | 2
List<TestResult> | getList(int;int) | 4 | 5
List<TestResult> | getList() | 1 | 1
Graph | getDurationGraph() | 1 | 1
Graph | getCountGraph() | 1 | 1
int | asInt(String;int) | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00098 | INFO | QC-JAV999996[00098] CPD de longueur 94 commencant en 467 (ligne 98) et 672 (ligne 135): { protected DataSetBuilder _ String , ChartLabel _ createDataSet ( ) { DataSetBuilder _ String , ChartLabel _ data = ( new DataSetBuilder _ String , ChartLabel _ ( ) ) ; List _ TestResult _ list ; try { list = getList ( Integer . parseInt ( Stapler . getCurrentRequest ( ) . getParameter ( "start" ) ) , Integer . parseInt ( Stapler . getCurrentRequest ( ) . getParameter ( "end" ) ) ) ; } catch ( NumberFormatException e ) { list = getList ( ) ; } for ( hudson
00082 | MAJOR | QC-JAV000001[00082] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\junit\JUnitParser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestResultParser | hudson.tasks.junit.JUnitParser

Module / class or interface : hudson.tasks.junit.JUnitParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JUnitParser | JUnitParser() | 1 | 1
JUnitParser | JUnitParser(boolean) | 1 | 1
String | getDisplayName() | 1 | 1
String | getTestResultLocationMessage() | 1 | 1
TestResult | parse(String;AbstractBuild;Launcher;TaskListener) | 2 | 5

#### File core\src\main\java\hudson\tasks\junit\JUnitResultArchiver.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.tasks.junit.JUnitResultArchiver

Module / class or interface : hudson.tasks.junit.JUnitResultArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JUnitResultArchiver | JUnitResultArchiver(String) | 1 | 1
JUnitResultArchiver | JUnitResultArchiver(String;DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>>) | 1 | 1
JUnitResultArchiver | JUnitResultArchiver(String;boolean;DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>>) | 1 | 3
TestResult | parse(String;AbstractBuild;Launcher;BuildListener) | 1 | 1
boolean | perform(AbstractBuild;Launcher;BuildListener) | 5 | 19
TestResult | parseResult(DirectoryScanner;long) | 1 | 1
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
String | getTestResults() | 1 | 1
DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> | getTestDataPublishers() | 1 | 1
Collection<Action> | getProjectActions(AbstractProject<?,?>) | 1 | 1
MatrixAggregator | createAggregator(MatrixBuild;Launcher;BuildListener) | 1 | 1
boolean | isKeepLongStdio() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00149 | MAJOR | QC-JAV000001[00149] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\junit\PackageResult.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MetaTabulatedResult | hudson.tasks.junit.PackageResult

Module / class or interface : hudson.tasks.junit.PackageResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PackageResult | PackageResult(hudson.tasks.junit.TestResult;String) | 1 | 2
AbstractBuild<?,?> | getOwner() | 1 | 1
hudson.tasks.junit.TestResult | getParent() | 1 | 1
String | getName() | 1 | 1
String | getSafeName() | 2 | 3
TestResult | findCorrespondingResult(String) | 8 | 12
String | getTitle() | 1 | 1
String | getChildTitle() | 1 | 1
float | getDuration() | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 3 | 3
ClassResult | getClassResult(String) | 1 | 1
Collection<ClassResult> | getChildren() | 1 | 1
boolean | hasChildren() | 1 | 2
List<CaseResult> | getFailedTests() | 3 | 2
List<CaseResult> | getFailedTestsSortedByAge() | 1 | 3
Collection<?extendshudson.tasks.test.TestResult> | getPassedTests() | 3 | 3
Collection<?extendsTestResult> | getSkippedTests() | 3 | 3
boolean | isPassed() | 1 | 1
void | add(CaseResult) | 2 | 5
void | tally() | 2 | 9
void | freeze() | 2 | 5
int | compareTo(PackageResult) | 1 | 1
String | getDisplayName() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00077 | MAJOR | QC-JAVCWE481[00077] Assigning instead of comparing on safeName=uniquifyName(siblings,safe(getName())) (see http://cwe.mitre.org/data/definitions/481.html)
00185 | MAJOR | QC-JAV000001[00185] Avoid declaring class instance within loop, performance impact
00213 | MAJOR | QC-JAV000001[00213] Avoid declaring class instance within loop, performance impact
00232 | MAJOR | QC-JAV000001[00232] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\junit\SuiteResult.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.junit.SuiteResult

Module / class or interface : hudson.tasks.junit.SuiteResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SuiteResult | SuiteResult(String;String;String) | 1 | 4
Map<String,CaseResult> | casesByName() | 3 | 2
List<SuiteResult> | parse(File;boolean) | 1 | 7
void | parseSuite(File;boolean;List<SuiteResult>;Element) | 3 | 3
SuiteResult | SuiteResult(File;Element;boolean) | 9 | 18
void | addCase(CaseResult) | 1 | 3
String | getName() | 1 | 1
float | getDuration() | 1 | 1
String | getStdout() | 1 | 1
String | getStderr() | 1 | 1
String | getFile() | 1 | 1
hudson.tasks.junit.TestResult | getParent() | 1 | 1
String | getTimestamp() | 1 | 1
String | getId() | 1 | 1
List<CaseResult> | getCases() | 1 | 1
SuiteResult | getPreviousResult() | 3 | 4
CaseResult | getCase(String) | 1 | 1
Set<String> | getClassNames() | 2 | 3
void | setParent(hudson.tasks.junit.TestResult) | 1 | 1
boolean | freeze(hudson.tasks.junit.TestResult) | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00188 | MAJOR | QC-JAV000001[00188] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\junit\TestAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.junit.TestAction

Module / class or interface : hudson.tasks.junit.TestAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | annotate(String) | 1 | 1

#### File core\src\main\java\hudson\tasks\junit\TestDataPublisher.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<TestDataPublisher> | hudson.tasks.junit.TestDataPublisher

Module / class or interface : hudson.tasks.junit.TestDataPublisher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestResultAction.Data | getTestData(AbstractBuild<?,?>;Launcher;BuildListener;TestResult) | 1 | 1
DescriptorExtensionList<TestDataPublisher,Descriptor<TestDataPublisher>> | all() | 1 | 1

#### File core\src\main\java\hudson\tasks\junit\TestObject.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractModelObject | hudson.tasks.junit.TestObject

Module / class or interface : hudson.tasks.junit.TestObject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractBuild<?,?> | getOwner() | 1 | 1
TestObject | getParent() | 1 | 1
String | getId() | 1 | 1
String | getUrl() | 1 | 1
TestResult | getTestResult() | 1 | 1
AbstractTestResultAction | getTestResultAction() | 1 | 1
List<TestAction> | getTestActions() | 1 | 1
TestObject | getPreviousResult() | 1 | 1
TestObject | getResultInBuild(AbstractBuild<?,?>) | 1 | 1
float | getDuration() | 1 | 1
String | getDurationString() | 1 | 1
String | getDescription() | 1 | 1
void | setDescription(String) | 1 | 1
Api | getApi() | 1 | 1
String | getName() | 1 | 1
String | getSafeName() | 1 | 1
String | getSearchUrl() | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
int | getTotalCount() | 1 | 1
History | getHistory() | 1 | 1

#### File core\src\main\java\hudson\tasks\junit\TestResult.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MetaTabulatedResult | hudson.tasks.junit.TestResult

Module / class or interface : hudson.tasks.junit.TestResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestResult | TestResult() | 1 | 1
TestResult | TestResult(long;DirectoryScanner) | 1 | 1
TestResult | TestResult(long;DirectoryScanner;boolean) | 1 | 2
TestObject | getParent() | 1 | 1
void | setParent(TestObject) | 1 | 1
TestResult | getTestResult() | 1 | 1
void | parse(long;DirectoryScanner) | 1 | 3
void | parse(long;File;String[]) | 5 | 6
void | parse(long;Iterable<File>) | 5 | 5
void | parsePossiblyEmpty(File) | 3 | 4
void | add(SuiteResult) | 3 | 2
boolean | strictEq(Object;Object) | 1 | 1
boolean | nullSafeEq(Object;Object) | 2 | 2
void | parse(File) | 4 | 3
String | getDisplayName() | 1 | 1
AbstractBuild<?,?> | getOwner() | 1 | 1
hudson.tasks.test.TestResult | findCorrespondingResult(String) | 13 | 14
String | getTitle() | 1 | 1
String | getChildTitle() | 1 | 1
float | getDuration() | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 3 | 2
int | getSkipCount() | 1 | 1
List<CaseResult> | getFailedTests() | 1 | 1
Collection<?extendshudson.tasks.test.TestResult> | getPassedTests() | 1 | 1
Collection<?extendshudson.tasks.test.TestResult> | getSkippedTests() | 1 | 1
int | getFailedSince() | 1 | 1
Run<?,?> | getFailedSinceRun() | 1 | 1
String | getStdout() | 2 | 4
String | getStderr() | 2 | 4
String | getErrorStackTrace() | 1 | 1
String | getErrorDetails() | 1 | 1
boolean | isPassed() | 1 | 1
Collection<PackageResult> | getChildren() | 1 | 1
boolean | hasChildren() | 1 | 1
Collection<SuiteResult> | getSuites() | 1 | 1
String | getName() | 1 | 1
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 4 | 4
PackageResult | byPackage(String) | 1 | 1
SuiteResult | getSuite(String) | 1 | 1
void | setParentAction(AbstractTestResultAction) | 1 | 2
AbstractTestResultAction | getParentAction() | 1 | 1
void | tally() | 4 | 12
void | freeze(TestResultAction) | 6 | 10

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 13
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00157 | INFO | QC-JAV999996[00157] CPD de longueur 66 commencant en 461 (ligne 157) et 603 (ligne 191): buildTime - 3000 ) _= reportFile . lastModified ( ) ) ) { parsePossiblyEmpty ( reportFile ) ; parsed = true ; } } if ( ! parsed ) { long localTime = System . currentTimeMillis ( ) ; if ( localTime _ ( buildTime - 1000 ) ) throw new AbortException ( "Clock on this slave is out of sync with the master , and therefore n" + ( "I can't figure out what test results are new and what are old . n" + "Please keep the slave clock in sync with the master . " ) ) ; File f = new
00569 | INFO | QC-JAV999996[00569] CPD de longueur 59 commencant en 2203 (ligne 569) et 2461 (ligne 616): = cr . getPackageName ( ) , spkg = safe ( pkg ) ; PackageResult pr = byPackage ( spkg ) ; if ( pr == null ) byPackages . put ( spkg , ( pr = ( new PackageResult ( this , pkg ) ) ) ) ; pr . add ( cr ) ; } } for
00155 | MAJOR | QC-JAV000001[00155] Avoid declaring class instance within loop, performance impact
00239 | MAJOR | QC-JAV000001[00239] Avoid declaring class instance within loop, performance impact
00563 | MAJOR | QC-JAV000001[00563] Avoid declaring class instance within loop, performance impact
00565 | MAJOR | QC-JAV000001[00565] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00570 | MAJOR | QC-JAV000001[00570] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00570 | MAJOR | QC-JAV000001[00570] Avoid declaring class instance within loop, performance impact
00610 | MAJOR | QC-JAV000001[00610] Avoid declaring class instance within loop, performance impact
00616 | MAJOR | QC-JAV000001[00616] Avoid declaring class instance within loop, performance impact
00617 | MAJOR | QC-JAV000001[00617] Avoid declaring class instance within loop, performance impact
00616 | MAJOR | QC-JAV000001[00616] Avoid declaring class instance within loop, performance impact
00617 | MAJOR | QC-JAV000001[00617] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\junit\TestResultAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractTestResultAction<TestResultAction> | hudson.tasks.junit.TestResultAction

Module / class or interface : hudson.tasks.junit.TestResultAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestResultAction | TestResultAction(AbstractBuild;TestResult;BuildListener) | 1 | 2
void | setResult(TestResult;BuildListener) | 1 | 7
XmlFile | getDataFile() | 1 | 1
TestResult | getResult() | 5 | 10
int | getFailCount() | 2 | 2
int | getSkipCount() | 2 | 2
int | getTotalCount() | 2 | 2
List<CaseResult> | getFailedTests() | 1 | 1
TestResult | load() | 1 | 6
Object | getTarget() | 1 | 1
List<TestAction> | getActions(TestObject) | 3 | 2
void | setData(List<Data>) | 1 | 1
Object | readResolve() | 2 | 3

#### File core\src\main\java\hudson\tasks\junit\XMLEntityResolver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ParserConfigurator | hudson.tasks.junit.XMLEntityResolver

Module / class or interface : hudson.tasks.junit.XMLEntityResolver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
InputSource | resolveEntity(String;String) | 4 | 1
void | configure(SAXReader;Object) | 2 | 1

#### File core\src\main\java\hudson\tasks\test\AbstractTestResultAction.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.test.AbstractTestResultAction

Module / class or interface : hudson.tasks.test.AbstractTestResultAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractTestResultAction | AbstractTestResultAction(AbstractBuild) | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
int | getTotalCount() | 1 | 1
String | getFailureDiffString() | 2 | 3
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1
String | getIconFileName() | 1 | 1
HealthReport | getBuildHealth() | 3 | 7
Api | getApi() | 1 | 1
Object | getResult() | 1 | 1
T | getPreviousResult() | 1 | 1
TestResult | findPreviousCorresponding(TestResult) | 2 | 4
TestResult | findCorrespondingResult(String) | 1 | 1
List<CaseResult> | getFailedTests() | 1 | 1
void | doGraph(StaplerRequest;StaplerResponse) | 3 | 4
void | doGraphMap(StaplerRequest;StaplerResponse) | 2 | 2
String | getTestResultPath(TestResult) | 1 | 1
Area | calcDefaultSize() | 3 | 3
CategoryDataset | buildDataSet(StaplerRequest) | 3 | 6
JFreeChart | createChart(StaplerRequest;CategoryDataset) | 1 | 24
String | getRelPath(StaplerRequest) | 2 | 3
String | getDescription(TestObject) | 1 | 1
void | setDescription(TestObject;String) | 1 | 1
Object | readResolve() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00165 | MAJOR | QC-JAV000001[00165] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\test\AggregatedTestResultAction.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractTestResultAction | hudson.tasks.test.AggregatedTestResultAction

Module / class or interface : hudson.tasks.test.AggregatedTestResultAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AggregatedTestResultAction | AggregatedTestResultAction(AbstractBuild) | 1 | 1
void | update(List<?extendsAbstractTestResultAction>) | 2 | 3
void | add(AbstractTestResultAction) | 1 | 4
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
int | getTotalCount() | 1 | 1
List<ChildReport> | getResult() | 1 | 1
List<CaseResult> | getFailedTests() | 3 | 2
List<ChildReport> | getChildReports() | 1 | 1
String | getChildName(AbstractTestResultAction) | 1 | 1
AbstractBuild<?,?> | resolveChild(Child) | 1 | 1
AbstractTestResultAction | getChildReport(Child) | 2 | 3
String | getDescription(TestObject) | 1 | 1
void | setDescription(TestObject;String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00110 | MAJOR | QC-JAV000001[00110] Avoid declaring class instance within loop, performance impact
00111 | MAJOR | QC-JAV000001[00111] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\test\AggregatedTestResultPublisher.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.tasks.test.AggregatedTestResultPublisher

Module / class or interface : hudson.tasks.test.AggregatedTestResultPublisher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AggregatedTestResultPublisher | AggregatedTestResultPublisher(String) | 1 | 1
AggregatedTestResultPublisher | AggregatedTestResultPublisher(String;boolean) | 1 | 2
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 2
BuildStepMonitor | getRequiredMonitorService() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9

Line start | Criticity class | Rule
--- | --- | ---
00156 | MAJOR | QC-JAV000001[00156] Avoid declaring class instance within loop, performance impact
00248 | MAJOR | QC-JAV000001[00248] Avoid declaring class instance within loop, performance impact
00251 | MAJOR | QC-JAV000001[00251] Avoid declaring class instance within loop, performance impact
00266 | MAJOR | QC-JAV000001[00266] Avoid declaring class instance within loop, performance impact
00268 | MAJOR | QC-JAV000001[00268] Avoid declaring class instance within loop, performance impact
00278 | MAJOR | QC-JAV000001[00278] Avoid declaring class instance within loop, performance impact
00266 | MAJOR | QC-JAV000001[00266] Avoid declaring class instance within loop, performance impact
00268 | MAJOR | QC-JAV000001[00268] Avoid declaring class instance within loop, performance impact
00278 | MAJOR | QC-JAV000001[00278] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\test\DefaultTestResultParserImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestResultParser | hudson.tasks.test.DefaultTestResultParserImpl

Module / class or interface : hudson.tasks.test.DefaultTestResultParserImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestResult | parse(List<File>;Launcher;TaskListener) | 1 | 1
TestResult | parse(String;AbstractBuild;Launcher;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\tasks\test\MatrixTestResult.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AggregatedTestResultAction | hudson.tasks.test.MatrixTestResult

Module / class or interface : hudson.tasks.test.MatrixTestResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MatrixTestResult | MatrixTestResult(MatrixBuild) | 1 | 1
String | getChildName(AbstractTestResultAction) | 1 | 1
AbstractBuild<?,?> | resolveChild(Child) | 1 | 2
String | getTestResultPath(TestResult) | 1 | 1

#### File core\src\main\java\hudson\tasks\test\MetaTabulatedResult.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TabulatedResult | hudson.tasks.test.MetaTabulatedResult

Module / class or interface : hudson.tasks.test.MetaTabulatedResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsTestResult> | getFailedTests() | 1 | 1

#### File core\src\main\java\hudson\tasks\test\SimpleCaseResult.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestResult | hudson.tasks.test.SimpleCaseResult

Module / class or interface : hudson.tasks.test.SimpleCaseResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SimpleCaseResult | SimpleCaseResult(float) | 1 | 1
SimpleCaseResult | SimpleCaseResult() | 1 | 1
void | setParentAction(AbstractTestResultAction) | 1 | 1
AbstractTestResultAction | getParentAction() | 1 | 1
TestObject | getParent() | 1 | 1
TestResult | findCorrespondingResult(String) | 2 | 2
Collection<?extendsTestResult> | getFailedTests() | 1 | 1
Collection<?extendsTestResult> | getPassedTests() | 1 | 1
Collection<?extendsTestResult> | getSkippedTests() | 1 | 1
boolean | isPassed() | 1 | 1
boolean | isSkipped() | 1 | 1
boolean | isFailed() | 1 | 1
float | getDuration() | 1 | 1
String | getName() | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
String | getTitle() | 1 | 1
String | getDisplayName() | 1 | 1
AbstractBuild<?,?> | getOwner() | 2 | 3
List<TestAction> | getTestActions() | 1 | 1

#### File core\src\main\java\hudson\tasks\test\TabulatedResult.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestResult | hudson.tasks.test.TabulatedResult

Module / class or interface : hudson.tasks.test.TabulatedResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsTestResult> | getChildren() | 1 | 1
boolean | hasChildren() | 1 | 1
String | getChildTitle() | 1 | 1

#### File core\src\main\java\hudson\tasks\test\TestObject.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
hudson.tasks.junit.TestObject | hudson.tasks.test.TestObject

Module / class or interface : hudson.tasks.test.TestObject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractBuild<?,?> | getOwner() | 1 | 1
TestObject | getParent() | 1 | 1
String | getId() | 3 | 5
String | getUrl() | 1 | 1
hudson.tasks.junit.TestResult | getTestResult() | 1 | 2
TestResult | getTopLevelTestResult() | 1 | 2
String | getRelativePathFrom(TestObject) | 8 | 18
AbstractTestResultAction | getTestResultAction() | 3 | 4
List<TestAction> | getTestActions() | 3 | 4
TestResult | getPreviousResult() | 1 | 1
TestResult | getResultInBuild(AbstractBuild<?,?>) | 1 | 1
TestResult | findCorrespondingResult(String) | 1 | 1
float | getDuration() | 1 | 1
String | getDurationString() | 1 | 1
String | getDescription() | 2 | 3
void | setDescription(String) | 2 | 2
Api | getApi() | 1 | 1
String | getName() | 1 | 1
String | getSafeName() | 1 | 1
String | getSearchUrl() | 1 | 1
String | uniquifyName(Collection<?extendsTestObject>;String) | 3 | 4
String | safe(String) | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
int | getTotalCount() | 1 | 1
History | getHistory() | 1 | 1
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 5 | 2
HttpResponse | doSubmitDescription(String) | 3 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00399 | MAJOR | QC-JAV000001[00399] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\test\TestResult.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestObject | hudson.tasks.test.TestResult

Module / class or interface : hudson.tasks.test.TestResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setParentAction(AbstractTestResultAction) | 1 | 0
AbstractTestResultAction | getParentAction() | 1 | 1
void | tally() | 1 | 0
void | setParent(TestObject) | 1 | 0
String | getTitle() | 1 | 1
Result | getBuildResult() | 3 | 2
float | getDuration() | 1 | 1
int | getPassCount() | 1 | 1
int | getFailCount() | 1 | 1
int | getSkipCount() | 1 | 1
TestResult | getPreviousResult() | 4 | 5
TestResult | getResultInBuild(AbstractBuild<?,?>) | 2 | 3
Collection<?extendsTestResult> | getFailedTests() | 1 | 1
Collection<?extendsTestResult> | getPassedTests() | 1 | 1
Collection<?extendsTestResult> | getSkippedTests() | 1 | 1
int | getFailedSince() | 1 | 1
Run<?,?> | getFailedSinceRun() | 1 | 1
String | getStdout() | 1 | 1
String | getStderr() | 1 | 1
String | getErrorStackTrace() | 1 | 1
String | getErrorDetails() | 1 | 1
boolean | isPassed() | 1 | 1
String | toPrettyString() | 1 | 10
String | annotate(String) | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00143 | MAJOR | QC-JAV000001[00143] Avoid declaring class instance within loop, performance impact
00145 | MAJOR | QC-JAV000001[00145] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tasks\test\TestResultAggregator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MatrixAggregator | hudson.tasks.test.TestResultAggregator

Module / class or interface : hudson.tasks.test.TestResultAggregator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestResultAggregator | TestResultAggregator(MatrixBuild;Launcher;BuildListener) | 1 | 1
boolean | startBuild() | 1 | 3
boolean | endRun(MatrixRun) | 2 | 3

#### File core\src\main\java\hudson\tasks\test\TestResultParser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.test.TestResultParser

Module / class or interface : hudson.tasks.test.TestResultParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDisplayName() | 1 | 1
String | getTestResultLocationMessage() | 1 | 1
ExtensionList<TestResultParser> | all() | 1 | 1
TestResult | parse(String;AbstractBuild;Launcher;TaskListener) | 1 | 1

#### File core\src\main\java\hudson\tasks\test\TestResultProjectAction.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.test.TestResultProjectAction

Module / class or interface : hudson.tasks.test.TestResultProjectAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestResultProjectAction | TestResultProjectAction(AbstractProject<?,?>) | 1 | 1
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1
AbstractTestResultAction | getLastTestResultAction() | 3 | 7
void | doTrend(StaplerRequest;StaplerResponse) | 3 | 3
void | doTrendMap(StaplerRequest;StaplerResponse) | 3 | 3
void | doFlipTrend(StaplerRequest;StaplerResponse) | 3 | 10

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tools\CommandInstaller.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ToolInstaller | hudson.tools.CommandInstaller

Module / class or interface : hudson.tools.CommandInstaller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CommandInstaller | CommandInstaller(String;String;String) | 1 | 3
String | fixCrLf(String) | 1 | 3
String | getCommand() | 1 | 1
String | getToolHome() | 1 | 1
FilePath | performInstallation(ToolInstallation;Node;TaskListener) | 2 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00066 | MAJOR | QC-JAVCWE481[00066] Assigning instead of comparing on idx=s.indexOf("\\r n") (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\tools\DownloadFromUrlInstaller.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ToolInstaller | hudson.tools.DownloadFromUrlInstaller

Module / class or interface : hudson.tools.DownloadFromUrlInstaller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DownloadFromUrlInstaller | DownloadFromUrlInstaller(String) | 1 | 2
boolean | isUpToDate(FilePath;Installable) | 1 | 2
Installable | getInstallable() | 3 | 2
FilePath | performInstallation(ToolInstallation;Node;TaskListener) | 5 | 11
FilePath | findPullUpDirectory(FilePath) | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4

Line start | Criticity class | Rule
--- | --- | ---
00160 | MAJOR | QC-JAVCWE493[00160] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00170 | MAJOR | QC-JAVCWE493[00170] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00174 | MAJOR | QC-JAVCWE493[00174] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00178 | MAJOR | QC-JAVCWE493[00178] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\tools\InstallSourceProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ToolProperty<ToolInstallation> | hudson.tools.InstallSourceProperty

Module / class or interface : hudson.tools.InstallSourceProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
InstallSourceProperty | InstallSourceProperty(List<?extendsToolInstaller>) | 2 | 1
void | setTool(ToolInstallation) | 2 | 2
Class<ToolInstallation> | type() | 1 | 1

#### File core\src\main\java\hudson\tools\InstallerTranslator.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ToolLocationTranslator | hudson.tools.InstallerTranslator

Module / class or interface : hudson.tools.InstallerTranslator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getToolHome(Node;ToolInstallation;TaskListener) | 4 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00051 | MAJOR | QC-JAV000001[00051] Avoid declaring class instance within loop, performance impact
00053 | MAJOR | QC-JAV000001[00053] Avoid declaring class instance within loop, performance impact
00053 | MAJOR | QC-JAV000001[00053] Avoid declaring class instance within loop, performance impact
00055 | MAJOR | QC-JAV000001[00055] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\tools\JDKInstaller.java 1 rule violations (XML file)

Module / class or interface : hudson.tools.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00085 | BLOCKER | QC-JAV999999[00085] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\hudson\\tools\\JDKInstaller.java near following tokens hudson . tools . JDKInstaller . Preference . * ; public class JDKInstaller extends ToolInstaller { public final String id ;

#### File core\src\main\java\hudson\tools\PropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<P> | hudson.tools.PropertyDescriptor

Module / class or interface : hudson.tools.PropertyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PropertyDescriptor | PropertyDescriptor(Class<?extendsP>) | 1 | 1
PropertyDescriptor | PropertyDescriptor() | 1 | 0
Class<P> | getP() | 1 | 1
boolean | isApplicable(Class<?extendsT>) | 1 | 2

#### File core\src\main\java\hudson\tools\ToolDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ToolInstallation> | hudson.tools.ToolDescriptor

Module / class or interface : hudson.tools.ToolDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
T[] | getInstallations() | 4 | 6
void | setInstallations(T) | 1 | 1
List<ToolPropertyDescriptor> | getPropertyDescriptors() | 1 | 1
List<?extendsToolInstaller> | getDefaultInstallers() | 1 | 1
DescribableList<ToolProperty<?>,ToolPropertyDescriptor> | getDefaultProperties() | 2 | 4
boolean | configure(StaplerRequest;JSONObject) | 1 | 2

#### File core\src\main\java\hudson\tools\ToolInstallation.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ToolInstallation> | hudson.tools.ToolInstallation

Module / class or interface : hudson.tools.ToolInstallation

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ToolInstallation | ToolInstallation(String;String) | 1 | 2
ToolInstallation | ToolInstallation(String;String;List<?extendsToolProperty<?>>) | 2 | 2
String | getName() | 1 | 1
String | getHome() | 1 | 1
void | buildEnvVars(EnvVars) | 1 | 0
DescribableList<ToolProperty<?>,ToolPropertyDescriptor> | getProperties() | 1 | 2
ToolInstallation | translate(Node;EnvVars;TaskListener) | 3 | 6
ToolInstallation | translate(AbstractBuild<?,?>;TaskListener) | 1 | 2
String | translateFor(Node;TaskListener) | 1 | 1
Object | readResolve() | 3 | 3
DescriptorExtensionList<ToolInstallation,ToolDescriptor<?>> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00224 | MAJOR | QC-JAVCWE481[00224] Assigning instead of comparing on s=oldHomeField(obj) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\tools\ToolInstaller.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tools.ToolInstaller

Module / class or interface : hudson.tools.ToolInstaller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ToolInstaller | ToolInstaller(String) | 1 | 1
void | setTool(ToolInstallation) | 1 | 1
String | getLabel() | 1 | 1
boolean | appliesTo(Node) | 1 | 2
FilePath | performInstallation(ToolInstallation;Node;TaskListener) | 1 | 1
FilePath | preferredLocation(ToolInstallation;Node) | 4 | 6
String | sanitize(String) | 1 | 1
ToolInstallerDescriptor<?> | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\tools\ToolInstallerDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ToolInstaller> | hudson.tools.ToolInstallerDescriptor

Module / class or interface : hudson.tools.ToolInstallerDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isApplicable(Class<?extendsToolInstallation>) | 1 | 1
DescriptorExtensionList<ToolInstaller,ToolInstallerDescriptor<?>> | all() | 1 | 1
List<ToolInstallerDescriptor<?>> | for_(Class<?extendsToolInstallation>) | 3 | 3

#### File core\src\main\java\hudson\tools\ToolLocationNodeProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NodeProperty<Node> | hudson.tools.ToolLocationNodeProperty

Module / class or interface : hudson.tools.ToolLocationNodeProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ToolLocationNodeProperty | ToolLocationNodeProperty(List<ToolLocation>) | 2 | 2
ToolLocationNodeProperty | ToolLocationNodeProperty(ToolLocation) | 1 | 1
List<ToolLocation> | getLocations() | 1 | 1
String | getHome(ToolInstallation) | 3 | 1
String | getToolHome(Node;ToolInstallation;TaskListener) | 5 | 6

#### File core\src\main\java\hudson\tools\ToolLocationTranslator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tools.ToolLocationTranslator

Module / class or interface : hudson.tools.ToolLocationTranslator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getToolHome(Node;ToolInstallation;TaskListener) | 1 | 1
ExtensionList<ToolLocationTranslator> | all() | 1 | 1

#### File core\src\main\java\hudson\tools\ToolProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tools.ToolProperty

Module / class or interface : hudson.tools.ToolProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setTool(T) | 1 | 1
ToolPropertyDescriptor | getDescriptor() | 1 | 1
Class<T> | type() | 1 | 1
DescriptorExtensionList<ToolProperty<?>,ToolPropertyDescriptor> | all() | 1 | 1

#### File core\src\main\java\hudson\tools\ToolPropertyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
PropertyDescriptor<ToolProperty<?>,ToolInstallation> | hudson.tools.ToolPropertyDescriptor

Module / class or interface : hudson.tools.ToolPropertyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ToolPropertyDescriptor | ToolPropertyDescriptor(Class<?extendsToolProperty<?>>) | 1 | 1
ToolPropertyDescriptor | ToolPropertyDescriptor() | 1 | 0

#### File core\src\main\java\hudson\tools\ZipExtractionInstaller.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ToolInstaller | hudson.tools.ZipExtractionInstaller

Module / class or interface : hudson.tools.ZipExtractionInstaller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ZipExtractionInstaller | ZipExtractionInstaller(String;String;String) | 1 | 3
String | getUrl() | 1 | 1
String | getSubdir() | 1 | 1
FilePath | performInstallation(ToolInstallation;Node;TaskListener) | 4 | 4

#### File core\src\main\java\hudson\triggers\SCMTrigger.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Trigger<SCMedItem> | hudson.triggers.SCMTrigger

Module / class or interface : hudson.triggers.SCMTrigger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SCMTrigger | SCMTrigger(String) | 1 | 1
SCMTrigger | SCMTrigger(String;boolean) | 1 | 2
boolean | isIgnorePostCommitHooks() | 1 | 1
void | run() | 1 | 1
void | run(Action[]) | 4 | 8
DescriptorImpl | getDescriptor() | 1 | 1
Collection<?extendsAction> | getProjectActions() | 1 | 1
File | getLogFile() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00166 | MAJOR | QC-JAVCWE493[00166] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00565 | MAJOR | QC-JAVCWE493[00565] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00565 | MINOR | QC-JAVCWE500[00565] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\triggers\SafeTimerTask.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TimerTask | hudson.triggers.SafeTimerTask

Module / class or interface : hudson.triggers.SafeTimerTask

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | run() | 1 | 4
void | doRun() | 1 | 1

#### File core\src\main\java\hudson\triggers\TimerTrigger.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Trigger<BuildableItem> | hudson.triggers.TimerTrigger

Module / class or interface : hudson.triggers.TimerTrigger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TimerTrigger | TimerTrigger(String) | 1 | 1
void | run() | 1 | 1

#### File core\src\main\java\hudson\triggers\Trigger.java 12 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.triggers.Trigger

Module / class or interface : hudson.triggers.Trigger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | start(J;boolean) | 1 | 3
void | run() | 1 | 0
void | stop() | 1 | 0
Action | getProjectAction() | 1 | 1
Collection<?extendsAction> | getProjectActions() | 2 | 3
TriggerDescriptor | getDescriptor() | 1 | 1
Trigger | Trigger(String) | 1 | 2
Trigger | Trigger() | 1 | 2
String | getSpec() | 1 | 1
Object | readResolve() | 1 | 5
void | checkTriggers(Calendar) | 6 | 3
void | init() | 4 | 3
DescriptorExtensionList<Trigger<?>,TriggerDescriptor> | all() | 1 | 1
List<TriggerDescriptor> | for_(Item) | 4 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00210 | MAJOR | QC-JAV000001[00210] Avoid declaring class instance within loop, performance impact
00254 | MAJOR | QC-JAV000001[00254] Avoid declaring class instance within loop, performance impact
00255 | MAJOR | QC-JAV000001[00255] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact
00255 | MAJOR | QC-JAV000001[00255] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact
00260 | BLOCKER | QC-JAVCWE572[00260] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
00284 | MAJOR | QC-JAVCWE493[00284] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00284 | MINOR | QC-JAVCWE500[00284] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00326 | MAJOR | QC-JAV000001[00326] Avoid declaring class instance within loop, performance impact
00327 | MAJOR | QC-JAV000001[00327] Avoid declaring class instance within loop, performance impact
00327 | MAJOR | QC-JAV000001[00327] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\triggers\TriggerDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<Trigger<?>> | hudson.triggers.TriggerDescriptor

Module / class or interface : hudson.triggers.TriggerDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TriggerDescriptor | TriggerDescriptor(Class<?extendsTrigger<?>>) | 1 | 1
TriggerDescriptor | TriggerDescriptor() | 1 | 0
boolean | isApplicable(Item) | 1 | 1

#### File core\src\main\java\hudson\triggers\Triggers.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.triggers.Triggers

Module / class or interface : hudson.triggers.Triggers

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<TriggerDescriptor> | getApplicableTriggers(Item) | 1 | 1

#### File core\src\main\java\hudson\util\AWTProblem.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.AWTProblem

Module / class or interface : hudson.util.AWTProblem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AWTProblem | AWTProblem(Throwable) | 1 | 1

#### File core\src\main\java\hudson\util\AbstractTaskListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.AbstractTaskListener

Module / class or interface : hudson.util.AbstractTaskListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | hyperlink(String;String) | 1 | 2

#### File core\src\main\java\hudson\util\AdaptedIterator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.AdaptedIterator

Module / class or interface : hudson.util.AdaptedIterator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AdaptedIterator | AdaptedIterator(Iterator<?extendsT>) | 1 | 1
AdaptedIterator | AdaptedIterator(Iterable<?extendsT>) | 1 | 1
boolean | hasNext() | 1 | 1
U | next() | 1 | 1
U | adapt(T) | 1 | 1
void | remove() | 1 | 1

#### File core\src\main\java\hudson\util\AdministrativeError.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | hudson.util.AdministrativeError

Module / class or interface : hudson.util.AdministrativeError

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AdministrativeError | AdministrativeError(String;String;String;Throwable) | 1 | 5
boolean | isActivated() | 1 | 1

#### File core\src\main\java\hudson\util\AlternativeUiTextProvider.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.AlternativeUiTextProvider

Module / class or interface : hudson.util.AlternativeUiTextProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionList<AlternativeUiTextProvider> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00087 | MAJOR | QC-JAV000001[00087] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\Area.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Area

Module / class or interface : hudson.util.Area

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Area | Area(int;int) | 1 | 2
Area | parse(String) | 2 | 3
int | area() | 1 | 1
String | toString() | 1 | 1

#### File core\src\main\java\hudson\util\ArgumentListBuilder.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ArgumentListBuilder

Module / class or interface : hudson.util.ArgumentListBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ArgumentListBuilder | ArgumentListBuilder() | 1 | 0
ArgumentListBuilder | ArgumentListBuilder(String) | 1 | 1
ArgumentListBuilder | add(Object) | 1 | 1
ArgumentListBuilder | add(Object;boolean) | 1 | 1
ArgumentListBuilder | add(File) | 1 | 1
ArgumentListBuilder | add(String) | 1 | 1
ArgumentListBuilder | add(String;boolean) | 3 | 2
ArgumentListBuilder | prepend(String) | 2 | 7
ArgumentListBuilder | addQuoted(String) | 1 | 1
ArgumentListBuilder | addQuoted(String;boolean) | 1 | 1
ArgumentListBuilder | add(String) | 2 | 2
ArgumentListBuilder | addTokenized(String) | 2 | 3
ArgumentListBuilder | addKeyValuePair(String;String;String;boolean) | 2 | 3
ArgumentListBuilder | addKeyValuePairs(String;Map<String,String>) | 2 | 2
ArgumentListBuilder | addKeyValuePairs(String;Map<String,String>;Set<String>) | 2 | 2
ArgumentListBuilder | addKeyValuePairsFromPropertyString(String;String;VariableResolver) | 3 | 3
ArgumentListBuilder | addKeyValuePairsFromPropertyString(String;String;VariableResolver;Set<String>) | 3 | 3
String[] | toCommandArray() | 1 | 1
ArgumentListBuilder | clone() | 1 | 4
void | clear() | 1 | 2
List<String> | toList() | 1 | 1
String | toStringWithQuote() | 5 | 5
ArgumentListBuilder | toWindowsCommand(boolean) | 5 | 8
ArgumentListBuilder | toWindowsCommand() | 1 | 1
boolean | startQuoting(StringBuilder;String;int) | 1 | 2
boolean | hasMaskedArguments() | 1 | 1
boolean[] | toMaskArray() | 2 | 5
void | addMasked(String) | 1 | 1
String | toString() | 6 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00197 | INFO | QC-JAV999996[00197] CPD de longueur 64 commencant en 698 (ligne 197) et 789 (ligne 221): IOException { if ( properties == null ) return this ; for ( Entry _ Object , Object _ entry : Util . loadProperties ( properties ) . entrySet ( ) ) { addKeyValuePair ( prefix , ( String ) entry . getKey ( ) , Util . replaceMacro ( entry . getValue ( ) . toString ( ) , vr ) , false
00261 | INFO | QC-JAV999996[00261] CPD de longueur 73 commencant en 1009 (ligne 261) et 1642 (ligne 384): buf . length ( ) _ 0 ) buf . append ( ' ' ) ; if ( ( arg . indexOf ( ' ' ) _= 0 ) || ( arg . length ( ) == 0 ) ) buf . append ( '"' ) . append ( arg ) . append ( '"' ) ; else buf . append ( arg ) ; } return buf . toString ( ) ; } public
00201 | MAJOR | QC-JAV000001[00201] Avoid declaring class instance within loop, performance impact
00225 | MAJOR | QC-JAV000001[00225] Avoid declaring class instance within loop, performance impact
00225 | MAJOR | QC-JAV000001[00225] Avoid declaring class instance within loop, performance impact
00380 | MAJOR | QC-JAV000001[00380] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\AtomicFileWriter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Writer | hudson.util.AtomicFileWriter

Module / class or interface : hudson.util.AtomicFileWriter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AtomicFileWriter | AtomicFileWriter(File) | 1 | 1
AtomicFileWriter | AtomicFileWriter(File;String) | 2 | 7
void | write(int) | 1 | 1
void | write(String;int;int) | 1 | 1
void | write(char;int;int) | 1 | 1
void | flush() | 1 | 1
void | close() | 1 | 1
void | abort() | 1 | 2
void | commit() | 2 | 4
void | finalize() | 1 | 2
File | getTemporaryFile() | 1 | 1

#### File core\src\main\java\hudson\util\ByteArrayOutputStream2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ByteArrayOutputStream | hudson.util.ByteArrayOutputStream2

Module / class or interface : hudson.util.ByteArrayOutputStream2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ByteArrayOutputStream2 | ByteArrayOutputStream2() | 1 | 0
ByteArrayOutputStream2 | ByteArrayOutputStream2(int) | 1 | 1
byte[] | getBuffer() | 1 | 1
void | readFrom(InputStream) | 3 | 3

#### File core\src\main\java\hudson\util\ByteBuffer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.ByteBuffer

Module / class or interface : hudson.util.ByteBuffer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | write(byte;int;int) | 1 | 3
void | write(int) | 1 | 2
long | length() | 1 | 1
void | ensureCapacity(int) | 2 | 4
String | toString() | 1 | 1
void | writeTo(OutputStream) | 1 | 1
InputStream | newInputStream() | 1 | 1

#### File core\src\main\java\hudson\util\CaseInsensitiveComparator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CaseInsensitiveComparator

Module / class or interface : hudson.util.CaseInsensitiveComparator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CaseInsensitiveComparator | CaseInsensitiveComparator() | 1 | 0
int | compare(String;String) | 1 | 1

#### File core\src\main\java\hudson\util\CharSpool.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Writer | hudson.util.CharSpool

Module / class or interface : hudson.util.CharSpool

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | write(char;int;int) | 1 | 6
void | renew() | 3 | 5
void | write(int) | 1 | 2
void | flush() | 1 | 0
void | close() | 1 | 0
void | writeTo(Writer) | 3 | 1

#### File core\src\main\java\hudson\util\CharacterEncodingFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CharacterEncodingFilter

Module / class or interface : hudson.util.CharacterEncodingFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 1 | 1
void | destroy() | 1 | 1
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 3 | 1
boolean | shouldSetCharacterEncoding(HttpServletRequest) | 5 | 6

#### File core\src\main\java\hudson\util\ChartUtil.java 14 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ChartUtil

Module / class or interface : hudson.util.ChartUtil

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | generateGraph(StaplerRequest;StaplerResponse;JFreeChart;Area) | 1 | 1
void | generateGraph(StaplerRequest;StaplerResponse;JFreeChart;int;int) | 1 | 1
void | generateClickableMap(StaplerRequest;StaplerResponse;JFreeChart;Area) | 1 | 1
void | generateClickableMap(StaplerRequest;StaplerResponse;JFreeChart;int;int) | 1 | 1
void | adjustChebyshev(CategoryDataset;NumberAxis) | 6 | 19

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6
MINOR | QC-JAVCWE500 | Static public field not marked final | 3
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00175 | INFO | QC-JAV999996[00175] CPD de longueur 62 commencant en 462 (ligne 175) et 613 (ligne 195): 0 ; i _ nRows ; i ++ ) { Comparable rowKey = dataset . getRowKey ( i ) ; for ( int j = 0 ; j _ nColumns ; j ++ ) { Comparable columnKey = dataset . getColumnKey ( j ) ; double n = dataset . getValue ( rowKey , columnKey ) . doubleValue ( ) ; sum
00056 | CRITICAL | QC-JAVCWE476[00056] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00082 | MAJOR | QC-JAVCWE493[00082] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00082 | MINOR | QC-JAVCWE500[00082] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00087 | MAJOR | QC-JAVCWE493[00087] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00087 | MINOR | QC-JAVCWE500[00087] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00176 | MAJOR | QC-JAV000001[00176] Avoid declaring class instance within loop, performance impact
00178 | MAJOR | QC-JAV000001[00178] Avoid declaring class instance within loop, performance impact
00178 | MAJOR | QC-JAV000001[00178] Avoid declaring class instance within loop, performance impact
00196 | MAJOR | QC-JAV000001[00196] Avoid declaring class instance within loop, performance impact
00198 | MAJOR | QC-JAV000001[00198] Avoid declaring class instance within loop, performance impact
00198 | MAJOR | QC-JAV000001[00198] Avoid declaring class instance within loop, performance impact
00225 | MAJOR | QC-JAVCWE493[00225] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00225 | MINOR | QC-JAVCWE500[00225] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\util\ChunkedInputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
InputStream | hudson.util.ChunkedInputStream

Module / class or interface : hudson.util.ChunkedInputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChunkedInputStream | ChunkedInputStream(InputStream) | 2 | 3
int | read() | 5 | 5
int | read(byte[];int;int) | 5 | 7
int | read(byte[]) | 1 | 1
void | readCRLF() | 2 | 3
void | nextChunk() | 3 | 6
int | getChunkSizeFromInputStream(InputStream) | 2 | 10
void | parseTrailerHeaders() | 1 | 1
void | close() | 2 | 0
void | exhaustInputStream(InputStream) | 1 | 2

#### File core\src\main\java\hudson\util\ChunkedOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.ChunkedOutputStream

Module / class or interface : hudson.util.ChunkedOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ChunkedOutputStream | ChunkedOutputStream(OutputStream;int) | 1 | 2
ChunkedOutputStream | ChunkedOutputStream(OutputStream) | 1 | 1
void | flushCache() | 2 | 5
void | flushCacheWithAppend(byte;int;int) | 1 | 6
void | writeClosingChunk() | 1 | 3
void | finish() | 2 | 3
void | write(int) | 2 | 3
void | write(byte) | 1 | 1
void | write(byte;int;int) | 3 | 3
void | flush() | 1 | 2
void | close() | 1 | 2

#### File core\src\main\java\hudson\util\ClasspathBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ClasspathBuilder

Module / class or interface : hudson.util.ClasspathBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClasspathBuilder | add(File) | 1 | 1
ClasspathBuilder | add(FilePath) | 1 | 1
ClasspathBuilder | add(String) | 1 | 2
ClasspathBuilder | addJarOf(Class) | 1 | 1
ClasspathBuilder | addAll(FilePath;String) | 2 | 2
String | toString() | 1 | 1

#### File core\src\main\java\hudson\util\ClockDifference.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ClockDifference

Module / class or interface : hudson.util.ClockDifference

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClockDifference | ClockDifference(long) | 1 | 1
boolean | isDangerous() | 1 | 1
long | abs() | 1 | 1
String | toString() | 4 | 6
String | toHtml() | 2 | 3
String | toHtml(Node) | 2 | 4
String | toHtml(ClockDifference) | 2 | 2

#### File core\src\main\java\hudson\util\ColorPalette.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ColorPalette

Module / class or interface : hudson.util.ColorPalette

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | apply(LineAndShapeRenderer) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00047 | MAJOR | QC-JAVCWE493[00047] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00047 | MINOR | QC-JAVCWE500[00047] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\util\ComboBoxModel.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ArrayList<String> | hudson.util.ComboBoxModel

Module / class or interface : hudson.util.ComboBoxModel

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ComboBoxModel | ComboBoxModel(int) | 1 | 1
ComboBoxModel | ComboBoxModel() | 1 | 0
ComboBoxModel | ComboBoxModel(Collection<?extendsString>) | 1 | 1
ComboBoxModel | ComboBoxModel(String) | 1 | 1
void | generateResponse(StaplerRequest;StaplerResponse;Object) | 1 | 3

#### File core\src\main\java\hudson\util\CompoundEnumeration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CompoundEnumeration

Module / class or interface : hudson.util.CompoundEnumeration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CompoundEnumeration | CompoundEnumeration(Enumeration) | 1 | 1
CompoundEnumeration | CompoundEnumeration(Iterable<Enumeration<?extendsT>>) | 1 | 1
boolean | hasMoreElements() | 1 | 2
T | nextElement() | 1 | 1

#### File core\src\main\java\hudson\util\CompressedFile.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CompressedFile

Module / class or interface : hudson.util.CompressedFile

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CompressedFile | CompressedFile(File) | 1 | 2
OutputStream | write() | 2 | 2
InputStream | read() | 3 | 3
String | loadAsString() | 5 | 11
void | compress() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00120 | MAJOR | QC-JAVCWE481[00120] Assigning instead of comparing on len=r.read(buf,0,buf.length) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\util\ConcurrentHashMapConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MapConverter | hudson.util.ConcurrentHashMapConverter

Module / class or interface : hudson.util.ConcurrentHashMapConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConcurrentHashMapConverter | ConcurrentHashMapConverter(XStream) | 1 | 1
ConcurrentHashMapConverter | ConcurrentHashMapConverter(Mapper;ReflectionProvider) | 1 | 2
boolean | canConvert(Class) | 1 | 1
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 3 | 3

#### File core\src\main\java\hudson\util\ConsistentHash.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ConsistentHash

Module / class or interface : hudson.util.ConsistentHash

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConsistentHash | ConsistentHash() | 1 | 1
ConsistentHash | ConsistentHash(int) | 1 | 1
ConsistentHash | ConsistentHash(Hash<T>) | 1 | 1
ConsistentHash | ConsistentHash(Hash<T>;int) | 1 | 3
int | countAllPoints() | 2 | 3
void | add(T) | 1 | 1
void | addAll(T) | 2 | 1
void | addAll(Collection<?extendsT>) | 2 | 1
void | remove(T) | 1 | 1
void | add(T;int) | 4 | 6
int | md5(String) | 2 | 8
int | b2i(byte) | 1 | 1
T | lookup(int) | 1 | 1
T | lookup(String) | 1 | 1
Iterable<T> | list(int) | 1 | 1
Iterable<T> | list(String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00116 | MAJOR | QC-JAV000001[00116] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\CopyOnWriteList.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CopyOnWriteList

Module / class or interface : hudson.util.CopyOnWriteList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CopyOnWriteList | CopyOnWriteList(List<E>) | 1 | 1
CopyOnWriteList | CopyOnWriteList(List<E>;boolean) | 1 | 1
CopyOnWriteList | CopyOnWriteList() | 1 | 1
void | add(E) | 1 | 3
void | addAll(Collection<?extendsE>) | 1 | 3
boolean | remove(E) | 1 | 4
Iterator<E> | iterator() | 1 | 2
void | replaceBy(CopyOnWriteList<?extendsE>) | 1 | 1
void | replaceBy(Collection<?extendsE>) | 1 | 1
void | replaceBy(E) | 1 | 1
void | clear() | 1 | 1
E[] | toArray(E[]) | 1 | 1
List<E> | getView() | 1 | 1
void | addAllTo(Collection<?superE>) | 1 | 1
E | get(int) | 1 | 1
boolean | isEmpty() | 1 | 1
int | size() | 1 | 1
boolean | contains(Object) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00119 | CRITICAL | QC-JAVCWE476[00119] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00193 | MAJOR | QC-JAV000001[00193] Avoid declaring class instance within loop, performance impact
00195 | MAJOR | QC-JAV000001[00195] Avoid declaring class instance within loop, performance impact
00198 | MAJOR | QC-JAV000001[00198] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\CopyOnWriteMap.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CopyOnWriteMap

Module / class or interface : hudson.util.CopyOnWriteMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CopyOnWriteMap | CopyOnWriteMap(Map<K,V>) | 1 | 1
CopyOnWriteMap | CopyOnWriteMap() | 1 | 1
void | update(Map<K,V>) | 1 | 2
void | replaceBy(Map<?extendsK,?extendsV>) | 1 | 4
int | size() | 1 | 1
boolean | isEmpty() | 1 | 1
boolean | containsKey(Object) | 1 | 1
boolean | containsValue(Object) | 1 | 1
V | get(Object) | 1 | 1
V | put(K;V) | 1 | 4
V | remove(Object) | 1 | 4
void | putAll(Map<?extendsK,?extendsV>) | 1 | 3
Map<K,V> | copy() | 1 | 1
void | clear() | 1 | 1
Set<K> | keySet() | 1 | 1
Collection<V> | values() | 1 | 1
Set<Entry<K,V>> | entrySet() | 1 | 1

#### File core\src\main\java\hudson\util\CyclicGraphDetector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.CyclicGraphDetector

Module / class or interface : hudson.util.CyclicGraphDetector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | run(Iterable<?extendsN>) | 2 | 1
List<N> | getSorted() | 1 | 1
Iterable<?extendsN> | getEdges(N) | 1 | 1
void | visit(N) | 5 | 9
void | detectedCycle(N) | 1 | 3
void | reactOnCycle(N;List<N>) | 1 | 1

#### File core\src\main\java\hudson\util\DaemonThreadFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.DaemonThreadFactory

Module / class or interface : hudson.util.DaemonThreadFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DaemonThreadFactory | DaemonThreadFactory() | 1 | 1
DaemonThreadFactory | DaemonThreadFactory(ThreadFactory) | 1 | 1
Thread | newThread(Runnable) | 1 | 3

#### File core\src\main\java\hudson\util\DataSetBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.DataSetBuilder

Module / class or interface : hudson.util.DataSetBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | add(Number;Row;Column) | 1 | 3
CategoryDataset | build() | 4 | 11

#### File core\src\main\java\hudson\util\DecodingStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FilterOutputStream | hudson.util.DecodingStream

Module / class or interface : hudson.util.DecodingStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DecodingStream | DecodingStream(OutputStream) | 1 | 1
void | write(int) | 2 | 4

#### File core\src\main\java\hudson\util\DelegatingOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.DelegatingOutputStream

Module / class or interface : hudson.util.DelegatingOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DelegatingOutputStream | DelegatingOutputStream(OutputStream) | 2 | 2
void | write(int) | 1 | 1
void | write(byte[]) | 1 | 1
void | write(byte[];int;int) | 1 | 1
void | flush() | 1 | 1
void | close() | 1 | 1

#### File core\src\main\java\hudson\util\DescribableList.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PersistedList<T> | hudson.util.DescribableList

Module / class or interface : hudson.util.DescribableList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescribableList | DescribableList() | 1 | 0
DescribableList | DescribableList(Owner) | 1 | 1
DescribableList | DescribableList(Saveable) | 1 | 1
DescribableList | DescribableList(Saveable;Collection<?extendsT>) | 1 | 2
void | setOwner(Owner) | 1 | 1
void | replace(T) | 1 | 3
T | getDynamic(String) | 3 | 3
T | get(D) | 3 | 2
boolean | contains(D) | 1 | 1
void | remove(D) | 3 | 0
Map<D,T> | toMap() | 1 | 1
void | rebuild(StaplerRequest;JSONObject;List<?extendsDescriptor<T>>) | 5 | 7
void | rebuild(StaplerRequest;JSONObject;List<?extendsDescriptor<T>>;String) | 1 | 1
void | rebuildHetero(StaplerRequest;JSONObject;Collection<?extendsDescriptor<T>>;String) | 1 | 1
void | buildDependencyGraph(AbstractProject;DependencyGraph) | 3 | 0
T[] | toArray(T[]) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 14

Line start | Criticity class | Rule
--- | --- | ---
00114 | MAJOR | QC-JAVCWE390[00114] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00164 | MAJOR | QC-JAV000001[00164] Avoid declaring class instance within loop, performance impact
00165 | MAJOR | QC-JAV000001[00165] Avoid declaring class instance within loop, performance impact
00166 | MAJOR | QC-JAV000001[00166] Avoid declaring class instance within loop, performance impact
00166 | MAJOR | QC-JAV000001[00166] Avoid declaring class instance within loop, performance impact
00170 | MAJOR | QC-JAV000001[00170] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAV000001[00171] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAV000001[00171] Avoid declaring class instance within loop, performance impact
00175 | MAJOR | QC-JAV000001[00175] Avoid declaring class instance within loop, performance impact
00176 | MAJOR | QC-JAV000001[00176] Avoid declaring class instance within loop, performance impact
00176 | MAJOR | QC-JAV000001[00176] Avoid declaring class instance within loop, performance impact
00211 | MAJOR | QC-JAV000001[00211] Avoid declaring class instance within loop, performance impact
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\DescriptorList.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<Descriptor<T>> | hudson.util.DescriptorList

Module / class or interface : hudson.util.DescriptorList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorList | DescriptorList(Descriptor<T>) | 1 | 2
DescriptorList | DescriptorList(Class<T>) | 1 | 2
Descriptor<T> | get(int) | 1 | 1
int | size() | 1 | 1
Iterator<Descriptor<T>> | iterator() | 1 | 1
boolean | add(Descriptor<T>) | 1 | 1
void | add(int;Descriptor<T>) | 1 | 1
boolean | remove(Object) | 1 | 1
List<Descriptor<T>> | store() | 3 | 2
T | newInstanceFromRadioList(JSONObject) | 2 | 3
T | newInstanceFromRadioList(JSONObject;String) | 1 | 1
Descriptor<T> | findByName(String) | 3 | 2
void | load(Class<?extendsDescribable>) | 1 | 2
Descriptor<T> | find(String) | 1 | 1

#### File core\src\main\java\hudson\util\Digester2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Digester | hudson.util.Digester2

Module / class or interface : hudson.util.Digester2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | addObjectCreate(String;Class) | 1 | 1

#### File core\src\main\java\hudson\util\DirScanner.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.DirScanner

Module / class or interface : hudson.util.DirScanner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | scan(File;FileVisitor) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00115 | MAJOR | QC-JAV000001[00115] Avoid declaring class instance within loop, performance impact
00119 | MAJOR | QC-JAV000001[00119] Avoid declaring class instance within loop, performance impact
00122 | MAJOR | QC-JAV000001[00122] Avoid declaring class instance within loop, performance impact
00129 | MAJOR | QC-JAV000001[00129] Avoid declaring class instance within loop, performance impact
00130 | MAJOR | QC-JAV000001[00130] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\DoubleLaunchChecker.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.DoubleLaunchChecker

Module / class or interface : hudson.util.DoubleLaunchChecker

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DoubleLaunchChecker | DoubleLaunchChecker() | 1 | 1
void | execute() | 2 | 8
String | getId() | 1 | 5
String | getCollidingId() | 1 | 1
void | schedule() | 2 | 3
void | doDynamic(StaplerRequest;StaplerResponse) | 1 | 2
void | doIgnore(StaplerRequest;StaplerResponse) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00132 | MAJOR | QC-JAVCWE390[00132] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\util\DualOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.DualOutputStream

Module / class or interface : hudson.util.DualOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DualOutputStream | DualOutputStream(OutputStream;OutputStream) | 1 | 2
void | write(int) | 1 | 2
void | write(byte[]) | 1 | 2
void | write(byte[];int;int) | 1 | 2
void | flush() | 1 | 2
void | close() | 1 | 2

#### File core\src\main\java\hudson\util\EditDistance.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.EditDistance

Module / class or interface : hudson.util.EditDistance

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | editDistance(String;String) | 1 | 1
String | findNearest(String;String[]) | 1 | 1
String | findNearest(String;Collection<String>) | 3 | 4
EditDistance | EditDistance(String;String) | 2 | 7
void | flip() | 1 | 3
int | min(int;int;int) | 1 | 1
int | calc() | 3 | 5

#### File core\src\main\java\hudson\util\EncodingStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FilterOutputStream | hudson.util.EncodingStream

Module / class or interface : hudson.util.EncodingStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EncodingStream | EncodingStream(OutputStream) | 1 | 1
void | write(int) | 1 | 2

#### File core\src\main\java\hudson\util\EnumConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.EnumConverter

Module / class or interface : hudson.util.EnumConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Object | convert(Class;Object) | 1 | 1

#### File core\src\main\java\hudson\util\ErrorObject.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ErrorObject

Module / class or interface : hudson.util.ErrorObject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | doDynamic(StaplerRequest;StaplerResponse) | 1 | 2

#### File core\src\main\java\hudson\util\ExceptionCatchingThreadFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ExceptionCatchingThreadFactory

Module / class or interface : hudson.util.ExceptionCatchingThreadFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExceptionCatchingThreadFactory | ExceptionCatchingThreadFactory() | 1 | 1
ExceptionCatchingThreadFactory | ExceptionCatchingThreadFactory(ThreadFactory) | 1 | 1
Thread | newThread(Runnable) | 1 | 3
void | uncaughtException(Thread;Throwable) | 1 | 1

#### File core\src\main\java\hudson\util\FileVisitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.FileVisitor

Module / class or interface : hudson.util.FileVisitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | visit(File;String) | 1 | 1
void | visitSymlink(File;String;String) | 1 | 1
boolean | understandsSymlink() | 1 | 1
FileVisitor | with(FileFilter) | 2 | 2

#### File core\src\main\java\hudson\util\FlushProofOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
DelegatingOutputStream | hudson.util.FlushProofOutputStream

Module / class or interface : hudson.util.FlushProofOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FlushProofOutputStream | FlushProofOutputStream(OutputStream) | 1 | 1
void | flush() | 1 | 0

#### File core\src\main\java\hudson\util\ForkOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.ForkOutputStream

Module / class or interface : hudson.util.ForkOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ForkOutputStream | ForkOutputStream(OutputStream;OutputStream) | 1 | 2
void | write(int) | 1 | 2
void | write(byte[]) | 1 | 2
void | write(byte[];int;int) | 1 | 2
void | flush() | 1 | 2
void | close() | 1 | 2

#### File core\src\main\java\hudson\util\FormApply.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.FormApply

Module / class or interface : hudson.util.FormApply

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HttpResponseException | success(String) | 1 | 1
boolean | isApply(StaplerRequest) | 1 | 1
HttpResponseException | applyResponse(String) | 1 | 1

#### File core\src\main\java\hudson\util\FormFieldValidator.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.FormFieldValidator

Module / class or interface : hudson.util.FormFieldValidator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FormFieldValidator | FormFieldValidator(StaplerRequest;StaplerResponse;boolean) | 1 | 1
FormFieldValidator | FormFieldValidator(StaplerRequest;StaplerResponse;Permission) | 1 | 1
FormFieldValidator | FormFieldValidator(Permission) | 1 | 1
FormFieldValidator | FormFieldValidator(StaplerRequest;StaplerResponse;AccessControlled;Permission) | 1 | 4
FormFieldValidator | FormFieldValidator(AccessControlled;Permission) | 1 | 1
void | process() | 4 | 3
void | check() | 1 | 1
File | getFileParameter(String) | 1 | 1
void | ok() | 1 | 1
void | respond(String) | 1 | 2
void | error(String) | 1 | 1
void | warning(String) | 1 | 1
void | ok(String) | 1 | 1
void | error(String;Object) | 1 | 1
void | warning(String;Object) | 1 | 1
void | ok(String;Object) | 1 | 1
void | errorWithMarkup(String) | 1 | 1
void | warningWithMarkup(String) | 1 | 1
void | okWithMarkup(String) | 1 | 1
void | _errorWithMarkup(String;String) | 3 | 3

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 4 | hudson.util.FormFieldValidator.Executable.check._dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 3 | hudson.util.FormFieldValidator.Executable.check.dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.f | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | hudson.util.FormFieldValidator.Executable.check.f\---hudson.util.FormFieldValidator.Executable.checkExecutable\------hudson.util.FormFieldValidator.Executable.checkExecutable1 |
| 1 | hudson.util.FormFieldValidator.Executable.checkExecutable1\---dummymethode\------hudson.util.FormFieldValidator.Executable.checkExecutable.exe |
|  |  | Security risk level : CRITICAL
No 2 |  |  |
| 3 | hudson.util.FormFieldValidator.Executable.check._dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | hudson.util.FormFieldValidator.Executable.check.dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.f | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.util.FormFieldValidator.Executable.check.f\---hudson.util.FormFieldValidator.Executable.checkExecutable\------hudson.util.FormFieldValidator.Executable.checkExecutable1 |
|  |  | Security risk level : CRITICAL
No 3 |  |  |
| 2 | hudson.util.FormFieldValidator.Executable.check._dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.util.FormFieldValidator.Executable.check.dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.f | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL
No 4 |  |  |
| 2 | hudson.util.FormFieldValidator.Executable.check._dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.util.FormFieldValidator.Executable.check.dir\---java.io.File\------hudson.util.FormFieldValidator.Executable.check.fexe | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00364 | INFO | QC-JAV999996[00364] CPD de longueur 63 commencant en 1337 (ligne 364) et 1622 (ligne 431): void check ( ) throws IOException , ServletException { String value = fixEmpty ( request . getParameter ( "value" ) ) ; AbstractProject _ ? , ? _ p = ( AbstractProject _ ? , ? _ ) subject ; if ( ( value == null ) || ( p == null ) ) { ok ( ) ; return ; } try
00271 | MAJOR | QC-JAVCWE481[00271] Assigning instead of comparing on line=in.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00548 | MAJOR | QC-JAV000001[00548] Avoid declaring class instance within loop, performance impact
00550 | MAJOR | QC-JAV000001[00550] Avoid declaring class instance within loop, performance impact
00556 | MAJOR | QC-JAV000001[00556] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\FormValidation.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
IOException | hudson.util.FormValidation

Module / class or interface : hudson.util.FormValidation

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FormValidation | error(String) | 1 | 1
FormValidation | warning(String) | 1 | 1
FormValidation | ok(String) | 1 | 1
FormValidation | ok() | 1 | 1
FormValidation | error(String;Object) | 1 | 1
FormValidation | warning(String;Object) | 1 | 1
FormValidation | ok(String;Object) | 1 | 1
FormValidation | error(Throwable;String) | 1 | 1
FormValidation | warning(Throwable;String) | 1 | 1
FormValidation | _error(Kind;Throwable;String) | 2 | 2
FormValidation | error(Throwable;String;Object) | 1 | 1
FormValidation | warning(Throwable;String;Object) | 1 | 1
FormValidation | errorWithMarkup(String) | 1 | 1
FormValidation | warningWithMarkup(String) | 1 | 1
FormValidation | okWithMarkup(String) | 1 | 1
FormValidation | _errorWithMarkup(String;Kind) | 2 | 2
FormValidation | respond(Kind;String) | 1 | 1
FormValidation | validateExecutable(String) | 1 | 1
FormValidation | validateExecutable(String;FileValidator) | 9 | 14
FormValidation | validateNonNegativeInteger(String) | 2 | 3
FormValidation | validatePositiveInteger(String) | 2 | 3
FormValidation | validateRequired(String) | 2 | 2
FormValidation | validateBase64(String;boolean;boolean;String) | 3 | 6
FormValidation | FormValidation(Kind) | 1 | 1
FormValidation | FormValidation(Kind;String) | 1 | 2
void | generateResponse(StaplerRequest;StaplerResponse;Object) | 1 | 1
String | renderHtml() | 1 | 1
void | respond(StaplerResponse;String) | 1 | 2

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 2 | hudson.util.FormValidation.validateExecutable._dir\---java.io.File\------hudson.util.FormValidation.validateExecutable.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.util.FormValidation.validateExecutable.dir\---java.io.File\------hudson.util.FormValidation.validateExecutable.f | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL
No 2 |  |  |
| 2 | hudson.util.FormValidation.validateExecutable._dir\---java.io.File\------hudson.util.FormValidation.validateExecutable.dir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.util.FormValidation.validateExecutable.dir\---java.io.File\------hudson.util.FormValidation.validateExecutable.fexe | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00324 | MAJOR | QC-JAV000001[00324] Avoid declaring class instance within loop, performance impact
00326 | MAJOR | QC-JAV000001[00326] Avoid declaring class instance within loop, performance impact
00329 | MAJOR | QC-JAV000001[00329] Avoid declaring class instance within loop, performance impact
00434 | MAJOR | QC-JAVCWE481[00434] Assigning instead of comparing on line=in.readLine() (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\util\Function1.java 0 rule violation (XML file)

Module / class or interface : hudson.util.Function1

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
R | call(P1) | 1 | 1

#### File core\src\main\java\hudson\util\Futures.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Futures

Module / class or interface : hudson.util.Futures

#### File core\src\main\java\hudson\util\Graph.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Graph

Module / class or interface : hudson.util.Graph

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Graph | Graph(long;int;int) | 1 | 3
Graph | Graph(Calendar;int;int) | 1 | 1
JFreeChart | createGraph() | 1 | 1
BufferedImage | render(StaplerRequest;ChartRenderingInfo) | 4 | 6
void | doPng(StaplerRequest;StaplerResponse) | 3 | 8
void | doMap(StaplerRequest;StaplerResponse) | 2 | 5

#### File core\src\main\java\hudson\util\HeadBufferingStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FilterInputStream | hudson.util.HeadBufferingStream

Module / class or interface : hudson.util.HeadBufferingStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HeadBufferingStream | HeadBufferingStream(InputStream;int) | 1 | 3
int | read() | 2 | 3
int | read(byte;int;int) | 3 | 4
int | space() | 1 | 1
void | fillSide() | 2 | 2
byte[] | getSideBuffer() | 1 | 1

#### File core\src\main\java\hudson\util\HeapSpaceStringConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractSingleValueConverter | hudson.util.HeapSpaceStringConverter

Module / class or interface : hudson.util.HeapSpaceStringConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | canConvert(Class) | 1 | 1
Object | fromString(String) | 1 | 1

#### File core\src\main\java\hudson\util\HexBinaryConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.HexBinaryConverter

Module / class or interface : hudson.util.HexBinaryConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | canConvert(Class) | 1 | 1
void | marshal(Object;HierarchicalStreamWriter;MarshallingContext) | 1 | 2
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 1 | 2

#### File core\src\main\java\hudson\util\HttpResponses.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
org.kohsuke.stapler.HttpResponses | hudson.util.HttpResponses

Module / class or interface : hudson.util.HttpResponses

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HttpResponse | staticResource(File) | 1 | 1

#### File core\src\main\java\hudson\util\HudsonFailedToLoad.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.HudsonFailedToLoad

Module / class or interface : hudson.util.HudsonFailedToLoad

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HudsonFailedToLoad | HudsonFailedToLoad(Throwable) | 1 | 1
String | getStackTrace() | 1 | 1

#### File core\src\main\java\hudson\util\HudsonIsLoading.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.HudsonIsLoading

Module / class or interface : hudson.util.HudsonIsLoading

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | doDynamic(StaplerRequest;StaplerResponse) | 1 | 2

#### File core\src\main\java\hudson\util\HudsonIsRestarting.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.HudsonIsRestarting

Module / class or interface : hudson.util.HudsonIsRestarting

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | doDynamic(StaplerRequest;StaplerResponse) | 1 | 2

#### File core\src\main\java\hudson\util\IOException2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
IOException | hudson.util.IOException2

Module / class or interface : hudson.util.IOException2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
IOException2 | IOException2(Throwable) | 1 | 2
IOException2 | IOException2(String;Throwable) | 1 | 2
Throwable | getCause() | 1 | 1

#### File core\src\main\java\hudson\util\IOUtils.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
org.apache.commons.io.IOUtils | hudson.util.IOUtils

Module / class or interface : hudson.util.IOUtils

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | drain(InputStream) | 1 | 2
void | copy(File;OutputStream) | 1 | 3
void | copy(InputStream;File) | 1 | 3
File | mkdirs(File) | 3 | 4
InputStream | skip(InputStream;long) | 1 | 5
File | absolutize(File;String) | 2 | 2
boolean | isAbsolute(String) | 1 | 2
int | mode(File) | 2 | 2
String | readFirstLine(InputStream;String) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00056 | MAJOR | QC-JAVCWE390[00056] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\util\IncompatibleAntVersionDetected.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.IncompatibleAntVersionDetected

Module / class or interface : hudson.util.IncompatibleAntVersionDetected

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
IncompatibleAntVersionDetected | IncompatibleAntVersionDetected(Class) | 1 | 1
URL | getWhereAntIsLoaded() | 1 | 1

#### File core\src\main\java\hudson\util\IncompatibleServletVersionDetected.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.IncompatibleServletVersionDetected

Module / class or interface : hudson.util.IncompatibleServletVersionDetected

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
IncompatibleServletVersionDetected | IncompatibleServletVersionDetected(Class) | 1 | 1
URL | getWhereServletIsLoaded() | 1 | 1

#### File core\src\main\java\hudson\util\IncompatibleVMDetected.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.IncompatibleVMDetected

Module / class or interface : hudson.util.IncompatibleVMDetected

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Map | getSystemProperties() | 1 | 1

#### File core\src\main\java\hudson\util\InsufficientPermissionDetected.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.InsufficientPermissionDetected

Module / class or interface : hudson.util.InsufficientPermissionDetected

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
InsufficientPermissionDetected | InsufficientPermissionDetected(SecurityException) | 1 | 1
String | getExceptionTrace() | 1 | 1

#### File core\src\main\java\hudson\util\InterceptingProxy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.InterceptingProxy

Module / class or interface : hudson.util.InterceptingProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Object | call(Object;Method;Object[]) | 1 | 1

#### File core\src\main\java\hudson\util\InvocationInterceptor.java 0 rule violation (XML file)

Module / class or interface : hudson.util.InvocationInterceptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Object | invoke(Object;Method;Object[];InvocationHandler) | 1 | 1

#### File core\src\main\java\hudson\util\Iterators.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Iterators

Module / class or interface : hudson.util.Iterators

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<Integer> | sequence(int;int;int) | 2 | 3
List<Integer> | sequence(int;int) | 1 | 1
List<Integer> | reverseSequence(int;int;int) | 1 | 1
List<Integer> | reverseSequence(int;int) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00108 | MAJOR | QC-JAV000001[00108] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\JNADoublyLoaded.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonFailedToLoad | hudson.util.JNADoublyLoaded

Module / class or interface : hudson.util.JNADoublyLoaded

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JNADoublyLoaded | JNADoublyLoaded(Throwable) | 1 | 1

#### File core\src\main\java\hudson\util\JVMBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.JVMBuilder

Module / class or interface : hudson.util.JVMBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClasspathBuilder | classpath() | 1 | 1
JVMBuilder | systemProperty(String;String) | 1 | 2
Map<String,String> | systemProperties() | 1 | 1
JVMBuilder | systemProperties(Map<String,String>) | 2 | 2
ArgumentListBuilder | args() | 1 | 1
ArgumentListBuilder | vmopts() | 1 | 1
JVMBuilder | pwd(FilePath) | 1 | 2
JVMBuilder | debug(int) | 1 | 2
JVMBuilder | pwd(File) | 1 | 1
JVMBuilder | mainClass(String) | 1 | 2
JVMBuilder | mainClass(Class) | 1 | 1
ArgumentListBuilder | toFullArguments() | 1 | 8
ProcStarter | launch(Launcher) | 1 | 1

#### File core\src\main\java\hudson\util\JenkinsReloadFailed.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.JenkinsReloadFailed

Module / class or interface : hudson.util.JenkinsReloadFailed

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JenkinsReloadFailed | JenkinsReloadFailed(Throwable) | 1 | 1

#### File core\src\main\java\hudson\util\KeyedDataStorage.java 13 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.KeyedDataStorage

Module / class or interface : hudson.util.KeyedDataStorage

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
T | getOrCreate(String;P) | 1 | 1
T | get(String) | 1 | 1
T | get(String;boolean;P) | 6 | 7
T | load(String) | 1 | 1
T | create(String;P) | 1 | 1
void | resetPerformanceStats() | 1 | 4
String | getPerformanceStats() | 1 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 13

Line start | Criticity class | Rule
--- | --- | ---
00125 | MAJOR | QC-JAV000001[00125] Avoid declaring class instance within loop, performance impact
00127 | MAJOR | QC-JAV000001[00127] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact
00138 | MAJOR | QC-JAV000001[00138] Avoid declaring class instance within loop, performance impact
00145 | MAJOR | QC-JAV000001[00145] Avoid declaring class instance within loop, performance impact
00145 | MAJOR | QC-JAV000001[00145] Avoid declaring class instance within loop, performance impact
00150 | MAJOR | QC-JAV000001[00150] Avoid declaring class instance within loop, performance impact
00160 | MAJOR | QC-JAV000001[00160] Avoid declaring class instance within loop, performance impact
00171 | MAJOR | QC-JAV000001[00171] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\LRUStringConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractSingleValueConverter | hudson.util.LRUStringConverter

Module / class or interface : hudson.util.LRUStringConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LRUStringConverter | LRUStringConverter() | 1 | 1
LRUStringConverter | LRUStringConverter(int) | 1 | 1
boolean | canConvert(Class) | 1 | 1
Object | fromString(String) | 2 | 4

#### File core\src\main\java\hudson\util\LineEndNormalizingWriter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FilterWriter | hudson.util.LineEndNormalizingWriter

Module / class or interface : hudson.util.LineEndNormalizingWriter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LineEndNormalizingWriter | LineEndNormalizingWriter(Writer) | 1 | 1
void | write(char) | 1 | 1
void | write(String) | 1 | 1
void | write(int) | 3 | 3
void | write(char;int;int) | 3 | 7
void | write(String;int;int) | 3 | 7

#### File core\src\main\java\hudson\util\ListBoxModel.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ArrayList<ListBoxModel.Option> | hudson.util.ListBoxModel

Module / class or interface : hudson.util.ListBoxModel

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ListBoxModel | ListBoxModel(int) | 1 | 1
ListBoxModel | ListBoxModel() | 1 | 0
ListBoxModel | ListBoxModel(Collection<Option>) | 1 | 1
ListBoxModel | ListBoxModel(Option) | 1 | 1
void | add(String;String) | 1 | 1
void | add(ModelObject;String) | 1 | 1
ListBoxModel | add(String) | 1 | 2
void | writeTo(StaplerRequest;StaplerResponse) | 1 | 1
void | generateResponse(StaplerRequest;StaplerResponse;Object) | 1 | 1
Option[] | values() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3

Line start | Criticity class | Rule
--- | --- | ---
00102 | MAJOR | QC-JAVCWE493[00102] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00107 | MAJOR | QC-JAVCWE493[00107] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00113 | MAJOR | QC-JAVCWE493[00113] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\util\LogTaskListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractTaskListener | hudson.util.LogTaskListener

Module / class or interface : hudson.util.LogTaskListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LogTaskListener | LogTaskListener(Logger;Level) | 1 | 1
PrintStream | getLogger() | 1 | 1
PrintWriter | error(String) | 1 | 1
PrintWriter | error(String;Object) | 1 | 1
PrintWriter | fatalError(String) | 1 | 1
PrintWriter | fatalError(String;Object) | 1 | 1
void | annotate(ConsoleNote) | 1 | 0
void | close() | 1 | 1

#### File core\src\main\java\hudson\util\MaskingClassLoader.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ClassLoader | hudson.util.MaskingClassLoader

Module / class or interface : hudson.util.MaskingClassLoader

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MaskingClassLoader | MaskingClassLoader(ClassLoader;String) | 1 | 1
MaskingClassLoader | MaskingClassLoader(ClassLoader;Collection<String>) | 1 | 2
Class<?> | loadClass(String;boolean) | 3 | 2
void | add(String) | 1 | 1

#### File core\src\main\java\hudson\util\Memoizer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Memoizer

Module / class or interface : hudson.util.Memoizer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
V | get(K) | 3 | 7
V | compute(K) | 1 | 1
void | clear() | 1 | 1
Iterable<V> | values() | 1 | 1

#### File core\src\main\java\hudson\util\MultipartFormDataParser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.MultipartFormDataParser

Module / class or interface : hudson.util.MultipartFormDataParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MultipartFormDataParser | MultipartFormDataParser(HttpServletRequest) | 2 | 2
String | get(String) | 2 | 3
FileItem | getFileItem(String) | 1 | 1
void | cleanUp() | 2 | 1

#### File core\src\main\java\hudson\util\NoHomeDir.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.NoHomeDir

Module / class or interface : hudson.util.NoHomeDir

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NoHomeDir | NoHomeDir(File) | 1 | 1

#### File core\src\main\java\hudson\util\NoOverlapCategoryAxis.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CategoryAxis | hudson.util.NoOverlapCategoryAxis

Module / class or interface : hudson.util.NoOverlapCategoryAxis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NoOverlapCategoryAxis | NoOverlapCategoryAxis(String) | 1 | 1
AxisState | drawCategoryLabels(Graphics2D;Rectangle2D;Rectangle2D;RectangleEdge;AxisState;PlotRenderingInfo) | 7 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00124 | INFO | QC-JAV999996[00124] CPD de longueur 53 commencant en 698 (ligne 124) et 756 (ligne 128): ( g2 , ( float ) anchorPoint . getX ( ) , ( float ) anchorPoint . getY ( ) , position . getLabelAnchor ( ) , ( float ) anchorPoint . getX ( ) , ( float ) anchorPoint . getY ( ) , position . getAngle ( ) ) ; Shape
00076 | MAJOR | QC-JAV000001[00076] Avoid declaring class instance within loop, performance impact
00076 | MAJOR | QC-JAV000001[00076] Avoid declaring class instance within loop, performance impact
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact
00118 | MAJOR | QC-JAV000001[00118] Avoid declaring class instance within loop, performance impact
00121 | MAJOR | QC-JAV000001[00121] Avoid declaring class instance within loop, performance impact
00123 | MAJOR | QC-JAV000001[00123] Avoid declaring class instance within loop, performance impact
00128 | MAJOR | QC-JAV000001[00128] Avoid declaring class instance within loop, performance impact
00133 | MAJOR | QC-JAV000001[00133] Avoid declaring class instance within loop, performance impact
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\NoTempDir.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ErrorObject | hudson.util.NoTempDir

Module / class or interface : hudson.util.NoTempDir

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NoTempDir | NoTempDir(IOException) | 1 | 1
String | getStackTrace() | 1 | 1
String | getTempDir() | 1 | 1

#### File core\src\main\java\hudson\util\NullStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.NullStream

Module / class or interface : hudson.util.NullStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NullStream | NullStream() | 1 | 0
void | write(byte) | 1 | 0
void | write(byte;int;int) | 1 | 0
void | write(int) | 1 | 0

#### File core\src\main\java\hudson\util\OneShotEvent.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.OneShotEvent

Module / class or interface : hudson.util.OneShotEvent

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
OneShotEvent | OneShotEvent() | 1 | 1
OneShotEvent | OneShotEvent(Object) | 1 | 1
void | signal() | 2 | 3
void | block() | 1 | 1
void | block(long) | 2 | 1
boolean | isSignaled() | 1 | 1

#### File core\src\main\java\hudson\util\PackedMap.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMap<K,V> | hudson.util.PackedMap

Module / class or interface : hudson.util.PackedMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PackedMap | PackedMap(Map<?extendsK,?extendsV>) | 2 | 4
Set<Entry<K,V>> | entrySet() | 1 | 1
boolean | containsKey(Object) | 3 | 4
V | get(Object) | 3 | 4
Collection<V> | values() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\PersistedList.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.PersistedList

Module / class or interface : hudson.util.PersistedList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PersistedList | PersistedList() | 1 | 0
PersistedList | PersistedList(Collection<?extendsT>) | 1 | 1
PersistedList | PersistedList(Saveable) | 1 | 1
void | setOwner(Saveable) | 1 | 1
void | add(T) | 1 | 2
void | addAll(Collection<?extendsT>) | 1 | 2
void | replaceBy(Collection<?extendsT>) | 1 | 2
T | get(int) | 1 | 1
int | size() | 1 | 1
void | remove(Class<?extendsT>) | 3 | 0
void | replace(T;T) | 3 | 5
boolean | remove(T) | 2 | 3
void | removeAll(Class<?extendsT>) | 4 | 2
void | clear() | 1 | 1
Iterator<T> | iterator() | 1 | 1
void | onModified() | 1 | 1
List<T> | toList() | 1 | 1
T[] | toArray(T[]) | 1 | 1
void | addAllTo(Collection<?superT>) | 1 | 1
boolean | isEmpty() | 1 | 1
boolean | contains(Object) | 1 | 1

#### File core\src\main\java\hudson\util\PluginServletFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.PluginServletFilter

Module / class or interface : hudson.util.PluginServletFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PluginServletFilter | PluginServletFilter() | 1 | 0
void | init(FilterConfig) | 2 | 1
void | addFilter(Filter) | 2 | 1
void | removeFilter(Filter) | 1 | 1
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 1 | 1
void | destroy() | 2 | 1

#### File core\src\main\java\hudson\util\ProcessKiller.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ProcessKiller

Module / class or interface : hudson.util.ProcessKiller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionList<ProcessKiller> | all() | 1 | 1
boolean | kill(ProcessTree.OSProcess) | 1 | 1

#### File core\src\main\java\hudson\util\ProcessTree.java 22 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ProcessTree

Module / class or interface : hudson.util.ProcessTree

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ProcessTree | ProcessTree() | 1 | 0
OSProcess | get(int) | 1 | 1
Iterator<OSProcess> | iterator() | 1 | 1
OSProcess | get(Process) | 1 | 1
void | killAll(Map<String,String>) | 1 | 1
void | killAll(Process;Map<String,String>) | 3 | 4
List<ProcessKiller> | getKillers() | 4 | 2
ProcessTree | get() | 6 | 9
Object | writeReplace() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 6
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 3
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 10
MINOR | QC-JAVCWE500 | Static public field not marked final | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00638 | INFO | QC-JAV999996[00638] CPD de longueur 69 commencant en 2433 (ligne 638) et 2906 (ligne 770): ( ) ; } if ( ppid == ( - 1 ) ) throw new IOException ( "Failed to parse PPID from / proc / " + ( pid + " / status" ) ) ; } public OSProcess getParent ( ) { return get ( ppid ) ; } public synchronized List _ String _ getArguments ( ) { if ( arguments != null ) return arguments ; arguments = ( new ArrayList _ String _ ( )
00223 | MAJOR | QC-JAV000001[00223] Avoid declaring class instance within loop, performance impact
00268 | MAJOR | QC-JAV000001[00268] Avoid declaring class instance within loop, performance impact
00400 | MAJOR | QC-JAV000001[00400] Avoid declaring class instance within loop, performance impact
00401 | MAJOR | QC-JAV000001[00401] Avoid declaring class instance within loop, performance impact
00403 | MAJOR | QC-JAV000001[00403] Avoid declaring class instance within loop, performance impact
00420 | MAJOR | QC-JAV000001[00420] Avoid declaring class instance within loop, performance impact
00426 | MAJOR | QC-JAV000001[00426] Avoid declaring class instance within loop, performance impact
00450 | MAJOR | QC-JAV000001[00450] Avoid declaring class instance within loop, performance impact
00506 | MAJOR | QC-JAV000001[00506] Avoid declaring class instance within loop, performance impact
00512 | MAJOR | QC-JAV000001[00512] Avoid declaring class instance within loop, performance impact
00512 | MAJOR | QC-JAVCWE390[00512] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00630 | MAJOR | QC-JAVCWE481[00630] Assigning instead of comparing on line=r.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00662 | MAJOR | QC-JAVCWE390[00662] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00684 | MAJOR | QC-JAVCWE390[00684] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00802 | MAJOR | QC-JAVCWE390[00802] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00834 | MAJOR | QC-JAVCWE390[00834] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00849 | MAJOR | QC-JAVCWE481[00849] Assigning instead of comparing on ch=as.read() (see http://cwe.mitre.org/data/definitions/481.html)
01001 | MAJOR | QC-JAVCWE481[01001] Assigning instead of comparing on ch=getByte(offset++) (see http://cwe.mitre.org/data/definitions/481.html)
01074 | MAJOR | QC-JAVCWE390[01074] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01229 | MAJOR | QC-JAVCWE493[01229] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01229 | MINOR | QC-JAVCWE500[01229] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\util\ProcessTreeKiller.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ProcessTreeKiller

Module / class or interface : hudson.util.ProcessTreeKiller

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | kill(Process) | 1 | 1
void | kill(Process;Map<String,String>) | 3 | 3
void | kill(Map<String,String>) | 1 | 1
EnvVars | createCookie() | 1 | 1
ProcessTreeKiller | get() | 1 | 1

#### File core\src\main\java\hudson\util\ProcessTreeRemoting.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.ProcessTreeRemoting

Module / class or interface : hudson.util.ProcessTreeRemoting

#### File core\src\main\java\hudson\util\Protector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Protector

Module / class or interface : hudson.util.Protector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | protect(String) | 1 | 5
String | unprotect(String) | 3 | 9

#### File core\src\main\java\hudson\util\QueryParameterMap.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.QueryParameterMap

Module / class or interface : hudson.util.QueryParameterMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
QueryParameterMap | QueryParameterMap(String) | 3 | 2
QueryParameterMap | QueryParameterMap(HttpServletRequest) | 1 | 1
String | get(String) | 1 | 2
List<String> | getAll(String) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00062 | MAJOR | QC-JAV000001[00062] Avoid declaring class instance within loop, performance impact
00063 | MAJOR | QC-JAV000001[00063] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact
00066 | MAJOR | QC-JAV000001[00066] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\QuotedStringTokenizer.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
StringTokenizer | hudson.util.QuotedStringTokenizer

Module / class or interface : hudson.util.QuotedStringTokenizer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String[] | tokenize(String) | 1 | 1
String[] | tokenize(String;String) | 1 | 1
QuotedStringTokenizer | QuotedStringTokenizer(String;String;boolean;boolean) | 3 | 7
QuotedStringTokenizer | QuotedStringTokenizer(String;String;boolean) | 1 | 1
QuotedStringTokenizer | QuotedStringTokenizer(String;String) | 1 | 1
QuotedStringTokenizer | QuotedStringTokenizer(String) | 1 | 1
String[] | toArray() | 1 | 3
boolean | hasMoreTokens() | 2 | 6
String | nextToken() | 2 | 5
String | nextToken(String) | 1 | 5
boolean | hasMoreElements() | 1 | 1
Object | nextElement() | 1 | 1
int | countTokens() | 1 | 1
String | quote(String;String) | 5 | 6
String | quote(String) | 3 | 5
void | quote(StringBuffer;String) | 2 | 4
String | unquote(String) | 9 | 11
boolean | getDouble() | 1 | 1
void | setDouble(boolean) | 1 | 1
boolean | getSingle() | 1 | 1
void | setSingle(boolean) | 1 | 1
byte | convertHexDigit(byte) | 4 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00166 | INFO | QC-JAV999996[00166] CPD de longueur 57 commencant en 473 (ligne 166) et 615 (ligne 201): if ( ( c == '\\'' ) __ _single ) { if ( _returnQuotes ) _token . append ( c ) ; state = 2 ; } else if ( ( c == '\\"' ) __ _double ) { if ( _returnQuotes ) _token . append ( c ) ; state = 3 ; } else {
00231 | INFO | QC-JAV999996[00231] CPD de longueur 52 commencant en 742 (ligne 231) et 842 (ligne 257): { if ( _returnQuotes ) _token . append ( c ) ; state = 1 ; } else if ( c == '\\\\' ) { if ( _returnQuotes ) _token . append ( c ) ; escape = true ; } else _token . append ( c ) ; continue ; case
00163 | MAJOR | QC-JAVCWE481[00163] Assigning instead of comparing on _hasToken=true (see http://cwe.mitre.org/data/definitions/481.html)
00349 | MAJOR | QC-JAV000001[00349] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\ReflectionUtils.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
org.springframework.util.ReflectionUtils | hudson.util.ReflectionUtils

Module / class or interface : hudson.util.ReflectionUtils

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Method | getPublicMethodNamed(Class;String) | 3 | 2
List<Parameter> | getParameters(Method) | 1 | 1
Object | getPublicProperty(Object;String) | 3 | 2
Object | getVmDefaultValueForPrimitiveType(Class<?>) | 1 | 1

#### File core\src\main\java\hudson\util\RemotingDiagnostics.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.RemotingDiagnostics

Module / class or interface : hudson.util.RemotingDiagnostics

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Map<Object,Object> | getSystemProperties(VirtualChannel) | 2 | 2
Map<String,String> | getThreadDump(VirtualChannel) | 2 | 2
Future<Map<String,String>> | getThreadDumpAsync(VirtualChannel) | 2 | 2
String | executeGroovy(String;VirtualChannel) | 1 | 1
FilePath | getHeapDump(VirtualChannel) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00104 | MAJOR | QC-JAV000001[00104] Avoid declaring class instance within loop, performance impact
00105 | MAJOR | QC-JAV000001[00105] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\RingBufferLogHandler.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Handler | hudson.util.RingBufferLogHandler

Module / class or interface : hudson.util.RingBufferLogHandler

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RingBufferLogHandler | RingBufferLogHandler() | 1 | 1
RingBufferLogHandler | RingBufferLogHandler(int) | 1 | 1
void | publish(LogRecord) | 3 | 4
List<LogRecord> | getView() | 1 | 1
void | flush() | 1 | 0
void | close() | 1 | 0

#### File core\src\main\java\hudson\util\RobustCollectionConverter.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CollectionConverter | hudson.util.RobustCollectionConverter

Module / class or interface : hudson.util.RobustCollectionConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RobustCollectionConverter | RobustCollectionConverter(XStream) | 1 | 1
RobustCollectionConverter | RobustCollectionConverter(Mapper;ReflectionProvider) | 1 | 2
boolean | canConvert(Class) | 1 | 1
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 3 | 3
void | populateCollection(HierarchicalStreamReader;UnmarshallingContext;Collection) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00085 | MAJOR | QC-JAV000001[00085] Avoid declaring class instance within loop, performance impact
00087 | MAJOR | QC-JAV000001[00087] Avoid declaring class instance within loop, performance impact
00090 | MAJOR | QC-JAV000001[00090] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\RobustReflectionConverter.java 0 rule violation (XML file)

Module / class or interface : hudson.util.

#### File core\src\main\java\hudson\util\RunList.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<R> | hudson.util.RunList

Module / class or interface : hudson.util.RunList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RunList | RunList() | 1 | 1
RunList | RunList(Job) | 1 | 1
RunList | RunList(View) | 3 | 3
RunList | RunList(Collection<?extendsJob>) | 2 | 3
Iterable<R> | combine(Iterable<Iterable<R>>) | 1 | 1
RunList | RunList(Iterable<R>) | 1 | 1
Iterator<R> | iterator() | 1 | 1
int | size() | 3 | 3
R | get(int) | 1 | 1
List<R> | subList(int;int) | 2 | 7
int | indexOf(Object) | 3 | 4
int | lastIndexOf(Object) | 3 | 5
boolean | isEmpty() | 1 | 1
R | getFirstBuild() | 1 | 2
R | getLastBuild() | 1 | 2
RunList<R> | filter(Predicate<R>) | 1 | 4
RunList<R> | limit(CountingPredicate<R>) | 1 | 5
RunList<R> | failureOnly() | 1 | 1
RunList<R> | node(Node) | 1 | 1
RunList<R> | regressionOnly() | 1 | 1
RunList<R> | byTimestamp(long;long) | 1 | 1
RunList<R> | newBuilds() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00073 | MAJOR | QC-JAV000001[00073] Avoid declaring class instance within loop, performance impact
00073 | MAJOR | QC-JAV000001[00073] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\Scrambler.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Scrambler

Module / class or interface : hudson.util.Scrambler

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | scramble(String) | 2 | 3
String | descramble(String) | 2 | 3

#### File core\src\main\java\hudson\util\Secret.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Secret

Module / class or interface : hudson.util.Secret

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Secret | Secret(String) | 1 | 1
String | toString() | 1 | 1
String | getPlainText() | 1 | 1
boolean | equals(Object) | 1 | 1
int | hashCode() | 1 | 1
SecretKey | getLegacyKey() | 2 | 3
String | getEncryptedValue() | 1 | 4
Secret | decrypt(String) | 3 | 10
Secret | tryDecrypt(Cipher;byte[]) | 2 | 4
Cipher | getCipher(String) | 1 | 1
Secret | fromString(String) | 2 | 4
String | toString(Secret) | 1 | 1

#### File core\src\main\java\hudson\util\SecretRewriter.java 8 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.SecretRewriter

Module / class or interface : hudson.util.SecretRewriter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SecretRewriter | SecretRewriter(File) | 1 | 3
String | tryRewrite(String) | 5 | 9
boolean | rewrite(File;File) | 2 | 5
int | rewriteRecursive(File;TaskListener) | 1 | 1
int | rewriteRecursive(File;String;TaskListener) | 4 | 10
boolean | isIgnoredDir(File) | 1 | 2
boolean | isBase64(char) | 1 | 1
boolean | isBase64(String) | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00091 | MAJOR | QC-JAVCWE481[00091] Assigning instead of comparing on line=r.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00100 | MAJOR | QC-JAV000001[00100] Avoid declaring class instance within loop, performance impact
00101 | MAJOR | QC-JAV000001[00101] Avoid declaring class instance within loop, performance impact
00100 | MAJOR | QC-JAV000001[00100] Avoid declaring class instance within loop, performance impact
00101 | MAJOR | QC-JAV000001[00101] Avoid declaring class instance within loop, performance impact
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact
00168 | MAJOR | QC-JAV000001[00168] Avoid declaring class instance within loop, performance impact
00176 | MAJOR | QC-JAV000001[00176] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\SequentialExecutionQueue.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.SequentialExecutionQueue

Module / class or interface : hudson.util.SequentialExecutionQueue

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SequentialExecutionQueue | SequentialExecutionQueue(ExecutorService) | 1 | 1
ExecutorService | getExecutors() | 1 | 1
void | setExecutors(ExecutorService) | 1 | 3
void | execute(Runnable) | 3 | 5
boolean | isStarving(long) | 3 | 3
Set<Runnable> | getInProgress() | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1

Line start | Criticity class | Rule
--- | --- | ---
00118 | BLOCKER | QC-JAVCWE572[00118] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)

#### File core\src\main\java\hudson\util\Service.java 19 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Service

Module / class or interface : hudson.util.Service

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 17

Line start | Criticity class | Rule
--- | --- | ---
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00053 | MAJOR | QC-JAV000001[00053] Avoid declaring class instance within loop, performance impact
00055 | MAJOR | QC-JAV000001[00055] Avoid declaring class instance within loop, performance impact
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00065 | MAJOR | QC-JAV000001[00065] Avoid declaring class instance within loop, performance impact
00067 | MAJOR | QC-JAV000001[00067] Avoid declaring class instance within loop, performance impact
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact
00056 | MAJOR | QC-JAVCWE481[00056] Assigning instead of comparing on line=configFile.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00065 | MAJOR | QC-JAV000001[00065] Avoid declaring class instance within loop, performance impact
00067 | MAJOR | QC-JAV000001[00067] Avoid declaring class instance within loop, performance impact
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact
00089 | MAJOR | QC-JAV000001[00089] Avoid declaring class instance within loop, performance impact
00090 | MAJOR | QC-JAV000001[00090] Avoid declaring class instance within loop, performance impact
00093 | MAJOR | QC-JAV000001[00093] Avoid declaring class instance within loop, performance impact
00103 | MAJOR | QC-JAV000001[00103] Avoid declaring class instance within loop, performance impact
00107 | MAJOR | QC-JAV000001[00107] Avoid declaring class instance within loop, performance impact
00094 | MAJOR | QC-JAVCWE481[00094] Assigning instead of comparing on line=r.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00103 | MAJOR | QC-JAV000001[00103] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\ShiftedCategoryAxis.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NoOverlapCategoryAxis | hudson.util.ShiftedCategoryAxis

Module / class or interface : hudson.util.ShiftedCategoryAxis

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ShiftedCategoryAxis | ShiftedCategoryAxis(String) | 1 | 1
double | calculateCategorySize(int;Rectangle2D;RectangleEdge) | 1 | 1
double | getCategoryEnd(int;int;Rectangle2D;RectangleEdge) | 1 | 1
double | getCategoryMiddle(int;int;Rectangle2D;RectangleEdge) | 1 | 1
double | getCategoryStart(int;int;Rectangle2D;RectangleEdge) | 1 | 1

#### File core\src\main\java\hudson\util\StackedAreaRenderer2.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
StackedAreaRenderer | hudson.util.StackedAreaRenderer2

Module / class or interface : hudson.util.StackedAreaRenderer2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StackedAreaRenderer2 | StackedAreaRenderer2() | 1 | 3
String | generateURL(CategoryDataset;int;int) | 1 | 1
String | generateToolTip(CategoryDataset;int;int) | 1 | 1
Paint | getItemPaint(int;int) | 1 | 1
void | drawItem(Graphics2D;CategoryItemRendererState;Rectangle2D;CategoryPlot;CategoryAxis;ValueAxis;CategoryDataset;int;int;int) | 6 | 12

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00166 | INFO | QC-JAV999996[00166] CPD de longueur 71 commencant en 622 (ligne 166) et 785 (ligne 180): ; p . addPoint ( ( ( int ) ( xx0 + xx1 ) / 2 ) , ( ( int ) ( yy0 + yy1 ) / 2 ) ) ; p . addPoint ( ( ( int ) ( xx0 + xx1 ) / 2 ) , ( ( int ) ( previousHeightxx0 + previousHeightxx1 ) / 2 ) ) ; p . addPoint ( ( int ) xx0

#### File core\src\main\java\hudson\util\StreamCopyThread.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Thread | hudson.util.StreamCopyThread

Module / class or interface : hudson.util.StreamCopyThread

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StreamCopyThread | StreamCopyThread(String;InputStream;OutputStream;boolean) | 2 | 5
StreamCopyThread | StreamCopyThread(String;InputStream;OutputStream) | 1 | 1
void | run() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00060 | MAJOR | QC-JAVCWE481[00060] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)
00069 | MAJOR | QC-JAVCWE390[00069] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\util\StreamResource.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Resource | hudson.util.StreamResource

Module / class or interface : hudson.util.StreamResource

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StreamResource | StreamResource(String;InputStream) | 1 | 2
InputStream | getInputStream() | 1 | 1

#### File core\src\main\java\hudson\util\StreamTaskListener.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractTaskListener | hudson.util.StreamTaskListener

Module / class or interface : hudson.util.StreamTaskListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StreamTaskListener | StreamTaskListener(PrintStream) | 1 | 1
StreamTaskListener | StreamTaskListener(OutputStream) | 1 | 1
StreamTaskListener | StreamTaskListener(OutputStream;Charset) | 3 | 4
StreamTaskListener | StreamTaskListener(File) | 1 | 1
StreamTaskListener | StreamTaskListener(File;Charset) | 1 | 1
StreamTaskListener | StreamTaskListener(Writer) | 1 | 1
StreamTaskListener | StreamTaskListener() | 1 | 1
StreamTaskListener | fromStdout() | 1 | 1
StreamTaskListener | fromStderr() | 1 | 1
PrintStream | getLogger() | 1 | 1
PrintWriter | _error(String;String) | 1 | 4
PrintWriter | error(String) | 1 | 1
PrintWriter | error(String;Object) | 1 | 1
PrintWriter | fatalError(String) | 1 | 1
PrintWriter | fatalError(String;Object) | 1 | 1
void | annotate(ConsoleNote) | 1 | 1
void | writeObject(ObjectOutputStream) | 1 | 2
void | readObject(ObjectInputStream) | 1 | 3
void | close() | 1 | 1
void | closeQuietly() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00133 | MAJOR | QC-JAVCWE390[00133] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\hudson\util\StringConverter2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractBasicConverter | hudson.util.StringConverter2

Module / class or interface : hudson.util.StringConverter2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | canConvert(Class) | 1 | 1
Object | fromString(String) | 1 | 1

#### File core\src\main\java\hudson\util\SubClassGenerator.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ClassLoader | hudson.util.SubClassGenerator

Module / class or interface : hudson.util.SubClassGenerator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SubClassGenerator | SubClassGenerator(ClassLoader) | 1 | 1
String | getMethodDescriptor(Constructor) | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00053 | MAJOR | QC-JAV000001[00053] Avoid declaring class instance within loop, performance impact
00057 | MAJOR | QC-JAV000001[00057] Avoid declaring class instance within loop, performance impact
00058 | MAJOR | QC-JAV000001[00058] Avoid declaring class instance within loop, performance impact
00063 | MAJOR | QC-JAV000001[00063] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\TableNestChecker.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
XMLFilterImpl | hudson.util.TableNestChecker

Module / class or interface : hudson.util.TableNestChecker

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | applyTo(XMLOutput) | 1 | 1
TableNestChecker | TableNestChecker() | 1 | 1
TableNestChecker | TableNestChecker(ContentHandler) | 1 | 2
void | startElement(String;String;String;Attributes) | 3 | 7
void | endElement(String;String;String) | 1 | 3

#### File core\src\main\java\hudson\util\TagCloud.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<TagCloud<T>.Entry> | hudson.util.TagCloud

Module / class or interface : hudson.util.TagCloud

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TagCloud | TagCloud(Iterable<?extendsT>;WeightFunction<T>) | 2 | 3
Entry | get(int) | 1 | 1
int | size() | 1 | 1

#### File core\src\main\java\hudson\util\TextFile.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.TextFile

Module / class or interface : hudson.util.TextFile

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TextFile | TextFile(File) | 1 | 1
boolean | exists() | 1 | 1
void | delete() | 1 | 1
String | read() | 1 | 7
void | write(String) | 1 | 5
String | readTrim() | 1 | 1
String | toString() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00065 | MAJOR | QC-JAVCWE481[00065] Assigning instead of comparing on line=in.readLine() (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\util\TimeUnit2.java 0 rule violation (XML file)

Module / class or interface : hudson.util.

#### File core\src\main\java\hudson\util\UnbufferedBase64InputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FilterInputStream | hudson.util.UnbufferedBase64InputStream

Module / class or interface : hudson.util.UnbufferedBase64InputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UnbufferedBase64InputStream | UnbufferedBase64InputStream(InputStream) | 1 | 4
int | read() | 4 | 6
int | read(byte[];int;int) | 3 | 7
long | skip(long) | 2 | 6

#### File core\src\main\java\hudson\util\VariableResolver.java 1 rule violations (XML file)

Module / class or interface : hudson.util.VariableResolver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
V | resolve(String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00094 | MAJOR | QC-JAV000001[00094] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\WriterOutputStream.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.WriterOutputStream

Module / class or interface : hudson.util.WriterOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WriterOutputStream | WriterOutputStream(Writer) | 1 | 4
void | write(int) | 2 | 2
void | write(byte;int;int) | 2 | 5
void | flush() | 1 | 3
void | flushOutput() | 1 | 2
void | close() | 1 | 4
void | decode(boolean) | 3 | 3
Charset | getDefaultCharset() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00108 | MAJOR | QC-JAV000001[00108] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\XStream2.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
XStream | hudson.util.XStream2

Module / class or interface : hudson.util.XStream2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
XStream2 | XStream2() | 1 | 2
XStream2 | XStream2(HierarchicalStreamDriver) | 1 | 3
XStream2 | XStream2(ClassOwnership) | 1 | 2
Object | unmarshal(HierarchicalStreamReader;Object;DataHolder) | 4 | 6
Converter | createDefaultConverter() | 1 | 2
String | trimVersion(String) | 1 | 1
void | init() | 1 | 11
MapperWrapper | wrapMapper(MapperWrapper) | 1 | 5
Mapper | getMapperInjectionPoint() | 1 | 1
void | setMapper(Mapper) | 1 | 1
void | addCompatibilityAlias(String;Class) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00238 | MAJOR | QC-JAVCWE390[00238] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00329 | CRITICAL | QC-JAVCWE476[00329] The argument xstream is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\util\io\Archiver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
FileVisitor | hudson.util.io.Archiver

Module / class or interface : hudson.util.io.Archiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | countEntries() | 1 | 1

#### File core\src\main\java\hudson\util\io\ArchiverFactory.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.io.ArchiverFactory

Module / class or interface : hudson.util.io.ArchiverFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Archiver | create(OutputStream) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3
MINOR | QC-JAVCWE500 | Static public field not marked final | 3

Line start | Criticity class | Rule
--- | --- | ---
00048 | MAJOR | QC-JAVCWE493[00048] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00048 | MINOR | QC-JAVCWE500[00048] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00053 | MAJOR | QC-JAVCWE493[00053] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00053 | MINOR | QC-JAVCWE500[00053] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00058 | MAJOR | QC-JAVCWE493[00058] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00058 | MINOR | QC-JAVCWE500[00058] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\hudson\util\io\ParserConfigurator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.io.ParserConfigurator

Module / class or interface : hudson.util.io.ParserConfigurator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | configure(SAXReader;Object) | 1 | 0
ExtensionList<ParserConfigurator> | all() | 1 | 1
void | applyConfiguration(SAXReader;Object) | 5 | 5

#### File core\src\main\java\hudson\util\io\ReopenableFileOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | hudson.util.io.ReopenableFileOutputStream

Module / class or interface : hudson.util.io.ReopenableFileOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ReopenableFileOutputStream | ReopenableFileOutputStream(File) | 1 | 1
OutputStream | current() | 2 | 2
void | write(int) | 1 | 1
void | write(byte[]) | 1 | 1
void | write(byte[];int;int) | 1 | 1
void | flush() | 1 | 1
void | close() | 2 | 3
void | rewind() | 1 | 2

#### File core\src\main\java\hudson\util\io\ReopenableRotatingFileOutputStream.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ReopenableFileOutputStream | hudson.util.io.ReopenableRotatingFileOutputStream

Module / class or interface : hudson.util.io.ReopenableRotatingFileOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ReopenableRotatingFileOutputStream | ReopenableRotatingFileOutputStream(File;int) | 1 | 2
File | getNumberedFileName(int) | 2 | 2
void | rewind() | 3 | 4
void | deleteAll() | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00055 | MAJOR | QC-JAV000001[00055] Avoid declaring class instance within loop, performance impact
00057 | MAJOR | QC-JAV000001[00057] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\io\TarArchiver.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Archiver | hudson.util.io.TarArchiver

Module / class or interface : hudson.util.io.TarArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TarArchiver | TarArchiver(OutputStream) | 1 | 2
void | visitSymlink(File;String;String) | 2 | 8
boolean | understandsSymlink() | 1 | 1
void | visit(File;String) | 6 | 11
void | close() | 1 | 1
Field | getTarEntryLinkNameField() | 1 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00074 | MAJOR | QC-JAVCWE390[00074] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00114 | MAJOR | QC-JAVCWE481[00114] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\util\io\ZipArchiver.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Archiver | hudson.util.io.ZipArchiver

Module / class or interface : hudson.util.io.ZipArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ZipArchiver | ZipArchiver(OutputStream) | 1 | 2
void | visit(File;String) | 5 | 18
void | close() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00074 | MAJOR | QC-JAVCWE481[00074] Assigning instead of comparing on len=in.read(buf) (see http://cwe.mitre.org/data/definitions/481.html)

#### File core\src\main\java\hudson\util\jelly\MorphTagLibrary.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TagLibrary | hudson.util.jelly.MorphTagLibrary

Module / class or interface : hudson.util.jelly.MorphTagLibrary

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Tag | createTag(String;Attributes) | 1 | 1
TagScript | createTagScript(String;Attributes) | 1 | 1

#### File core\src\main\java\hudson\util\jna\Advapi32.java 10 rule violations (XML file)

Module / class or interface : hudson.util.jna.Advapi32

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | GetUserName(char[];IntByReference) | 1 | 1
boolean | LookupAccountName(String;String;byte[];IntByReference;char[];IntByReference;PointerByReference) | 1 | 1
boolean | LookupAccountSid(String;byte[];char[];IntByReference;char[];IntByReference;PointerByReference) | 1 | 1
boolean | ConvertSidToStringSid(byte[];PointerByReference) | 1 | 1
boolean | ConvertStringSidToSid(String;PointerByReference) | 1 | 1
Pointer | OpenSCManager(String;WString;int) | 1 | 1
boolean | CloseServiceHandle(Pointer) | 1 | 1
Pointer | OpenService(Pointer;String;int) | 1 | 1
boolean | StartService(Pointer;int;char[]) | 1 | 1
boolean | ControlService(Pointer;int;SERVICE_STATUS) | 1 | 1
boolean | StartServiceCtrlDispatcher(Structure[]) | 1 | 1
Pointer | RegisterServiceCtrlHandler(String;Handler) | 1 | 1
Pointer | RegisterServiceCtrlHandlerEx(String;HandlerEx;Pointer) | 1 | 1
boolean | SetServiceStatus(Pointer;SERVICE_STATUS) | 1 | 1
Pointer | CreateService(Pointer;String;String;int;int;int;int;String;String;IntByReference;String;String;String) | 1 | 1
boolean | DeleteService(Pointer) | 1 | 1
boolean | ChangeServiceConfig2(Pointer;int;ChangeServiceConfig2Info) | 1 | 1
int | RegOpenKeyEx(int;String;int;int;IntByReference) | 1 | 1
int | RegQueryValueEx(int;String;IntByReference;IntByReference;byte[];IntByReference) | 1 | 1
int | RegCloseKey(int) | 1 | 1
int | RegDeleteValue(int;String) | 1 | 1
int | RegSetValueEx(int;String;int;int;byte[];int) | 1 | 1
int | RegCreateKeyEx(int;String;int;String;int;int;WINBASE.SECURITY_ATTRIBUTES;IntByReference;IntByReference) | 1 | 1
int | RegDeleteKey(int;String) | 1 | 1
int | RegEnumKeyEx(int;int;char[];IntByReference;IntByReference;char[];IntByReference;WINBASE.FILETIME) | 1 | 1
int | RegEnumValue(int;int;char[];IntByReference;IntByReference;IntByReference;byte[];IntByReference) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 10

Line start | Criticity class | Rule
--- | --- | ---
00320 | MAJOR | QC-JAVCWE493[00320] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00321 | MAJOR | QC-JAVCWE493[00321] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00322 | MAJOR | QC-JAVCWE493[00322] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00323 | MAJOR | QC-JAVCWE493[00323] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00324 | MAJOR | QC-JAVCWE493[00324] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00325 | MAJOR | QC-JAVCWE493[00325] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00326 | MAJOR | QC-JAVCWE493[00326] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00336 | MAJOR | QC-JAVCWE493[00336] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00337 | MAJOR | QC-JAVCWE493[00337] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00349 | MAJOR | QC-JAVCWE493[00349] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\util\jna\DotNet.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.jna.DotNet

Module / class or interface : hudson.util.jna.DotNet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | isInstalled(int;int) | 2 | 2
boolean | isInstalled(int;int;String;IJIAuthInfo) | 5 | 9
boolean | matches(String;int;int) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00081 | MAJOR | QC-JAV000001[00081] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\jna\GNUCLibrary.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.GNUCLibrary

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | fork() | 1 | 1
int | kill(int;int) | 1 | 1
int | setsid() | 1 | 1
int | umask(int) | 1 | 1
int | getpid() | 1 | 1
int | geteuid() | 1 | 1
int | getegid() | 1 | 1
int | getppid() | 1 | 1
int | chdir(String) | 1 | 1
int | getdtablesize() | 1 | 1
int | execv(String;StringArray) | 1 | 1
int | setenv(String;String;int) | 1 | 1
int | unsetenv(String) | 1 | 1
void | perror(String) | 1 | 1
String | strerror(int) | 1 | 1
passwd | getpwuid(int) | 1 | 1
int | fcntl(int;int) | 1 | 1
int | fcntl(int;int;int) | 1 | 1
int | chown(String;int;int) | 1 | 1
int | chmod(String;int) | 1 | 1
int | dup(int) | 1 | 1
int | dup2(int;int) | 1 | 1
int | close(int) | 1 | 1
int | rename(String;String) | 1 | 1
int | sysctlbyname(String;Pointer;IntByReference;Pointer;IntByReference) | 1 | 1
int | sysctl(int[];int;Pointer;IntByReference;Pointer;IntByReference) | 1 | 1
int | sysctlnametomib(String;Pointer;IntByReference) | 1 | 1
int | symlink(String;String) | 1 | 1
int | readlink(String;Memory;NativeLong) | 1 | 1

#### File core\src\main\java\hudson\util\jna\InitializationErrorInvocationHandler.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.jna.InitializationErrorInvocationHandler

Module / class or interface : hudson.util.jna.InitializationErrorInvocationHandler

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
InitializationErrorInvocationHandler | InitializationErrorInvocationHandler(Throwable) | 1 | 1
Object | invoke(Object;Method;Object[]) | 2 | 2

#### File core\src\main\java\hudson\util\jna\JnaException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
RuntimeException | hudson.util.jna.JnaException

Module / class or interface : hudson.util.jna.JnaException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JnaException | JnaException(int) | 1 | 2
int | getErrorCode() | 1 | 1

#### File core\src\main\java\hudson\util\jna\Kernel32.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.Kernel32

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | MoveFileExA(String;String;int) | 1 | 1
int | WaitForSingleObject(Pointer;int) | 1 | 1
int | GetFileAttributesW(WString) | 1 | 1
boolean | GetExitCodeProcess(Pointer;IntByReference) | 1 | 1

#### File core\src\main\java\hudson\util\jna\Kernel32Utils.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.jna.Kernel32Utils

Module / class or interface : hudson.util.jna.Kernel32Utils

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | waitForExitProcess(Pointer) | 3 | 6
int | getWin32FileAttributes(File) | 5 | 6
boolean | isJunctionOrSymlink(File) | 1 | 3
Kernel32 | load() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00049 | MAJOR | QC-JAV000001[00049] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\jna\Options.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.Options

#### File core\src\main\java\hudson\util\jna\RegistryKey.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.jna.RegistryKey

Module / class or interface : hudson.util.jna.RegistryKey

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RegistryKey | RegistryKey(int) | 1 | 3
RegistryKey | RegistryKey(RegistryKey;String;int) | 1 | 3
String | combine(String;String) | 3 | 3
String | convertBufferToString(byte[]) | 1 | 2
int | convertBufferToInt(byte[]) | 1 | 1
String | getStringValue(String) | 1 | 1
int | getIntValue(String) | 1 | 1
byte[] | getValue(String) | 1 | 6
void | deleteValue(String) | 1 | 1
void | check(int) | 2 | 1
void | setValue(String;String) | 1 | 6
void | setValue(String;int) | 1 | 6
boolean | valueExists(String) | 1 | 5
void | delete() | 1 | 2
Collection<String> | getSubKeys() | 1 | 10
RegistryKey | open(String) | 1 | 1
RegistryKey | openReadonly(String) | 1 | 1
RegistryKey | open(String;int) | 1 | 3
TreeMap<String,Object> | getValues() | 1 | 16
void | finalize() | 1 | 2
void | dispose() | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00097 | INFO | QC-JAV999996[00097] CPD de longueur 51 commencant en 359 (ligne 97) et 741 (ligne 159): , lpcbData ; byte [ ] lpData = new byte [ 1 ] ; pType = ( new IntByReference ( ) ) ; lpcbData = ( new IntByReference ( ) ) ; OUTER : while ( true ) { int r = Advapi32 . INSTANCE . RegQueryValueEx ( handle , valueName
00048 | CRITICAL | QC-JAVCWE476[00048] The argument ancestor is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\hudson\util\jna\SHELLEXECUTEINFO.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Structure | hudson.util.jna.SHELLEXECUTEINFO

Module / class or interface : hudson.util.jna.SHELLEXECUTEINFO

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 15

Line start | Criticity class | Rule
--- | --- | ---
00057 | MAJOR | QC-JAVCWE493[00057] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00058 | MAJOR | QC-JAVCWE493[00058] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00059 | MAJOR | QC-JAVCWE493[00059] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00060 | MAJOR | QC-JAVCWE493[00060] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00061 | MAJOR | QC-JAVCWE493[00061] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00062 | MAJOR | QC-JAVCWE493[00062] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00063 | MAJOR | QC-JAVCWE493[00063] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00064 | MAJOR | QC-JAVCWE493[00064] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00065 | MAJOR | QC-JAVCWE493[00065] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00066 | MAJOR | QC-JAVCWE493[00066] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00067 | MAJOR | QC-JAVCWE493[00067] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00068 | MAJOR | QC-JAVCWE493[00068] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00069 | MAJOR | QC-JAVCWE493[00069] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00070 | MAJOR | QC-JAVCWE493[00070] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00071 | MAJOR | QC-JAVCWE493[00071] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\util\jna\Shell32.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.Shell32

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | ShellExecuteEx(SHELLEXECUTEINFO) | 1 | 1

#### File core\src\main\java\hudson\util\jna\WINBASE.java 5 rule violations (XML file)

Module / class or interface : hudson.util.jna.WINBASE

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 5

Line start | Criticity class | Rule
--- | --- | ---
00035 | MAJOR | QC-JAVCWE493[00035] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00036 | MAJOR | QC-JAVCWE493[00036] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00037 | MAJOR | QC-JAVCWE493[00037] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00046 | MAJOR | QC-JAVCWE493[00046] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00047 | MAJOR | QC-JAVCWE493[00047] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\util\jna\WINERROR.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.WINERROR

#### File core\src\main\java\hudson\util\jna\WINNT.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.WINNT

#### File core\src\main\java\hudson\util\jna\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.util.jna.

#### File core\src\main\java\hudson\util\spring\BeanBuilder.java 18 rule violations (XML file)

Ancestor class | Children classes
--- | ---
GroovyObjectSupport | hudson.util.spring.BeanBuilder

Module / class or interface : hudson.util.spring.BeanBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BeanBuilder | BeanBuilder() | 1 | 1
BeanBuilder | BeanBuilder(ClassLoader) | 1 | 2
BeanBuilder | BeanBuilder(ApplicationContext) | 1 | 3
BeanBuilder | BeanBuilder(ApplicationContext;ClassLoader) | 1 | 4
void | parse(InputStream) | 1 | 1
void | parse(InputStream;Binding) | 1 | 7
ApplicationContext | getParentCtx() | 1 | 1
RuntimeSpringConfiguration | getSpringConfig() | 1 | 1
BeanDefinition | getBeanDefinition(String) | 2 | 2
Map<String,BeanDefinition> | getBeanDefinitions() | 2 | 4
void | setSpringConfig(RuntimeSpringConfiguration) | 1 | 1
void | loadBeans(String) | 1 | 1
void | loadBeans(Resource) | 1 | 1
void | loadBeans(Resource[]) | 2 | 5
void | registerBeans(StaticApplicationContext) | 1 | 2
RuntimeBeanReference | ref(String) | 1 | 1
RuntimeBeanReference | parentRef(String) | 1 | 1
RuntimeBeanReference | ref(String;boolean) | 1 | 1
Object | methodMissing(String;Object) | 8 | 8
WebApplicationContext | createApplicationContext() | 1 | 2
void | finalizeDeferredProperties() | 5 | 2
boolean | addToDeferred(BeanConfiguration;String;Object) | 4 | 5
BeanConfiguration | invokeBeanDefiningMethod(String;Object[]) | 8 | 3
void | filterGStringReferences(Object[]) | 3 | 4
BeanBuilder | beans(Closure) | 1 | 4
void | setProperty(String;Object) | 7 | 3
Object | manageMapIfNecessary(Map<Object,Object>) | 5 | 6
Object | manageListIfNecessary(List<Object>) | 5 | 8
Object | getProperty(String) | 7 | 1
void | setBinding(Binding) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 17

Line start | Criticity class | Rule
--- | --- | ---
00134 | BLOCKER | QC-JAVCWE572[00134] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
00174 | MAJOR | QC-JAV000001[00174] Avoid declaring class instance within loop, performance impact
00393 | MAJOR | QC-JAV000001[00393] Avoid declaring class instance within loop, performance impact
00394 | MAJOR | QC-JAV000001[00394] Avoid declaring class instance within loop, performance impact
00395 | MAJOR | QC-JAV000001[00395] Avoid declaring class instance within loop, performance impact
00396 | MAJOR | QC-JAV000001[00396] Avoid declaring class instance within loop, performance impact
00497 | MAJOR | QC-JAV000001[00497] Avoid declaring class instance within loop, performance impact
00498 | MAJOR | QC-JAV000001[00498] Avoid declaring class instance within loop, performance impact
00564 | MAJOR | QC-JAV000001[00564] Avoid declaring class instance within loop, performance impact
00565 | MAJOR | QC-JAV000001[00565] Avoid declaring class instance within loop, performance impact
00568 | MAJOR | QC-JAV000001[00568] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00593 | MAJOR | QC-JAV000001[00593] Avoid declaring class instance within loop, performance impact
00594 | MAJOR | QC-JAV000001[00594] Avoid declaring class instance within loop, performance impact
00597 | MAJOR | QC-JAV000001[00597] Avoid declaring class instance within loop, performance impact
00598 | MAJOR | QC-JAV000001[00598] Avoid declaring class instance within loop, performance impact
00598 | MAJOR | QC-JAV000001[00598] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\spring\BeanConfiguration.java 0 rule violation (XML file)

Module / class or interface : hudson.util.spring.BeanConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
boolean | isSingleton() | 1 | 1
AbstractBeanDefinition | getBeanDefinition() | 1 | 1
BeanConfiguration | addProperty(String;Object) | 1 | 1
BeanConfiguration | setDestroyMethod(String) | 1 | 1
BeanConfiguration | setDependsOn(String[]) | 1 | 1
BeanConfiguration | setFactoryBean(String) | 1 | 1
BeanConfiguration | setFactoryMethod(String) | 1 | 1
BeanConfiguration | setAutowire(String) | 1 | 1
void | setName(String) | 1 | 1
boolean | hasProperty(String) | 1 | 1
Object | getPropertyValue(String) | 1 | 1
void | setPropertyValue(String;Object) | 1 | 1
BeanConfiguration | setAbstract(boolean) | 1 | 1
void | setParent(Object) | 1 | 1

#### File core\src\main\java\hudson\util\spring\ClosureScript.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Script | hudson.util.spring.ClosureScript

Module / class or interface : hudson.util.spring.ClosureScript

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClosureScript | ClosureScript() | 1 | 1
ClosureScript | ClosureScript(Binding) | 1 | 1
void | setDelegate(GroovyObject) | 1 | 1
Object | invokeMethod(String;Object) | 1 | 2
Object | getProperty(String) | 1 | 2
void | setProperty(String;Object) | 1 | 2

#### File core\src\main\java\hudson\util\spring\DefaultBeanConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GroovyObjectSupport | hudson.util.spring.DefaultBeanConfiguration

Module / class or interface : hudson.util.spring.DefaultBeanConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Object | getProperty(String) | 4 | 4
void | setProperty(String;Object) | 9 | 2
DefaultBeanConfiguration | DefaultBeanConfiguration(String;Class) | 1 | 2
DefaultBeanConfiguration | DefaultBeanConfiguration(String;Class;boolean) | 1 | 2
DefaultBeanConfiguration | DefaultBeanConfiguration(String) | 1 | 1
DefaultBeanConfiguration | DefaultBeanConfiguration(Class) | 1 | 1
DefaultBeanConfiguration | DefaultBeanConfiguration(String;Class;Collection) | 1 | 3
DefaultBeanConfiguration | DefaultBeanConfiguration(String;boolean) | 1 | 2
DefaultBeanConfiguration | DefaultBeanConfiguration(Class;Collection) | 1 | 2
String | getName() | 1 | 1
boolean | isSingleton() | 1 | 1
AbstractBeanDefinition | getBeanDefinition() | 2 | 2
AbstractBeanDefinition | createBeanDefinition() | 8 | 5
BeanConfiguration | addProperty(String;Object) | 2 | 3
BeanConfiguration | setDestroyMethod(String) | 1 | 2
BeanConfiguration | setDependsOn(String[]) | 1 | 2
BeanConfiguration | setFactoryBean(String) | 1 | 2
BeanConfiguration | setFactoryMethod(String) | 1 | 2
BeanConfiguration | setAutowire(String) | 4 | 3
void | setName(String) | 1 | 1
Object | getPropertyValue(String) | 1 | 1
boolean | hasProperty(String) | 1 | 1
void | setPropertyValue(String;Object) | 1 | 1
BeanConfiguration | setAbstract(boolean) | 1 | 2
void | setParent(Object) | 7 | 4

#### File core\src\main\java\hudson\util\spring\DefaultRuntimeSpringConfiguration.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.spring.DefaultRuntimeSpringConfiguration

Module / class or interface : hudson.util.spring.DefaultRuntimeSpringConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultRuntimeSpringConfiguration | DefaultRuntimeSpringConfiguration() | 1 | 2
DefaultRuntimeSpringConfiguration | DefaultRuntimeSpringConfiguration(ApplicationContext) | 1 | 3
BeanConfiguration | addSingletonBean(String;Class) | 1 | 3
BeanConfiguration | addPrototypeBean(String;Class) | 1 | 3
WebApplicationContext | getApplicationContext() | 1 | 3
WebApplicationContext | getUnrefreshedApplicationContext() | 1 | 1
BeanConfiguration | addSingletonBean(String) | 1 | 3
BeanConfiguration | createSingletonBean(Class) | 1 | 1
BeanConfiguration | addSingletonBean(String;Class;Collection) | 1 | 3
BeanConfiguration | addPrototypeBean(String) | 1 | 3
void | registerBeanConfiguration(String;BeanConfiguration) | 1 | 2
BeanConfiguration | createSingletonBean(Class;Collection) | 1 | 1
void | setServletContext(ServletContext) | 1 | 1
BeanConfiguration | createPrototypeBean(String) | 1 | 1
BeanConfiguration | createSingletonBean(String) | 1 | 1
void | addBeanConfiguration(String;BeanConfiguration) | 1 | 2
void | addBeanDefinition(String;BeanDefinition) | 1 | 2
boolean | containsBean(String) | 1 | 1
BeanConfiguration | getBeanConfig(String) | 1 | 1
AbstractBeanDefinition | createBeanDefinition(String) | 5 | 2
void | registerPostProcessor(BeanFactoryPostProcessor) | 1 | 1
List<String> | getBeanNames() | 1 | 1
void | registerBeansWithContext(StaticApplicationContext) | 7 | 4
BeanConfiguration | addAbstractBean(String) | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00188 | MAJOR | QC-JAV000001[00188] Avoid declaring class instance within loop, performance impact
00191 | MAJOR | QC-JAV000001[00191] Avoid declaring class instance within loop, performance impact
00205 | MAJOR | QC-JAV000001[00205] Avoid declaring class instance within loop, performance impact
00209 | MAJOR | QC-JAV000001[00209] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\spring\RuntimeSpringConfiguration.java 0 rule violation (XML file)

Module / class or interface : hudson.util.spring.RuntimeSpringConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BeanConfiguration | addSingletonBean(String;Class) | 1 | 1
WebApplicationContext | getUnrefreshedApplicationContext() | 1 | 1
BeanConfiguration | addPrototypeBean(String;Class) | 1 | 1
WebApplicationContext | getApplicationContext() | 1 | 1
BeanConfiguration | addSingletonBean(String) | 1 | 1
BeanConfiguration | addPrototypeBean(String) | 1 | 1
BeanConfiguration | createSingletonBean(Class) | 1 | 1
BeanConfiguration | addSingletonBean(String;Class;Collection) | 1 | 1
BeanConfiguration | createSingletonBean(Class;Collection) | 1 | 1
void | setServletContext(ServletContext) | 1 | 1
BeanConfiguration | createPrototypeBean(String) | 1 | 1
BeanConfiguration | createSingletonBean(String) | 1 | 1
void | addBeanConfiguration(String;BeanConfiguration) | 1 | 1
void | addBeanDefinition(String;BeanDefinition) | 1 | 1
boolean | containsBean(String) | 1 | 1
BeanConfiguration | getBeanConfig(String) | 1 | 1
AbstractBeanDefinition | createBeanDefinition(String) | 1 | 1
void | registerPostProcessor(BeanFactoryPostProcessor) | 1 | 1
List<String> | getBeanNames() | 1 | 1
void | registerBeansWithContext(StaticApplicationContext) | 1 | 1
BeanConfiguration | addAbstractBean(String) | 1 | 1

#### File core\src\main\java\hudson\util\ssh\SFTPClient.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SFTPv3Client | hudson.util.ssh.SFTPClient

Module / class or interface : hudson.util.ssh.SFTPClient

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SFTPClient | SFTPClient(Connection) | 1 | 1
boolean | exists(String) | 1 | 1
SFTPv3FileAttributes | _stat(String) | 3 | 2
void | mkdirs(String;int) | 3 | 6
OutputStream | writeToFile(String) | 1 | 2
InputStream | read(String) | 1 | 2
void | chmod(String;int) | 1 | 3

#### File core\src\main\java\hudson\util\xstream\ImmutableListConverter.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
CollectionConverter | hudson.util.xstream.ImmutableListConverter

Module / class or interface : hudson.util.xstream.ImmutableListConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ImmutableListConverter | ImmutableListConverter(XStream) | 1 | 1
ImmutableListConverter | ImmutableListConverter(Mapper;ReflectionProvider) | 1 | 2
boolean | canConvert(Class) | 1 | 1
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 4 | 4
Object | createCollection(Class) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00077 | MAJOR | QC-JAV000001[00077] Avoid declaring class instance within loop, performance impact
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact
00081 | MAJOR | QC-JAV000001[00081] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\util\xstream\ImmutableMapConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MapConverter | hudson.util.xstream.ImmutableMapConverter

Module / class or interface : hudson.util.xstream.ImmutableMapConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ImmutableMapConverter | ImmutableMapConverter(XStream) | 1 | 1
ImmutableMapConverter | ImmutableMapConverter(Mapper;ReflectionProvider) | 1 | 2
boolean | canConvert(Class) | 1 | 1
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 1 | 1
Object | createCollection(Class) | 1 | 1

#### File core\src\main\java\hudson\util\xstream\ImmutableSetConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CollectionConverter | hudson.util.xstream.ImmutableSetConverter

Module / class or interface : hudson.util.xstream.ImmutableSetConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ImmutableSetConverter | ImmutableSetConverter(XStream) | 1 | 1
ImmutableSetConverter | ImmutableSetConverter(Mapper;ReflectionProvider) | 1 | 2
boolean | canConvert(Class) | 1 | 1
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 1 | 1
Object | createCollection(Class) | 1 | 1

#### File core\src\main\java\hudson\util\xstream\ImmutableSortedSetConverter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CollectionConverter | hudson.util.xstream.ImmutableSortedSetConverter

Module / class or interface : hudson.util.xstream.ImmutableSortedSetConverter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ImmutableSortedSetConverter | ImmutableSortedSetConverter(XStream) | 1 | 1
ImmutableSortedSetConverter | ImmutableSortedSetConverter(Mapper;ReflectionProvider) | 1 | 2
boolean | canConvert(Class) | 1 | 1
Object | unmarshal(HierarchicalStreamReader;UnmarshallingContext) | 1 | 1
Object | createCollection(Class) | 1 | 1

#### File core\src\main\java\hudson\util\xstream\MapperDelegate.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MapperWrapper | hudson.util.xstream.MapperDelegate

Module / class or interface : hudson.util.xstream.MapperDelegate

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MapperDelegate | MapperDelegate(Mapper) | 1 | 2
String | serializedClass(Class) | 1 | 1
Class | realClass(String) | 1 | 1
String | serializedMember(Class;String) | 1 | 1
String | realMember(Class;String) | 1 | 1
boolean | isImmutableValueType(Class) | 1 | 1
Class | defaultImplementationOf(Class) | 1 | 1
String | attributeForClassDefiningField() | 1 | 1
String | attributeForImplementationClass() | 1 | 1
String | attributeForReadResolveField() | 1 | 1
String | attributeForEnumType() | 1 | 1
String | aliasForAttribute(String) | 1 | 1
String | attributeForAlias(String) | 1 | 1
String | aliasForSystemAttribute(String) | 1 | 1
String | getFieldNameForItemTypeAndName(Class;Class;String) | 1 | 1
Class | getItemTypeForItemFieldName(Class;String) | 1 | 1
ImplicitCollectionMapping | getImplicitCollectionDefForFieldName(Class;String) | 1 | 1
boolean | shouldSerializeMember(Class;String) | 1 | 1
SingleValueConverter | getConverterFromItemType(String;Class) | 1 | 1
SingleValueConverter | getConverterFromItemType(Class) | 1 | 1
SingleValueConverter | getConverterFromAttribute(String) | 1 | 1
Converter | getLocalConverter(Class;String) | 1 | 1
Mapper | lookupMapperOfType(Class) | 1 | 1
SingleValueConverter | getConverterFromItemType(String;Class;Class) | 1 | 1
String | aliasForAttribute(Class;String) | 1 | 1
String | attributeForAlias(Class;String) | 1 | 1
SingleValueConverter | getConverterFromAttribute(Class;String) | 1 | 1
SingleValueConverter | getConverterFromAttribute(Class;String;Class) | 1 | 1

#### File core\src\main\java\hudson\views\BuildButtonColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.BuildButtonColumn

Module / class or interface : hudson.views.BuildButtonColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildButtonColumn | BuildButtonColumn() | 1 | 0

#### File core\src\main\java\hudson\views\DefaultMyViewsTabBar.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MyViewsTabBar | hudson.views.DefaultMyViewsTabBar

Module / class or interface : hudson.views.DefaultMyViewsTabBar

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultMyViewsTabBar | DefaultMyViewsTabBar() | 1 | 0

#### File core\src\main\java\hudson\views\DefaultViewsTabBar.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ViewsTabBar | hudson.views.DefaultViewsTabBar

Module / class or interface : hudson.views.DefaultViewsTabBar

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultViewsTabBar | DefaultViewsTabBar() | 1 | 0

#### File core\src\main\java\hudson\views\GlobalDefaultViewConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | hudson.views.GlobalDefaultViewConfiguration

Module / class or interface : hudson.views.GlobalDefaultViewConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | configure(StaplerRequest;JSONObject) | 1 | 3

#### File core\src\main\java\hudson\views\JobColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.JobColumn

Module / class or interface : hudson.views.JobColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JobColumn | JobColumn() | 1 | 0

#### File core\src\main\java\hudson\views\LastDurationColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.LastDurationColumn

Module / class or interface : hudson.views.LastDurationColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LastDurationColumn | LastDurationColumn() | 1 | 0

#### File core\src\main\java\hudson\views\LastFailureColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.LastFailureColumn

Module / class or interface : hudson.views.LastFailureColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LastFailureColumn | LastFailureColumn() | 1 | 0

#### File core\src\main\java\hudson\views\LastStableColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.LastStableColumn

Module / class or interface : hudson.views.LastStableColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LastStableColumn | LastStableColumn() | 1 | 0

#### File core\src\main\java\hudson\views\LastSuccessColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.LastSuccessColumn

Module / class or interface : hudson.views.LastSuccessColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
LastSuccessColumn | LastSuccessColumn() | 1 | 0

#### File core\src\main\java\hudson\views\ListViewColumn.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.views.ListViewColumn

Module / class or interface : hudson.views.ListViewColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getColumnCaption() | 1 | 1
DescriptorExtensionList<ListViewColumn,Descriptor<ListViewColumn>> | all() | 1 | 1
boolean | shownByDefault() | 1 | 1
Descriptor<ListViewColumn> | getDescriptor() | 1 | 1
List<ListViewColumn> | createDefaultInitialColumnList() | 6 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00131 | MAJOR | QC-JAV000001[00131] Avoid declaring class instance within loop, performance impact
00136 | MAJOR | QC-JAV000001[00136] Avoid declaring class instance within loop, performance impact
00143 | MAJOR | QC-JAV000001[00143] Avoid declaring class instance within loop, performance impact
00144 | MAJOR | QC-JAV000001[00144] Avoid declaring class instance within loop, performance impact
00144 | MAJOR | QC-JAV000001[00144] Avoid declaring class instance within loop, performance impact
00147 | MAJOR | QC-JAV000001[00147] Avoid declaring class instance within loop, performance impact
00151 | MAJOR | QC-JAV000001[00151] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\views\ListViewColumnDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ListViewColumn> | hudson.views.ListViewColumnDescriptor

Module / class or interface : hudson.views.ListViewColumnDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | shownByDefault() | 1 | 1

#### File core\src\main\java\hudson\views\MyViewsTabBar.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<MyViewsTabBar> | hudson.views.MyViewsTabBar

Module / class or interface : hudson.views.MyViewsTabBar

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<MyViewsTabBar,Descriptor<MyViewsTabBar>> | all() | 1 | 1
MyViewsTabBarDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\views\MyViewsTabBarDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<MyViewsTabBar> | hudson.views.MyViewsTabBarDescriptor

Module / class or interface : hudson.views.MyViewsTabBarDescriptor

#### File core\src\main\java\hudson\views\StatusColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.StatusColumn

Module / class or interface : hudson.views.StatusColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StatusColumn | StatusColumn() | 1 | 0

#### File core\src\main\java\hudson\views\ViewJobFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.views.ViewJobFilter

Module / class or interface : hudson.views.ViewJobFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<ViewJobFilter,Descriptor<ViewJobFilter>> | all() | 1 | 1
Descriptor<ViewJobFilter> | getDescriptor() | 1 | 1
List<TopLevelItem> | filter(List<TopLevelItem>;List<TopLevelItem>;View) | 1 | 1

#### File core\src\main\java\hudson\views\ViewsTabBar.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ViewsTabBar> | hudson.views.ViewsTabBar

Module / class or interface : hudson.views.ViewsTabBar

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<ViewsTabBar,Descriptor<ViewsTabBar>> | all() | 1 | 1
ViewsTabBarDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\hudson\views\ViewsTabBarDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<ViewsTabBar> | hudson.views.ViewsTabBarDescriptor

Module / class or interface : hudson.views.ViewsTabBarDescriptor

#### File core\src\main\java\hudson\views\WeatherColumn.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ListViewColumn | hudson.views.WeatherColumn

Module / class or interface : hudson.views.WeatherColumn

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
WeatherColumn | WeatherColumn() | 1 | 0

#### File core\src\main\java\hudson\widgets\BuildHistoryWidget.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HistoryWidget<Task,T> | hudson.widgets.BuildHistoryWidget

Module / class or interface : hudson.widgets.BuildHistoryWidget

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildHistoryWidget | BuildHistoryWidget(Task;Iterable<T>;Adapter<?superT>) | 1 | 1
Item | getQueuedItem() | 1 | 1
List<Item> | getQueuedItems() | 3 | 2

#### File core\src\main\java\hudson\widgets\HistoryWidget.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Widget | hudson.widgets.HistoryWidget

Module / class or interface : hudson.widgets.HistoryWidget

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HistoryWidget | HistoryWidget(O;Iterable<T>;Adapter<?superT>) | 1 | 4
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1
String | getFirstTransientBuildKey() | 1 | 1
Iterable<T> | updateFirstTransientBuildKey(Iterable<T>) | 3 | 4
Iterable<T> | getRenderList() | 5 | 2
boolean | isTrimmed() | 1 | 1
void | setTrimmed(boolean) | 1 | 1
void | doAjax(StaplerRequest;StaplerResponse;String) | 8 | 9
String | getNextBuildNumberToFetch() | 1 | 1
void | setNextBuildNumberToFetch(String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00058 | MAJOR | QC-JAVCWE493[00058] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\hudson\widgets\RenderOnDemandClosure.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.widgets.RenderOnDemandClosure

Module / class or interface : hudson.widgets.RenderOnDemandClosure

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RenderOnDemandClosure | RenderOnDemandClosure(JellyContext;String) | 5 | 15
HttpResponse | render() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\hudson\widgets\Widget.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.widgets.Widget

Module / class or interface : hudson.widgets.Widget

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\AgentProtocol.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.AgentProtocol

Module / class or interface : jenkins.AgentProtocol

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
void | handle(Socket) | 1 | 1
ExtensionList<AgentProtocol> | all() | 1 | 1
AgentProtocol | of(String) | 3 | 2

#### File core\src\main\java\jenkins\ClassLoaderReflectionToolkit.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.ClassLoaderReflectionToolkit

Module / class or interface : jenkins.ClassLoaderReflectionToolkit

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ClassLoaderReflectionToolkit | ClassLoaderReflectionToolkit() | 1 | 9
Class | findLoadedClass(ClassLoader;String) | 1 | 2
Class | findClass(ClassLoader;String) | 1 | 2
URL | findResource(ClassLoader;String) | 1 | 2
Enumeration<URL> | findResources(ClassLoader;String) | 1 | 2

#### File core\src\main\java\jenkins\ExtensionComponentSet.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.ExtensionComponentSet

Module / class or interface : jenkins.ExtensionComponentSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionComponentSet | filtered() | 1 | 2
ExtensionComponentSet | union(Collection<?extendsExtensionComponentSet>) | 1 | 1
ExtensionComponentSet | union(ExtensionComponentSet) | 1 | 1
ExtensionComponentSet | allOf(ExtensionFinder) | 1 | 1

#### File core\src\main\java\jenkins\ExtensionFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.ExtensionFilter

Module / class or interface : jenkins.ExtensionFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionList<ExtensionFilter> | all() | 1 | 1

#### File core\src\main\java\jenkins\ExtensionRefreshException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Exception | jenkins.ExtensionRefreshException

Module / class or interface : jenkins.ExtensionRefreshException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtensionRefreshException | ExtensionRefreshException() | 1 | 0
ExtensionRefreshException | ExtensionRefreshException(String) | 1 | 1
ExtensionRefreshException | ExtensionRefreshException(String;Throwable) | 1 | 1
ExtensionRefreshException | ExtensionRefreshException(Throwable) | 1 | 1

#### File core\src\main\java\jenkins\InitReactorRunner.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.InitReactorRunner

Module / class or interface : jenkins.InitReactorRunner

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | run(Reactor) | 3 | 6
ReactorListener | buildReactorListener() | 1 | 3
void | onInitMilestoneAttained(InitMilestone) | 1 | 0

#### File core\src\main\java\jenkins\PluginSubtypeMarker.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractProcessor | jenkins.PluginSubtypeMarker

Module / class or interface : jenkins.PluginSubtypeMarker

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | process(Set<?extendsTypeElement>;RoundEnvironment) | 2 | 6
void | write(TypeElement) | 1 | 4
Element | asElement(TypeMirror) | 1 | 1

#### File core\src\main\java\jenkins\ProxyInjector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.ProxyInjector

Module / class or interface : jenkins.ProxyInjector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Injector | resolve() | 1 | 1
void | injectMembers(Object) | 1 | 1
Map<Key<?>,Binding<?>> | getBindings() | 1 | 1
Map<Key<?>,Binding<?>> | getAllBindings() | 1 | 1
Injector | getParent() | 1 | 1
Injector | createChildInjector(Iterable<?extendsModule>) | 1 | 1
Injector | createChildInjector(Module) | 1 | 1
Map<Class<?extendsAnnotation>,Scope> | getScopeBindings() | 1 | 1
Set<TypeConverterBinding> | getTypeConverterBindings() | 1 | 1

#### File core\src\main\java\jenkins\RestartRequiredException.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Exception | jenkins.RestartRequiredException

Module / class or interface : jenkins.RestartRequiredException

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RestartRequiredException | RestartRequiredException(Localizable) | 1 | 1
RestartRequiredException | RestartRequiredException(Localizable;Throwable) | 1 | 2

#### File core\src\main\java\jenkins\YesNoMaybe.java 0 rule violation (XML file)

Module / class or interface : jenkins.

#### File core\src\main\java\jenkins\management\CliLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.CliLink

Module / class or interface : jenkins.management.CliLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\ConfigureLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.ConfigureLink

Module / class or interface : jenkins.management.ConfigureLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\ConsoleLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.ConsoleLink

Module / class or interface : jenkins.management.ConsoleLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1
Permission | getRequiredPermission() | 1 | 1

#### File core\src\main\java\jenkins\management\NodesLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.NodesLink

Module / class or interface : jenkins.management.NodesLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\PluginsLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.PluginsLink

Module / class or interface : jenkins.management.PluginsLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\ReloadLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.ReloadLink

Module / class or interface : jenkins.management.ReloadLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\ShutdownLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.ShutdownLink

Module / class or interface : jenkins.management.ShutdownLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\StatisticsLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.StatisticsLink

Module / class or interface : jenkins.management.StatisticsLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\SystemInfoLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.SystemInfoLink

Module / class or interface : jenkins.management.SystemInfoLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\management\SystemLogLink.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ManagementLink | jenkins.management.SystemLogLink

Module / class or interface : jenkins.management.SystemLogLink

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getDescription() | 1 | 1
String | getUrlName() | 1 | 1

#### File core\src\main\java\jenkins\model\AbstractTopLevelItem.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractItem | jenkins.model.AbstractTopLevelItem

Module / class or interface : jenkins.model.AbstractTopLevelItem

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractTopLevelItem | AbstractTopLevelItem(ItemGroup;String) | 1 | 1
Collection<?extendsJob> | getAllJobs() | 1 | 1
TopLevelItemDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\jenkins\model\BuildDiscarder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<BuildDiscarder> | jenkins.model.BuildDiscarder

Module / class or interface : jenkins.model.BuildDiscarder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | perform(Job<?,?>) | 1 | 1
BuildDiscarderDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\jenkins\model\BuildDiscarderDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<BuildDiscarder> | jenkins.model.BuildDiscarderDescriptor

Module / class or interface : jenkins.model.BuildDiscarderDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildDiscarderDescriptor | BuildDiscarderDescriptor(Class) | 1 | 1
BuildDiscarderDescriptor | BuildDiscarderDescriptor() | 1 | 0
DescriptorExtensionList<BuildDiscarder,BuildDiscarderDescriptor> | all() | 1 | 1

#### File core\src\main\java\jenkins\model\CauseOfInterruption.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.CauseOfInterruption

Module / class or interface : jenkins.model.CauseOfInterruption

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
void | print(TaskListener) | 1 | 1

#### File core\src\main\java\jenkins\model\Configuration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.Configuration

Module / class or interface : jenkins.model.Configuration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | getBooleanConfigParameter(String;boolean) | 1 | 2
String | getStringConfigParameter(String;String) | 2 | 3

#### File core\src\main\java\jenkins\model\CoreEnvironmentContributor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
EnvironmentContributor | jenkins.model.CoreEnvironmentContributor

Module / class or interface : jenkins.model.CoreEnvironmentContributor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildEnvironmentFor(Run;EnvVars;TaskListener) | 7 | 17

#### File core\src\main\java\jenkins\model\DefaultUserCanonicalIdResolver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
User.CanonicalIdResolver | jenkins.model.DefaultUserCanonicalIdResolver

Module / class or interface : jenkins.model.DefaultUserCanonicalIdResolver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | resolveCanonicalId(String;Map<String,?>) | 2 | 3
int | getPriority() | 1 | 1
Descriptor<User.CanonicalIdResolver> | getDescriptor() | 1 | 1

#### File core\src\main\java\jenkins\model\DependencyDeclarer.java 0 rule violation (XML file)

Module / class or interface : jenkins.model.DependencyDeclarer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | buildDependencyGraph(AbstractProject;DependencyGraph) | 1 | 1

#### File core\src\main\java\jenkins\model\FingerprintFacet.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.FingerprintFacet

Module / class or interface : jenkins.model.FingerprintFacet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FingerprintFacet | FingerprintFacet(Fingerprint;long) | 1 | 3
Fingerprint | getFingerprint() | 1 | 1
void | createActions(List<Action>) | 1 | 0
long | getTimestamp() | 1 | 1
void | _setOwner(Fingerprint) | 1 | 2

#### File core\src\main\java\jenkins\model\GlobalCloudConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.GlobalCloudConfiguration

Module / class or interface : jenkins.model.GlobalCloudConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | configure(StaplerRequest;JSONObject) | 1 | 3

#### File core\src\main\java\jenkins\model\GlobalConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<GlobalConfiguration> | jenkins.model.GlobalConfiguration

Module / class or interface : jenkins.model.GlobalConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
GlobalConfiguration | GlobalConfiguration() | 1 | 1
Descriptor<GlobalConfiguration> | getDescriptor() | 1 | 1
GlobalConfigurationCategory | getCategory() | 1 | 1
String | getDisplayName() | 1 | 1
String | getGlobalConfigPage() | 1 | 1
ExtensionList<GlobalConfiguration> | all() | 1 | 1

#### File core\src\main\java\jenkins\model\GlobalConfigurationCategory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.GlobalConfigurationCategory

Module / class or interface : jenkins.model.GlobalConfigurationCategory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getShortDescription() | 1 | 1
ExtensionList<GlobalConfigurationCategory> | all() | 1 | 1

#### File core\src\main\java\jenkins\model\GlobalNodePropertiesConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.GlobalNodePropertiesConfiguration

Module / class or interface : jenkins.model.GlobalNodePropertiesConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | configure(StaplerRequest;JSONObject) | 2 | 4

#### File core\src\main\java\jenkins\model\GlobalPluginConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.GlobalPluginConfiguration

Module / class or interface : jenkins.model.GlobalPluginConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | configure(StaplerRequest;JSONObject) | 2 | 4

#### File core\src\main\java\jenkins\model\GlobalProjectNamingStrategyConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.GlobalProjectNamingStrategyConfiguration

Module / class or interface : jenkins.model.GlobalProjectNamingStrategyConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | configure(StaplerRequest;JSONObject) | 3 | 6

#### File core\src\main\java\jenkins\model\GlobalQuietPeriodConfiguration.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.GlobalQuietPeriodConfiguration

Module / class or interface : jenkins.model.GlobalQuietPeriodConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | getQuietPeriod() | 1 | 1
boolean | configure(StaplerRequest;JSONObject) | 1 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00048 | MAJOR | QC-JAVCWE390[00048] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\main\java\jenkins\model\GlobalSCMRetryCountConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.GlobalSCMRetryCountConfiguration

Module / class or interface : jenkins.model.GlobalSCMRetryCountConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | getScmCheckoutRetryCount() | 1 | 1
boolean | configure(StaplerRequest;JSONObject) | 1 | 3

#### File core\src\main\java\jenkins\model\InterruptedBuildAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
InvisibleAction | jenkins.model.InterruptedBuildAction

Module / class or interface : jenkins.model.InterruptedBuildAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
InterruptedBuildAction | InterruptedBuildAction(Collection<?extendsCauseOfInterruption>) | 1 | 1
List<CauseOfInterruption> | getCauses() | 1 | 1

#### File core\src\main\java\jenkins\model\Jenkins.java 1 rule violations (XML file)

Module / class or interface : jenkins.model.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00297 | BLOCKER | QC-JAV999999[00297] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\main\\java\\jenkins\\model\\Jenkins.java near following tokens . Nonnull ; import javax . annotation . Nullable ; @ ExportedBean public class Jenkins extends AbstractCIBase implements ModifiableTopLevelItemGroup , StaplerProxy

#### File core\src\main\java\jenkins\model\JenkinsLocationConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.JenkinsLocationConfiguration

Module / class or interface : jenkins.model.JenkinsLocationConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JenkinsLocationConfiguration | get() | 1 | 1
JenkinsLocationConfiguration | JenkinsLocationConfiguration() | 1 | 1
void | load() | 4 | 5
String | getAdminAddress() | 2 | 3
void | setAdminAddress(String) | 2 | 3
String | getUrl() | 1 | 1
void | setUrl(String) | 2 | 4
boolean | configure(StaplerRequest;JSONObject) | 1 | 2
FormValidation | doCheckUrl(String) | 2 | 2
FormValidation | doCheckAdminAddress(String) | 1 | 3

#### File core\src\main\java\jenkins\model\MasterBuildConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalConfiguration | jenkins.model.MasterBuildConfiguration

Module / class or interface : jenkins.model.MasterBuildConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | getNumExecutors() | 1 | 1
String | getLabelString() | 1 | 1
boolean | configure(StaplerRequest;JSONObject) | 3 | 7

#### File core\src\main\java\jenkins\model\ModelObjectWithContextMenu.java 5 rule violations (XML file)

Module / class or interface : jenkins.model.ModelObjectWithContextMenu

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ContextMenu | doContextMenu(StaplerRequest;StaplerResponse) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 5

Line start | Criticity class | Rule
--- | --- | ---
00166 | MAJOR | QC-JAVCWE493[00166] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00172 | MAJOR | QC-JAVCWE493[00172] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00178 | MAJOR | QC-JAVCWE493[00178] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00184 | MAJOR | QC-JAVCWE493[00184] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00190 | MAJOR | QC-JAVCWE493[00190] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\main\java\jenkins\model\ModifiableTopLevelItemGroup.java 0 rule violation (XML file)

Module / class or interface : jenkins.model.ModifiableTopLevelItemGroup

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TopLevelItem | createProjectFromXML(String;InputStream) | 1 | 1
TopLevelItem | createProject(TopLevelItemDescriptor;String;boolean) | 1 | 1

#### File core\src\main\java\jenkins\model\ProjectNamingStrategy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.ProjectNamingStrategy

Module / class or interface : jenkins.model.ProjectNamingStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ProjectNamingStrategyDescriptor | getDescriptor() | 1 | 1
DescriptorExtensionList<ProjectNamingStrategy,ProjectNamingStrategyDescriptor> | all() | 1 | 1
void | checkName(String) | 1 | 0
boolean | isForceExistingJobs() | 1 | 1

#### File core\src\main\java\jenkins\model\TransientFingerprintFacetFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.TransientFingerprintFacetFactory

Module / class or interface : jenkins.model.TransientFingerprintFacetFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | createFor(Fingerprint;List<FingerprintFacet>) | 1 | 1
ExtensionList<TransientFingerprintFacetFactory> | all() | 1 | 1

#### File core\src\main\java\jenkins\model\UnlabeledLoadStatistics.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
LoadStatistics | jenkins.model.UnlabeledLoadStatistics

Module / class or interface : jenkins.model.UnlabeledLoadStatistics

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UnlabeledLoadStatistics | UnlabeledLoadStatistics() | 1 | 1
int | computeIdleExecutors() | 3 | 3
int | computeTotalExecutors() | 3 | 3
int | computeQueueLength() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00049 | INFO | QC-JAV999996[00049] CPD de longueur 54 commencant en 76 (ligne 49) et 165 (ligne 61): ) { int r = 0 ; for ( Computer c : Jenkins . getInstance ( ) . getComputers ( ) ) { Node node = c . getNode ( ) ; if ( ( node != null ) __ ( ( node . getMode ( ) == Mode . NORMAL ) __ (
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\jenkins\model\lazy\AbstractLazyLoadRunMap.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMap<Integer,R> | jenkins.model.lazy.AbstractLazyLoadRunMap

Module / class or interface : jenkins.model.lazy.AbstractLazyLoadRunMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractLazyLoadRunMap | AbstractLazyLoadRunMap(File) | 1 | 1
void | initBaseDir(File) | 2 | 3
boolean | baseDirInitialized() | 1 | 1
void | loadIdOnDisk() | 4 | 9
Comparator<?superInteger> | comparator() | 1 | 1
boolean | isEmpty() | 1 | 1
Set<Entry<Integer,R>> | entrySet() | 1 | 2
SortedMap<Integer,R> | getLoadedBuilds() | 1 | 1
SortedMap<Integer,R> | subMap(Integer;Integer) | 4 | 9
SortedMap<Integer,R> | headMap(Integer) | 1 | 1
SortedMap<Integer,R> | tailMap(Integer) | 1 | 1
Integer | firstKey() | 2 | 3
Integer | lastKey() | 2 | 3
R | newestBuild() | 1 | 1
R | oldestBuild() | 1 | 1
R | get(Object) | 2 | 3
R | get(int) | 1 | 1
R | search(int;Direction) | 21 | 31
int | signOfCompare(int;int) | 3 | 3
R | getById(String) | 4 | 6
R | getByNumber(int) | 1 | 1
R | put(R) | 1 | 1
R | _put(R) | 1 | 1
R | put(Integer;R) | 3 | 16
R | unwrap(Reference<R>) | 1 | 1
void | putAll(Map<?extendsInteger,?extendsR>) | 2 | 6
TreeMap<Integer,BuildReference<R>> | all() | 2 | 1
Index | copy() | 1 | 1
R | load(int;Index) | 2 | 3
R | load(String;Index) | 2 | 4
R | load(File;Index) | 3 | 11
int | getNumberOf(R) | 1 | 1
String | getIdOf(R) | 1 | 1
BuildReference<R> | createReference(R) | 1 | 1
R | retrieve(File) | 1 | 1
boolean | removeValue(R) | 1 | 5
void | reset(TreeMap<Integer,R>) | 2 | 6
int | hashCode() | 1 | 1
boolean | equals(Object) | 1 | 1
FilenameFilter | createDirectoryFilter() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8

Line start | Criticity class | Rule
--- | --- | ---
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAVCWE390[00230] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00440 | MAJOR | QC-JAV000001[00440] Avoid declaring class instance within loop, performance impact
00445 | MAJOR | QC-JAV000001[00445] Avoid declaring class instance within loop, performance impact
00451 | MAJOR | QC-JAV000001[00451] Avoid declaring class instance within loop, performance impact
00568 | MAJOR | QC-JAV000001[00568] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAV000001[00569] Avoid declaring class instance within loop, performance impact
00719 | MAJOR | QC-JAV000001[00719] Avoid declaring class instance within loop, performance impact
00720 | MAJOR | QC-JAV000001[00720] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\jenkins\model\lazy\Boundary.java 0 rule violation (XML file)

Module / class or interface : jenkins.model.lazy.

#### File core\src\main\java\jenkins\model\lazy\BuildReference.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SoftReference<R> | jenkins.model.lazy.BuildReference

Module / class or interface : jenkins.model.lazy.BuildReference

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildReference | BuildReference(String;R) | 1 | 2
boolean | equals(Object) | 3 | 4
int | hashCode() | 1 | 1

#### File core\src\main\java\jenkins\model\lazy\BuildReferenceMapAdapter.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.lazy.BuildReferenceMapAdapter

Module / class or interface : jenkins.model.lazy.BuildReferenceMapAdapter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BuildReferenceMapAdapter | BuildReferenceMapAdapter(AbstractLazyLoadRunMap<R>;SortedMap<Integer,BuildReference<R>>) | 1 | 2
R | unwrap(BuildReference<R>) | 3 | 4
BuildReference<R> | wrap(R) | 2 | 2
Comparator<?superInteger> | comparator() | 1 | 1
SortedMap<Integer,R> | subMap(Integer;Integer) | 1 | 1
SortedMap<Integer,R> | headMap(Integer) | 1 | 1
SortedMap<Integer,R> | tailMap(Integer) | 1 | 1
Integer | firstKey() | 1 | 1
Integer | lastKey() | 1 | 1
Set<Integer> | keySet() | 1 | 1
Collection<R> | values() | 1 | 1
Set<Entry<Integer,R>> | entrySet() | 1 | 1
int | size() | 1 | 1
boolean | isEmpty() | 1 | 1
boolean | containsKey(Object) | 1 | 1
boolean | containsValue(Object) | 1 | 1
R | get(Object) | 1 | 1
R | put(Integer;R) | 1 | 1
R | remove(Object) | 1 | 1
void | putAll(Map<?extendsInteger,?extendsR>) | 2 | 1
void | clear() | 1 | 1
boolean | equals(Object) | 1 | 1
int | hashCode() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 4

Line start | Criticity class | Rule
--- | --- | ---
00139 | INFO | QC-JAV999996[00139] CPD de longueur 55 commencant en 723 (ligne 139) et 1237 (ligne 246): { this . core = core ; } public int size ( ) { return core . size ( ) ; } public boolean isEmpty ( ) { return core . isEmpty ( ) ; } public boolean contains ( Object o ) { throw new UnsupportedOperationException ( ) ; } public Iterator _ R
00168 | INFO | QC-JAV999996[00168] CPD de longueur 82 commencant en 854 (ligne 168) et 1398 (ligne 273): : this ) list . add ( r ) ; return list . toArray ( ) ; } public _ T _ T [ ] toArray ( T [ ] a ) { int size = size ( ) ; T [ ] r = a ; if ( r . length _ size ) r = ( T [ ] ) Array . newInstance ( a . getClass ( ) . getComponentType ( ) , size ) ; Iterator _ R
00190 | INFO | QC-JAV999996[00190] CPD de longueur 64 commencant en 994 (ligne 190) et 1548 (ligne 295): value ) ) ; } public boolean remove ( Object o ) { throw new UnsupportedOperationException ( ) ; } public boolean containsAll ( Collection _ ? _ c ) { for ( Object o : c ) { if ( ! contains ( o ) ) return false ; } return true ; } public boolean addAll ( Collection _ ? extends R
00209 | INFO | QC-JAV999996[00209] CPD de longueur 119 commencant en 1071 (ligne 209) et 1635 (ligne 314): : c ) { b |= add ( r ) ; } return b ; } public boolean removeAll ( Collection _ ? _ c ) { boolean b = false ; for ( Object o : c ) { b |= remove ( o ) ; } return b ; } public boolean retainAll ( Collection _ ? _ c ) { throw new UnsupportedOperationException ( ) ; } public void clear ( ) { core . clear ( ) ; } @ Override public boolean equals ( Object o ) { return core . equals ( o ) ; } @ Override public int hashCode ( ) { return core . hashCode ( ) ; } }
00183 | MAJOR | QC-JAV000001[00183] Avoid declaring class instance within loop, performance impact
00288 | MAJOR | QC-JAV000001[00288] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\jenkins\model\lazy\SortedIntList.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<Integer> | jenkins.model.lazy.SortedIntList

Module / class or interface : jenkins.model.lazy.SortedIntList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SortedIntList | SortedIntList(int) | 1 | 2
SortedIntList | SortedIntList(SortedIntList) | 1 | 3
int | find(int) | 1 | 1
boolean | contains(Object) | 1 | 1
boolean | contains(int) | 1 | 1
Integer | get(int) | 2 | 2
int | size() | 1 | 1
boolean | add(Integer) | 1 | 1
boolean | add(int) | 1 | 3
void | ensureCapacity(int) | 2 | 3
int | lower(int) | 1 | 1
int | higher(int) | 1 | 1
int | floor(int) | 1 | 1
int | ceil(int) | 1 | 1
boolean | isInRange(int) | 1 | 1
void | sort() | 1 | 1
void | copyInto(int[]) | 1 | 1
void | removeValue(int) | 2 | 4
int | binarySearch(int[];int;int;int) | 5 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1

Line start | Criticity class | Rule
--- | --- | ---
00048 | CRITICAL | QC-JAVCWE476[00048] The argument that is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\main\java\jenkins\model\lazy\SortedList.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractList<T> | jenkins.model.lazy.SortedList

Module / class or interface : jenkins.model.lazy.SortedList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SortedList | SortedList(List<T>) | 1 | 2
int | find(T) | 1 | 1
boolean | contains(Object) | 1 | 1
T | get(int) | 1 | 1
int | size() | 1 | 1
T | remove(int) | 1 | 1
boolean | remove(Object) | 1 | 1
int | lower(T) | 1 | 1
int | higher(T) | 1 | 1
int | floor(T) | 1 | 1
int | ceil(T) | 1 | 1
boolean | isInRange(int) | 1 | 1
boolean | isSorted() | 3 | 3

#### File core\src\main\java\jenkins\mvn\DefaultGlobalSettingsProvider.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalSettingsProvider | jenkins.mvn.DefaultGlobalSettingsProvider

Module / class or interface : jenkins.mvn.DefaultGlobalSettingsProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultGlobalSettingsProvider | DefaultGlobalSettingsProvider() | 1 | 0
FilePath | supplySettings(AbstractBuild<?,?>;TaskListener) | 1 | 1

#### File core\src\main\java\jenkins\mvn\DefaultSettingsProvider.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SettingsProvider | jenkins.mvn.DefaultSettingsProvider

Module / class or interface : jenkins.mvn.DefaultSettingsProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultSettingsProvider | DefaultSettingsProvider() | 1 | 0
FilePath | supplySettings(AbstractBuild<?,?>;TaskListener) | 1 | 1

#### File core\src\main\java\jenkins\mvn\FilePathGlobalSettingsProvider.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GlobalSettingsProvider | jenkins.mvn.FilePathGlobalSettingsProvider

Module / class or interface : jenkins.mvn.FilePathGlobalSettingsProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePathGlobalSettingsProvider | FilePathGlobalSettingsProvider(String) | 1 | 1
String | getPath() | 1 | 1
FilePath | supplySettings(AbstractBuild<?,?>;TaskListener) | 4 | 5

#### File core\src\main\java\jenkins\mvn\FilePathSettingsProvider.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SettingsProvider | jenkins.mvn.FilePathSettingsProvider

Module / class or interface : jenkins.mvn.FilePathSettingsProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePathSettingsProvider | FilePathSettingsProvider(String) | 1 | 1
String | getPath() | 1 | 1
FilePath | supplySettings(AbstractBuild<?,?>;TaskListener) | 4 | 5

#### File core\src\main\java\jenkins\mvn\GlobalSettingsProvider.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<GlobalSettingsProvider> | jenkins.mvn.GlobalSettingsProvider

Module / class or interface : jenkins.mvn.GlobalSettingsProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePath | supplySettings(AbstractBuild<?,?>;TaskListener) | 1 | 1
GlobalSettingsProvider | parseSettingsProvider(StaplerRequest) | 2 | 3
FilePath | getSettingsFilePath(GlobalSettingsProvider;AbstractBuild<?,?>;TaskListener) | 2 | 2
String | getSettingsRemotePath(GlobalSettingsProvider;AbstractBuild<?,?>;TaskListener) | 1 | 2

#### File core\src\main\java\jenkins\mvn\GlobalSettingsProviderDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<GlobalSettingsProvider> | jenkins.mvn.GlobalSettingsProviderDescriptor

Module / class or interface : jenkins.mvn.GlobalSettingsProviderDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<GlobalSettingsProvider,GlobalSettingsProviderDescriptor> | all() | 1 | 1

#### File core\src\main\java\jenkins\mvn\SettingsProvider.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<SettingsProvider> | jenkins.mvn.SettingsProvider

Module / class or interface : jenkins.mvn.SettingsProvider

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePath | supplySettings(AbstractBuild<?,?>;TaskListener) | 1 | 1
SettingsProvider | parseSettingsProvider(StaplerRequest) | 2 | 3
FilePath | getSettingsFilePath(SettingsProvider;AbstractBuild<?,?>;TaskListener) | 2 | 3
String | getSettingsRemotePath(SettingsProvider;AbstractBuild<?,?>;TaskListener) | 1 | 2

#### File core\src\main\java\jenkins\mvn\SettingsProviderDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<SettingsProvider> | jenkins.mvn.SettingsProviderDescriptor

Module / class or interface : jenkins.mvn.SettingsProviderDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DescriptorExtensionList<SettingsProvider,SettingsProviderDescriptor> | all() | 1 | 1

#### File core\src\main\java\jenkins\scm\DefaultSCMCheckoutStrategyImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SCMCheckoutStrategy | jenkins.scm.DefaultSCMCheckoutStrategyImpl

Module / class or interface : jenkins.scm.DefaultSCMCheckoutStrategyImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultSCMCheckoutStrategyImpl | DefaultSCMCheckoutStrategyImpl() | 1 | 0

#### File core\src\main\java\jenkins\scm\SCMCheckoutStrategy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<SCMCheckoutStrategy> | jenkins.scm.SCMCheckoutStrategy

Module / class or interface : jenkins.scm.SCMCheckoutStrategy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | preCheckout(AbstractBuild<?,?>;Launcher;BuildListener) | 3 | 3
void | checkout(AbstractBuildExecution) | 1 | 1
SCMCheckoutStrategyDescriptor | getDescriptor() | 1 | 1

#### File core\src\main\java\jenkins\scm\SCMCheckoutStrategyDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<SCMCheckoutStrategy> | jenkins.scm.SCMCheckoutStrategyDescriptor

Module / class or interface : jenkins.scm.SCMCheckoutStrategyDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SCMCheckoutStrategyDescriptor | SCMCheckoutStrategyDescriptor(Class<?extendsSCMCheckoutStrategy>) | 1 | 1
SCMCheckoutStrategyDescriptor | SCMCheckoutStrategyDescriptor() | 1 | 0
boolean | isApplicable(AbstractProject) | 1 | 1
DescriptorExtensionList<SCMCheckoutStrategy,SCMCheckoutStrategyDescriptor> | all() | 1 | 1
List<SCMCheckoutStrategyDescriptor> | _for(AbstractProject) | 3 | 3

#### File core\src\main\java\jenkins\security\ApiTokenFilter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.security.ApiTokenFilter

Module / class or interface : jenkins.security.ApiTokenFilter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | init(FilterConfig) | 1 | 0
void | doFilter(ServletRequest;ServletResponse;FilterChain) | 3 | 6
void | destroy() | 1 | 0

#### File core\src\main\java\jenkins\security\ApiTokenProperty.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UserProperty | jenkins.security.ApiTokenProperty

Module / class or interface : jenkins.security.ApiTokenProperty

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ApiTokenProperty | ApiTokenProperty() | 1 | 1
ApiTokenProperty | ApiTokenProperty(String) | 1 | 1
String | getApiToken() | 2 | 3
boolean | matchesPassword(String) | 1 | 1
void | changeApiToken() | 2 | 2
void | _changeApiToken() | 1 | 3
UserProperty | reconfigure(StaplerRequest;JSONObject) | 1 | 1

#### File core\src\main\java\jenkins\security\ConfidentialKey.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.security.ConfidentialKey

Module / class or interface : jenkins.security.ConfidentialKey

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ConfidentialKey | ConfidentialKey(String) | 1 | 1
byte[] | load() | 1 | 1
void | store(byte[]) | 1 | 1
String | getId() | 1 | 1

#### File core\src\main\java\jenkins\security\ConfidentialStore.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.security.ConfidentialStore

Module / class or interface : jenkins.security.ConfidentialStore

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | store(ConfidentialKey;byte[]) | 1 | 1
byte[] | load(ConfidentialKey) | 1 | 1
byte[] | randomBytes(int) | 1 | 1
ConfidentialStore | get() | 4 | 5

#### File core\src\main\java\jenkins\security\CryptoConfidentialKey.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConfidentialKey | jenkins.security.CryptoConfidentialKey

Module / class or interface : jenkins.security.CryptoConfidentialKey

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CryptoConfidentialKey | CryptoConfidentialKey(String) | 1 | 1
CryptoConfidentialKey | CryptoConfidentialKey(Class;String) | 1 | 1
SecretKey | getKey() | 2 | 2
Cipher | encrypt() | 1 | 4
Cipher | decrypt() | 1 | 4

#### File core\src\main\java\jenkins\security\DefaultConfidentialStore.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConfidentialStore | jenkins.security.DefaultConfidentialStore

Module / class or interface : jenkins.security.DefaultConfidentialStore

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultConfidentialStore | DefaultConfidentialStore() | 1 | 1
DefaultConfidentialStore | DefaultConfidentialStore(File) | 3 | 5
void | store(ConfidentialKey;byte[]) | 1 | 10
byte[] | load(ConfidentialKey) | 2 | 12
byte[] | verifyMagic(byte[]) | 4 | 8
File | getFileFor(ConfidentialKey) | 1 | 1
byte[] | randomBytes(int) | 1 | 3

#### File core\src\main\java\jenkins\security\HMACConfidentialKey.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConfidentialKey | jenkins.security.HMACConfidentialKey

Module / class or interface : jenkins.security.HMACConfidentialKey

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HMACConfidentialKey | HMACConfidentialKey(String;int) | 1 | 2
HMACConfidentialKey | HMACConfidentialKey(String) | 1 | 1
HMACConfidentialKey | HMACConfidentialKey(Class;String;int) | 1 | 1
HMACConfidentialKey | HMACConfidentialKey(Class;String) | 1 | 1
byte[] | mac(byte[]) | 1 | 1
boolean | checkMac(byte[];byte[]) | 1 | 1
String | mac(String) | 1 | 2
boolean | checkMac(String;String) | 1 | 1
byte[] | chop(byte[]) | 2 | 4
Mac | createMac() | 1 | 4
SecretKey | getKey() | 2 | 1

#### File core\src\main\java\jenkins\security\HexStringConfidentialKey.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ConfidentialKey | jenkins.security.HexStringConfidentialKey

Module / class or interface : jenkins.security.HexStringConfidentialKey

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HexStringConfidentialKey | HexStringConfidentialKey(String;int) | 2 | 3
HexStringConfidentialKey | HexStringConfidentialKey(Class;String;int) | 1 | 1
String | get() | 2 | 2

#### File core\src\main\java\jenkins\security\RekeySecretAdminMonitor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AdministrativeMonitor | jenkins.security.RekeySecretAdminMonitor

Module / class or interface : jenkins.security.RekeySecretAdminMonitor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RekeySecretAdminMonitor | RekeySecretAdminMonitor() | 2 | 2
Object | getTarget() | 1 | 2
boolean | isActivated() | 1 | 1
boolean | isDone() | 1 | 1
void | setNeeded() | 1 | 1
boolean | isScanOnBoot() | 1 | 1
HttpResponse | doScan(StaplerRequest) | 7 | 3
boolean | isRewriterActive() | 1 | 1
AnnotatedLargeText | getLogText() | 1 | 1
FileBoolean | state(String) | 1 | 1
void | scanOnReboot() | 2 | 5
File | getLogFile() | 1 | 1
File | getBaseDir() | 1 | 1

#### File core\src\main\java\jenkins\slaves\JnlpSlaveAgentProtocol.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AgentProtocol | jenkins.slaves.JnlpSlaveAgentProtocol

Module / class or interface : jenkins.slaves.JnlpSlaveAgentProtocol

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
void | handle(Socket) | 1 | 1

#### File core\src\main\java\jenkins\slaves\JnlpSlaveAgentProtocol2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
JnlpSlaveAgentProtocol | jenkins.slaves.JnlpSlaveAgentProtocol2

Module / class or interface : jenkins.slaves.JnlpSlaveAgentProtocol2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getName() | 1 | 1
void | handle(Socket) | 1 | 1

#### File core\src\main\java\jenkins\slaves\StandardOutputSwapper.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ComputerListener | jenkins.slaves.StandardOutputSwapper

Module / class or interface : jenkins.slaves.StandardOutputSwapper

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | preOnline(Computer;Channel;FilePath;TaskListener) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00066 | MAJOR | QC-JAVCWE493[00066] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00066 | MINOR | QC-JAVCWE500[00066] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\jenkins\util\JSONSignatureValidator.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.JSONSignatureValidator

Module / class or interface : jenkins.util.JSONSignatureValidator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JSONSignatureValidator | JSONSignatureValidator(String) | 1 | 1
FormValidation | verifySignature(JSONObject) | 6 | 16

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00058 | MAJOR | QC-JAV000001[00058] Avoid declaring class instance within loop, performance impact
00058 | MAJOR | QC-JAV000001[00058] Avoid declaring class instance within loop, performance impact
00061 | MAJOR | QC-JAV000001[00061] Avoid declaring class instance within loop, performance impact
00063 | MAJOR | QC-JAV000001[00063] Avoid declaring class instance within loop, performance impact
00075 | MAJOR | QC-JAV000001[00075] Avoid declaring class instance within loop, performance impact
00081 | MAJOR | QC-JAV000001[00081] Avoid declaring class instance within loop, performance impact
00083 | MAJOR | QC-JAV000001[00083] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\jenkins\util\MarkFindingOutputStream.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
OutputStream | jenkins.util.MarkFindingOutputStream

Module / class or interface : jenkins.util.MarkFindingOutputStream

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MarkFindingOutputStream | MarkFindingOutputStream(OutputStream) | 1 | 1
void | write(int) | 6 | 1
void | write(byte;int;int) | 5 | 5
void | flush() | 1 | 2
void | close() | 1 | 2
void | flushPartialMatch() | 2 | 2
void | onMarkFound() | 1 | 1
byte[] | toUTF8(String) | 1 | 2

#### File core\src\main\java\jenkins\util\NonLocalizable.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Localizable | jenkins.util.NonLocalizable

Module / class or interface : jenkins.util.NonLocalizable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
NonLocalizable | NonLocalizable(String) | 1 | 2
String | toString(Locale) | 1 | 1
String | toString() | 1 | 1

#### File core\src\main\java\jenkins\util\ProgressiveRendering.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.ProgressiveRendering

Module / class or interface : jenkins.util.ProgressiveRendering

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ProgressiveRendering | ProgressiveRendering() | 1 | 2
void | start() | 1 | 2
void | compute() | 1 | 1
JSON | data() | 1 | 1
void | progress(double) | 2 | 2
boolean | canceled() | 4 | 7
JSONObject | news() | 1 | 9
ExecutorService | executorService() | 1 | 1
long | timeout() | 1 | 1

#### File core\src\main\java\jenkins\util\ServerTcpPort.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.ServerTcpPort

Module / class or interface : jenkins.util.ServerTcpPort

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ServerTcpPort | ServerTcpPort(int;String) | 1 | 2
ServerTcpPort | ServerTcpPort(JSONObject) | 1 | 2
int | getPort() | 3 | 3

#### File core\src\main\java\jenkins\util\TimeDuration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.TimeDuration

Module / class or interface : jenkins.util.TimeDuration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TimeDuration | TimeDuration(long) | 1 | 1
int | getTime() | 1 | 1
long | getTimeInMillis() | 1 | 1
long | as(TimeUnit) | 1 | 1
TimeDuration | fromString(String) | 4 | 5

#### File core\src\main\java\jenkins\util\TreeString.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.TreeString

Module / class or interface : jenkins.util.TreeString

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TreeString | TreeString() | 1 | 1
TreeString | TreeString(TreeString;String) | 1 | 3
String | getLabel() | 1 | 1
TreeString | split(String) | 1 | 7
int | depth() | 2 | 5
boolean | equals(Object) | 2 | 2
int | hashCode() | 2 | 6
String | toString() | 3 | 10
void | dedup(Map<String,char[]>) | 3 | 4
boolean | isBlank() | 1 | 1
String | toString(TreeString) | 1 | 1
TreeString | of(String) | 2 | 2

#### File core\src\main\java\jenkins\util\TreeStringBuilder.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.TreeStringBuilder

Module / class or interface : jenkins.util.TreeStringBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TreeString | intern(String) | 2 | 2
TreeString | intern(TreeString) | 2 | 2
void | dedup() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00053 | MAJOR | QC-JAV000001[00053] Avoid declaring class instance within loop, performance impact
00054 | MAJOR | QC-JAV000001[00054] Avoid declaring class instance within loop, performance impact

#### File core\src\main\java\jenkins\util\io\FileBoolean.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.io.FileBoolean

Module / class or interface : jenkins.util.io.FileBoolean

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FileBoolean | FileBoolean(File) | 1 | 1
FileBoolean | FileBoolean(Class;String) | 1 | 1
boolean | get() | 1 | 1
boolean | isOn() | 1 | 1
boolean | isOff() | 1 | 1
void | set(boolean) | 3 | 2
void | on() | 1 | 3
void | off() | 1 | 1

#### File core\src\main\java\jenkins\util\io\OnMaster.java 0 rule violation (XML file)

Module / class or interface : jenkins.util.io.OnMaster

#### File core\src\main\java\jenkins\util\xstream\XStreamDOM.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.xstream.XStreamDOM

Module / class or interface : jenkins.util.xstream.XStreamDOM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
XStreamDOM | XStreamDOM(String;Map<String,String>;String) | 1 | 4
XStreamDOM | XStreamDOM(String;Map<String,String>;List<XStreamDOM>) | 1 | 4
XStreamDOM | XStreamDOM(String;String[];List<XStreamDOM>;String) | 1 | 4
String[] | toAttributeList(Map<String,String>) | 2 | 5
String | getTagName() | 1 | 1
XStreamDOM | expandMacro(VariableResolver<String>) | 4 | 9
String | getAttribute(String) | 3 | 4
int | getAttributeCount() | 1 | 1
String | getAttributeName(int) | 1 | 1
String | getAttribute(int) | 1 | 1
String | getValue() | 1 | 1
List<XStreamDOM> | getChildren() | 1 | 1
HierarchicalStreamReader | newReader() | 1 | 1
WriterImpl | newWriter() | 1 | 1
void | writeTo(OutputStream) | 1 | 1
void | writeTo(Writer) | 1 | 1
void | writeTo(HierarchicalStreamWriter) | 1 | 1
XStreamDOM | from(XStream;Object) | 1 | 3
XStreamDOM | from(InputStream) | 1 | 1
XStreamDOM | from(Reader) | 1 | 1
XStreamDOM | from(HierarchicalStreamReader) | 1 | 1
Map<String,String> | getAttributeMap() | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00540 | MAJOR | QC-JAVCWE493[00540] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00540 | MINOR | QC-JAVCWE500[00540] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File core\src\main\java\org\acegisecurity\providers\ldap\authenticator\BindAuthenticator2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
BindAuthenticator | org.acegisecurity.providers.ldap.authenticator.BindAuthenticator2

Module / class or interface : org.acegisecurity.providers.ldap.authenticator.BindAuthenticator2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
BindAuthenticator2 | BindAuthenticator2(InitialDirContextFactory) | 1 | 1
LdapUserDetails | authenticate(String;String) | 1 | 3
void | handleBindException(String;String;Throwable) | 1 | 2

#### File core\src\test\java\hudson\BulkChangeTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.BulkChangeTest

Module / class or interface : hudson.BulkChangeTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testNoBulkChange() | 1 | 3
void | testBulkChange() | 1 | 5
void | testNestedBulkChange() | 1 | 8

#### File core\src\test\java\hudson\ChannelTestCase.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.ChannelTestCase

Module / class or interface : hudson.ChannelTestCase

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 9
void | tearDown() | 1 | 5

#### File core\src\test\java\hudson\EnvVarsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.EnvVarsTest

Module / class or interface : hudson.EnvVarsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 3

#### File core\src\test\java\hudson\FilePathTest.java 12 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ChannelTestCase | hudson.FilePathTest

Module / class or interface : hudson.FilePathTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCopyTo() | 1 | 5
void | testNoFileLeakInCopyTo() | 2 | 9
void | testNoRaceConditionInCopyTo() | 2 | 6
void | givenSomeContentInFile(File;int) | 2 | 7
List<Future<Integer>> | whenFileIsCopied100TimesConcurrently(File) | 2 | 7
void | testRepeatCopyRecursiveTo() | 1 | 8
void | testArchiveBug4039() | 1 | 6
void | testNormalization() | 1 | 32
void | compare(String;String) | 1 | 1
void | testGetParent() | 1 | 12
FilePath | createFilePath(File;String) | 2 | 4
void | testList() | 1 | 9
void | testListWithExcludes() | 1 | 9
void | testListWithDefaultExcludes() | 1 | 9
void | testIsUnix() | 1 | 8
void | testCopyToWithPermission() | 3 | 15
void | testSymlinkInTar() | 2 | 12
void | testMultiSegmentRelativePaths() | 1 | 8
void | testValidateAntFileMask() | 1 | 13
void | assertValidateAntFileMask(String;FilePath;String) | 1 | 1
void | testValidateAntFileMaskBounded() | 2 | 12
void | testDeleteLongPathOnWindows() | 1 | 12
void | testInstallIfNecessaryAvoidsExcessiveDownloadsByUsingIfModifiedSince() | 1 | 9
void | testInstallIfNecessaryPerformsInstallation() | 1 | 8
URL | someUrlToZipFile(URLConnection) | 1 | 2
InputStream | someZippedContent() | 1 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 11

Line start | Criticity class | Rule
--- | --- | ---
00084 | MAJOR | QC-JAV000001[00084] Avoid declaring class instance within loop, performance impact
00085 | MAJOR | QC-JAV000001[00085] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact
00087 | MAJOR | QC-JAV000001[00087] Avoid declaring class instance within loop, performance impact
00139 | MAJOR | QC-JAV000001[00139] Avoid declaring class instance within loop, performance impact
00140 | MAJOR | QC-JAV000001[00140] Avoid declaring class instance within loop, performance impact
00141 | MAJOR | QC-JAV000001[00141] Avoid declaring class instance within loop, performance impact
00142 | MAJOR | QC-JAV000001[00142] Avoid declaring class instance within loop, performance impact
00176 | MAJOR | QC-JAV000001[00176] Avoid declaring class instance within loop, performance impact
00177 | MAJOR | QC-JAV000001[00177] Avoid declaring class instance within loop, performance impact
00470 | MAJOR | QC-JAV000001[00470] Avoid declaring class instance within loop, performance impact
00480 | MAJOR | QC-JAVCWE390[00480] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\test\java\hudson\FunctionsTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.FunctionsTest

Module / class or interface : hudson.FunctionsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGetActionUrl_absoluteUriWithAuthority() | 2 | 3
void | testGetActionUrl_absoluteUriWithoutAuthority() | 2 | 3
void | testGetActionUrl_absolutePath() | 2 | 7
void | testGetActionUrl_relativePath() | 2 | 8
void | testGetActionUrl_unparsable() | 1 | 1
Action | createMockAction(String) | 1 | 3
StaplerRequest | createMockRequest(String) | 1 | 3
void | testHumanReadableFileSize() | 1 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00050 | MAJOR | QC-JAV000001[00050] Avoid declaring class instance within loop, performance impact
00064 | MAJOR | QC-JAV000001[00064] Avoid declaring class instance within loop, performance impact
00081 | MAJOR | QC-JAV000001[00081] Avoid declaring class instance within loop, performance impact
00100 | MAJOR | QC-JAV000001[00100] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\hudson\LauncherTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChannelTestCase | hudson.LauncherTest

Module / class or interface : hudson.LauncherTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRemoteKill() | 2 | 17
void | testDecorateByEnv() | 1 | 9

#### File core\src\test\java\hudson\MarkupTextTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.MarkupTextTest

Module / class or interface : hudson.MarkupTextTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 2 | 4
void | testBoundary() | 2 | 3
void | testFindTokensOnSubText() | 2 | 6
void | testLiteralTextSurround() | 2 | 3
void | testAdjacent() | 1 | 8
void | testEscape() | 1 | 5
void | testPreEscape() | 1 | 4
void | testSubTextSubText() | 1 | 9

#### File core\src\test\java\hudson\PluginManagerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.PluginManagerTest

Module / class or interface : hudson.PluginManagerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | parseRequestedPlugins() | 1 | 1

#### File core\src\test\java\hudson\ProxyConfigurationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.ProxyConfigurationTest

Module / class or interface : hudson.ProxyConfigurationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testNoProxyHost() | 1 | 7

#### File core\src\test\java\hudson\UtilTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.UtilTest

Module / class or interface : hudson.UtilTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testReplaceMacro() | 1 | 17
void | testTimeSpanString() | 1 | 16
void | testEncodeSpaces() | 1 | 3
void | testEncodeAmpersand() | 1 | 3
void | testRawEncode() | 2 | 4
void | testTryParseNumber() | 1 | 4
void | testSymlink() | 3 | 21
void | testIsSymlink() | 1 | 15
void | testHtmlEscape() | 1 | 4
void | testDigestThreadSafety() | 3 | 12
void | testIsAbsoluteUri() | 1 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00286 | MAJOR | QC-JAV000001[00286] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\hudson\console\UrlAnnotatorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.console.UrlAnnotatorTest

Module / class or interface : hudson.console.UrlAnnotatorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testAnnotate() | 1 | 16

#### File core\src\test\java\hudson\markup\MyspacePolicyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Assert | hudson.markup.MyspacePolicyTest

Module / class or interface : hudson.markup.MyspacePolicyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testPolicy() | 1 | 26
void | assertIntact(String) | 1 | 2
void | assertReject(String;String) | 1 | 2
void | assertSanitize(String;String) | 1 | 1
String | sanitize(String) | 1 | 4

#### File core\src\test\java\hudson\matrix\CombinationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.matrix.CombinationTest

Module / class or interface : hudson.matrix.CombinationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testEval() | 1 | 14
boolean | eval(Combination;String) | 1 | 1

#### File core\src\test\java\hudson\model\AbstractItemTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.AbstractItemTest

Module / class or interface : hudson.model.AbstractItemTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSetDisplayName() | 1 | 4
void | testGetDefaultDisplayName() | 1 | 4
void | testSearchNameIsName() | 1 | 4
void | testGetDisplayNameOrNull() | 1 | 8
void | testSetDisplayNameOrNull() | 1 | 8

#### File core\src\test\java\hudson\model\AutoCompleteSeederTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.AutoCompleteSeederTest

Module / class or interface : hudson.model.AutoCompleteSeederTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<Object[]> | data() | 1 | 1
AutoCompleteSeederTest | AutoCompleteSeederTest(TestData) | 1 | 2
void | testAutoCompleteSeeds() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1

Line start | Criticity class | Rule
--- | --- | ---
00075 | CRITICAL | QC-JAVCWE476[00075] The argument dataSet is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\test\java\hudson\model\BallColorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.BallColorTest

Module / class or interface : hudson.model.BallColorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testHtmlColor() | 1 | 1

#### File core\src\test\java\hudson\model\BuildStatusSummaryTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.BuildStatusSummaryTest

Module / class or interface : hudson.model.BuildStatusSummaryTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 1
void | mockBuilds(Class<?extendsRun>) | 1 | 4
void | testStatusUnknownIfRunIsStillBuilding() | 1 | 4
void | testSuccess() | 1 | 17
void | testFixed() | 1 | 9
void | testFailure() | 1 | 5
void | testBecameFailure() | 1 | 6
void | testFailureSince() | 1 | 9
void | testBecameUnstable() | 1 | 4
void | testUnstableAfterFailure() | 1 | 5
void | testBuildGotAFailingTest() | 1 | 11
void | testBuildGotNoTests() | 1 | 11
void | testBuildEqualAmountOfTestsFailing() | 1 | 8
void | testBuildGotMoreFailingTests() | 1 | 8
void | testBuildGotLessFailingTests() | 1 | 8
void | testNonTestRelatedUnstable() | 1 | 5
void | testNonTestRelatedBecameUnstable() | 1 | 4
void | testAborted() | 1 | 4
void | testNotBuilt() | 1 | 4
void | buildHasTestResult(AbstractBuild;int) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 4

Line start | Criticity class | Rule
--- | --- | ---
00138 | INFO | QC-JAV999996[00138] CPD de longueur 62 commencant en 906 (ligne 138) et 1734 (ligne 264): ) { when ( this . build . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; when ( this . prevBuild . getResult ( ) ) . thenReturn ( Result . SUCCESS ) ; Summary summary = this . build . getBuildStatusSummary ( ) ; assertTrue ( summary . isWorse ) ; } @ Test public void testUnstableAfterFailure
00205 | INFO | QC-JAV999996[00205] CPD de longueur 67 commencant en 1330 (ligne 205) et 1438 (ligne 221): ) { mockBuilds ( AbstractBuild . class ) ; when ( this . build . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; when ( this . prevBuild . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; buildHasTestResult ( ( AbstractBuild ) this . prevBuild , 1 ) ; buildHasTestResult ( ( AbstractBuild ) this . build , 1
00205 | INFO | QC-JAV999996[00205] CPD de longueur 55 commencant en 1330 (ligne 205) et 1548 (ligne 237): ) { mockBuilds ( AbstractBuild . class ) ; when ( this . build . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; when ( this . prevBuild . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; buildHasTestResult ( ( AbstractBuild ) this . prevBuild , 1
00221 | INFO | QC-JAV999996[00221] CPD de longueur 55 commencant en 1438 (ligne 221) et 1548 (ligne 237): ) { mockBuilds ( AbstractBuild . class ) ; when ( this . build . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; when ( this . prevBuild . getResult ( ) ) . thenReturn ( Result . UNSTABLE ) ; buildHasTestResult ( ( AbstractBuild ) this . prevBuild , 1

#### File core\src\test\java\hudson\model\ComputerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ComputerTest

Module / class or interface : hudson.model.ComputerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRelocate() | 1 | 11

#### File core\src\test\java\hudson\model\DisplayNameListenerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.DisplayNameListenerTest

Module / class or interface : hudson.model.DisplayNameListenerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testOnCopied() | 1 | 9
void | testOnRenamedOldNameEqualsDisplayName() | 1 | 8
void | testOnRenamedOldNameNotEqualDisplayName() | 1 | 9

#### File core\src\test\java\hudson\model\FingerprintTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.FingerprintTest

Module / class or interface : hudson.model.FingerprintTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test() | 1 | 23
void | testMerge() | 1 | 14
void | testMerge2() | 1 | 12
void | testMerge3() | 1 | 11

#### File core\src\test\java\hudson\model\ItemsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ItemsTest

Module / class or interface : hudson.model.ItemsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | itemGroups() | 1 | 6
void | getCanonicalName() | 1 | 9
void | computeRelativeNamesAfterRenaming() | 1 | 7

#### File core\src\test\java\hudson\model\JobTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.JobTest

Module / class or interface : hudson.model.JobTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSetDisplayName() | 1 | 4
void | testSetDisplayNameZeroLength() | 1 | 3

#### File core\src\test\java\hudson\model\LoadStatisticsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.LoadStatisticsTest

Module / class or interface : hudson.model.LoadStatisticsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGraph() | 3 | 18

#### File core\src\test\java\hudson\model\ResourceListTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.ResourceListTest

Module / class or interface : hudson.model.ResourceListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 23
void | testEmptyLists() | 1 | 9
void | testSimpleR() | 1 | 9
void | testSimpleRW() | 1 | 9
void | testSimpleW() | 1 | 16
void | testParentChildR() | 1 | 11
void | testParentChildW() | 1 | 11
void | testParentChildR3() | 1 | 11
void | testParentChildW3() | 1 | 22
void | testMultiWrite1() | 3 | 14
void | testMultiWriteN() | 3 | 12
void | testMultiRead1() | 3 | 12
void | testMultiReadN() | 3 | 12

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00135 | INFO | QC-JAV999996[00135] CPD de longueur 77 commencant en 1013 (ligne 135) et 1245 (ligne 163): ; assertFalse ( "Reads should never conflict" , x . isCollidingWith ( y ) ) ; assertFalse ( "Reads should never conflict" , y . isCollidingWith ( x ) ) ; assertFalse ( "Reads should never conflict" , x . isCollidingWith ( z ) ) ; assertFalse ( "Reads should never conflict" , z . isCollidingWith ( x ) ) ; assertFalse ( "Reads should never conflict" , z . isCollidingWith ( y ) ) ; assertFalse ( "Reads should never conflict" , y . isCollidingWith ( z ) ) ; } public void testParentChildW

#### File core\src\test\java\hudson\model\RunTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.RunTest

Module / class or interface : hudson.model.RunTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | timezoneOfID() | 1 | 14

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00054 | INFO | QC-JAV999996[00054] CPD de longueur 51 commencant en 207 (ligne 54) et 292 (ligne 66): id , svc . submit ( new Callable _ String _ ( ) { @ Override public String call ( ) throws Exception { return r . getId ( ) ; } } ) . get ( ) ) ; } finally { svc . shutdown ( ) ; } TimeZone

#### File core\src\test\java\hudson\model\StubJob.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Job | hudson.model.StubJob

Module / class or interface : hudson.model.StubJob

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
StubJob | StubJob() | 1 | 1
boolean | isBuildable() | 1 | 1
SortedMap | _getRuns() | 1 | 1
void | removeRun(Run) | 1 | 0
File | getBuildDir() | 1 | 1
void | save() | 1 | 0

#### File core\src\test\java\hudson\model\TaskActionTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.TaskActionTest

Module / class or interface : hudson.model.TaskActionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testAnnotatedText() | 1 | 7

#### File core\src\test\java\hudson\model\TimeSeriesTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.TimeSeriesTest

Module / class or interface : hudson.model.TimeSeriesTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 3 | 13

#### File core\src\test\java\hudson\model\UpdateCenterTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.model.UpdateCenterTest

Module / class or interface : hudson.model.UpdateCenterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testData() | 2 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00055 | MAJOR | QC-JAVCWE392[00055] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact
00072 | MAJOR | QC-JAV000001[00072] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\hudson\model\ViewTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.ViewTest

Module / class or interface : hudson.model.ViewTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testAddDisplayNamesToSearchIndex() | 1 | 30

#### File core\src\test\java\hudson\os\DCOMSandbox.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.os.DCOMSandbox

Module / class or interface : hudson.os.DCOMSandbox

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | main(String[]) | 1 | 1

#### File core\src\test\java\hudson\os\SUTester.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.os.SUTester

Module / class or interface : hudson.os.SUTester

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | main(String[]) | 1 | 1

#### File core\src\test\java\hudson\scheduler\CronTabDayOfWeekLocaleTest.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scheduler.CronTabDayOfWeekLocaleTest

Module / class or interface : hudson.scheduler.CronTabDayOfWeekLocaleTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<Object[]> | parameters() | 3 | 4
CronTabDayOfWeekLocaleTest | CronTabDayOfWeekLocaleTest(Locale) | 1 | 1
void | hudson8658() | 1 | 8
void | isSundayAndNextRunIsMonday() | 1 | 8
void | isSundayAndPreviousRunIsMonday() | 1 | 8
void | isSundayAndNextRunIsTuesday() | 1 | 8
void | isSundayAndPreviousRunIsTuesday() | 1 | 8
void | isSundayAndNextRunIsWednesday() | 1 | 8
void | isSundayAndPreviousRunIsWednesday() | 1 | 8
void | isSundayAndNextRunIsThursday() | 1 | 8
void | isSundayAndPreviousRunIsThursday() | 1 | 8
void | isSundayAndNextRunIsFriday() | 1 | 8
void | isSundayAndPreviousRunIsFriday() | 1 | 8
void | isSundayAndNextRunIsSaturday() | 1 | 8
void | isSundayAndPreviousRunIsSaturday() | 1 | 8
void | isSundayAndNextRunIsNextSunday() | 1 | 8
void | isSundayAndPreviousRunIsPreviousSunday() | 1 | 8
void | isSundayAndNextRunIsNextSunday7() | 1 | 8
void | isSundayAndPreviousRunIsPreviousSunday7() | 1 | 8
void | isSaturdayAndNextRunIsSundayAsterisk() | 1 | 8
void | isSundayAndPreviousRunIsSaturdayAsterisk() | 1 | 8
void | compare(Calendar;Calendar) | 1 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 8

Line start | Criticity class | Rule
--- | --- | ---
00069 | INFO | QC-JAV999996[00069] CPD de longueur 55 commencant en 375 (ligne 69) et 475 (ligne 84): ) throws Exception { final Calendar cal = Calendar . getInstance ( locale ) ; cal . set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 0 * * 1" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil
00099 | INFO | QC-JAV999996[00099] CPD de longueur 55 commencant en 575 (ligne 99) et 675 (ligne 114): ) throws Exception { final Calendar cal = Calendar . getInstance ( locale ) ; cal . set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 0 * * 2" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil
00129 | INFO | QC-JAV999996[00129] CPD de longueur 55 commencant en 775 (ligne 129) et 875 (ligne 144): ) throws Exception { final Calendar cal = Calendar . getInstance ( locale ) ; cal . set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 0 * * 3" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil
00159 | INFO | QC-JAV999996[00159] CPD de longueur 55 commencant en 975 (ligne 159) et 1075 (ligne 174): ) throws Exception { final Calendar cal = Calendar . getInstance ( locale ) ; cal . set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 0 * * 4" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil
00189 | INFO | QC-JAV999996[00189] CPD de longueur 55 commencant en 1175 (ligne 189) et 1275 (ligne 204): ) throws Exception { final Calendar cal = Calendar . getInstance ( locale ) ; cal . set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 0 * * 5" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil
00219 | INFO | QC-JAV999996[00219] CPD de longueur 55 commencant en 1375 (ligne 219) et 1475 (ligne 234): ) throws Exception { final Calendar cal = Calendar . getInstance ( locale ) ; cal . set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 0 * * 6" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil
00254 | INFO | QC-JAV999996[00254] CPD de longueur 61 commencant en 1613 (ligne 254) et 1818 (ligne 285): final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . ceil ( cal ) ; final Calendar expected = Calendar . getInstance ( ) ; expected . set ( 2011 , 0 , 23 , 0 , 0 , 0 ) ; compare ( expected , actual ) ; } @ Test public void isSundayAndPreviousRunIsPreviousSunday
00269 | INFO | QC-JAV999996[00269] CPD de longueur 59 commencant en 1713 (ligne 269) et 1918 (ligne 300): final CronTab cron = new CronTab ( cronStr ) ; final Calendar actual = cron . floor ( cal ) ; final Calendar expected = Calendar . getInstance ( ) ; expected . set ( 2011 , 0 , 9 , 1 , 0 , 0 ) ; compare ( expected , actual ) ; } @ Test @
00034 | MAJOR | QC-JAV000001[00034] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\hudson\scheduler\CronTabEventualityTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scheduler.CronTabEventualityTest

Module / class or interface : hudson.scheduler.CronTabEventualityTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<Object[]> | parameters() | 1 | 5
Calendar | createLimit(Calendar;int;int) | 1 | 3
CronTabEventualityTest | CronTabEventualityTest(String;Hash) | 1 | 2
void | testYearlyWillBeEventuallyTriggeredWithinOneYear() | 1 | 3
void | testAnnuallyWillBeEventuallyTriggeredWithinOneYear() | 1 | 3
void | testMonthlyWillBeEventuallyTriggeredWithinOneMonth() | 1 | 3
void | testWeeklyWillBeEventuallyTriggeredWithinOneWeek() | 1 | 3
void | testDailyWillBeEventuallyTriggeredWithinOneDay() | 1 | 3
void | testMidnightWillBeEventuallyTriggeredWithinOneDay() | 1 | 3
void | testHourlyWillBeEventuallyTriggeredWithinOneHour() | 1 | 3
void | testFirstDayOfMonthWillBeEventuallyTriggeredWithinOneMonth() | 1 | 3
void | testFirstSundayOfMonthWillBeEventuallyTriggeredWithinOneMonthAndOneWeek() | 1 | 3
void | checkEventuality(Calendar;String;Calendar) | 2 | 5

#### File core\src\test\java\hudson\scheduler\CronTabTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.scheduler.CronTabTest

Module / class or interface : hudson.scheduler.CronTabTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 5
void | testCeil1() | 1 | 5
void | testCeil2() | 1 | 3
void | testCeil3() | 1 | 3
void | testCeil3_DoW7() | 1 | 3
void | testCeil4() | 1 | 12
void | testCeil5() | 1 | 12
void | testFloor1() | 1 | 5
void | testFloor2() | 1 | 3
void | testFloor3() | 1 | 3
void | testFloor4() | 1 | 6
void | compare(Calendar;Calendar) | 1 | 3
void | testHash1() | 1 | 3
void | testHash2() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00092 | INFO | QC-JAV999996[00092] CPD de longueur 176 commencant en 463 (ligne 92) et 670 (ligne 113): set ( 2011 , 0 , 16 , 0 , 0 , 0 ) ; final String cronStr = "0 23 * * 1 - 5" ; final CronTab cron = new CronTab ( cronStr ) ; final Calendar next = cron . ceil ( cal ) ; final Calendar expectedDate = Calendar . getInstance ( ) ; expectedDate . set ( 2011 , 0 , 17 , 23 , 0 , 0 ) ; assertEquals ( expectedDate . get ( Calendar . HOUR ) , next . get ( Calendar . HOUR ) ) ; assertEquals ( expectedDate . get ( Calendar . MINUTE ) , next . get ( Calendar . MINUTE ) ) ; assertEquals ( expectedDate . get ( Calendar . YEAR ) , next . get ( Calendar . YEAR ) ) ; assertEquals ( expectedDate . get ( Calendar . MONTH ) , next . get ( Calendar . MONTH ) ) ; assertEquals ( expectedDate . get ( Calendar . DAY_OF_MONTH ) , next . get ( Calendar . DAY_OF_MONTH ) ) ; } @

#### File core\src\test\java\hudson\search\SearchTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.search.SearchTest

Module / class or interface : hudson.search.SearchTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 8
void | testFindClosestSuggestedItem() | 1 | 13

#### File core\src\test\java\hudson\slaves\ComputerLauncherTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.slaves.ComputerLauncherTest

Module / class or interface : hudson.slaves.ComputerLauncherTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | jdk7() | 1 | 1
void | openJDK7() | 1 | 1
void | jdk6() | 1 | 1
void | jdk5() | 1 | 1
void | j2sdk4() | 1 | 1
void | jdk10() | 1 | 1
void | assertChecked(String;String) | 1 | 4

#### File core\src\test\java\hudson\slaves\NodeListTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.slaves.NodeListTest

Module / class or interface : hudson.slaves.NodeListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSerialization() | 1 | 11

#### File core\src\test\java\hudson\tasks\_maven\Maven3MojoNoteTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks._maven.Maven3MojoNoteTest

Module / class or interface : hudson.tasks._maven.Maven3MojoNoteTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testAnnotateMavenPlugin() | 1 | 1
void | testAnnotateCodehausPlugin() | 1 | 1
void | testAnnotateOtherPlugin() | 1 | 1
void | check(String;String) | 1 | 2
String | annotate(String) | 1 | 3

#### File core\src\test\java\hudson\tasks\junit\CaseResultTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.tasks.junit.CaseResultTest

Module / class or interface : hudson.tasks.junit.CaseResultTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CaseResultTest | CaseResultTest(String) | 1 | 1
void | testLocalizationOfStatus() | 1 | 8

#### File core\src\test\java\hudson\tasks\junit\SuiteResultTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.tasks.junit.SuiteResultTest

Module / class or interface : hudson.tasks.junit.SuiteResultTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
File | getDataFile(String) | 1 | 1
SuiteResult | parseOne(File) | 1 | 3
List<SuiteResult> | parseSuites(File) | 1 | 1
void | testIssue1233() | 1 | 7
void | testIssue1463() | 2 | 9
void | testIssue1472() | 1 | 7
void | testIssue2874() | 1 | 2
void | testErrorDetails() | 2 | 4
void | testSuiteResultPersistence() | 1 | 14
void | testSuiteStdioTrimming() | 2 | 17
void | testSuiteStdioTrimmingSurefire() | 1 | 14
void | testErrorInTestInitialization() | 1 | 5
void | testParseNestedTestSuites() | 2 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00152 | INFO | QC-JAV999996[00152] CPD de longueur 51 commencant en 914 (ligne 152) et 1122 (ligne 183): " . xml" ) ; try { Writer w = new FileWriter ( data ) ; try { PrintWriter pw = new PrintWriter ( w ) ; pw . println ( " _ testsuites name = 'x' _ " ) ; pw . println ( " _ testsuite failures = '0' errors = '0' tests = '1' name = 'x' _ " ) ; pw . println ( " _ testcase name = 'x' classname = 'x' / _ " ) ; pw . println ( " _ system - out / _ "

#### File core\src\test\java\hudson\tasks\junit\TestResultTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.tasks.junit.TestResultTest

Module / class or interface : hudson.tasks.junit.TestResultTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
File | getDataFile(String) | 1 | 1
void | testIpsTests() | 2 | 7
void | testXmlCompatibility() | 1 | 18
void | testDuplicateTestMethods() | 1 | 7
void | testTestSuiteDistributedOverMultipleFilesIsCountedAsOne() | 1 | 7
void | testDuplicatedTestSuiteIsNotCounted() | 1 | 7

#### File core\src\test\java\hudson\tasks\test\TestObjectTest.java 11 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.test.TestObjectTest

Module / class or interface : hudson.tasks.test.TestObjectTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSafe() | 1 | 7
void | uniquifyName() | 4 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 11

Line start | Criticity class | Rule
--- | --- | ---
00026 | MAJOR | QC-JAV000001[00026] Avoid declaring class instance within loop, performance impact
00026 | MAJOR | QC-JAV000001[00026] Avoid declaring class instance within loop, performance impact
00028 | MAJOR | QC-JAV000001[00028] Avoid declaring class instance within loop, performance impact
00030 | MAJOR | QC-JAV000001[00030] Avoid declaring class instance within loop, performance impact
00035 | MAJOR | QC-JAV000001[00035] Avoid declaring class instance within loop, performance impact
00035 | MAJOR | QC-JAV000001[00035] Avoid declaring class instance within loop, performance impact
00036 | MAJOR | QC-JAV000001[00036] Avoid declaring class instance within loop, performance impact
00040 | MAJOR | QC-JAV000001[00040] Avoid declaring class instance within loop, performance impact
00040 | MAJOR | QC-JAV000001[00040] Avoid declaring class instance within loop, performance impact
00028 | MAJOR | QC-JAV000001[00028] Avoid declaring class instance within loop, performance impact
00030 | MAJOR | QC-JAV000001[00030] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\hudson\util\ArgumentListBuilderTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Assert | hudson.util.ArgumentListBuilderTest

Module / class or interface : hudson.util.ArgumentListBuilderTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | assertArrayEquals(String;boolean[];boolean[]) | 1 | 1
Boolean[] | box(boolean[]) | 3 | 6
void | assertEmptyMask() | 1 | 7
void | assertLastArgumentIsMasked() | 1 | 7
void | assertSeveralMaskedArguments() | 1 | 9
void | assertPrependAfterAddingMasked() | 1 | 8
void | assertPrependBeforeAddingMasked() | 1 | 8
void | testToWindowsCommand() | 1 | 3
void | assertMaskOnClone() | 1 | 9
void | assertKeyValuePairsWithMask() | 1 | 6
void | assertKeyValuePairs() | 1 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00052 | INFO | QC-JAV999996[00052] CPD de longueur 53 commencant en 185 (ligne 52) et 981 (ligne 179): ; assertFalse ( "There shouldnt be any masked arguments" , builder . hasMaskedArguments ( ) ) ; boolean [ ] array = builder . toMaskArray ( ) ; assertNotNull ( "The mask array should not be null" , array ) ; assertArrayEquals ( "The mask array was incorrect" , ( new boolean [ ] { false , false , false } ) , array ) ; } @
00093 | INFO | QC-JAV999996[00093] CPD de longueur 56 commencant en 454 (ligne 93) et 546 (ligne 106): "There should be masked arguments" , builder . hasMaskedArguments ( ) ) ; boolean [ ] array = builder . toMaskArray ( ) ; assertNotNull ( "The mask array should not be null" , array ) ; assertArrayEquals ( "The mask array was incorrect" , ( new boolean [ ] { false , false , true , false } ) , array ) ; } @ Test public void assertPrependBeforeAddingMasked

#### File core\src\test\java\hudson\util\ConsistentHashTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.ConsistentHashTest

Module / class or interface : hudson.util.ConsistentHashTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBasic() | 1 | 17
void | testUnevenDisribution() | 4 | 12
void | testRemoval() | 4 | 13
void | testEmptyBehavior() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\hudson\util\CopyOnWriteListTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.CopyOnWriteListTest

Module / class or interface : hudson.util.CopyOnWriteListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSerialization() | 1 | 14

#### File core\src\test\java\hudson\util\CopyOnWriteMapTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.CopyOnWriteMapTest

Module / class or interface : hudson.util.CopyOnWriteMapTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testHashSerialization() | 1 | 14
void | testTreeSerialization() | 1 | 15

#### File core\src\test\java\hudson\util\CyclicGraphDetectorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.CyclicGraphDetectorTest

Module / class or interface : hudson.util.CyclicGraphDetectorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCycle() | 1 | 1
void | testCycle2() | 1 | 1
void | testCycle3() | 1 | 1

#### File core\src\test\java\hudson\util\DirScannerTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.DirScannerTest

Module / class or interface : hudson.util.DirScannerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGlobShouldUseDefaultExcludes() | 1 | 14
void | testGlobShouldIgnoreDefaultExcludesByRequest() | 1 | 13

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00039 | INFO | QC-JAV999996[00039] CPD de longueur 62 commencant en 46 (ligne 39) et 218 (ligne 62): ( ) throws Exception { FilePath tmp = new FilePath ( Util . createTempDir ( ) ) ; try { tmp . child ( " . gitignore" ) . touch ( 0 ) ; FilePath git = tmp . child ( " . git" ) ; git . mkdirs ( ) ; git . child ( "HEAD" ) . touch ( 0 ) ; DirScanner glob1
00086 | MAJOR | QC-JAVCWE493[00086] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\test\java\hudson\util\FormValidationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.FormValidationTest

Module / class or interface : hudson.util.FormValidationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testValidateRequired_OK() | 1 | 2
void | testValidateRequired_Null() | 1 | 3
void | testValidateRequired_Empty() | 1 | 3
void | testMessage() | 1 | 1

#### File core\src\test\java\hudson\util\IteratorsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.IteratorsTest

Module / class or interface : hudson.util.IteratorsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testReverseSequence() | 1 | 5
void | testSequence() | 1 | 5
void | testWrap() | 1 | 11
void | testLimit() | 1 | 2

#### File core\src\test\java\hudson\util\LineEndNormalizingWriterTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.LineEndNormalizingWriterTest

Module / class or interface : hudson.util.LineEndNormalizingWriterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 5
void | test2() | 1 | 5
void | test3() | 1 | 4

#### File core\src\test\java\hudson\util\MockSecretRule.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ExternalResource | hudson.util.MockSecretRule

Module / class or interface : hudson.util.MockSecretRule

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 4
void | after() | 2 | 2

#### File core\src\test\java\hudson\util\PackedMapTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.PackedMapTest

Module / class or interface : hudson.util.PackedMapTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBasic() | 2 | 13

#### File core\src\test\java\hudson\util\Point.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.Point

Module / class or interface : hudson.util.Point

#### File core\src\test\java\hudson\util\ProcessTreeTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChannelTestCase | hudson.util.ProcessTreeTest

Module / class or interface : hudson.util.ProcessTreeTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRemoting() | 1 | 5

#### File core\src\test\java\hudson\util\QuotedStringTokenizerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.QuotedStringTokenizerTest

Module / class or interface : hudson.util.QuotedStringTokenizerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | check(String;String) | 1 | 3
void | test1() | 1 | 1
void | test2() | 1 | 1
void | test3() | 1 | 1
void | test4() | 1 | 1
void | test5() | 1 | 1
void | test6() | 1 | 1
void | test7() | 1 | 1

#### File core\src\test\java\hudson\util\RobustReflectionConverterTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.RobustReflectionConverterTest

Module / class or interface : hudson.util.RobustReflectionConverterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRobustUnmarshalling() | 1 | 3
Point | read(XStream) | 1 | 2
void | testIfWeNeedWorkaround() | 1 | 3
void | testClassOwnership() | 1 | 22

#### File core\src\test\java\hudson\util\SubClassGeneratorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.SubClassGeneratorTest

Module / class or interface : hudson.util.SubClassGeneratorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFoo() | 1 | 8

#### File core\src\test\java\hudson\util\XStream2Test.java 1 rule violations (XML file)

Module / class or interface : hudson.util.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00049 | BLOCKER | QC-JAV999999[00049] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\core\\src\\test\\java\\hudson\\util\\XStream2Test.java near following tokens org . jvnet . hudson . test . Bug ; public class XStream2Test extends TestCase { public static final class Foo

#### File core\src\test\java\hudson\util\io\ReopenableRotatingFileOutputStreamTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.io.ReopenableRotatingFileOutputStreamTest

Module / class or interface : hudson.util.io.ReopenableRotatingFileOutputStreamTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRotation() | 2 | 15

#### File core\src\test\java\hudson\util\io\TarArchiverTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.io.TarArchiverTest

Module / class or interface : hudson.util.io.TarArchiverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | permission() | 1 | 30
void | brokenSymlinks() | 1 | 4

#### File core\src\test\java\hudson\util\io\ZipArchiverTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.util.io.ZipArchiverTest

Module / class or interface : hudson.util.io.ZipArchiverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 4
void | tearDown() | 1 | 1
void | testBackwardsSlashesOnWindows() | 1 | 19
void | fail(String;Throwable) | 1 | 2
void | deleteDir(File) | 4 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2

Line start | Criticity class | Rule
--- | --- | ---
00070 | MAJOR | QC-JAVCWE390[00070] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00091 | MAJOR | QC-JAVCWE390[00091] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\test\java\jenkins\RemotingJarSignatureTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.RemotingJarSignatureTest

Module / class or interface : jenkins.RemotingJarSignatureTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSignature() | 7 | 12

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00033 | MAJOR | QC-JAV000001[00033] Avoid declaring class instance within loop, performance impact
00037 | MAJOR | QC-JAV000001[00037] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\jenkins\ResilientJsonObjectTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.ResilientJsonObjectTest

Module / class or interface : jenkins.ResilientJsonObjectTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | databindingShouldIgnoreUnrecognizedJsonProperty() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00011 | MAJOR | QC-JAVCWE493[00011] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\test\java\jenkins\model\JenkinsGetRootUrlTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.JenkinsGetRootUrlTest

Module / class or interface : jenkins.model.JenkinsGetRootUrlTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 5
void | getConfiguredRootUrl() | 1 | 2
void | getAccessedRootUrl() | 1 | 2
void | preferConfiguredOverAccessed() | 1 | 3
void | doNotInheritProtocolWhenDispatchingRequest() | 1 | 3
void | doNotInheritProtocolWhenDispatchingRequest2() | 1 | 3
void | rootUrlIs(String) | 1 | 1
void | configured(String) | 1 | 1
void | accessing(String) | 1 | 7
URL | getUrl(String) | 1 | 2

#### File core\src\test\java\jenkins\model\lazy\AbstractLazyLoadRunMapTest.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Assert | jenkins.model.lazy.AbstractLazyLoadRunMapTest

Module / class or interface : jenkins.model.lazy.AbstractLazyLoadRunMapTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUpClass() | 1 | 1
void | setUp() | 1 | 2
void | lookup() | 1 | 10
void | lookup2() | 1 | 1
void | idempotentLookup() | 2 | 4
void | lookupWithBogusKeyType() | 1 | 3
void | firstKey() | 1 | 3
void | lastKey() | 1 | 3
void | search() | 1 | 2
void | unloadableData() | 1 | 4
void | eagerLoading() | 1 | 4
void | fastLookup() | 1 | 6
void | fastSearch() | 1 | 3
void | bogusCache() | 1 | 2
void | bogusCacheAndHiddenRealData() | 1 | 2
void | bogusCache2() | 1 | 3
void | incompleteCache() | 1 | 7
void | fastSubMap() | 1 | 6
void | identity() | 1 | 4
void | indexOutOfBounds() | 1 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00071 | INFO | QC-JAV999996[00071] CPD de longueur 65 commencant en 234 (ligne 71) et 806 (ligne 156): ) ; a . get ( 1 ) . asserts ( 1 , "A" ) ; assertNull ( a . get ( 2 ) ) ; a . get ( 3 ) . asserts ( 3 , "B" ) ; assertNull ( a . get ( 4 ) ) ; a . get ( 5 ) . asserts ( 5 , "C" ) ; assertNull
00046 | MAJOR | QC-JAVCWE493[00046] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00051 | MAJOR | QC-JAVCWE493[00051] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00055 | MAJOR | QC-JAVCWE493[00055] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00093 | MAJOR | QC-JAV000001[00093] Avoid declaring class instance within loop, performance impact
00111 | MAJOR | QC-JAVCWE390[00111] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00122 | MAJOR | QC-JAVCWE390[00122] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\test\java\jenkins\model\lazy\FakeMap.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractLazyLoadRunMap<Build> | jenkins.model.lazy.FakeMap
java.lang.Object | jenkins.model.lazy.Build

Module / class or interface : jenkins.model.lazy.FakeMap

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FakeMap | FakeMap(File) | 1 | 1
int | getNumberOf(Build) | 1 | 1
String | getIdOf(Build) | 1 | 1
FilenameFilter | createDirectoryFilter() | 1 | 1
Build | retrieve(File) | 1 | 3
Build | Build(int;String) | 1 | 2
void | asserts(int;String) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 2

Line start | Criticity class | Rule
--- | --- | ---
00041 | CRITICAL | QC-JAVCWE476[00041] The argument build is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00046 | CRITICAL | QC-JAVCWE476[00046] The argument build is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File core\src\test\java\jenkins\model\lazy\FakeMapBuilder.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.lazy.FakeMapBuilder

Module / class or interface : jenkins.model.lazy.FakeMapBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FakeMapBuilder | FakeMapBuilder() | 1 | 0
FakeMapBuilder | add(int;String) | 1 | 6
FakeMapBuilder | addCache(int;String) | 1 | 1
FakeMapBuilder | addBogusCache(int;int;String) | 1 | 6
FakeMapBuilder | addBoth(int;String) | 1 | 1
void | verifyId(String) | 1 | 2
FakeMapBuilder | addUnloadable(String) | 1 | 3
FakeMapBuilder | addUnloadableCache(int) | 1 | 3
FakeMap | make() | 1 | 2
Statement | apply(Statement;Description) | 1 | 1

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 3 | jenkins.model.lazy.FakeMapBuilder.add2\---dummymethode\------jenkins.model.lazy.FakeMapBuilder.add.id |
| 2 | jenkins.model.lazy.FakeMapBuilder.add.id\---java.io.File\------jenkins.model.lazy.FakeMapBuilder.add.build | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | jenkins.model.lazy.FakeMapBuilder.add.build\---java.io.File\------FileUtils.writeStringToFile1 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00081 | MAJOR | QC-JAVCWE390[00081] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File core\src\test\java\jenkins\model\lazy\SortedIntListTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.lazy.SortedIntListTest

Module / class or interface : jenkins.model.lazy.SortedIntListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLower() | 1 | 5

#### File core\src\test\java\jenkins\model\lazy\SortedListTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Assert | jenkins.model.lazy.SortedListTest

Module / class or interface : jenkins.model.lazy.SortedListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCeil() | 1 | 7
void | testFloor() | 1 | 7
void | testLower() | 1 | 7
void | testHigher() | 1 | 7
void | testRange() | 1 | 5
void | remove() | 1 | 6
void | testClone() | 2 | 14

#### File core\src\test\java\jenkins\security\ConfidentialStoreRule.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
ExternalResource | jenkins.security.ConfidentialStoreRule

Module / class or interface : jenkins.security.ConfidentialStoreRule

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 3
void | after() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00014 | MAJOR | QC-JAVCWE493[00014] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00015 | MAJOR | QC-JAVCWE493[00015] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File core\src\test\java\jenkins\util\MarkFindingOutputStreamTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | jenkins.util.MarkFindingOutputStreamTest

Module / class or interface : jenkins.util.MarkFindingOutputStreamTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFindTwice() | 1 | 3
void | testPartialMatchTurnsOutToBeWrongIn2ndWrite() | 1 | 5
void | testCloseInTheMiddle() | 1 | 4
void | testOneByOne() | 1 | 5
void | testWriteOneHoldOff() | 1 | 5
void | assertOutput(String) | 1 | 1
void | assertCount(int) | 1 | 1
void | write(String) | 1 | 1
void | writeOneByOne(String) | 2 | 3

#### File core\src\test\java\jenkins\util\TreeStringBuilderTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.TreeStringBuilderTest

Module / class or interface : jenkins.util.TreeStringBuilderTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test() | 1 | 7
void | testRandom() | 5 | 20
void | verify(String;TreeString) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00047 | MAJOR | QC-JAV000001[00047] Avoid declaring class instance within loop, performance impact
00051 | MAJOR | QC-JAV000001[00051] Avoid declaring class instance within loop, performance impact
00054 | MAJOR | QC-JAV000001[00054] Avoid declaring class instance within loop, performance impact

#### File core\src\test\java\jenkins\util\xstream\XStreamDOMTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.util.xstream.XStreamDOMTest

Module / class or interface : jenkins.util.xstream.XStreamDOMTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testMarshal() | 1 | 4
String | getTestData1() | 1 | 1
String | getTestData(String) | 1 | 1
Foo | createSomeFoo() | 1 | 4
void | testUnmarshal() | 1 | 7
void | testWriteToDOM() | 1 | 5
void | testNoChild() | 1 | 5
void | testNameEscape() | 1 | 5
void | testDomInMap() | 1 | 6
void | assertXStreamDOMEquals(XStreamDOM;XStreamDOM) | 5 | 10
void | readFromInputStream() | 2 | 5
void | escapeHandling() | 1 | 13
void | assertNamesAreEscaped(List<XStreamDOM>) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00167 | MAJOR | QC-JAV000001[00167] Avoid declaring class instance within loop, performance impact
00168 | MAJOR | QC-JAV000001[00168] Avoid declaring class instance within loop, performance impact
00169 | MAJOR | QC-JAV000001[00169] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\AbstractMavenBuild.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractBuild<P,B> | hudson.maven.AbstractMavenBuild

Module / class or interface : hudson.maven.AbstractMavenBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractMavenBuild | AbstractMavenBuild(P) | 1 | 1
AbstractMavenBuild | AbstractMavenBuild(P;Calendar) | 1 | 1
AbstractMavenBuild | AbstractMavenBuild(P;File) | 1 | 1
EnvVars | getEnvironment(TaskListener) | 2 | 4
String | getMavenOpts(TaskListener;EnvVars) | 1 | 1
String | expandTokens(TaskListener;String) | 2 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00043 | MAJOR | QC-JAVCWE493[00043] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00043 | MINOR | QC-JAVCWE500[00043] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\AbstractMavenBuilder.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.AbstractMavenBuilder

Module / class or interface : hudson.maven.AbstractMavenBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractMavenBuilder | AbstractMavenBuilder(BuildListener;Collection<MavenModule>;List<String>;Map<String,String>) | 2 | 4
void | end(Launcher) | 3 | 2
String | formatArgs(List<String>) | 3 | 5
void | registerSystemProperties() | 4 | 3
String | format(NumberFormat;long) | 1 | 1
ClassLoader | getClassLoader() | 1 | 1
void | initializeAsynchronousExecutions() | 3 | 1
void | recordAsynchronousExecution(Future<?>) | 1 | 1
Result | waitForAsynchronousExecutions() | 2 | 3
boolean | isDebug() | 3 | 2
boolean | isQuiet() | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7

Line start | Criticity class | Rule
--- | --- | ---
00099 | MAJOR | QC-JAV000001[00099] Avoid declaring class instance within loop, performance impact
00100 | MAJOR | QC-JAV000001[00100] Avoid declaring class instance within loop, performance impact
00113 | MAJOR | QC-JAV000001[00113] Avoid declaring class instance within loop, performance impact
00114 | MAJOR | QC-JAV000001[00114] Avoid declaring class instance within loop, performance impact
00186 | MAJOR | QC-JAV000001[00186] Avoid declaring class instance within loop, performance impact
00188 | MAJOR | QC-JAV000001[00188] Avoid declaring class instance within loop, performance impact
00192 | MAJOR | QC-JAV000001[00192] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\AbstractMavenProcessFactory.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.AbstractMavenProcessFactory

Module / class or interface : hudson.maven.AbstractMavenProcessFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractMavenProcessFactory | AbstractMavenProcessFactory(MavenModuleSet;Launcher;EnvVars;String;FilePath) | 1 | 5
ProcessCache.NewProcess | newProcess(BuildListener;OutputStream) | 4 | 10
ArgumentListBuilder | buildMavenAgentCmdLine(BuildListener;int) | 10 | 28
String | getMavenAgentClassPath(MavenInstallation;boolean;FilePath;BuildListener) | 1 | 1
String | getMavenInterceptorClassPath(MavenInstallation;boolean;FilePath) | 1 | 1
String | getMavenInterceptorOverride(MavenInstallation;boolean;FilePath) | 1 | 1
String | getMainClassName() | 1 | 1
String | getMavenOpts() | 4 | 5
String | addRunHeadLessOption(String) | 6 | 1
MavenInstallation | getMavenInstallation(TaskListener) | 2 | 3
JDK | getJava(TaskListener) | 2 | 3
Node | getCurrentNode() | 1 | 1
MavenModuleSet | getMavenModuleSet() | 1 | 1
Launcher | getLauncher() | 1 | 1
EnvVars | getEnvVars() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 5
MINOR | QC-JAVCWE500 | Static public field not marked final | 3

Line start | Criticity class | Rule
--- | --- | ---
00117 | MAJOR | QC-JAVCWE493[00117] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00118 | MAJOR | QC-JAVCWE493[00118] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00351 | MAJOR | QC-JAVCWE390[00351] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00352 | MAJOR | QC-JAVCWE390[00352] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00428 | MAJOR | QC-JAVCWE493[00428] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00428 | MINOR | QC-JAVCWE500[00428] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00435 | MAJOR | QC-JAVCWE493[00435] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00435 | MINOR | QC-JAVCWE500[00435] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00440 | MAJOR | QC-JAVCWE493[00440] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00440 | MINOR | QC-JAVCWE500[00440] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\AbstractMavenProject.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractProject<P,R> | hudson.maven.AbstractMavenProject

Module / class or interface : hudson.maven.AbstractMavenProject

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
AbstractMavenProject | AbstractMavenProject(ItemGroup;String) | 1 | 1
List<Action> | createTransientActions() | 2 | 6
void | addTransientActionsFromBuild(R;List<Action>;Set<Class>) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00096 | MAJOR | QC-JAV000001[00096] Avoid declaring class instance within loop, performance impact
00162 | MAJOR | QC-JAV000001[00162] Avoid declaring class instance within loop, performance impact
00163 | MAJOR | QC-JAV000001[00163] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\AggregatableAction.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.AggregatableAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenAggregatedReport | createAggregatedAction(MavenModuleSetBuild;Map<MavenModule,List<MavenBuild>>) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\EmbedderLoggerImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MavenLoggerManager | hudson.maven.EmbedderLoggerImpl

Module / class or interface : hudson.maven.EmbedderLoggerImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EmbedderLoggerImpl | EmbedderLoggerImpl(TaskListener;int) | 1 | 2
void | print(String;Throwable;int;String) | 3 | 2
void | debug(String;Throwable) | 1 | 1
void | info(String;Throwable) | 1 | 1
void | warn(String;Throwable) | 1 | 1
void | error(String;Throwable) | 1 | 1
void | fatalError(String;Throwable) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\ExecutedMojo.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.ExecutedMojo

Module / class or interface : hudson.maven.ExecutedMojo

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExecutedMojo | ExecutedMojo(MojoInfo;long) | 3 | 13
Class<?> | getMojoClass(MojoDescriptor;PluginDescriptor) | 1 | 3
Class<?> | getMojoClassForMaven2(MojoDescriptor;PluginDescriptor) | 2 | 5
ExecutedMojo | ExecutedMojo(String;String;String;String;String;long;String) | 1 | 7
Object | readResolve() | 1 | 1
String | getDurationString() | 1 | 1
String | getReadableExecutionId() | 3 | 2
String | getPluginLink(Cache) | 4 | 5
String | getGoalLink(Cache) | 3 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00088 | CRITICAL | QC-JAVCWE476[00088] The argument mojo is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00116 | MAJOR | QC-JAVCWE390[00116] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File maven-plugin\src\main\java\hudson\maven\FilteredChangeLogSet.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChangeLogSet<Entry> | hudson.maven.FilteredChangeLogSet

Module / class or interface : hudson.maven.FilteredChangeLogSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilteredChangeLogSet | FilteredChangeLogSet(MavenBuild) | 3 | 6
Iterator<Entry> | iterator() | 1 | 1
boolean | isEmptySet() | 1 | 1
List<Entry> | getLogs() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\Maven2Builder.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenBuilder | hudson.maven.Maven2Builder

Module / class or interface : hudson.maven.Maven2Builder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Maven2Builder | Maven2Builder(BuildListener;Map<ModuleName,ProxyImpl2>;Collection<MavenModule>;List<String>;Map<String,String>;MavenBuildInformation) | 2 | 4
Result | call() | 3 | 2
void | preBuild(MavenSession;ReactorManager;EventDispatcher) | 4 | 3
void | postBuild(MavenSession;ReactorManager;EventDispatcher) | 1 | 0
void | preModule(MavenProject) | 3 | 5
void | postModule(MavenProject) | 4 | 9
void | preExecute(MavenProject;MojoInfo) | 3 | 4
void | postExecute(MavenProject;MojoInfo;Exception) | 7 | 6
void | onReportGenerated(MavenProject;MavenReportInfo) | 3 | 3
boolean | hasBuildFailures() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00099 | MAJOR | QC-JAV000001[00099] Avoid declaring class instance within loop, performance impact
00159 | MAJOR | QC-JAV000001[00159] Avoid declaring class instance within loop, performance impact
00160 | MAJOR | QC-JAV000001[00160] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\Maven3Builder.java 26 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenBuilder | hudson.maven.Maven3Builder

Module / class or interface : hudson.maven.Maven3Builder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Maven3Builder | Maven3Builder(BuildListener;Map<ModuleName,ProxyImpl2>;Collection<MavenModule>;List<String>;Map<String,String>;MavenBuildInformation) | 2 | 4
Result | call() | 6 | 18

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 24
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00194 | MAJOR | QC-JAV000001[00194] Avoid declaring class instance within loop, performance impact
00257 | MAJOR | QC-JAV000001[00257] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAV000001[00259] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact
00264 | MAJOR | QC-JAV000001[00264] Avoid declaring class instance within loop, performance impact
00272 | MAJOR | QC-JAV000001[00272] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact
00264 | MAJOR | QC-JAV000001[00264] Avoid declaring class instance within loop, performance impact
00290 | MAJOR | QC-JAV000001[00290] Avoid declaring class instance within loop, performance impact
00292 | MAJOR | QC-JAV000001[00292] Avoid declaring class instance within loop, performance impact
00295 | MAJOR | QC-JAV000001[00295] Avoid declaring class instance within loop, performance impact
00297 | MAJOR | QC-JAV000001[00297] Avoid declaring class instance within loop, performance impact
00295 | MAJOR | QC-JAV000001[00295] Avoid declaring class instance within loop, performance impact
00297 | MAJOR | QC-JAV000001[00297] Avoid declaring class instance within loop, performance impact
00347 | MAJOR | QC-JAV000001[00347] Avoid declaring class instance within loop, performance impact
00349 | MAJOR | QC-JAV000001[00349] Avoid declaring class instance within loop, performance impact
00382 | MAJOR | QC-JAV000001[00382] Avoid declaring class instance within loop, performance impact
00384 | MAJOR | QC-JAV000001[00384] Avoid declaring class instance within loop, performance impact
00422 | MAJOR | QC-JAV000001[00422] Avoid declaring class instance within loop, performance impact
00424 | MAJOR | QC-JAV000001[00424] Avoid declaring class instance within loop, performance impact
00454 | MAJOR | QC-JAV000001[00454] Avoid declaring class instance within loop, performance impact
00455 | MAJOR | QC-JAV000001[00455] Avoid declaring class instance within loop, performance impact
00459 | MAJOR | QC-JAV000001[00459] Avoid declaring class instance within loop, performance impact
00461 | MAJOR | QC-JAV000001[00461] Avoid declaring class instance within loop, performance impact
00569 | MAJOR | QC-JAVCWE493[00569] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00569 | MINOR | QC-JAVCWE500[00569] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\Maven3ProcessFactory.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenProcessFactory | hudson.maven.Maven3ProcessFactory

Module / class or interface : hudson.maven.Maven3ProcessFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Maven3ProcessFactory | Maven3ProcessFactory(MavenModuleSet;Launcher;EnvVars;String;FilePath) | 1 | 1
String | getMavenAgentClassPath(MavenInstallation;boolean;FilePath;BuildListener) | 1 | 2
String | getMainClassName() | 1 | 1
String | getMavenInterceptorClassPath(MavenInstallation;boolean;FilePath) | 1 | 1
String | getMavenInterceptorOverride(MavenInstallation;boolean;FilePath) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenAggregatedReport.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.MavenAggregatedReport

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | update(Map<MavenModule,List<MavenBuild>>;MavenBuild) | 1 | 1
Class<?extendsAggregatableAction> | getIndividualActionType() | 1 | 1
Action | getProjectAction(MavenModuleSet) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenArgumentInterceptorAction.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.MavenArgumentInterceptorAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getGoalsAndOptions(MavenModuleSetBuild) | 1 | 1
ArgumentListBuilder | intercept(ArgumentListBuilder;MavenModuleSetBuild) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenBuild.java 11 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenBuild<MavenModule,MavenBuild> | hudson.maven.MavenBuild

Module / class or interface : hudson.maven.MavenBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenBuild | MavenBuild(MavenModule) | 1 | 1
MavenBuild | MavenBuild(MavenModule;Calendar) | 1 | 1
MavenBuild | MavenBuild(MavenModule;File) | 1 | 2
String | getUpUrl() | 3 | 3
String | getDisplayName() | 3 | 3
MavenModuleSetBuild | getParentBuild() | 1 | 1
AbstractBuild<?,?> | getRootBuild() | 1 | 1
MavenModuleSetBuild | getModuleSetBuild() | 1 | 1
ChangeLogSet<?extendsEntry> | getChangeSet() | 1 | 1
boolean | hasChangeSetComputed() | 1 | 1
MavenArtifactRecord | getMavenArtifacts() | 1 | 1
EnvVars | getEnvironment(TaskListener) | 2 | 6
void | registerAsProjectAction(MavenReporter) | 2 | 2
void | registerAsProjectAction(MavenProjectActionBuilder) | 2 | 2
List<MavenProjectActionBuilder> | getProjectActionBuilders() | 2 | 2
List<ExecutedMojo> | getExecutedMojos() | 3 | 2
void | run() | 2 | 4
String | getWhyKeepLog() | 2 | 3
ExecutedMojo.Cache | createExecutedMojoCache() | 1 | 1
void | setWorkspace(FilePath) | 1 | 1
MavenModule | getParent() | 1 | 1
void | setBuiltOnStr(String) | 1 | 1
String | getMavenOpts(TaskListener;EnvVars) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 7
MINOR | QC-JAVCWE500 | Static public field not marked final | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00115 | INFO | QC-JAV999996[00115] CPD de longueur 85 commencant en 508 (ligne 115) et 625 (ligne 132): ) { StaplerRequest req = Stapler . getCurrentRequest ( ) ; if ( req != null ) { List _ Ancestor _ ancs = req . getAncestors ( ) ; for ( int i = 1 ; i _ ancs . size ( ) ; i ++ ) { if ( ancs . get ( i ) . getObject ( ) == this ) { if ( ancs . get ( i - 1 ) . getObject ( ) instanceof MavenModuleSetBuild ) { return ancs
00591 | INFO | QC-JAV999996[00591] CPD de longueur 59 commencant en 2730 (ligne 591) et 2974 (ligne 631): ) ) { UnbuiltModuleAction action = moduleSetBuild . getAction ( UnbuiltModuleAction . class ) ; if ( action == null ) { action = ( new UnbuiltModuleAction ( ) ) ; moduleSetBuild . getActions ( ) . add ( action ) ; } action . addUnbuiltModule ( getParent ( ) . getModuleName ( ) ) ; } } else
00121 | MAJOR | QC-JAV000001[00121] Avoid declaring class instance within loop, performance impact
00138 | MAJOR | QC-JAV000001[00138] Avoid declaring class instance within loop, performance impact
00359 | MAJOR | QC-JAV000001[00359] Avoid declaring class instance within loop, performance impact
00360 | MAJOR | QC-JAV000001[00360] Avoid declaring class instance within loop, performance impact
00624 | MAJOR | QC-JAV000001[00624] Avoid declaring class instance within loop, performance impact
00626 | MAJOR | QC-JAV000001[00626] Avoid declaring class instance within loop, performance impact
00685 | MAJOR | QC-JAV000001[00685] Avoid declaring class instance within loop, performance impact
00784 | MAJOR | QC-JAVCWE493[00784] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00784 | MINOR | QC-JAVCWE500[00784] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\MavenBuildInformation.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenBuildInformation

Module / class or interface : hudson.maven.MavenBuildInformation

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenBuildInformation | MavenBuildInformation(String) | 1 | 1
String | getMavenVersion() | 1 | 1
boolean | isMaven3OrLater() | 1 | 1
boolean | isAtLeastMavenVersion(String) | 2 | 2
String | toString() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenBuildProxy.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.MavenBuildProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | executeAsync(BuildCallable<?,?>) | 1 | 1
FilePath | getRootDir() | 1 | 1
FilePath | getProjectRootDir() | 1 | 1
FilePath | getModuleSetRootDir() | 1 | 1
FilePath | getArtifactsDir() | 1 | 1
void | setResult(Result) | 1 | 1
Calendar | getTimestamp() | 1 | 1
long | getMilliSecsSinceBuildStart() | 1 | 1
boolean | isArchivingDisabled() | 1 | 1
void | registerAsProjectAction(MavenReporter) | 1 | 1
void | registerAsProjectAction(MavenProjectActionBuilder) | 1 | 1
void | registerAsAggregatedProjectAction(MavenReporter) | 1 | 1
void | setExecutedMojos(List<ExecutedMojo>) | 1 | 1
MavenBuildInformation | getMavenBuildInformation() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenBuildProxy2.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.MavenBuildProxy2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | start() | 1 | 1
void | end() | 1 | 1
void | appendLastLog() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenBuilder.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenBuilder | hudson.maven.MavenBuilder

Module / class or interface : hudson.maven.MavenBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenBuilder | MavenBuilder(BuildListener;Collection<MavenModule>;List<String>;Map<String,String>) | 1 | 1
void | preBuild(MavenSession;ReactorManager;EventDispatcher) | 1 | 1
void | postBuild(MavenSession;ReactorManager;EventDispatcher) | 1 | 1
void | preModule(MavenProject) | 1 | 1
void | postModule(MavenProject) | 1 | 1
void | preExecute(MavenProject;MojoInfo) | 1 | 1
void | postExecute(MavenProject;MojoInfo;Exception) | 1 | 1
void | onReportGenerated(MavenProject;MavenReportInfo) | 1 | 1
Result | call() | 5 | 19
void | callSetListenerWithReflectOnInterceptors(PluginManagerListener;ClassLoader) | 3 | 6
void | callSetListenerWithReflectOnInterceptorsQuietly(PluginManagerListener;ClassLoader) | 1 | 7
boolean | hasBuildFailures() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00382 | MAJOR | QC-JAVCWE493[00382] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00382 | MINOR | QC-JAVCWE500[00382] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\MavenComputerListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ComputerListener | hudson.maven.MavenComputerListener

Module / class or interface : hudson.maven.MavenComputerListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | preOnline(Computer;Channel;FilePath;TaskListener) | 1 | 9
void | copyJar(PrintStream;FilePath;Class<?>;String) | 2 | 11

#### File maven-plugin\src\main\java\hudson\maven\MavenEmbedderRequest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenEmbedderRequest

Module / class or interface : hudson.maven.MavenEmbedderRequest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenEmbedderRequest | MavenEmbedderRequest(TaskListener;File;String;Properties;String;File) | 1 | 6
TaskListener | getListener() | 1 | 1
MavenEmbedderRequest | setListener(TaskListener) | 1 | 2
File | getMavenHome() | 1 | 1
MavenEmbedderRequest | setMavenHome(File) | 1 | 2
String | getProfiles() | 1 | 1
MavenEmbedderRequest | setProfiles(String) | 1 | 2
Properties | getSystemProperties() | 1 | 1
MavenEmbedderRequest | setSystemProperties(Properties) | 1 | 2
String | getPrivateRepository() | 1 | 1
MavenEmbedderRequest | setPrivateRepository(String) | 1 | 2
File | getAlternateSettings() | 1 | 1
MavenEmbedderRequest | setAlternateSettings(File) | 1 | 2
TransferListener | getTransferListener() | 1 | 1
MavenEmbedderRequest | setTransferListener(TransferListener) | 1 | 2
ClassLoader | getClassLoader() | 1 | 1
MavenEmbedderRequest | setClassLoader(ClassLoader) | 1 | 2
boolean | isProcessPlugins() | 1 | 1
MavenEmbedderRequest | setProcessPlugins(boolean) | 1 | 2
boolean | isResolveDependencies() | 1 | 1
MavenEmbedderRequest | setResolveDependencies(boolean) | 1 | 2
int | getValidationLevel() | 1 | 1
MavenEmbedderRequest | setValidationLevel(int) | 1 | 2
WorkspaceReader | getWorkspaceReader() | 1 | 1
void | setWorkspaceReader(WorkspaceReader) | 1 | 1
File | getGlobalSettings() | 1 | 1
MavenEmbedderRequest | setGlobalSettings(File) | 1 | 2
MavenEmbedderRequest | setUpdateSnapshots(boolean) | 1 | 2
boolean | isUpdateSnapshots() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenModule.java 17 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenProject<MavenModule,MavenBuild> | hudson.maven.MavenModule

Module / class or interface : hudson.maven.MavenModule

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenModule | MavenModule(MavenModuleSet;PomInfo;int) | 1 | 3
LogRotator | getLogRotator() | 1 | 1
void | setLogRotator(LogRotator) | 1 | 1
boolean | supportsLogRotator() | 1 | 1
boolean | isBuildable() | 1 | 1
List<MavenModule> | getSubsidiaries() | 3 | 3
void | reconfigure(PomInfo) | 3 | 9
boolean | isSameModule(PomInfo) | 1 | 1
void | doSetName(String) | 1 | 2
void | onLoad(ItemGroup<?extendsItem>;String) | 5 | 6
String | getRelativePath() | 1 | 1
String | getVersion() | 1 | 1
String | getGoals() | 2 | 2
String | getUserConfiguredGoals() | 1 | 1
DescribableList<Publisher,Descriptor<Publisher>> | getPublishersList() | 1 | 1
JDK | getJDK() | 1 | 1
Class<MavenBuild> | getBuildClass() | 1 | 1
MavenBuild | newBuild() | 1 | 1
ModuleName | getModuleName() | 1 | 1
ModuleDependency | asDependency() | 1 | 1
String | getShortUrl() | 1 | 1
String | getDisplayName() | 1 | 1
String | getPronoun() | 1 | 1
boolean | isNameEditable() | 1 | 1
MavenModuleSet | getParent() | 1 | 1
List<MavenModule> | getChildren() | 4 | 6
Label | getAssignedLabel() | 2 | 3
Resource | getWorkspaceResource() | 1 | 1
boolean | isFingerprintConfigured() | 1 | 1
void | updateTransientActions() | 1 | 1
void | buildDependencyGraph(DependencyGraph) | 12 | 15
AbstractMavenProject<?,?> | nodeOf(MavenModule) | 1 | 1
Collection<MavenModule> | getAllMavenModules() | 1 | 1
boolean | hasDependenciesWithUnknownVersion() | 3 | 1
MavenModule | chooseMoreRelevantModule(MavenModule;MavenModule) | 7 | 12
int | getDependencyRelevancy() | 6 | 2
void | addTransientActionsFromBuild(MavenBuild;List<Action>;Set<Class>) | 5 | 4
MavenInstallation | inferMavenInstallation() | 1 | 1
DescribableList<MavenReporter,Descriptor<MavenReporter>> | getReporters() | 1 | 1
void | submit(StaplerRequest;StaplerResponse) | 1 | 4
void | performDelete() | 1 | 2
List<MavenReporter> | createReporters() | 4 | 7
String | toString() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 16

Line start | Criticity class | Rule
--- | --- | ---
00196 | CRITICAL | QC-JAVCWE476[00196] The argument pom is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00246 | MAJOR | QC-JAV000001[00246] Avoid declaring class instance within loop, performance impact
00247 | MAJOR | QC-JAV000001[00247] Avoid declaring class instance within loop, performance impact
00249 | MAJOR | QC-JAV000001[00249] Avoid declaring class instance within loop, performance impact
00373 | MAJOR | QC-JAV000001[00373] Avoid declaring class instance within loop, performance impact
00431 | MAJOR | QC-JAV000001[00431] Avoid declaring class instance within loop, performance impact
00432 | MAJOR | QC-JAV000001[00432] Avoid declaring class instance within loop, performance impact
00433 | MAJOR | QC-JAV000001[00433] Avoid declaring class instance within loop, performance impact
00447 | MAJOR | QC-JAV000001[00447] Avoid declaring class instance within loop, performance impact
00463 | MAJOR | QC-JAV000001[00463] Avoid declaring class instance within loop, performance impact
00477 | MAJOR | QC-JAV000001[00477] Avoid declaring class instance within loop, performance impact
00486 | MAJOR | QC-JAV000001[00486] Avoid declaring class instance within loop, performance impact
00487 | MAJOR | QC-JAV000001[00487] Avoid declaring class instance within loop, performance impact
00492 | MAJOR | QC-JAV000001[00492] Avoid declaring class instance within loop, performance impact
00577 | MAJOR | QC-JAV000001[00577] Avoid declaring class instance within loop, performance impact
00625 | MAJOR | QC-JAV000001[00625] Avoid declaring class instance within loop, performance impact
00673 | MAJOR | QC-JAV000001[00673] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\MavenModuleSet.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenProject<MavenModuleSet,MavenModuleSetBuild> | hudson.maven.MavenModuleSet

Module / class or interface : hudson.maven.MavenModuleSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Object | readResolve() | 7 | 5
MavenModuleSet | MavenModuleSet(String) | 1 | 1
MavenModuleSet | MavenModuleSet(ItemGroup;String) | 1 | 1
DescribableList<Builder,Descriptor<Builder>> | getPrebuilders() | 1 | 1
DescribableList<Builder,Descriptor<Builder>> | getPostbuilders() | 1 | 1
void | addPostBuilder(Builder) | 1 | 1
Result | getRunPostStepsIfResult() | 1 | 1
void | setRunPostStepsIfResult(Result) | 1 | 1
String | getUrlChildPrefix() | 1 | 1
Collection<MavenModule> | getItems() | 1 | 1
Collection<MavenModule> | getModules() | 1 | 1
MavenModule | getItem(String) | 1 | 1
MavenModule | getModule(String) | 1 | 1
void | updateTransientActions() | 1 | 1
List<Action> | createTransientActions() | 6 | 5
void | addTransientActionsFromBuild(MavenModuleSetBuild;List<Action>;Set<Class>) | 9 | 7
void | onModuleDeleted(MavenModule) | 1 | 1
boolean | hasDisabledModule() | 3 | 2
List<MavenModule> | getDisabledModules(boolean) | 4 | 4
Indenter<MavenModule> | createIndenter() | 1 | 1
boolean | isIncrementalBuild() | 1 | 1
boolean | isAggregatorStyleBuild() | 1 | 1
boolean | usesPrivateRepository() | 1 | 1
boolean | isPerModuleEmail() | 1 | 1
boolean | ignoreUpstremChanges() | 1 | 1
boolean | runHeadless() | 1 | 1
boolean | isArchivingDisabled() | 1 | 1
void | setIncrementalBuild(boolean) | 1 | 1
void | setAggregatorStyleBuild(boolean) | 1 | 1
void | setUsePrivateRepository(boolean) | 1 | 1
LocalRepositoryLocator | getLocalRepository() | 1 | 1
LocalRepositoryLocator | getExplicitLocalRepository() | 1 | 1
void | setLocalRepository(LocalRepositoryLocator) | 1 | 1
void | setSettings(SettingsProvider) | 1 | 1
void | setGlobalSettings(GlobalSettingsProvider) | 1 | 1
void | setIgnoreUpstremChanges(boolean) | 1 | 1
void | setRunHeadless(boolean) | 1 | 1
void | setIsArchivingDisabled(boolean) | 1 | 1
boolean | isResolveDependencies() | 1 | 1
void | setResolveDependencies(boolean) | 1 | 1
boolean | isProcessPlugins() | 1 | 1
void | setProcessPlugins(boolean) | 1 | 1
int | getMavenValidationLevel() | 1 | 1
SettingsProvider | getSettings() | 1 | 1
GlobalSettingsProvider | getGlobalSettings() | 1 | 1
DescribableList<MavenReporter,Descriptor<MavenReporter>> | getReporters() | 1 | 1
DescribableList<Publisher,Descriptor<Publisher>> | getPublishers() | 1 | 1
DescribableList<Publisher,Descriptor<Publisher>> | getPublishersList() | 1 | 1
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> | getBuildWrappersList() | 1 | 1
DescribableList<BuildWrapper,Descriptor<BuildWrapper>> | getBuildWrappers() | 1 | 1
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 2 | 2
File | getRootDirFor(MavenModule) | 1 | 1
void | onRenamed(MavenModule;String;String) | 1 | 1
void | onDeleted(MavenModule) | 1 | 0
Collection<Job> | getAllJobs() | 1 | 3
Class<MavenModuleSetBuild> | getBuildClass() | 1 | 1
SearchIndexBuilder | makeSearchIndex() | 1 | 1
boolean | isFingerprintConfigured() | 1 | 1
void | onLoad(ItemGroup<?extendsItem>;String) | 10 | 24
File | getModulesDir() | 1 | 1
int | assignBuildNumber() | 1 | 2
void | logRotate() | 2 | 2
void | updateNextBuildNumber() | 3 | 4
void | buildDependencyGraph(DependencyGraph) | 1 | 4
boolean | isDisableTriggerDownstreamProjects() | 1 | 1
void | setDisableTriggerDownstreamProjects(boolean) | 1 | 1
MavenModule | getRootModule() | 2 | 2
MavenInstallation | inferMavenInstallation() | 1 | 1
Set<ResourceActivity> | getResourceActivities() | 1 | 7
String | getRootPOM() | 1 | 1
String | getRootPOM(EnvVars) | 3 | 3
void | setRootPOM(String) | 1 | 1
AbstractProject<?,?> | asProject() | 1 | 1
String | getGoals() | 3 | 3
void | setGoals(String) | 1 | 1
boolean | checkMavenOption(String;String) | 3 | 2
List<String> | getMavenArgument(String;String) | 6 | 3
String | getAlternateSettings() | 1 | 1
void | setAlternateSettings(String) | 1 | 1
String | getProfiles() | 1 | 1
Properties | getMavenProperties() | 4 | 5
boolean | isNonRecursive() | 1 | 1
String | getMavenOpts() | 5 | 2
void | setMavenOpts(String) | 1 | 1
MavenInstallation | getMaven() | 4 | 4
void | setMaven(String) | 1 | 1
List<Queue.Item> | getQueueItems() | 1 | 1
List<Queue.Item> | getApproximateQueueItemsQuickly() | 1 | 1
List<Queue.Item> | filter(Collection<Queue.Item>) | 3 | 4
String | getUserConfiguredGoals() | 1 | 1
void | reconfigure(PomInfo) | 2 | 4
void | submit(StaplerRequest;StaplerResponse) | 4 | 27
HttpResponse | doDoDeleteAllDisabledModules() | 2 | 3
FormValidation | doCheckFileInWorkspace(String) | 3 | 4
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 9

Line start | Criticity class | Rule
--- | --- | ---
00470 | MAJOR | QC-JAV000001[00470] Avoid declaring class instance within loop, performance impact
00472 | MAJOR | QC-JAV000001[00472] Avoid declaring class instance within loop, performance impact
00479 | MAJOR | QC-JAV000001[00479] Avoid declaring class instance within loop, performance impact
00761 | MAJOR | QC-JAV000001[00761] Avoid declaring class instance within loop, performance impact
00763 | MAJOR | QC-JAV000001[00763] Avoid declaring class instance within loop, performance impact
00765 | MAJOR | QC-JAV000001[00765] Avoid declaring class instance within loop, performance impact
01080 | MAJOR | QC-JAV000001[01080] Avoid declaring class instance within loop, performance impact
01081 | MAJOR | QC-JAV000001[01081] Avoid declaring class instance within loop, performance impact
01081 | MAJOR | QC-JAV000001[01081] Avoid declaring class instance within loop, performance impact
01100 | CRITICAL | QC-JAVCWE476[01100] The argument rootPom is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File maven-plugin\src\main\java\hudson\maven\MavenModuleSetBuild.java 37 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenBuild<MavenModuleSet,MavenModuleSetBuild> | hudson.maven.MavenModuleSetBuild

Module / class or interface : hudson.maven.MavenModuleSetBuild

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenModuleSetBuild | MavenModuleSetBuild(MavenModuleSet) | 1 | 1
MavenModuleSetBuild | MavenModuleSetBuild(MavenModuleSet;File) | 1 | 1
void | onLoad() | 1 | 2
EnvVars | getEnvironment(TaskListener) | 4 | 7
Result | getResult() | 6 | 4
List<ChangeLogSet.Entry> | getChangeSetFor(MavenModule) | 1 | 1
Map<MavenModule,List<MavenBuild>> | getModuleBuilds() | 2 | 8
long | getEstimatedDuration() | 5 | 7
long | estimateModuleSetBuildDurationOverhead(int) | 4 | 6
String | normalizePath(String) | 5 | 4
String | getMavenVersionUsed() | 1 | 1
void | setMavenVersionUsed(String) | 1 | 2
void | delete() | 3 | 2
Object | getDynamic(String;StaplerRequest;StaplerResponse) | 3 | 3
MavenAggregatedArtifactRecord | getMavenArtifacts() | 1 | 1
Map<MavenModule,MavenBuild> | getModuleLastBuilds() | 3 | 7
void | registerAsProjectAction(MavenReporter) | 2 | 2
void | run() | 1 | 2
Fingerprint.RangeSet | getDownstreamRelationship(AbstractProject) | 3 | 3
void | notifyModuleBuild(MavenBuild) | 4 | 9
String | getMavenOpts(TaskListener;EnvVars) | 1 | 1
MavenModuleSet | getParent() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 33
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00190 | MAJOR | QC-JAV000001[00190] Avoid declaring class instance within loop, performance impact
00271 | MAJOR | QC-JAV000001[00271] Avoid declaring class instance within loop, performance impact
00271 | MAJOR | QC-JAV000001[00271] Avoid declaring class instance within loop, performance impact
00272 | MAJOR | QC-JAV000001[00272] Avoid declaring class instance within loop, performance impact
00307 | MAJOR | QC-JAV000001[00307] Avoid declaring class instance within loop, performance impact
00339 | MAJOR | QC-JAV000001[00339] Avoid declaring class instance within loop, performance impact
00341 | MAJOR | QC-JAV000001[00341] Avoid declaring class instance within loop, performance impact
00341 | MAJOR | QC-JAV000001[00341] Avoid declaring class instance within loop, performance impact
00396 | MAJOR | QC-JAV000001[00396] Avoid declaring class instance within loop, performance impact
00434 | MAJOR | QC-JAV000001[00434] Avoid declaring class instance within loop, performance impact
00462 | MAJOR | QC-JAV000001[00462] Avoid declaring class instance within loop, performance impact
00463 | MAJOR | QC-JAV000001[00463] Avoid declaring class instance within loop, performance impact
00463 | MAJOR | QC-JAV000001[00463] Avoid declaring class instance within loop, performance impact
00485 | MAJOR | QC-JAV000001[00485] Avoid declaring class instance within loop, performance impact
00512 | MAJOR | QC-JAV000001[00512] Avoid declaring class instance within loop, performance impact
00513 | MAJOR | QC-JAV000001[00513] Avoid declaring class instance within loop, performance impact
00513 | MAJOR | QC-JAV000001[00513] Avoid declaring class instance within loop, performance impact
00524 | MAJOR | QC-JAV000001[00524] Avoid declaring class instance within loop, performance impact
00600 | MAJOR | QC-JAV000001[00600] Avoid declaring class instance within loop, performance impact
00602 | MAJOR | QC-JAVCWE481[00602] Assigning instead of comparing on r=Result.FAILURE (see http://cwe.mitre.org/data/definitions/481.html)
00630 | MAJOR | QC-JAV000001[00630] Avoid declaring class instance within loop, performance impact
00724 | MAJOR | QC-JAV000001[00724] Avoid declaring class instance within loop, performance impact
00724 | MAJOR | QC-JAV000001[00724] Avoid declaring class instance within loop, performance impact
00736 | MAJOR | QC-JAV000001[00736] Avoid declaring class instance within loop, performance impact
00736 | MAJOR | QC-JAV000001[00736] Avoid declaring class instance within loop, performance impact
00792 | MAJOR | QC-JAVCWE390[00792] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00844 | MAJOR | QC-JAV000001[00844] Avoid declaring class instance within loop, performance impact
00846 | MAJOR | QC-JAV000001[00846] Avoid declaring class instance within loop, performance impact
00896 | MAJOR | QC-JAV000001[00896] Avoid declaring class instance within loop, performance impact
01042 | MAJOR | QC-JAV000001[01042] Avoid declaring class instance within loop, performance impact
01043 | MAJOR | QC-JAV000001[01043] Avoid declaring class instance within loop, performance impact
01256 | MAJOR | QC-JAV000001[01256] Avoid declaring class instance within loop, performance impact
01261 | MAJOR | QC-JAV000001[01261] Avoid declaring class instance within loop, performance impact
01278 | MAJOR | QC-JAV000001[01278] Avoid declaring class instance within loop, performance impact
01279 | MAJOR | QC-JAV000001[01279] Avoid declaring class instance within loop, performance impact
01313 | MAJOR | QC-JAVCWE493[01313] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01313 | MINOR | QC-JAVCWE500[01313] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\MavenProbeAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenProbeAction

Module / class or interface : hudson.maven.MavenProbeAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenProbeAction | MavenProbeAction(AbstractProject<?,?>;Channel) | 1 | 2
String | getIconFileName() | 2 | 2
String | getDisplayName() | 1 | 1
String | getUrlName() | 2 | 2
Map<Object,Object> | getSystemProperties() | 1 | 1
Map<String,String> | getEnvVars() | 1 | 1
Map<String,String> | getThreadDump() | 1 | 1
void | doScript(StaplerRequest;StaplerResponse) | 2 | 3
HeapDump | getHeapDump() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenProcessFactory.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenProcessFactory | hudson.maven.MavenProcessFactory

Module / class or interface : hudson.maven.MavenProcessFactory

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenProcessFactory | MavenProcessFactory(MavenModuleSet;Launcher;EnvVars;String;FilePath) | 1 | 1
String | getMavenAgentClassPath(MavenInstallation;boolean;FilePath;BuildListener) | 1 | 3
String | getMainClassName() | 1 | 1
String | getMavenInterceptorClassPath(MavenInstallation;boolean;FilePath) | 1 | 1
String | getMavenInterceptorOverride(MavenInstallation;boolean;FilePath) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3
MINOR | QC-JAVCWE500 | Static public field not marked final | 3

Line start | Criticity class | Rule
--- | --- | ---
00148 | MAJOR | QC-JAVCWE493[00148] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00148 | MINOR | QC-JAVCWE500[00148] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00150 | MAJOR | QC-JAVCWE493[00150] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00150 | MINOR | QC-JAVCWE500[00150] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00152 | MAJOR | QC-JAVCWE493[00152] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00152 | MINOR | QC-JAVCWE500[00152] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\MavenProjectActionBuilder.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.MavenProjectActionBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | getProjectActions(MavenModule) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenReportInfo.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MojoInfo | hudson.maven.MavenReportInfo

Module / class or interface : hudson.maven.MavenReportInfo

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenReportInfo | MavenReportInfo(MojoExecution;MavenReport;PlexusConfiguration;ExpressionEvaluator;long) | 1 | 2

#### File maven-plugin\src\main\java\hudson\maven\MavenReporter.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenReporter

Module / class or interface : hudson.maven.MavenReporter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | preBuild(MavenBuildProxy;MavenProject;BuildListener) | 1 | 1
boolean | enterModule(MavenBuildProxy;MavenProject;BuildListener) | 1 | 1
boolean | leaveModule(MavenBuildProxy;MavenProject;BuildListener) | 1 | 1
boolean | preExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener) | 1 | 1
boolean | postExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener;Throwable) | 1 | 1
boolean | postBuild(MavenBuildProxy;MavenProject;BuildListener) | 1 | 1
boolean | end(MavenBuild;Launcher;BuildListener) | 1 | 1
boolean | reportGenerated(MavenBuildProxy;MavenProject;MavenReportInfo;BuildListener) | 1 | 1
Action | getProjectAction(MavenModule) | 1 | 1
Collection<?extendsAction> | getProjectActions(MavenModule) | 2 | 3
Action | getAggregatedProjectAction(MavenModuleSet) | 1 | 1
MavenReporterDescriptor | getDescriptor() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenReporterDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<MavenReporter> | hudson.maven.MavenReporterDescriptor

Module / class or interface : hudson.maven.MavenReporterDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenReporterDescriptor | MavenReporterDescriptor(Class<?extendsMavenReporter>) | 1 | 1
MavenReporterDescriptor | MavenReporterDescriptor() | 1 | 0
MavenReporter | newAutoInstance(MavenModule) | 1 | 1
MavenReporter | newInstance(StaplerRequest) | 1 | 1
boolean | hasConfigScreen() | 1 | 4
Collection<MavenReporterDescriptor> | all() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\MavenReporters.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenReporters

Module / class or interface : hudson.maven.MavenReporters

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<MavenReporterDescriptor> | getConfigurableList() | 3 | 3

#### File maven-plugin\src\main\java\hudson\maven\MavenTestDataPublisher.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.maven.MavenTestDataPublisher

Module / class or interface : hudson.maven.MavenTestDataPublisher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenTestDataPublisher | MavenTestDataPublisher(DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>>) | 1 | 2
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 4 | 5
DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> | getTestDataPublishers() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00079 | MAJOR | QC-JAV000001[00079] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\MavenUtil.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenUtil

Module / class or interface : hudson.maven.MavenUtil

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenEmbedder | createEmbedder(TaskListener;String) | 1 | 1
MavenEmbedder | createEmbedder(TaskListener;AbstractProject<?,?>;String) | 2 | 3
MavenEmbedder | createEmbedder(TaskListener;AbstractBuild<?,?>) | 4 | 13
MavenEmbedder | createEmbedder(TaskListener;File;String) | 1 | 1
MavenEmbedder | createEmbedder(TaskListener;File;String;Properties) | 1 | 1
MavenEmbedder | createEmbedder(TaskListener;File;String;Properties;String) | 1 | 1
MavenEmbedder | createEmbedder(MavenEmbedderRequest) | 11 | 23
void | resolveModules(MavenEmbedder;MavenProject;String;Map<MavenProject,String>;BuildListener;boolean) | 3 | 4
boolean | maven3orLater(String) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00205 | MAJOR | QC-JAV000001[00205] Avoid declaring class instance within loop, performance impact
00252 | MAJOR | QC-JAV000001[00252] Avoid declaring class instance within loop, performance impact
00260 | MAJOR | QC-JAV000001[00260] Avoid declaring class instance within loop, performance impact
00265 | MAJOR | QC-JAV000001[00265] Avoid declaring class instance within loop, performance impact
00360 | MAJOR | QC-JAVCWE493[00360] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00360 | MINOR | QC-JAVCWE500[00360] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\MavenVersionCallable.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenVersionCallable

Module / class or interface : hudson.maven.MavenVersionCallable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenVersionCallable | MavenVersionCallable(String) | 1 | 1
MavenInformation | call() | 2 | 3

#### File maven-plugin\src\main\java\hudson\maven\ModuleDependency.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.ModuleDependency

Module / class or interface : hudson.maven.ModuleDependency

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ModuleDependency | ModuleDependency(String;String;String) | 1 | 1
ModuleDependency | ModuleDependency(String;String;String;boolean) | 3 | 5
ModuleDependency | ModuleDependency(ModuleName;String) | 1 | 1
ModuleDependency | ModuleDependency(ModuleName;String;boolean) | 1 | 1
ModuleDependency | ModuleDependency(org.apache.maven.model.Dependency) | 1 | 1
ModuleDependency | ModuleDependency(MavenProject) | 1 | 1
ModuleDependency | ModuleDependency(Plugin) | 1 | 1
ModuleDependency | ModuleDependency(ReportPlugin) | 1 | 1
ModuleDependency | ModuleDependency(Extension) | 1 | 1
ModuleDependency | ModuleDependency(String;String;boolean) | 1 | 4
ModuleName | getName() | 1 | 1
ModuleDependency | withUnknownVersion() | 3 | 2
boolean | equals(Object) | 3 | 4
int | hashCode() | 1 | 6
boolean | isVersionRange() | 1 | 1
VersionRange | getVersionAsRange() | 2 | 2
ArtifactVersion | parseVersion() | 2 | 2
Object | readResolve() | 1 | 1
boolean | contains(ModuleDependency) | 2 | 3
ModuleDependency | findHighestFrom(Collection<ModuleDependency>) | 4 | 4
String | toString() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\ModuleName.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.ModuleName

Module / class or interface : hudson.maven.ModuleName

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ModuleName | ModuleName(String;String) | 1 | 2
ModuleName | ModuleName(ExecutionEvent) | 1 | 1
ModuleName | ModuleName(MavenProject) | 1 | 1
ModuleName | ModuleName(Plugin) | 1 | 1
ModuleName | ModuleName(ReportPlugin) | 1 | 1
ModuleName | ModuleName(Extension) | 1 | 1
ModuleName | ModuleName(Dependency) | 1 | 1
String | toString() | 1 | 1
String | toFileSystemName() | 1 | 1
ModuleName | fromFileSystemName(String) | 2 | 3
ModuleName | fromString(String) | 2 | 3
boolean | isValid(String) | 1 | 1
boolean | equals(Object) | 3 | 4
int | hashCode() | 1 | 4
int | compareTo(ModuleName) | 2 | 3

#### File maven-plugin\src\main\java\hudson\maven\MojoInfo.java 21 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MojoInfo

Module / class or interface : hudson.maven.MojoInfo

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MojoInfo | MojoInfo(MojoExecution;Mojo;PlexusConfiguration;ExpressionEvaluator;long) | 2 | 7
MojoInfo | MojoInfo(ExecutionEvent;long) | 1 | 1
String | getGoal() | 1 | 1
boolean | is(String;String;String) | 1 | 1
void | intercept(String;InvocationInterceptor) | 3 | 6
long | getStartTime() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 21

Line start | Criticity class | Rule
--- | --- | ---
00235 | MAJOR | QC-JAV000001[00235] Avoid declaring class instance within loop, performance impact
00237 | MAJOR | QC-JAV000001[00237] Avoid declaring class instance within loop, performance impact
00239 | MAJOR | QC-JAV000001[00239] Avoid declaring class instance within loop, performance impact
00240 | MAJOR | QC-JAV000001[00240] Avoid declaring class instance within loop, performance impact
00242 | MAJOR | QC-JAV000001[00242] Avoid declaring class instance within loop, performance impact
00244 | MAJOR | QC-JAV000001[00244] Avoid declaring class instance within loop, performance impact
00274 | MAJOR | QC-JAV000001[00274] Avoid declaring class instance within loop, performance impact
00277 | MAJOR | QC-JAV000001[00277] Avoid declaring class instance within loop, performance impact
00282 | MAJOR | QC-JAV000001[00282] Avoid declaring class instance within loop, performance impact
00287 | MAJOR | QC-JAV000001[00287] Avoid declaring class instance within loop, performance impact
00289 | MAJOR | QC-JAV000001[00289] Avoid declaring class instance within loop, performance impact
00290 | MAJOR | QC-JAV000001[00290] Avoid declaring class instance within loop, performance impact
00290 | MAJOR | QC-JAV000001[00290] Avoid declaring class instance within loop, performance impact
00290 | MAJOR | QC-JAV000001[00290] Avoid declaring class instance within loop, performance impact
00290 | MAJOR | QC-JAV000001[00290] Avoid declaring class instance within loop, performance impact
00292 | MAJOR | QC-JAV000001[00292] Avoid declaring class instance within loop, performance impact
00292 | MAJOR | QC-JAV000001[00292] Avoid declaring class instance within loop, performance impact
00292 | MAJOR | QC-JAV000001[00292] Avoid declaring class instance within loop, performance impact
00292 | MAJOR | QC-JAV000001[00292] Avoid declaring class instance within loop, performance impact
00300 | MAJOR | QC-JAV000001[00300] Avoid declaring class instance within loop, performance impact
00302 | MAJOR | QC-JAV000001[00302] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\NeedsFullBuildAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.NeedsFullBuildAction

Module / class or interface : hudson.maven.NeedsFullBuildAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\PluginImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Plugin | hudson.maven.PluginImpl

Module / class or interface : hudson.maven.PluginImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | start() | 1 | 5
void | init() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\PluginName.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.PluginName

Module / class or interface : hudson.maven.PluginName

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PluginName | PluginName(String;String;String) | 1 | 3
PluginName | PluginName(PluginDescriptor) | 1 | 1
String | toString() | 1 | 1
boolean | equals(Object) | 3 | 4
int | hashCode() | 1 | 5
boolean | matches(String;String) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\PomInfo.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.PomInfo

Module / class or interface : hudson.maven.PomInfo

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PomInfo | PomInfo(MavenProject;PomInfo;String) | 10 | 23
ModuleDependency | asDependency() | 1 | 1
void | addPluginsAsDependencies(List<Plugin>;Set<ModuleDependency>) | 3 | 2
void | addReportPluginsAsDependencies(List<ReportPlugin>;Set<ModuleDependency>) | 3 | 2
void | cutCycle() | 3 | 4
int | getNestLevel() | 2 | 5
int | hashCode() | 1 | 3
boolean | equals(Object) | 4 | 5
boolean | isSimilar(ModuleName;Set<ModuleDependency>) | 1 | 1
String | toString() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\ProcessCache.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.ProcessCache

Module / class or interface : hudson.maven.ProcessCache

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ProcessCache | ProcessCache(int) | 1 | 1
PerChannel | get(VirtualChannel) | 2 | 3
MavenProcess | get(VirtualChannel;BuildListener;Factory) | 2 | 6

Deadlock risks Ressources definition
R0:hudson.maven.ProcessCache.this
R1:hudson.maven.ProcessCache.PerChannel.processes

Deadlock risks Sequences definition

Sequence | Step
--- | ---
No 0
| S0:hudson.maven.ProcessCache.get (R0,R1)
| S0:cache.put
No 1
| S1:hudson.maven.ProcessCache.get (R0,R1)
| S1:hudson.maven.ProcessCache.get (R0,R1)
| S1:cache.put

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00104 | CRITICAL | QC-JAVCWE476[00104] The argument np is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk
00209 | MAJOR | QC-JAV000001[00209] Avoid declaring class instance within loop, performance impact
00215 | MAJOR | QC-JAV000001[00215] Avoid declaring class instance within loop, performance impact
00236 | MAJOR | QC-JAVCWE493[00236] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00236 | MINOR | QC-JAVCWE500[00236] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File maven-plugin\src\main\java\hudson\maven\RedeployPublisher.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.maven.RedeployPublisher

Module / class or interface : hudson.maven.RedeployPublisher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
RedeployPublisher | RedeployPublisher(String;String;boolean) | 1 | 1
RedeployPublisher | RedeployPublisher(String;String;boolean;boolean) | 1 | 1
RedeployPublisher | RedeployPublisher(String;String;boolean;boolean;String) | 1 | 5
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 8 | 22
ArtifactRepository | getDeploymentRepository(ArtifactRepositoryFactory;ArtifactRepositoryLayout;String;String) | 2 | 3
MavenEmbedder | createEmbedder(TaskListener;AbstractBuild<?,?>) | 4 | 11
MavenModuleSetBuild | getMavenBuild(AbstractBuild<?,?>) | 1 | 1
List<MavenAbstractArtifactRecord> | getActions(AbstractBuild<?,?>;BuildListener) | 5 | 5
BuildStepMonitor | getRequiredMonitorService() | 1 | 1
Result | getTreshold() | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00166 | MAJOR | QC-JAV000001[00166] Avoid declaring class instance within loop, performance impact
00168 | MAJOR | QC-JAV000001[00168] Avoid declaring class instance within loop, performance impact
00168 | MAJOR | QC-JAV000001[00168] Avoid declaring class instance within loop, performance impact
00316 | MAJOR | QC-JAV000001[00316] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\SplittableBuildListener.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractTaskListener | hudson.maven.SplittableBuildListener

Module / class or interface : hudson.maven.SplittableBuildListener

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SplittableBuildListener | SplittableBuildListener(BuildListener) | 1 | 4
void | synchronizeOnMark(Channel) | 1 | 3
void | setSideOutputStream(OutputStream) | 3 | 1
DeferredFileOutputStream | newLog() | 1 | 1
Object | lock() | 1 | 1
void | started(List<Cause>) | 1 | 1
void | finished(Result) | 1 | 1
PrintStream | getLogger() | 1 | 1
PrintWriter | error(String) | 1 | 2
PrintWriter | error(String;Object) | 1 | 2
PrintWriter | fatalError(String) | 1 | 2
PrintWriter | fatalError(String;Object) | 1 | 2
void | annotate(ConsoleNote) | 1 | 1
Object | writeReplace() | 1 | 1
byte[] | toUTF8(String) | 1 | 2

#### File maven-plugin\src\main\java\hudson\maven\TransferListenerImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.TransferListenerImpl

Module / class or interface : hudson.maven.TransferListenerImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TransferListenerImpl | TransferListenerImpl(TaskListener) | 1 | 1
void | transferInitiated(TransferEvent) | 3 | 3
void | transferStarted(TransferEvent) | 1 | 3
void | transferProgress(TransferEvent;byte[];int) | 1 | 2
void | transferCompleted(TransferEvent) | 1 | 1
void | transferError(TransferEvent) | 1 | 2
void | debug(String) | 1 | 0

#### File maven-plugin\src\main\java\hudson\maven\UnbuiltModuleAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.UnbuiltModuleAction

Module / class or interface : hudson.maven.UnbuiltModuleAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | addUnbuiltModule(ModuleName) | 1 | 1
boolean | removeUnbuildModule(ModuleName) | 1 | 1
Collection<ModuleName> | getUnbuildModules() | 1 | 1
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\local_repo\DefaultLocalRepositoryLocator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LocalRepositoryLocator | hudson.maven.local_repo.DefaultLocalRepositoryLocator

Module / class or interface : hudson.maven.local_repo.DefaultLocalRepositoryLocator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultLocalRepositoryLocator | DefaultLocalRepositoryLocator() | 1 | 0
FilePath | locate(AbstractMavenBuild) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\local_repo\LocalRepositoryLocator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<LocalRepositoryLocator> | hudson.maven.local_repo.LocalRepositoryLocator

Module / class or interface : hudson.maven.local_repo.LocalRepositoryLocator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FilePath | locate(AbstractMavenBuild) | 1 | 1
LocalRepositoryLocatorDescriptor | getDescriptor() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\local_repo\LocalRepositoryLocatorDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<LocalRepositoryLocator> | hudson.maven.local_repo.LocalRepositoryLocatorDescriptor

Module / class or interface : hudson.maven.local_repo.LocalRepositoryLocatorDescriptor

#### File maven-plugin\src\main\java\hudson\maven\local_repo\PerExecutorLocalRepositoryLocator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LocalRepositoryLocator | hudson.maven.local_repo.PerExecutorLocalRepositoryLocator

Module / class or interface : hudson.maven.local_repo.PerExecutorLocalRepositoryLocator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PerExecutorLocalRepositoryLocator | PerExecutorLocalRepositoryLocator() | 1 | 0
FilePath | locate(AbstractMavenBuild) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\local_repo\PerJobLocalRepositoryLocator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
LocalRepositoryLocator | hudson.maven.local_repo.PerJobLocalRepositoryLocator

Module / class or interface : hudson.maven.local_repo.PerJobLocalRepositoryLocator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PerJobLocalRepositoryLocator | PerJobLocalRepositoryLocator() | 1 | 0
FilePath | locate(AbstractMavenBuild) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\AbstractMavenJavadocArchiver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.AbstractMavenJavadocArchiver

Module / class or interface : hudson.maven.reporters.AbstractMavenJavadocArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | checkIsJavadocMojo(MojoInfo) | 1 | 1
String | getArchiveTargetPath() | 1 | 1
boolean | postExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener;Throwable) | 10 | 13
boolean | reportGenerated(MavenBuildProxy;MavenProject;MavenReportInfo;BuildListener) | 1 | 1
Collection<?extendsAction> | getProjectActions(MavenModule) | 1 | 1
Action | getAggregatedProjectAction(MavenModuleSet) | 1 | 1
FilePath | getTarget() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\BuildInfoRecorder.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.BuildInfoRecorder

Module / class or interface : hudson.maven.reporters.BuildInfoRecorder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | preExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener) | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenAbstractArtifactRecord.java 1 rule violations (XML file)

Module / class or interface : hudson.maven.reporters.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAV999999 | Syntax analysis failure on the source code | 1

Line start | Criticity class | Rule
--- | --- | ---
00078 | BLOCKER | QC-JAV999999[00078] syntax analysis failed on file D:\\maven-qcr-plugin-testsunitaires\\qcr4java\\jenkins-master\\maven-plugin\\src\\main\\java\\hudson\\maven\\reporters\\MavenAbstractArtifactRecord.java near following tokens org . kohsuke . stapler . export . ExportedBean ; public abstract class MavenAbstractArtifactRecord _ T extends AbstractBuild _ ? ,

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenAggregatedArtifactRecord.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenAbstractArtifactRecord<MavenModuleSetBuild> | hudson.maven.reporters.MavenAggregatedArtifactRecord

Module / class or interface : hudson.maven.reporters.MavenAggregatedArtifactRecord

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenAggregatedArtifactRecord | MavenAggregatedArtifactRecord(MavenModuleSetBuild) | 1 | 1
MavenModuleSetBuild | getBuild() | 1 | 1
void | update(Map<MavenModule,List<MavenBuild>>;MavenBuild) | 1 | 0
Class<MavenArtifactRecord> | getIndividualActionType() | 1 | 1
Action | getProjectAction(MavenModuleSet) | 1 | 1
List<MavenArtifactRecord> | getModuleRecords() | 3 | 4
void | deploy(MavenEmbedder;ArtifactRepository;TaskListener) | 4 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00082 | MAJOR | QC-JAV000001[00082] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenArtifact.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.reporters.MavenArtifact

Module / class or interface : hudson.maven.reporters.MavenArtifact

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenArtifact | MavenArtifact(Artifact) | 3 | 11
MavenArtifact | MavenArtifact(String;String;String;String;String;String;String) | 1 | 8
MavenArtifact | create(Artifact) | 3 | 4
boolean | isPOM() | 1 | 1
Artifact | toArtifact(ArtifactHandlerManager;ArtifactFactory;MavenBuild) | 2 | 8
String | getSeed(String) | 2 | 4
File | getFile(MavenBuild) | 2 | 3
HttpResponse | doFile(MavenArtifactRecord) | 1 | 1
FilePath | getArtifactArchivePath(MavenBuildProxy;String;String;String) | 1 | 1
void | archive(MavenBuildProxy;File;BuildListener) | 8 | 4
void | recordFingerprint(MavenBuild) | 1 | 2
Api | getApi() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenArtifactArchiver.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.MavenArtifactArchiver

Module / class or interface : hudson.maven.reporters.MavenArtifactArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | preBuild(MavenBuildProxy;MavenProject;BuildListener) | 1 | 2
boolean | preExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener) | 3 | 2
boolean | postBuild(MavenBuildProxy;MavenProject;BuildListener) | 8 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00121 | MAJOR | QC-JAV000001[00121] Avoid declaring class instance within loop, performance impact
00162 | MAJOR | QC-JAV000001[00162] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenArtifactRecord.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenAbstractArtifactRecord<MavenBuild> | hudson.maven.reporters.MavenArtifactRecord

Module / class or interface : hudson.maven.reporters.MavenArtifactRecord

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MavenArtifactRecord | MavenArtifactRecord(MavenBuild;MavenArtifact;MavenArtifact;List<MavenArtifact>) | 1 | 1
MavenArtifactRecord | MavenArtifactRecord(MavenBuild;MavenArtifact;MavenArtifact;List<MavenArtifact>;String;String) | 2 | 10
MavenBuild | getBuild() | 1 | 1
String | getUrl() | 1 | 1
String | getAbsoluteUrl() | 1 | 1
boolean | isPOM() | 1 | 1
MavenAggregatedArtifactRecord | createAggregatedAction(MavenModuleSetBuild;Map<MavenModule,List<MavenBuild>>) | 1 | 1
void | deploy(MavenEmbedder;ArtifactRepository;TaskListener) | 8 | 19
void | install(MavenEmbedder) | 3 | 7
void | recordFingerprints() | 3 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00193 | MAJOR | QC-JAV000001[00193] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenFingerprinter.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.MavenFingerprinter

Module / class or interface : hudson.maven.reporters.MavenFingerprinter

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | preBuild(MavenBuildProxy;MavenProject;BuildListener) | 1 | 4
boolean | postExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener;Throwable) | 1 | 5
boolean | postBuild(MavenBuildProxy;MavenProject;BuildListener) | 1 | 3
void | recordParents(MavenBuildProxy;MavenProject) | 3 | 3
Artifact | getArtifact(MavenProject) | 2 | 4
ArtifactRepository | getLocalRepository(MavenBuildInformation;MavenProject;MavenProject) | 7 | 2
ArtifactRepository | getArtifactRepositoryMaven21(MavenProject) | 1 | 6
void | record(Collection<Artifact>;Map<String,String>) | 2 | 1
void | record(Artifact;Map<String,String>) | 1 | 2
void | record(String;File;Map<String,String>) | 2 | 4
void | aggregate(MavenModuleSetBuild) | 5 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00143 | MAJOR | QC-JAV000001[00143] Avoid declaring class instance within loop, performance impact
00148 | MAJOR | QC-JAV000001[00148] Avoid declaring class instance within loop, performance impact
00150 | MAJOR | QC-JAV000001[00150] Avoid declaring class instance within loop, performance impact
00260 | MAJOR | QC-JAV000001[00260] Avoid declaring class instance within loop, performance impact
00261 | MAJOR | QC-JAV000001[00261] Avoid declaring class instance within loop, performance impact
00261 | MAJOR | QC-JAV000001[00261] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenJavadocArchiver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenJavadocArchiver | hudson.maven.reporters.MavenJavadocArchiver

Module / class or interface : hudson.maven.reporters.MavenJavadocArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | getProjectActions(MavenModule) | 1 | 1
String | getArchiveTargetPath() | 1 | 1
Action | getAggregatedProjectAction(MavenModuleSet) | 1 | 1
boolean | checkIsJavadocMojo(MojoInfo) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenMailer.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.MavenMailer

Module / class or interface : hudson.maven.reporters.MavenMailer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | end(MavenBuild;Launcher;BuildListener) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4

Line start | Criticity class | Rule
--- | --- | ---
00048 | MAJOR | QC-JAVCWE493[00048] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00049 | MAJOR | QC-JAVCWE493[00049] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00050 | MAJOR | QC-JAVCWE493[00050] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00051 | MAJOR | QC-JAVCWE493[00051] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenSiteArchiver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.MavenSiteArchiver

Module / class or interface : hudson.maven.reporters.MavenSiteArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | postExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener;Throwable) | 3 | 10
String | getModuleName(MavenBuildProxy;MavenProject) | 3 | 5
Collection<?extendsAction> | getProjectActions(MavenModule) | 1 | 1
Action | getAggregatedProjectAction(MavenModuleSet) | 1 | 1
File | getSiteDir(AbstractItem) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\MavenTestJavadocArchiver.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractMavenJavadocArchiver | hudson.maven.reporters.MavenTestJavadocArchiver

Module / class or interface : hudson.maven.reporters.MavenTestJavadocArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<?extendsAction> | getProjectActions(MavenModule) | 1 | 1
String | getArchiveTargetPath() | 1 | 1
Action | getAggregatedProjectAction(MavenModuleSet) | 1 | 1
boolean | checkIsJavadocMojo(MojoInfo) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\ReportAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.reporters.ReportAction

Module / class or interface : hudson.maven.reporters.ReportAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ReportAction | ReportAction() | 1 | 0
void | add(Entry) | 1 | 1
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\ReportCollector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.ReportCollector

Module / class or interface : hudson.maven.reporters.ReportCollector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | postExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener;Throwable) | 4 | 11
boolean | leaveModule(MavenBuildProxy;MavenProject;BuildListener) | 2 | 3
DescriptorImpl | getDescriptor() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\SurefireAggregatedReport.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AggregatedTestResultAction | hudson.maven.reporters.SurefireAggregatedReport

Module / class or interface : hudson.maven.reporters.SurefireAggregatedReport

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SurefireAggregatedReport | SurefireAggregatedReport(MavenModuleSetBuild) | 1 | 1
void | update(Map<MavenModule,List<MavenBuild>>;MavenBuild) | 1 | 1
Class<SurefireReport> | getIndividualActionType() | 1 | 1
Action | getProjectAction(MavenModuleSet) | 1 | 1
String | getChildName(AbstractTestResultAction) | 1 | 1
MavenBuild | resolveChild(Child) | 2 | 4
SurefireReport | getChildReport(Child) | 2 | 3
String | getTestResultPath(CaseResult) | 1 | 8

#### File maven-plugin\src\main\java\hudson\maven\reporters\SurefireArchiver.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestFailureDetector | hudson.maven.reporters.SurefireArchiver

Module / class or interface : hudson.maven.reporters.SurefireArchiver

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | hasTestFailures() | 1 | 1
boolean | preExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener) | 3 | 2
boolean | postExecute(MavenBuildProxy;MavenProject;MojoInfo;BuildListener;Throwable) | 3 | 9
boolean | end(MavenBuild;Launcher;BuildListener) | 3 | 1
void | markBuildAsSuccess(Throwable;MavenBuildInformation) | 2 | 2
void | rememberCheckedFiles(Iterable<File>) | 2 | 1
void | fixUp(List<MavenProjectActionBuilder>) | 4 | 5
boolean | isTestMojo(MojoInfo) | 1 | 1
TestMojo | getTestMojo(MojoInfo) | 3 | 5
Object | readResolve() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6

Line start | Criticity class | Rule
--- | --- | ---
00192 | MAJOR | QC-JAV000001[00192] Avoid declaring class instance within loop, performance impact
00193 | MAJOR | QC-JAV000001[00193] Avoid declaring class instance within loop, performance impact
00193 | MAJOR | QC-JAV000001[00193] Avoid declaring class instance within loop, performance impact
00230 | MAJOR | QC-JAV000001[00230] Avoid declaring class instance within loop, performance impact
00231 | MAJOR | QC-JAV000001[00231] Avoid declaring class instance within loop, performance impact
00318 | MAJOR | QC-JAV000001[00318] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\main\java\hudson\maven\reporters\SurefireReport.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestResultAction | hudson.maven.reporters.SurefireReport

Module / class or interface : hudson.maven.reporters.SurefireReport

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SurefireReport | SurefireReport(MavenBuild;TestResult;BuildListener) | 1 | 1
MavenAggregatedReport | createAggregatedAction(MavenModuleSetBuild;Map<MavenModule,List<MavenBuild>>) | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\TestFailureDetector.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MavenReporter | hudson.maven.reporters.TestFailureDetector

Module / class or interface : hudson.maven.reporters.TestFailureDetector

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | hasTestFailures() | 1 | 1

#### File maven-plugin\src\main\java\hudson\maven\reporters\TestMojo.java 0 rule violation (XML file)

Module / class or interface : hudson.maven.reporters.

#### File maven-plugin\src\main\java\hudson\maven\util\ExecutionEventLogger.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractExecutionListener | hudson.maven.util.ExecutionEventLogger

Module / class or interface : hudson.maven.util.ExecutionEventLogger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExecutionEventLogger | ExecutionEventLogger(Logger) | 2 | 2
String | chars(char;int) | 2 | 5
String | getFormattedTime(long) | 5 | 9
void | projectDiscoveryStarted(ExecutionEvent) | 2 | 1
void | sessionStarted(ExecutionEvent) | 3 | 3
void | sessionEnded(ExecutionEvent) | 3 | 3
void | logReactorSummary(MavenSession) | 7 | 10
void | logResult(MavenSession) | 3 | 3
void | logStats(MavenSession) | 1 | 10
void | projectSkipped(ExecutionEvent) | 2 | 5
void | projectStarted(ExecutionEvent) | 2 | 4
void | mojoSkipped(ExecutionEvent) | 2 | 1
void | mojoStarted(ExecutionEvent) | 2 | 8
void | forkStarted(ExecutionEvent) | 2 | 7
void | forkSucceeded(ExecutionEvent) | 2 | 7
void | append(StringBuilder;MojoExecution) | 2 | 3
void | append(StringBuilder;MavenProject) | 1 | 1
void | forkedProjectStarted(ExecutionEvent) | 2 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4

Line start | Criticity class | Rule
--- | --- | ---
00156 | MAJOR | QC-JAV000001[00156] Avoid declaring class instance within loop, performance impact
00167 | MAJOR | QC-JAV000001[00167] Avoid declaring class instance within loop, performance impact
00173 | MAJOR | QC-JAV000001[00173] Avoid declaring class instance within loop, performance impact
00179 | MAJOR | QC-JAV000001[00179] Avoid declaring class instance within loop, performance impact

#### File maven-plugin\src\test\java\hudson\maven\ExecutedMojoTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.ExecutedMojoTest

Module / class or interface : hudson.maven.ExecutedMojoTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 11
void | after() | 1 | 1
void | testMojoFromJarFile() | 1 | 5
void | testMojoFromClassesDirectory() | 1 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00054 | INFO | QC-JAV999996[00054] CPD de longueur 51 commencant en 306 (ligne 54) et 390 (ligne 67): . getName ( ) ) ; MojoExecution execution = new MojoExecution ( this . mojoDescriptor ) ; MojoInfo info = new MojoInfo ( execution , null , null , null , ( - 1 ) ) ; ExecutedMojo executedMojo = new ExecutedMojo ( info , 1L ) ; Assert . assertNotNull

#### File maven-plugin\src\test\java\hudson\maven\MavenModuleTest.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MavenModuleTest

Module / class or interface : hudson.maven.MavenModuleTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 11
void | testMavenModuleAsPluginDependency() | 1 | 8
void | addModuleAsPluginDependency(MavenModule;MavenModule) | 1 | 13
MavenModule | createPluginProject() | 1 | 11
void | basicMocking(MavenModule) | 1 | 11
void | testSimpleVersion() | 1 | 13
void | testSimpleVersionRange() | 1 | 13
void | testMultipleDependencies() | 2 | 34
void | testProjectWithSpecifiedVersionAndNoDependencies() | 2 | 24
TestComponents | createTestComponents(String) | 1 | 22
void | enhanceMavenModuleMock(MavenModule;MavenModuleSet;Collection) | 1 | 2
MavenModule | mockMavenModule(MavenProject) | 1 | 7
MavenProject | createMavenProject(String;String;String;String;String) | 1 | 7
Dependency | createDependency(String;String;String) | 1 | 5
MavenProject | createLibrary() | 1 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 3
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00136 | INFO | QC-JAV999996[00136] CPD de longueur 138 commencant en 969 (ligne 136) et 1117 (ligne 161): ; DependencyGraph graph = testComponents . graph ; MavenModule appMavenModule = testComponents . applicationMavenModule ; MavenModule libMavenModule = testComponents . libraryMavenModule ; graph . build ( ) ; List _ AbstractProject _ appDownstream = graph . getDownstream ( appMavenModule ) ; List _ AbstractProject _ appUpstream = graph . getUpstream ( appMavenModule ) ; List _ AbstractProject _ libDownstream = graph . getDownstream ( libMavenModule ) ; List _ AbstractProject _ libUpstream = graph . getUpstream ( libMavenModule ) ; Assert . assertEquals ( 0 , appDownstream . size ( ) ) ; Assert . assertEquals ( 1 , appUpstream . size ( ) ) ; Assert . assertEquals ( 1 , libDownstream . size ( ) ) ; Assert . assertEquals ( 0 , libUpstream . size ( ) ) ; } @ Test public void testSimpleVersionRange
00210 | INFO | QC-JAV999996[00210] CPD de longueur 164 commencant en 1483 (ligne 210) et 1894 (ligne 258): ; for ( AbstractProject _ ? , ? _ module : allModules ) { MavenModule mm = ( MavenModule ) module ; enhanceMavenModuleMock ( mm , parent , allModules ) ; } DependencyGraph graph = MockHelper . mockDependencyGraph ( allModules ) ; doCallRealMethod ( ) . when ( graph ) . getDownstream ( Matchers . any ( AbstractProject . class ) ) ; doCallRealMethod ( ) . when ( graph ) . getUpstream ( Matchers . any ( AbstractProject . class ) ) ; doCallRealMethod ( ) . when ( graph ) . compare ( Matchers . _ AbstractProject _ any ( ) , Matchers . _ AbstractProject _ any ( ) ) ; graph . build ( ) ; List _ AbstractProject _ downstreamA = graph . getDownstream ( mavenModuleA ) ; List _ AbstractProject _ upstreamA = graph . getUpstream ( mavenModuleA ) ; Assert . assertEquals ( 0 , downstreamA . size ( ) ) ; Assert . assertEquals ( 1
00213 | MAJOR | QC-JAV000001[00213] Avoid declaring class instance within loop, performance impact
00213 | MAJOR | QC-JAV000001[00213] Avoid declaring class instance within loop, performance impact
00261 | MAJOR | QC-JAV000001[00261] Avoid declaring class instance within loop, performance impact
00261 | MAJOR | QC-JAV000001[00261] Avoid declaring class instance within loop, performance impact
00370 | MAJOR | QC-JAVCWE493[00370] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00371 | MAJOR | QC-JAVCWE493[00371] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00372 | MAJOR | QC-JAVCWE493[00372] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File maven-plugin\src\test\java\hudson\maven\MojoInfoBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.MojoInfoBuilder

Module / class or interface : hudson.maven.MojoInfoBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MojoInfoBuilder | mojoBuilder(String;String;String) | 1 | 1
MojoInfoBuilder | MojoInfoBuilder(String;String;String) | 1 | 3
MojoInfoBuilder | copy() | 1 | 3
MojoInfoBuilder | version(String) | 1 | 2
MojoInfoBuilder | startTime(long) | 1 | 2
MojoInfoBuilder | configValue(String;String) | 1 | 2
MojoInfo | build() | 2 | 13

#### File maven-plugin\src\test\java\hudson\maven\reporters\SurefireArchiverDetectTestMojosTest.java 9 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.reporters.SurefireArchiverDetectTestMojosTest

Module / class or interface : hudson.maven.reporters.SurefireArchiverDetectTestMojosTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 1
void | shouldDetectMavenSurefire() | 1 | 2
void | shouldDetectMavenFailsafe() | 1 | 2
void | shouldDetectMavenFailsafe2() | 1 | 2
void | shouldDetectMavenSurefireSkip() | 1 | 9
void | shouldDetectMavenJunitPlugin() | 1 | 5
void | shouldDetectFlexMojoMavenPlugin() | 1 | 5
void | shouldDetectOsgiTestPlugin() | 1 | 5
void | shouldDetectTychoSurefirePlugin() | 1 | 5
void | shouldDetectMavenAndroidPlugin() | 1 | 5
void | shouldDetectAndroidMavenPlugin() | 1 | 5
void | shouldDetectGwtMavenPlugin() | 1 | 5
void | shouldDetectSoapUiMavenPlugin() | 1 | 5
void | shouldDetectSoapUiProMavenPlugin() | 1 | 5
void | shouldDetectToolkitResolverPlugin() | 1 | 5
void | shouldDetectAnyMojoWithATestGoal() | 1 | 3
void | shouldNotDetectNonTestGoal() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 9

Line start | Criticity class | Rule
--- | --- | ---
00069 | INFO | QC-JAV999996[00069] CPD de longueur 59 commencant en 380 (ligne 69) et 677 (ligne 114): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTests" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectFlexMojoMavenPlugin
00069 | INFO | QC-JAV999996[00069] CPD de longueur 59 commencant en 380 (ligne 69) et 755 (ligne 126): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTests" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectFlexMojoMavenPlugin
00069 | INFO | QC-JAV999996[00069] (Nb max de CPD atteint :3) CPD de longueur 59 commencant en 380 (ligne 69) et 1050 (ligne 172): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTests" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectFlexMojoMavenPlugin
00080 | INFO | QC-JAV999996[00080] CPD de longueur 59 commencant en 453 (ligne 80) et 526 (ligne 91): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTest" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectOsgiTestPlugin
00080 | INFO | QC-JAV999996[00080] CPD de longueur 59 commencant en 453 (ligne 80) et 599 (ligne 102): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTest" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectOsgiTestPlugin
00091 | INFO | QC-JAV999996[00091] CPD de longueur 59 commencant en 526 (ligne 91) et 599 (ligne 102): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTest" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectTychoSurefirePlugin
00113 | INFO | QC-JAV999996[00113] CPD de longueur 66 commencant en 670 (ligne 113) et 748 (ligne 125): "internal - integration - test" ) . version ( "3.0.0 - alpha - 6" ) ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTests" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectAndroidMavenPlugin
00126 | INFO | QC-JAV999996[00126] CPD de longueur 59 commencant en 755 (ligne 126) et 1050 (ligne 172): ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skipTests" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectGwtMavenPlugin
00150 | INFO | QC-JAV999996[00150] CPD de longueur 61 commencant en 902 (ligne 150) et 975 (ligne 161): "test" ) ; MojoInfo mojo = builder . build ( ) ; assertTrue ( this . surefireArchiver . isTestMojo ( mojo ) ) ; mojo = builder . copy ( ) . configValue ( "skip" , "true" ) . build ( ) ; assertFalse ( this . surefireArchiver . isTestMojo ( mojo ) ) ; } @ Test public void shouldDetectSoapUiProMavenPlugin

#### File maven-plugin\src\test\java\hudson\maven\reporters\SurefireArchiverFilterReportsFileTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.reporters.SurefireArchiverFilterReportsFileTest

Module / class or interface : hudson.maven.reporters.SurefireArchiverFilterReportsFileTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | shouldIncludeAllReportFiles() | 1 | 13
void | shouldExcludeReportFileTooOld() | 1 | 14
void | shouldExcludeReportFileTooYoung() | 1 | 14

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 3
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00046 | INFO | QC-JAV999996[00046] CPD de longueur 68 commencant en 269 (ligne 46) et 443 (ligne 74): ) { File reportsDir = new File ( "bla" ) ; String [ ] reportFiles = { "a" , "b" , "c" } ; FilteredReportsFileIterable iterable = new FilteredReportsFileIterable ( reportsDir , reportFiles , 5000 , 10000 ) ; iterable = spy ( iterable ) ; File included = mock ( File . class ) ; when ( included . lastModified ( ) ) . thenReturn ( 6000L
00040 | MAJOR | QC-JAVCWE390[00040] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00068 | MAJOR | QC-JAVCWE390[00068] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00096 | MAJOR | QC-JAVCWE390[00096] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File maven-plugin\src\test\java\hudson\maven\reporters\SurefireArchiverUnitTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.reporters.SurefireArchiverUnitTest

Module / class or interface : hudson.maven.reporters.SurefireArchiverUnitTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | before() | 1 | 8
MojoInfo | createMojoInfo() | 1 | 4
void | testNotArchivingEmptyResults() | 1 | 6
void | testArchiveResults() | 1 | 20
void | testResultsAreNotCountedTwice() | 1 | 12
void | testMultiThreaded() | 3 | 21
void | touchReportFiles(File) | 2 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00090 | INFO | QC-JAV999996[00090] CPD de longueur 104 commencant en 594 (ligne 90) et 867 (ligne 121): ) throws InterruptedException , IOException , URISyntaxException , ComponentConfigurationException { URL resource = SurefireArchiverUnitTest . class . getResource ( " / surefire - archiver - test2" ) ; File reportsDir = new File ( resource . toURI ( ) . getPath ( ) ) ; doReturn ( reportsDir ) . when ( this . mojoInfo ) . getConfigurationValue ( "reportsDirectory" , File . class ) ; touchReportFiles ( reportsDir ) ; this . archiver . postExecute ( buildProxy , null , this . mojoInfo , ( new NullBuildListener ( ) ) , null ) ; SurefireReport action = this . build . getAction ( SurefireReport . class ) ; Assert
00108 | INFO | QC-JAV999996[00108] CPD de longueur 51 commencant en 762 (ligne 108) et 906 (ligne 124): doReturn ( reportsDir ) . when ( this . mojoInfo ) . getConfigurationValue ( "reportsDirectory" , File . class ) ; touchReportFiles ( reportsDir ) ; this . archiver . postExecute ( buildProxy , null , this . mojoInfo , ( new NullBuildListener ( ) ) , null ) ; action

#### File maven-plugin\src\test\java\hudson\maven\reporters\TestMojoTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.reporters.TestMojoTest

Module / class or interface : hudson.maven.reporters.TestMojoTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGetReportFilesThrowsNoException() | 2 | 7
void | testGetReportFilesAndroidMavenPlugin() | 2 | 21

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 3 | "surefire - reports"\---java.io.File (correctly sanitized)\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | correctly sanitized
| 2 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults\---FileWriter\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.fw |
|  |  | Security risk level : None
No 2 |  |  |
| 4 | "target"\---java.io.File (correctly sanitized)\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir | correctly sanitized
| 3 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults\---FileWriter\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.fw |
|  |  | Security risk level : None
No 3 |  |  |
| 5 | hudson.Util.createTempDir\---dummymethode\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testDir |
| 4 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 3 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults\---FileWriter\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.fw |
|  |  | Security risk level : CRITICAL
No 4 |  |  |
| 2 | "surefire - reports"\---java.io.File (correctly sanitized)\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | correctly sanitized
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 5 |  |  |
| 3 | "target"\---java.io.File (correctly sanitized)\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir | correctly sanitized
| 2 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 6 |  |  |
| 4 | hudson.Util.createTempDir\---dummymethode\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testDir |
| 3 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testResults | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL
No 7 |  |  |
| 2 | "target"\---java.io.File (correctly sanitized)\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir | correctly sanitized
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 8 |  |  |
| 3 | hudson.Util.createTempDir\---dummymethode\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testDir |
| 2 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.testDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.targetDir\---java.io.File\------hudson.maven.reporters.TestMojoTest.testGetReportFilesAndroidMavenPlugin.reportsDir | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : CRITICAL

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---

Line start | Criticity class | Rule
--- | --- | ---

#### File maven-plugin\src\test\java\hudson\model\MockHelper.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.MockHelper

Module / class or interface : hudson.model.MockHelper

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DependencyGraph | mockDependencyGraph(Collection<AbstractProject<?,?>>) | 1 | 4

#### File msi\FindJava.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | .FindJava

Module / class or interface : .FindJava

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | main(String[]) | 1 | 1

#### File test\src\main\java\hudson\util\SecretHelper.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.util.SecretHelper

Module / class or interface : hudson.util.SecretHelper

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | set(String) | 1 | 1

#### File test\src\main\java\jenkins\model\JenkinsAdaptor.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.model.JenkinsAdaptor

Module / class or interface : jenkins.model.JenkinsAdaptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setQuietPeriod(Jenkins;int) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
CRITICAL | QC-JAVCWE476 | Null pointer reference | 1

Line start | Criticity class | Rule
--- | --- | ---
00007 | CRITICAL | QC-JAVCWE476[00007] The argument jenkins is a class instance but is not tested towards null, but referenced in attribute invocation in the method body, NPE potential risk

#### File test\src\main\java\org\jvnet\hudson\test\CaptureEnvironmentBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Builder | org.jvnet.hudson.test.CaptureEnvironmentBuilder

Module / class or interface : org.jvnet.hudson.test.CaptureEnvironmentBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EnvVars | getEnvVars() | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 2

#### File test\src\main\java\org\jvnet\hudson\test\ClosureExecuterAction.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.ClosureExecuterAction

Module / class or interface : org.jvnet.hudson.test.ClosureExecuterAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | add(UUID;Runnable) | 1 | 1
void | doIndex(StaplerResponse;String) | 3 | 3
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1

Line start | Criticity class | Rule
--- | --- | ---
00052 | BLOCKER | QC-JAVCWE572[00052] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)

#### File test\src\main\java\org\jvnet\hudson\test\ComputerConnectorTester.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<ComputerConnectorTester> | org.jvnet.hudson.test.ComputerConnectorTester

Module / class or interface : org.jvnet.hudson.test.ComputerConnectorTester

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ComputerConnectorTester | ComputerConnectorTester(HudsonTestCase) | 1 | 1
void | doConfigSubmit(StaplerRequest) | 1 | 1
List | getConnectorDescriptors() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00045 | MAJOR | QC-JAVCWE493[00045] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\main\java\org\jvnet\hudson\test\DefaultConstructorChecker.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | org.jvnet.hudson.test.DefaultConstructorChecker

Module / class or interface : org.jvnet.hudson.test.DefaultConstructorChecker

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DefaultConstructorChecker | DefaultConstructorChecker(Class) | 1 | 2
void | runTest() | 1 | 3

#### File test\src\main\java\org\jvnet\hudson\test\ExtractChangeLogParser.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChangeLogParser | org.jvnet.hudson.test.ExtractChangeLogParser

Module / class or interface : org.jvnet.hudson.test.ExtractChangeLogParser

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtractChangeLogSet | parse(AbstractBuild;File) | 3 | 5
ExtractChangeLogSet | parse(AbstractBuild;InputStream) | 1 | 12

#### File test\src\main\java\org\jvnet\hudson\test\ExtractChangeLogSet.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
ChangeLogSet<ExtractChangeLogParser.ExtractChangeLogEntry> | org.jvnet.hudson.test.ExtractChangeLogSet

Module / class or interface : org.jvnet.hudson.test.ExtractChangeLogSet

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtractChangeLogSet | ExtractChangeLogSet(AbstractBuild<?,?>;List<ExtractChangeLogParser.ExtractChangeLogEntry>) | 2 | 3
boolean | isEmptySet() | 1 | 1
Iterator<ExtractChangeLogParser.ExtractChangeLogEntry> | iterator() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\ExtractResourceSCM.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NullSCM | org.jvnet.hudson.test.ExtractResourceSCM

Module / class or interface : org.jvnet.hudson.test.ExtractResourceSCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtractResourceSCM | ExtractResourceSCM(URL) | 2 | 2
ExtractResourceSCM | ExtractResourceSCM(URL;String) | 2 | 3
boolean | checkout(AbstractBuild<?,?>;Launcher;FilePath;BuildListener;File) | 3 | 6

#### File test\src\main\java\org\jvnet\hudson\test\ExtractResourceWithChangesSCM.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
NullSCM | org.jvnet.hudson.test.ExtractResourceWithChangesSCM

Module / class or interface : org.jvnet.hudson.test.ExtractResourceWithChangesSCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ExtractResourceWithChangesSCM | ExtractResourceWithChangesSCM(URL;URL) | 2 | 4
ExtractResourceWithChangesSCM | ExtractResourceWithChangesSCM(URL;URL;String) | 2 | 4
FilePath | getModuleRoot(FilePath) | 2 | 2
boolean | checkout(AbstractBuild<?,?>;Launcher;FilePath;BuildListener;File) | 2 | 12
ChangeLogParser | createChangeLogParser() | 1 | 1
String | escapeForXml(String) | 1 | 1
void | saveToChangeLog(File;ExtractChangeLogParser.ExtractChangeLogEntry) | 2 | 12
Object | writeReplace() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00094 | MAJOR | QC-JAVCWE481[00094] Assigning instead of comparing on e=zip.getNextEntry() (see http://cwe.mitre.org/data/definitions/481.html)

#### File test\src\main\java\org\jvnet\hudson\test\FailureBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MockBuilder | org.jvnet.hudson.test.FailureBuilder

Module / class or interface : org.jvnet.hudson.test.FailureBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FailureBuilder | FailureBuilder() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\FakeChangeLogSCM.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NullSCM | org.jvnet.hudson.test.FakeChangeLogSCM

Module / class or interface : org.jvnet.hudson.test.FakeChangeLogSCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EntryImpl | addChange() | 1 | 3
boolean | checkout(AbstractBuild<?,?>;Launcher;FilePath;BuildListener;File) | 1 | 4
ChangeLogParser | createChangeLogParser() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\FakeLauncher.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.FakeLauncher

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Proc | onLaunch(ProcStarter) | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\GroovyHudsonTestCase.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | org.jvnet.hudson.test.GroovyHudsonTestCase

Module / class or interface : org.jvnet.hudson.test.GroovyHudsonTestCase

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Object | executeOnServer(Closure) | 1 | 1
Builder | builder(Closure) | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\HudsonHomeLoader.java 3 rule violations (XML file)

Module / class or interface : org.jvnet.hudson.test.HudsonHomeLoader

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
File | allocate() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00131 | MAJOR | QC-JAV000001[00131] Avoid declaring class instance within loop, performance impact
00132 | MAJOR | QC-JAV000001[00132] Avoid declaring class instance within loop, performance impact
00132 | MAJOR | QC-JAV000001[00132] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\HudsonPageCreator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
DefaultPageCreator | org.jvnet.hudson.test.HudsonPageCreator

Module / class or interface : org.jvnet.hudson.test.HudsonPageCreator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Page | createPage(WebResponse;WebWindow) | 2 | 3

#### File test\src\main\java\org\jvnet\hudson\test\HudsonTestCase.java 72 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | org.jvnet.hudson.test.HudsonTestCase

Module / class or interface : org.jvnet.hudson.test.HudsonTestCase

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
HudsonTestCase | HudsonTestCase(String) | 1 | 1
HudsonTestCase | HudsonTestCase() | 1 | 0
void | runBare() | 1 | 5
void | setUp() | 5 | 26
void | setUpTimeout() | 2 | 4
void | configureUpdateCenter() | 1 | 6
void | tearDown() | 8 | 9
void | runTest() | 2 | 6
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1
Hudson | newHudson() | 2 | 3
void | setPluginManager(PluginManager) | 2 | 3
ServletContext | createWebServer() | 2 | 16
UserRealm | configureUserRealm() | 1 | 9
void | addChannel(Channel) | 1 | 1
MavenInstallation | configureDefaultMaven() | 1 | 1
MavenInstallation | configureMaven3() | 1 | 4
MavenInstallation | configureDefaultMaven(String;int) | 5 | 16
Ant.AntInstallation | configureDefaultAnt() | 4 | 11
FreeStyleProject | createFreeStyleProject() | 1 | 1
FreeStyleProject | createFreeStyleProject(String) | 1 | 1
MatrixProject | createMatrixProject() | 1 | 1
MatrixProject | createMatrixProject(String) | 1 | 1
MavenModuleSet | createMavenProject() | 1 | 1
MavenModuleSet | createMavenProject(String) | 1 | 3
String | createUniqueProjectName() | 1 | 1
LocalLauncher | createLocalLauncher() | 1 | 1
File | createTmpDir() | 1 | 1
DumbSlave | createSlave() | 1 | 1
DumbSlave | createSlave(Label) | 1 | 1
SecurityRealm | createDummySecurityRealm() | 1 | 1
URL | getURL() | 1 | 1
DumbSlave | createSlave(EnvVars) | 1 | 1
DumbSlave | createSlave(Label;EnvVars) | 1 | 1
DumbSlave | createSlave(String;EnvVars) | 1 | 2
DumbSlave | createSlave(String;String;EnvVars) | 1 | 3
PretendSlave | createPretendSlave(FakeLauncher) | 1 | 4
CommandLauncher | createComputerLauncher(EnvVars) | 1 | 2
DumbSlave | createOnlineSlave() | 1 | 1
DumbSlave | createOnlineSlave(Label) | 1 | 1
DumbSlave | createOnlineSlave(Label;EnvVars) | 1 | 6
void | interactiveBreak() | 1 | 2
void | pause() | 1 | 1
Page | search(String) | 1 | 1
void | configRoundtrip() | 1 | 1
User | configRoundtrip(User) | 1 | 2
boolean | isGoodHttpStatus(int) | 3 | 3
void | assertGoodStatus(Page) | 1 | 1
FreeStyleBuild | buildAndAssertSuccess(FreeStyleProject) | 1 | 1
MavenModuleSetBuild | buildAndAssertSuccess(MavenModuleSet) | 1 | 1
MavenBuild | buildAndAssertSuccess(MavenModule) | 1 | 1
void | assertLogContains(String;Run) | 1 | 2
void | assertLogNotContains(String;Run) | 1 | 2
String | getLog(Run) | 1 | 1
void | assertXPath(HtmlPage;String) | 1 | 1
void | assertXPath(DomNode;String) | 1 | 2
void | assertXPathValue(DomNode;String;String) | 1 | 6
void | assertXPathValueContains(DomNode;String;String) | 1 | 6
void | assertXPathResultsContainText(DomNode;String;String) | 3 | 4
void | assertAllImageLoadSuccessfully(HtmlPage) | 2 | 0
void | assertStringContains(String;String;String) | 1 | 1
void | assertStringContains(String;String) | 1 | 1
void | assertHelpExists(Class<?extendsDescribable>;String) | 1 | 1
List<String> | listProperties(String) | 3 | 2
HtmlPage | submit(HtmlForm) | 1 | 1
HtmlPage | submit(HtmlForm;String) | 3 | 2
HtmlInput | findPreviousInputElement(HtmlElement;String) | 1 | 1
HtmlButton | getButtonByCaption(HtmlForm;String) | 3 | 2
TaskListener | createTaskListener() | 1 | 1
void | assertEqualBeans(Object;Object;String) | 5 | 5
void | setQuietPeriod(int) | 1 | 1
void | assertEqualDataBoundBeans(Object;Object) | 10 | 15
void | assertEqualDataBoundBeans(List<?>;List<?>) | 2 | 4
Constructor<?> | findDataBoundConstructor(Class<?>) | 3 | 2
boolean | isSomethingHappening() | 4 | 3
void | waitUntilNoActivity() | 1 | 1
void | waitUntilNoActivityUpTo(int) | 5 | 6
void | recipe() | 2 | 2
void | recipeLoadCurrentPlugin() | 2 | 6
HudsonTestCase | withNewHome() | 1 | 1
HudsonTestCase | withExistingHome(File) | 1 | 1
HudsonTestCase | withPresetData(String) | 2 | 4
HudsonTestCase | with(HudsonHomeLoader) | 1 | 2
Object | writeReplace() | 1 | 1
WebClient | createWebClient() | 1 | 1

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 4 | " . / target / classes / "\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory | correctly sanitized
| 3 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mavenInstallation\---jenkins.getDescriptorByType.setInstallations\------jenkins.getDescriptorByType.setInstallations(mavenInstallation)1 |
|  |  | Security risk level : None
No 2 |  |  |
| 4 | "buildDirectory"\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory | correctly sanitized
| 3 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mavenInstallation\---jenkins.getDescriptorByType.setInstallations\------jenkins.getDescriptorByType.setInstallations(mavenInstallation)1 |
|  |  | Security risk level : None
No 3 |  |  |
| 3 | " . / target / classes / "\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome\---java.io.File\------hudson.util.jna.GNUCLibrary.chmod1 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 4 |  |  |
| 3 | "buildDirectory"\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome\---java.io.File\------hudson.util.jna.GNUCLibrary.chmod1 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 5 |  |  |
| 3 | " . / target / classes / "\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 6 |  |  |
| 3 | "buildDirectory"\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.HudsonTestCase.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 7
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 59
MINOR | QC-JAVCWE500 | Static public field not marked final | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
01052 | INFO | QC-JAV999996[01052] CPD de longueur 69 commencant en 5406 (ligne 1052) et 5501 (ligne 1062): { Object node = page . getFirstByXPath ( xpath ) ; assertNotNull ( "no node found" , node ) ; assertTrue ( ( "the found object was not a Node " + xpath ) , ( node instanceof org . w3c . dom . Node ) ) ; org . w3c . dom . Node n = ( org . w3c . dom . Node ) node ; String textString = n . getTextContent ( ) ; assertEquals
00203 | MAJOR | QC-JAVCWE493[00203] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00205 | MAJOR | QC-JAVCWE493[00205] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00259 | MAJOR | QC-JAVCWE493[00259] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00264 | MAJOR | QC-JAVCWE493[00264] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00275 | MAJOR | QC-JAVCWE493[00275] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00307 | MAJOR | QC-JAV000001[00307] Avoid declaring class instance within loop, performance impact
00416 | BLOCKER | QC-JAVCWE572[00416] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
00446 | MAJOR | QC-JAVCWE390[00446] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01077 | MAJOR | QC-JAV000001[01077] Avoid declaring class instance within loop, performance impact
01078 | MAJOR | QC-JAV000001[01078] Avoid declaring class instance within loop, performance impact
01078 | MAJOR | QC-JAV000001[01078] Avoid declaring class instance within loop, performance impact
01079 | MAJOR | QC-JAV000001[01079] Avoid declaring class instance within loop, performance impact
01097 | MAJOR | QC-JAV000001[01097] Avoid declaring class instance within loop, performance impact
01126 | MAJOR | QC-JAV000001[01126] Avoid declaring class instance within loop, performance impact
01167 | MAJOR | QC-JAV000001[01167] Avoid declaring class instance within loop, performance impact
01167 | MAJOR | QC-JAV000001[01167] Avoid declaring class instance within loop, performance impact
01177 | MAJOR | QC-JAV000001[01177] Avoid declaring class instance within loop, performance impact
01178 | MAJOR | QC-JAV000001[01178] Avoid declaring class instance within loop, performance impact
01178 | MAJOR | QC-JAV000001[01178] Avoid declaring class instance within loop, performance impact
01191 | MAJOR | QC-JAV000001[01191] Avoid declaring class instance within loop, performance impact
01230 | MAJOR | QC-JAV000001[01230] Avoid declaring class instance within loop, performance impact
01231 | MAJOR | QC-JAV000001[01231] Avoid declaring class instance within loop, performance impact
01235 | MAJOR | QC-JAV000001[01235] Avoid declaring class instance within loop, performance impact
01238 | MAJOR | QC-JAV000001[01238] Avoid declaring class instance within loop, performance impact
01240 | MAJOR | QC-JAVCWE392[01240] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
01284 | MAJOR | QC-JAV000001[01284] Avoid declaring class instance within loop, performance impact
01285 | MAJOR | QC-JAV000001[01285] Avoid declaring class instance within loop, performance impact
01288 | MAJOR | QC-JAV000001[01288] Avoid declaring class instance within loop, performance impact
01288 | MAJOR | QC-JAV000001[01288] Avoid declaring class instance within loop, performance impact
01289 | MAJOR | QC-JAV000001[01289] Avoid declaring class instance within loop, performance impact
01289 | MAJOR | QC-JAV000001[01289] Avoid declaring class instance within loop, performance impact
01290 | MAJOR | QC-JAV000001[01290] Avoid declaring class instance within loop, performance impact
01292 | MAJOR | QC-JAV000001[01292] Avoid declaring class instance within loop, performance impact
01293 | MAJOR | QC-JAV000001[01293] Avoid declaring class instance within loop, performance impact
01292 | MAJOR | QC-JAV000001[01292] Avoid declaring class instance within loop, performance impact
01293 | MAJOR | QC-JAV000001[01293] Avoid declaring class instance within loop, performance impact
01381 | MAJOR | QC-JAV000001[01381] Avoid declaring class instance within loop, performance impact
01381 | MAJOR | QC-JAV000001[01381] Avoid declaring class instance within loop, performance impact
01382 | MAJOR | QC-JAV000001[01382] Avoid declaring class instance within loop, performance impact
01383 | MAJOR | QC-JAV000001[01383] Avoid declaring class instance within loop, performance impact
01383 | MAJOR | QC-JAV000001[01383] Avoid declaring class instance within loop, performance impact
01414 | MAJOR | QC-JAV000001[01414] Avoid declaring class instance within loop, performance impact
01416 | MAJOR | QC-JAV000001[01416] Avoid declaring class instance within loop, performance impact
01425 | MAJOR | QC-JAVCWE390[01425] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01454 | MAJOR | QC-JAV000001[01454] Avoid declaring class instance within loop, performance impact
01455 | MAJOR | QC-JAV000001[01455] Avoid declaring class instance within loop, performance impact
01468 | MAJOR | QC-JAV000001[01468] Avoid declaring class instance within loop, performance impact
01470 | MAJOR | QC-JAV000001[01470] Avoid declaring class instance within loop, performance impact
01470 | MAJOR | QC-JAV000001[01470] Avoid declaring class instance within loop, performance impact
01471 | MAJOR | QC-JAV000001[01471] Avoid declaring class instance within loop, performance impact
01472 | MAJOR | QC-JAV000001[01472] Avoid declaring class instance within loop, performance impact
01477 | MAJOR | QC-JAV000001[01477] Avoid declaring class instance within loop, performance impact
01478 | MAJOR | QC-JAV000001[01478] Avoid declaring class instance within loop, performance impact
01479 | MAJOR | QC-JAV000001[01479] Avoid declaring class instance within loop, performance impact
01480 | MAJOR | QC-JAV000001[01480] Avoid declaring class instance within loop, performance impact
01489 | MAJOR | QC-JAV000001[01489] Avoid declaring class instance within loop, performance impact
01472 | MAJOR | QC-JAV000001[01472] Avoid declaring class instance within loop, performance impact
01477 | MAJOR | QC-JAV000001[01477] Avoid declaring class instance within loop, performance impact
01478 | MAJOR | QC-JAV000001[01478] Avoid declaring class instance within loop, performance impact
01479 | MAJOR | QC-JAV000001[01479] Avoid declaring class instance within loop, performance impact
01480 | MAJOR | QC-JAV000001[01480] Avoid declaring class instance within loop, performance impact
01489 | MAJOR | QC-JAV000001[01489] Avoid declaring class instance within loop, performance impact
01502 | MAJOR | QC-JAV000001[01502] Avoid declaring class instance within loop, performance impact
01503 | MAJOR | QC-JAV000001[01503] Avoid declaring class instance within loop, performance impact
01504 | MAJOR | QC-JAV000001[01504] Avoid declaring class instance within loop, performance impact
01518 | MAJOR | QC-JAV000001[01518] Avoid declaring class instance within loop, performance impact
01527 | MAJOR | QC-JAV000001[01527] Avoid declaring class instance within loop, performance impact
01531 | MAJOR | QC-JAV000001[01531] Avoid declaring class instance within loop, performance impact
01988 | MAJOR | QC-JAVCWE493[01988] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
01988 | MINOR | QC-JAVCWE500[01988] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
02014 | MAJOR | QC-JAVCWE493[02014] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\main\java\org\jvnet\hudson\test\JavaNetReverseProxy.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HttpServlet | org.jvnet.hudson.test.JavaNetReverseProxy

Module / class or interface : org.jvnet.hudson.test.JavaNetReverseProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JavaNetReverseProxy | JavaNetReverseProxy(File) | 1 | 11
void | stop() | 1 | 1
void | service(HttpServletRequest;HttpServletResponse) | 2 | 7
String | getMimeType(String) | 3 | 4
JavaNetReverseProxy | getInstance() | 2 | 2

#### File test\src\main\java\org\jvnet\hudson\test\JellyTestSuiteBuilder.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.JellyTestSuiteBuilder

Module / class or interface : org.jvnet.hudson.test.JellyTestSuiteBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestSuite | build(File;boolean) | 4 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00069 | MAJOR | QC-JAV000001[00069] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\JenkinsComputerConnectorTester.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
AbstractDescribableImpl<JenkinsComputerConnectorTester> | org.jvnet.hudson.test.JenkinsComputerConnectorTester

Module / class or interface : org.jvnet.hudson.test.JenkinsComputerConnectorTester

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
JenkinsComputerConnectorTester | JenkinsComputerConnectorTester(JenkinsRule) | 1 | 1
void | doConfigSubmit(StaplerRequest) | 1 | 1
List | getConnectorDescriptors() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00046 | MAJOR | QC-JAVCWE493[00046] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\main\java\org\jvnet\hudson\test\JenkinsMatchers.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.JenkinsMatchers

Module / class or interface : org.jvnet.hudson.test.JenkinsMatchers

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Matcher<Class> | privateConstructorThrows(Class<?extendsThrowable>) | 1 | 1
Matcher<FormValidation> | causedBy(Class<?extendsThrowable>) | 1 | 1
Matcher<FormValidation> | hasKind(FormValidation.Kind) | 1 | 1
Matcher<Class<?>> | isUtilityClass() | 1 | 1
Matcher<Class<?>> | isClassWithOnlyPrivateConstructors() | 1 | 1
Matcher<Class<?>> | isFinalClass() | 1 | 1
Matcher<Class<?>> | hasDefaultConstructor() | 1 | 1
Matcher<Throwable> | hasCause(Class<?extendsThrowable>) | 1 | 1
Matcher<Object> | hasImplementedEquals() | 1 | 1
Matcher<Object> | hasReflexiveEquals() | 1 | 1
Matcher<Object> | hasNonEqualityWithNulls() | 1 | 1
Matcher<Object> | hasSymmetricEquals(Object) | 1 | 1
Matcher<Object> | hasConsistentEquals(Object) | 1 | 1
Matcher<Object> | hasTransitiveEquals(Object;Object) | 1 | 1
Matcher<Object> | hasImplementedHashCode() | 1 | 1
Matcher<Object> | hasHashCodeContract(Object) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 3
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00213 | INFO | QC-JAV999996[00213] CPD de longueur 59 commencant en 919 (ligne 213) et 1034 (ligne 232): BaseMatcher _ Object _ { public boolean matches ( Object item ) { if ( item == null ) { return false ; } Class _ ? _ clazz = ( item instanceof Class ) ? ( Class _ ? _ ) item : item . getClass ( ) ; try { return ! clazz . getMethod ( "equals"
00059 | MAJOR | QC-JAVCWE390[00059] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00061 | MAJOR | QC-JAVCWE390[00061] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00066 | MAJOR | QC-JAVCWE390[00066] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\main\java\org\jvnet\hudson\test\JenkinsRecipe.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.

#### File test\src\main\java\org\jvnet\hudson\test\JenkinsRule.java 77 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.JenkinsRule

Module / class or interface : org.jvnet.hudson.test.JenkinsRule

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Jenkins | getInstance() | 1 | 1
void | before() | 3 | 21
void | configureUpdateCenter() | 1 | 6
void | setUpTimeout() | 2 | 4
void | after() | 6 | 6
Statement | apply(Statement;FrameworkMethod;Object) | 1 | 1
Statement | apply(Statement;Description) | 2 | 2
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1
Hudson | newHudson() | 2 | 4
PluginManager | getPluginManager() | 3 | 2
void | setPluginManager(PluginManager) | 2 | 3
JenkinsRule | with(PluginManager) | 1 | 2
File | getWebAppRoot() | 1 | 1
ServletContext | createWebServer() | 1 | 14
UserRealm | configureUserRealm() | 1 | 9
Maven.MavenInstallation | configureDefaultMaven() | 1 | 1
Maven.MavenInstallation | configureMaven3() | 1 | 4
Maven.MavenInstallation | configureDefaultMaven(String;int) | 5 | 16
Ant.AntInstallation | configureDefaultAnt() | 4 | 11
FreeStyleProject | createFreeStyleProject() | 1 | 1
FreeStyleProject | createFreeStyleProject(String) | 1 | 1
MatrixProject | createMatrixProject() | 1 | 1
MatrixProject | createMatrixProject(String) | 1 | 1
MavenModuleSet | createMavenProject() | 1 | 1
MavenModuleSet | createMavenProject(String) | 1 | 1
MockFolder | createFolder(String) | 1 | 1
String | createUniqueProjectName() | 1 | 1
Launcher.LocalLauncher | createLocalLauncher() | 1 | 1
File | createTmpDir() | 1 | 1
DumbSlave | createSlave() | 1 | 1
DumbSlave | createSlave(Label) | 1 | 1
DummySecurityRealm | createDummySecurityRealm() | 1 | 1
URL | getURL() | 1 | 1
DumbSlave | createSlave(EnvVars) | 1 | 1
DumbSlave | createSlave(Label;EnvVars) | 1 | 1
DumbSlave | createSlave(String;EnvVars) | 1 | 2
DumbSlave | createSlave(String;String;EnvVars) | 1 | 3
PretendSlave | createPretendSlave(FakeLauncher) | 1 | 4
CommandLauncher | createComputerLauncher(EnvVars) | 1 | 2
DumbSlave | createOnlineSlave() | 1 | 1
DumbSlave | createOnlineSlave(Label) | 1 | 1
DumbSlave | createOnlineSlave(Label;EnvVars) | 1 | 6
void | interactiveBreak() | 1 | 2
void | pause() | 1 | 1
Page | search(String) | 1 | 1
void | configRoundtrip() | 1 | 1
User | configRoundtrip(User) | 1 | 2
boolean | isGoodHttpStatus(int) | 3 | 3
void | assertGoodStatus(Page) | 1 | 1
FreeStyleBuild | buildAndAssertSuccess(FreeStyleProject) | 1 | 1
MavenModuleSetBuild | buildAndAssertSuccess(MavenModuleSet) | 1 | 1
MavenBuild | buildAndAssertSuccess(MavenModule) | 1 | 1
void | assertLogContains(String;Run) | 1 | 1
void | assertLogNotContains(String;Run) | 1 | 1
String | getLog(Run) | 1 | 1
void | assertXPath(HtmlPage;String) | 1 | 1
void | assertXPath(DomNode;String) | 1 | 2
void | assertXPathValue(DomNode;String;String) | 1 | 2
void | assertXPathValueContains(DomNode;String;String) | 1 | 2
void | assertXPathResultsContainText(DomNode;String;String) | 3 | 4
void | assertAllImageLoadSuccessfully(HtmlPage) | 2 | 0
void | assertStringContains(String;String;String) | 1 | 1
void | assertStringContains(String;String) | 1 | 1
void | assertHelpExists(Class<?extendsDescribable>;String) | 1 | 1
List<String> | listProperties(String) | 3 | 2
HtmlPage | submit(HtmlForm) | 1 | 1
HtmlPage | submit(HtmlForm;String) | 3 | 2
HtmlInput | findPreviousInputElement(HtmlElement;String) | 1 | 1
HtmlButton | getButtonByCaption(HtmlForm;String) | 3 | 2
TaskListener | createTaskListener() | 1 | 1
void | assertEqualBeans(Object;Object;String) | 5 | 5
void | setQuietPeriod(int) | 1 | 1
void | assertEqualDataBoundBeans(Object;Object) | 10 | 15
void | assertEqualDataBoundBeans(List<?>;List<?>) | 2 | 4
Constructor<?> | findDataBoundConstructor(Class<?>) | 3 | 2
boolean | isSomethingHappening() | 4 | 3
void | waitUntilNoActivity() | 1 | 1
void | waitUntilNoActivityUpTo(int) | 5 | 6
void | recipe() | 2 | 1
void | recipeLoadCurrentPlugin() | 2 | 6
JenkinsRule | withNewHome() | 1 | 1
JenkinsRule | withExistingHome(File) | 1 | 1
JenkinsRule | withPresetData(String) | 2 | 4
JenkinsRule | with(HudsonHomeLoader) | 1 | 2
Object | writeReplace() | 1 | 1
WebClient | createWebClient() | 1 | 1
Description | getTestDescription() | 1 | 1

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 4 | " . / target / classes / "\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory | correctly sanitized
| 3 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mavenInstallation\---jenkins.getDescriptorByType.setInstallations\------jenkins.getDescriptorByType.setInstallations(mavenInstallation)1 |
|  |  | Security risk level : None
No 2 |  |  |
| 4 | "buildDirectory"\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory | correctly sanitized
| 3 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 2 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mavenInstallation\---jenkins.getDescriptorByType.setInstallations\------jenkins.getDescriptorByType.setInstallations(mavenInstallation)1 |
|  |  | Security risk level : None
No 3 |  |  |
| 3 | " . / target / classes / "\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome\---java.io.File\------hudson.util.jna.GNUCLibrary.chmod1 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 4 |  |  |
| 3 | "buildDirectory"\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome\---java.io.File\------hudson.util.jna.GNUCLibrary.chmod1 | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 5 |  |  |
| 3 | " . / target / classes / "\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 6 |  |  |
| 3 | "buildDirectory"\---System.getProperty (correctly sanitized)\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory | correctly sanitized
| 2 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.buildDirectory\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mvnHome\---java.io.File\------org.jvnet.hudson.test.JenkinsRule.configureDefaultMaven.mavenInstallation | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 6
MAJOR | QC-JAVCWE392 | Failure to report error in status code | 1
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 7
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 61
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00234 | MAJOR | QC-JAVCWE493[00234] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00236 | MAJOR | QC-JAVCWE493[00236] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00289 | MAJOR | QC-JAVCWE493[00289] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00294 | MAJOR | QC-JAVCWE493[00294] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00305 | MAJOR | QC-JAVCWE493[00305] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00403 | MAJOR | QC-JAV000001[00403] Avoid declaring class instance within loop, performance impact
00403 | MAJOR | QC-JAVCWE390[00403] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00413 | MAJOR | QC-JAV000001[00413] Avoid declaring class instance within loop, performance impact
00413 | MAJOR | QC-JAVCWE390[00413] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00419 | MAJOR | QC-JAV000001[00419] Avoid declaring class instance within loop, performance impact
00419 | MAJOR | QC-JAVCWE390[00419] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00427 | MAJOR | QC-JAVCWE390[00427] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00433 | MAJOR | QC-JAV000001[00433] Avoid declaring class instance within loop, performance impact
00431 | BLOCKER | QC-JAVCWE572[00431] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)
00433 | MAJOR | QC-JAVCWE390[00433] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00823 | MAJOR | QC-JAV000001[00823] Avoid declaring class instance within loop, performance impact
01160 | MAJOR | QC-JAV000001[01160] Avoid declaring class instance within loop, performance impact
01161 | MAJOR | QC-JAV000001[01161] Avoid declaring class instance within loop, performance impact
01161 | MAJOR | QC-JAV000001[01161] Avoid declaring class instance within loop, performance impact
01162 | MAJOR | QC-JAV000001[01162] Avoid declaring class instance within loop, performance impact
01180 | MAJOR | QC-JAV000001[01180] Avoid declaring class instance within loop, performance impact
01209 | MAJOR | QC-JAV000001[01209] Avoid declaring class instance within loop, performance impact
01251 | MAJOR | QC-JAV000001[01251] Avoid declaring class instance within loop, performance impact
01251 | MAJOR | QC-JAV000001[01251] Avoid declaring class instance within loop, performance impact
01261 | MAJOR | QC-JAV000001[01261] Avoid declaring class instance within loop, performance impact
01262 | MAJOR | QC-JAV000001[01262] Avoid declaring class instance within loop, performance impact
01262 | MAJOR | QC-JAV000001[01262] Avoid declaring class instance within loop, performance impact
01275 | MAJOR | QC-JAV000001[01275] Avoid declaring class instance within loop, performance impact
01314 | MAJOR | QC-JAV000001[01314] Avoid declaring class instance within loop, performance impact
01315 | MAJOR | QC-JAV000001[01315] Avoid declaring class instance within loop, performance impact
01319 | MAJOR | QC-JAV000001[01319] Avoid declaring class instance within loop, performance impact
01322 | MAJOR | QC-JAV000001[01322] Avoid declaring class instance within loop, performance impact
01324 | MAJOR | QC-JAVCWE392[01324] Failure to report error in status code (see http://cwe.mitre.org/data/definitions/392.html)
01368 | MAJOR | QC-JAV000001[01368] Avoid declaring class instance within loop, performance impact
01369 | MAJOR | QC-JAV000001[01369] Avoid declaring class instance within loop, performance impact
01372 | MAJOR | QC-JAV000001[01372] Avoid declaring class instance within loop, performance impact
01372 | MAJOR | QC-JAV000001[01372] Avoid declaring class instance within loop, performance impact
01373 | MAJOR | QC-JAV000001[01373] Avoid declaring class instance within loop, performance impact
01373 | MAJOR | QC-JAV000001[01373] Avoid declaring class instance within loop, performance impact
01374 | MAJOR | QC-JAV000001[01374] Avoid declaring class instance within loop, performance impact
01376 | MAJOR | QC-JAV000001[01376] Avoid declaring class instance within loop, performance impact
01377 | MAJOR | QC-JAV000001[01377] Avoid declaring class instance within loop, performance impact
01376 | MAJOR | QC-JAV000001[01376] Avoid declaring class instance within loop, performance impact
01377 | MAJOR | QC-JAV000001[01377] Avoid declaring class instance within loop, performance impact
01466 | MAJOR | QC-JAV000001[01466] Avoid declaring class instance within loop, performance impact
01466 | MAJOR | QC-JAV000001[01466] Avoid declaring class instance within loop, performance impact
01467 | MAJOR | QC-JAV000001[01467] Avoid declaring class instance within loop, performance impact
01468 | MAJOR | QC-JAV000001[01468] Avoid declaring class instance within loop, performance impact
01468 | MAJOR | QC-JAV000001[01468] Avoid declaring class instance within loop, performance impact
01497 | MAJOR | QC-JAV000001[01497] Avoid declaring class instance within loop, performance impact
01499 | MAJOR | QC-JAV000001[01499] Avoid declaring class instance within loop, performance impact
01508 | MAJOR | QC-JAVCWE390[01508] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
01537 | MAJOR | QC-JAV000001[01537] Avoid declaring class instance within loop, performance impact
01538 | MAJOR | QC-JAV000001[01538] Avoid declaring class instance within loop, performance impact
01551 | MAJOR | QC-JAV000001[01551] Avoid declaring class instance within loop, performance impact
01553 | MAJOR | QC-JAV000001[01553] Avoid declaring class instance within loop, performance impact
01555 | MAJOR | QC-JAV000001[01555] Avoid declaring class instance within loop, performance impact
01556 | MAJOR | QC-JAV000001[01556] Avoid declaring class instance within loop, performance impact
01557 | MAJOR | QC-JAV000001[01557] Avoid declaring class instance within loop, performance impact
01558 | MAJOR | QC-JAV000001[01558] Avoid declaring class instance within loop, performance impact
01559 | MAJOR | QC-JAV000001[01559] Avoid declaring class instance within loop, performance impact
01560 | MAJOR | QC-JAV000001[01560] Avoid declaring class instance within loop, performance impact
01562 | MAJOR | QC-JAV000001[01562] Avoid declaring class instance within loop, performance impact
01557 | MAJOR | QC-JAV000001[01557] Avoid declaring class instance within loop, performance impact
01558 | MAJOR | QC-JAV000001[01558] Avoid declaring class instance within loop, performance impact
01559 | MAJOR | QC-JAV000001[01559] Avoid declaring class instance within loop, performance impact
01560 | MAJOR | QC-JAV000001[01560] Avoid declaring class instance within loop, performance impact
01562 | MAJOR | QC-JAV000001[01562] Avoid declaring class instance within loop, performance impact
01575 | MAJOR | QC-JAV000001[01575] Avoid declaring class instance within loop, performance impact
01576 | MAJOR | QC-JAV000001[01576] Avoid declaring class instance within loop, performance impact
01577 | MAJOR | QC-JAV000001[01577] Avoid declaring class instance within loop, performance impact
01591 | MAJOR | QC-JAV000001[01591] Avoid declaring class instance within loop, performance impact
01600 | MAJOR | QC-JAV000001[01600] Avoid declaring class instance within loop, performance impact
01604 | MAJOR | QC-JAV000001[01604] Avoid declaring class instance within loop, performance impact
02059 | MAJOR | QC-JAVCWE493[02059] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
02059 | MINOR | QC-JAVCWE500[02059] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
02085 | MAJOR | QC-JAVCWE493[02085] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\main\java\org\jvnet\hudson\test\LenientRunnable.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.LenientRunnable

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | run() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\MemoryAssert.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.MemoryAssert

Module / class or interface : org.jvnet.hudson.test.MemoryAssert

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MemoryAssert | MemoryAssert() | 1 | 0
void | assertHeapUsage(Object;int) | 1 | 4
List<HistogramElement> | increasedMemory(Callable<Void>;Filter) | 4 | 15
void | assertGC(WeakReference<?>) | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00142 | MAJOR | QC-JAV000001[00142] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\MockBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Builder | org.jvnet.hudson.test.MockBuilder

Module / class or interface : org.jvnet.hudson.test.MockBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MockBuilder | MockBuilder(Result) | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 3
Descriptor<Builder> | getDescriptor() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\MockFolder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractItem | org.jvnet.hudson.test.MockFolder

Module / class or interface : org.jvnet.hudson.test.MockFolder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
MockFolder | MockFolder(ItemGroup;String) | 1 | 1
void | onLoad(ItemGroup<?extendsItem>;String) | 1 | 2
Collection<TopLevelItem> | getItems() | 1 | 1
TopLevelItem | getItem(String) | 1 | 1
Collection<?extendsJob> | getAllJobs() | 2 | 3
File | jobs() | 1 | 1
ItemGroupMixIn | mixin() | 1 | 1
TopLevelItem | createProjectFromXML(String;InputStream) | 1 | 1
TopLevelItem | createProject(TopLevelItemDescriptor;String;boolean) | 1 | 1
TopLevelItem | doCreateItem(StaplerRequest;StaplerResponse) | 1 | 1
String | getUrlChildPrefix() | 1 | 1
File | getRootDirFor(TopLevelItem) | 1 | 1
void | onRenamed(TopLevelItem;String;String) | 1 | 2
void | onDeleted(TopLevelItem) | 1 | 1
TopLevelItemDescriptor | getDescriptor() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\NoListenerConfiguration.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.NoListenerConfiguration

Module / class or interface : org.jvnet.hudson.test.NoListenerConfiguration

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setWebAppContext(WebAppContext) | 1 | 1
WebAppContext | getWebAppContext() | 1 | 1
void | configureClassLoader() | 1 | 0
void | configureDefaults() | 1 | 0
void | configureWebApp() | 1 | 1
void | deconfigureWebApp() | 1 | 0

#### File test\src\main\java\org\jvnet\hudson\test\PluginAutomaticTestBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.PluginAutomaticTestBuilder

Module / class or interface : org.jvnet.hudson.test.PluginAutomaticTestBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestSuite | build(Map<String,?>) | 2 | 5
boolean | toBoolean(Object) | 3 | 3
boolean | notSkipTests(String) | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\PretendSlave.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Slave | org.jvnet.hudson.test.PretendSlave

Module / class or interface : org.jvnet.hudson.test.PretendSlave

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
PretendSlave | PretendSlave(String;String;int;Mode;String;ComputerLauncher;FakeLauncher) | 1 | 2
PretendSlave | PretendSlave(String;String;String;ComputerLauncher;FakeLauncher) | 1 | 1
Launcher | createLauncher(TaskListener) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00029 | MAJOR | QC-JAVCWE493[00029] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\main\java\org\jvnet\hudson\test\SequenceLock.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.SequenceLock

Module / class or interface : org.jvnet.hudson.test.SequenceLock

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | phase(int) | 4 | 6
void | done() | 2 | 3
void | abort() | 1 | 2

#### File test\src\main\java\org\jvnet\hudson\test\SingleFileSCM.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
NullSCM | org.jvnet.hudson.test.SingleFileSCM

Module / class or interface : org.jvnet.hudson.test.SingleFileSCM

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SingleFileSCM | SingleFileSCM(String;byte[]) | 1 | 2
SingleFileSCM | SingleFileSCM(String;String) | 1 | 2
SingleFileSCM | SingleFileSCM(String;URL) | 1 | 2
boolean | checkout(AbstractBuild;Launcher;FilePath;BuildListener;File) | 1 | 5
Object | writeReplace() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\SleepBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Builder | org.jvnet.hudson.test.SleepBuilder

Module / class or interface : org.jvnet.hudson.test.SleepBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
SleepBuilder | SleepBuilder(long) | 1 | 1
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 3

#### File test\src\main\java\org\jvnet\hudson\test\TemporaryDirectoryAllocator.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.TemporaryDirectoryAllocator

Module / class or interface : org.jvnet.hudson.test.TemporaryDirectoryAllocator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TemporaryDirectoryAllocator | TemporaryDirectoryAllocator(File) | 1 | 1
TemporaryDirectoryAllocator | TemporaryDirectoryAllocator() | 1 | 1
File | allocate() | 1 | 6
void | dispose() | 3 | 5
void | disposeAsync() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00083 | MAJOR | QC-JAV000001[00083] Avoid declaring class instance within loop, performance impact
00102 | MAJOR | QC-JAV000001[00102] Avoid declaring class instance within loop, performance impact
00104 | MAJOR | QC-JAV000001[00104] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\TestBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Builder | org.jvnet.hudson.test.TestBuilder

Module / class or interface : org.jvnet.hudson.test.TestBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 1
Descriptor<Builder> | getDescriptor() | 1 | 1
Object | writeReplace() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\TestCrumbIssuer.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
CrumbIssuer | org.jvnet.hudson.test.TestCrumbIssuer

Module / class or interface : org.jvnet.hudson.test.TestCrumbIssuer

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | issueCrumb(ServletRequest;String) | 1 | 1
boolean | validateCrumb(ServletRequest;String;String) | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\TestEnvironment.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.TestEnvironment

Module / class or interface : org.jvnet.hudson.test.TestEnvironment

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestEnvironment | TestEnvironment(HudsonTestCase) | 1 | 2
TestEnvironment | TestEnvironment(Description) | 1 | 2
Description | description() | 3 | 3
void | pin() | 1 | 1
void | dispose() | 1 | 2
TestEnvironment | get() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\TestExtension.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.

#### File test\src\main\java\org\jvnet\hudson\test\TestExtensionLoader.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
GuiceExtensionAnnotation<TestExtension> | org.jvnet.hudson.test.TestExtensionLoader

Module / class or interface : org.jvnet.hudson.test.TestExtensionLoader

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestExtensionLoader | TestExtensionLoader() | 1 | 1
boolean | isOptional(TestExtension) | 1 | 1
double | getOrdinal(TestExtension) | 1 | 1
boolean | isActive(AnnotatedElement) | 8 | 14

#### File test\src\main\java\org\jvnet\hudson\test\TestPluginManager.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
PluginManager | org.jvnet.hudson.test.TestPluginManager

Module / class or interface : org.jvnet.hudson.test.TestPluginManager

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TestPluginManager | TestPluginManager() | 1 | 1
Collection<String> | loadBundledPlugins() | 6 | 11
void | stop() | 2 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00076 | MAJOR | QC-JAV000001[00076] Avoid declaring class instance within loop, performance impact
00099 | MAJOR | QC-JAVCWE481[00099] Assigning instead of comparing on line=r.readLine() (see http://cwe.mitre.org/data/definitions/481.html)
00100 | MAJOR | QC-JAV000001[00100] Avoid declaring class instance within loop, performance impact
00101 | MAJOR | QC-JAV000001[00101] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\ThreadPoolImpl.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractLifeCycle | org.jvnet.hudson.test.ThreadPoolImpl

Module / class or interface : org.jvnet.hudson.test.ThreadPoolImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
ThreadPoolImpl | ThreadPoolImpl(ExecutorService) | 1 | 1
boolean | dispatch(Runnable) | 2 | 3
void | join() | 1 | 1
int | getThreads() | 1 | 1
int | getIdleThreads() | 1 | 1
boolean | isLowOnThreads() | 1 | 1
void | doStart() | 1 | 0
void | doStop() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\TouchBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Builder | org.jvnet.hudson.test.TouchBuilder

Module / class or interface : org.jvnet.hudson.test.TouchBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 2 | 2

#### File test\src\main\java\org\jvnet\hudson\test\UnstableBuilder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
MockBuilder | org.jvnet.hudson.test.UnstableBuilder

Module / class or interface : org.jvnet.hudson.test.UnstableBuilder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
UnstableBuilder | UnstableBuilder() | 1 | 1

#### File test\src\main\java\org\jvnet\hudson\test\WarExploder.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.WarExploder

Module / class or interface : org.jvnet.hudson.test.WarExploder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
File | getExplodedDir() | 2 | 2
File | explode() | 7 | 16

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00075 | MAJOR | QC-JAV000001[00075] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\WithoutJenkins.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.

#### File test\src\main\java\org\jvnet\hudson\test\junit\FailedTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | org.jvnet.hudson.test.junit.FailedTest

Module / class or interface : org.jvnet.hudson.test.junit.FailedTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FailedTest | FailedTest(String;Throwable) | 1 | 2
FailedTest | FailedTest(Class;Throwable) | 1 | 1
void | runTest() | 2 | 1

#### File test\src\main\java\org\jvnet\hudson\test\junit\GroupedTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestSuite | org.jvnet.hudson.test.junit.GroupedTest

Module / class or interface : org.jvnet.hudson.test.junit.GroupedTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
int | countTestCases() | 1 | 1
void | run(TestResult) | 1 | 4
void | runGroupedTests(TestResult) | 1 | 1
void | setUp() | 1 | 0
void | tearDown() | 1 | 0

#### File test\src\main\java\org\jvnet\hudson\test\package-info.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.

#### File test\src\main\java\org\jvnet\hudson\test\recipes\LocalData.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

#### File test\src\main\java\org\jvnet\hudson\test\recipes\PresetData.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

#### File test\src\main\java\org\jvnet\hudson\test\recipes\Recipe.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

#### File test\src\main\java\org\jvnet\hudson\test\recipes\WithPlugin.java 1 rule violations (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00072 | INFO | QC-JAV999996[00072] CPD de longueur 57 commencant en 216 (ligne 72) et 320 (ligne 88): , File home ) throws Exception { URL res = getClass ( ) . getClassLoader ( ) . getResource ( "plugins / " + a . value ( ) ) ; FileUtils . copyURLToFile ( res , ( new File ( home , ( "plugins / " + a . value ( ) ) ) ) ) ; } } class

#### File test\src\main\java\org\jvnet\hudson\test\recipes\WithPluginManager.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

#### File test\src\main\java\org\jvnet\hudson\test\recipes\WithTimeout.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

#### File test\src\main\java\org\jvnet\hudson\test\recipes\package-info.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.recipes.

#### File test\src\main\java\org\jvnet\hudson\test\rhino\CallStackFrame.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.rhino.CallStackFrame

Module / class or interface : org.jvnet.hudson.test.rhino.CallStackFrame

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
CallStackFrame | CallStackFrame(JavaScriptDebugger;DebuggableScript) | 1 | 2
void | onEnter(Context;Scriptable;Scriptable;Object[]) | 1 | 4
void | onExit(Context;boolean;Object) | 1 | 5
void | onLineChange(Context;int) | 1 | 1
void | onExceptionThrown(Context;Throwable) | 1 | 0
void | onDebuggerStatement(Context) | 1 | 0
SortedMap<String,Object> | getVariables() | 2 | 6
String | toString() | 3 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00091 | MAJOR | QC-JAV000001[00091] Avoid declaring class instance within loop, performance impact

#### File test\src\main\java\org\jvnet\hudson\test\rhino\JavaScriptDebugger.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.rhino.JavaScriptDebugger

Module / class or interface : org.jvnet.hudson.test.rhino.JavaScriptDebugger

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | addCallStackFrame(CallStackFrame) | 1 | 1
void | removeCallStackFrame(CallStackFrame) | 1 | 1
void | handleCompilationDone(Context;DebuggableScript;String) | 1 | 0
DebugFrame | getFrame(Context;DebuggableScript) | 1 | 1
String | toString() | 2 | 3

#### File test\src\main\java\org\jvnet\hudson\test\rhino\package-info.java 0 rule violation (XML file)

Module / class or interface : org.jvnet.hudson.test.rhino.

#### File test\src\test\java\CoreJellyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | .CoreJellyTest

Module / class or interface : .CoreJellyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Test | suite() | 1 | 1

#### File test\src\test\java\hudson\ClassicPluginStrategyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.ClassicPluginStrategyTest

Module / class or interface : hudson.ClassicPluginStrategyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testDependencyClassLoader() | 4 | 11

#### File test\src\test\java\hudson\ExceptionTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.ExceptionTest

Module / class or interface : hudson.ExceptionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testAjaxError() | 2 | 4

#### File test\src\test\java\hudson\ExtensionFinderTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.ExtensionFinderTest

Module / class or interface : hudson.ExtensionFinderTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFailingInstance() | 1 | 3
void | testInjection() | 1 | 3
void | testErrorRecovery() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00057 | MAJOR | QC-JAVCWE493[00057] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00057 | MINOR | QC-JAVCWE500[00057] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)

#### File test\src\test\java\hudson\ExtensionListTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.ExtensionListTest

Module / class or interface : hudson.ExtensionListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testAutoDiscovery() | 1 | 4
void | testExtensionListView() | 1 | 8
boolean | hasInstanceOf(Collection;Class) | 3 | 2
void | testDescriptorLookup() | 1 | 4
void | testFishDiscovery() | 1 | 17
void | testLegacyDescriptorList() | 1 | 7
Car | honda() | 1 | 1
void | testOrdinals() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00119 | INFO | QC-JAV999996[00119] CPD de longueur 63 commencant en 606 (ligne 119) et 680 (ligne 128): ) ) ; assertEquals ( 3 , LIST . size ( ) ) ; assertNotNull ( LIST . findByName ( Tai . class . getName ( ) ) ) ; assertNotNull ( LIST . findByName ( Sishamo . class . getName ( ) ) ) ; assertNotNull ( LIST . findByName ( Saba . class . getName ( ) ) ) ; LIST

#### File test\src\test\java\hudson\FileSystemProvisionerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.FileSystemProvisionerTest

Module / class or interface : hudson.FileSystemProvisionerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test13165() | 1 | 8

#### File test\src\test\java\hudson\HtmlEscapeTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.HtmlEscapeTest

Module / class or interface : hudson.HtmlEscapeTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 4
String | getStr() | 1 | 1

#### File test\src\test\java\hudson\PluginManagerTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.PluginManagerTest

Module / class or interface : hudson.PluginManagerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testUploadJpi() | 1 | 8
void | testUploadHpi() | 1 | 8
void | testWithRecipeJpi() | 1 | 1
void | testWithRecipeHpi() | 1 | 1
void | testOptionalMavenDependency() | 3 | 4
void | testUberClassLoaderIsAvailableDuringStart() | 1 | 1
void | testUberClassLoaderDoesntUseContextClassLoader() | 1 | 8
void | testInstallWithoutRestart() | 1 | 6
void | testPrevalidateConfig() | 1 | 16

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00183 | MAJOR | QC-JAVCWE390[00183] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\PluginManagerTest2.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.PluginManagerTest2

Module / class or interface : hudson.PluginManagerTest2

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
ServletContext | createWebServer() | 1 | 2
void | testPinned() | 1 | 10
void | uploadPlugin(String;boolean) | 3 | 11

#### File test\src\test\java\hudson\ProcTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.ProcTest

Module / class or interface : hudson.ProcTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRemoteProcOutputSync() | 4 | 17
VirtualChannel | createSlaveChannel() | 1 | 6
void | testIoPumpingWithLocalLaunch() | 1 | 1
void | testIoPumpingWithRemoteLaunch() | 1 | 1
void | doIoPumpingTest(Launcher) | 1 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00042 | MAJOR | QC-JAVCWE390[00042] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00054 | MAJOR | QC-JAV000001[00054] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\UDPBroadcastThreadTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.UDPBroadcastThreadTest

Module / class or interface : hudson.UDPBroadcastThreadTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLegacy() | 1 | 4
void | testMulticast() | 1 | 13
void | sendQueryTo(DatagramSocket;InetAddress) | 1 | 4
void | receiveAndVerify(DatagramSocket) | 1 | 7

#### File test\src\test\java\hudson\bugs\DateConversionTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.bugs.DateConversionTest

Module / class or interface : hudson.bugs.DateConversionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 3 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00053 | MAJOR | QC-JAV000001[00053] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\bugs\JnlpAccessWithSecuredHudsonTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.bugs.JnlpAccessWithSecuredHudsonTest

Module / class or interface : hudson.bugs.JnlpAccessWithSecuredHudsonTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Slave | createNewJnlpSlave(String) | 1 | 1
void | testAnonymousCanAlwaysLoadJARs() | 2 | 11
void | testAnonymousCannotGetSecrets() | 1 | 2
void | testServiceUsingDirectSecret() | 2 | 12

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact
00084 | MAJOR | QC-JAV000001[00084] Avoid declaring class instance within loop, performance impact
00106 | MAJOR | QC-JAVCWE390[00106] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\bugs\LoginRedirectTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.bugs.LoginRedirectTest

Module / class or interface : hudson.bugs.LoginRedirectTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testRedirect() | 1 | 10
void | testRedirect2() | 1 | 1

#### File test\src\test\java\hudson\bugs\seasar\Operation2174Test.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.bugs.seasar.Operation2174Test

Module / class or interface : hudson.bugs.seasar.Operation2174Test

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBuildChains() | 1 | 12

#### File test\src\test\java\hudson\bugs\seasar\package-info.java 0 rule violation (XML file)

Module / class or interface : hudson.bugs.seasar.

#### File test\src\test\java\hudson\cli\CopyJobCommandTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.cli.CopyJobCommandTest

Module / class or interface : hudson.cli.CopyJobCommandTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | copyBetweenFolders() | 1 | 10

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00043 | MAJOR | QC-JAVCWE493[00043] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\console\ConsoleAnnotatorTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.console.ConsoleAnnotatorTest

Module / class or interface : hudson.console.ConsoleAnnotatorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCompletedStatelessLogAnnotation() | 1 | 10
void | testConsoleAnnotationFilterOut() | 1 | 8
void | testProgressiveOutput() | 1 | 15
void | testConsoleAnnotation() | 1 | 15
void | testScriptInclusion() | 1 | 5
void | testEscape() | 1 | 8
void | testPollingOutput() | 1 | 10

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
BLOCKER | QC-JAVCWE572 | Call to Thread run() instead of start() | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 3

Line start | Criticity class | Rule
--- | --- | ---
00045 | INFO | QC-JAV999996[00045] CPD de longueur 54 commencant en 277 (ligne 45) et 606 (ligne 94): ) throws Exception { FreeStyleProject p = createFreeStyleProject ( ) ; p . getBuildersList ( ) . add ( new TestBuilder ( ) { public boolean perform ( AbstractBuild _ ? , ? _ build , Launcher launcher , BuildListener listener ) throws InterruptedException , IOException { listener . getLogger ( ) . println
00152 | INFO | QC-JAV999996[00152] CPD de longueur 85 commencant en 959 (ligne 152) et 1279 (ligne 211): ( ) throws Exception { final SequenceLock lock = new SequenceLock ( ) ; WebClient wc = createWebClient ( ) ; FreeStyleProject p = createFreeStyleProject ( ) ; p . getBuildersList ( ) . add ( new TestBuilder ( ) { public boolean perform ( AbstractBuild _ ? , ? _ build , Launcher launcher , BuildListener listener ) throws InterruptedException , IOException { lock . phase ( 0 ) ; lock . phase ( 2 ) ; listener . getLogger ( ) . println
00163 | INFO | QC-JAV999996[00163] CPD de longueur 73 commencant en 1064 (ligne 163) et 1447 (ligne 230): ) ; lock . phase ( 6 ) ; return true ; } } ) ; Future _ FreeStyleBuild _ f = p . scheduleBuild2 ( 0 ) ; lock . phase ( 1 ) ; FreeStyleBuild b = p . getBuildByNumber ( 1 ) ; ProgressiveLogClient plc = new ProgressiveLogClient ( wc , b ) ; plc . next ( ) ; lock . phase ( 3 ) ; assertEquals ( " _ b tag = 1 _ line1 _ / b _ \\r n"
00341 | BLOCKER | QC-JAVCWE572[00341] call to Thread run() instead of start() (see http://cwe.mitre.org/data/definitions/572.html)

#### File test\src\test\java\hudson\console\ExceptionAnnotationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.console.ExceptionAnnotationTest

Module / class or interface : hudson.console.ExceptionAnnotationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 4

#### File test\src\test\java\hudson\console\UrlAnnotatorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.console.UrlAnnotatorTest

Module / class or interface : hudson.console.UrlAnnotatorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 8
void | test2() | 1 | 5

#### File test\src\test\java\hudson\diagnosis\HudsonHomeDiskUsageMonitorTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.diagnosis.HudsonHomeDiskUsageMonitorTest

Module / class or interface : hudson.diagnosis.HudsonHomeDiskUsageMonitorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFlow() | 1 | 7
HtmlForm | getForm(HudsonHomeDiskUsageMonitor) | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00032 | MAJOR | QC-JAVCWE390[00032] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\diagnosis\TooManyJobsButNoViewTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.diagnosis.TooManyJobsButNoViewTest

Module / class or interface : hudson.diagnosis.TooManyJobsButNoViewTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testInitialState() | 1 | 1
void | verifyNoForm() | 1 | 3
void | testActivated() | 2 | 12

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00038 | MAJOR | QC-JAVCWE390[00038] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\logging\LogRecorderManagerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.logging.LogRecorderManagerTest

Module / class or interface : hudson.logging.LogRecorderManagerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLoggerConfig() | 1 | 7

#### File test\src\test\java\hudson\markup\MarkupFormatterTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.markup.MarkupFormatterTest

Module / class or interface : hudson.markup.MarkupFormatterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 5

#### File test\src\test\java\hudson\matrix\MatrixConfigurationSorterTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.matrix.MatrixConfigurationSorterTest

Module / class or interface : hudson.matrix.MatrixConfigurationSorterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 10

#### File test\src\test\java\hudson\matrix\MatrixProjectDependencyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.matrix.MatrixProjectDependencyTest

Module / class or interface : hudson.matrix.MatrixProjectDependencyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testMatrixProjectTriggersDependencies() | 1 | 12

#### File test\src\test\java\hudson\matrix\MatrixTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.matrix.MatrixTest

Module / class or interface : hudson.matrix.MatrixTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSpaceInUrl() | 1 | 4
void | testConfigurationACL() | 1 | 9
void | testApi() | 1 | 4

#### File test\src\test\java\hudson\maven\AbortedMavenBuildTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.AbortedMavenBuildTest

Module / class or interface : hudson.maven.AbortedMavenBuildTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBuildWrapperSeesAbortedStatus() | 1 | 10

#### File test\src\test\java\hudson\maven\Maven3BuildTest.java 12 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.Maven3BuildTest

Module / class or interface : hudson.maven.Maven3BuildTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSimpleMaven3Build() | 1 | 8
void | testSimpleMaven3BuildRedeployPublisher() | 1 | 15
void | testSiteBuildWithForkedMojo() | 1 | 8
void | testMaven3BuildWrongScope() | 1 | 11
void | testMaven3BuildWrongInheritence() | 1 | 10
void | testMavenSeveralModulesInDirectory() | 1 | 8
void | testMavenWithDependencyVersionInEnvVar() | 1 | 10
void | testMultiModMavenNonRecursive() | 1 | 9
void | testBuildTimeStampProperty() | 1 | 10
void | testDuplicateTestResults() | 1 | 9
void | testTychoTestResults() | 3 | 15
void | testTychoEclipseTestResults() | 3 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 12

Line start | Criticity class | Rule
--- | --- | ---
00044 | INFO | QC-JAV999996[00044] CPD de longueur 67 commencant en 130 (ligne 44) et 453 (ligne 83): ( ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureMaven3 ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven3 - project . zip" ) ) ) ; m . setGoals ( "clean install"
00044 | INFO | QC-JAV999996[00044] CPD de longueur 58 commencant en 130 (ligne 44) et 709 (ligne 111): ( ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureMaven3 ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven3 - project . zip"
00044 | INFO | QC-JAV999996[00044] (Nb max de CPD atteint :3) CPD de longueur 58 commencant en 130 (ligne 44) et 848 (ligne 126): ( ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureMaven3 ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven3 - project . zip"
00083 | INFO | QC-JAV999996[00083] CPD de longueur 58 commencant en 453 (ligne 83) et 709 (ligne 111): ( ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureMaven3 ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven3 - project . zip"
00083 | INFO | QC-JAV999996[00083] CPD de longueur 58 commencant en 453 (ligne 83) et 848 (ligne 126): ( ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureMaven3 ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven3 - project . zip"
00103 | INFO | QC-JAV999996[00103] CPD de longueur 67 commencant en 638 (ligne 103) et 777 (ligne 118): ; MavenModuleSetBuild mmsb = m . scheduleBuild2 ( 0 ) . get ( ) ; assertBuildStatus ( Result . FAILURE , mmsb ) ; System . out . println ( "mmsb . getProject ( ) . getModules " + mmsb . getProject ( ) . getModules ( ) ) ; assertTrue ( mmsb . getProject ( ) . getModules ( ) . isEmpty ( ) ) ; } @ Bug ( value = 8390
00111 | INFO | QC-JAV999996[00111] CPD de longueur 57 commencant en 710 (ligne 111) et 849 (ligne 126): ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureMaven3 ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "incorrect - inheritence - testcase . zip"
00156 | INFO | QC-JAV999996[00156] CPD de longueur 57 commencant en 1077 (ligne 156) et 1188 (ligne 169): ) throws Exception { MavenInstallation mavenInstallation = configureMaven3 ( ) ; MavenModuleSet m = createMavenProject ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven - multimod . zip"
00156 | INFO | QC-JAV999996[00156] CPD de longueur 57 commencant en 1077 (ligne 156) et 1313 (ligne 183): ) throws Exception { MavenInstallation mavenInstallation = configureMaven3 ( ) ; MavenModuleSet m = createMavenProject ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven - multimod . zip"
00169 | INFO | QC-JAV999996[00169] CPD de longueur 57 commencant en 1188 (ligne 169) et 1313 (ligne 183): ) throws Exception { MavenInstallation mavenInstallation = configureMaven3 ( ) ; MavenModuleSet m = createMavenProject ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "JENKINS - 8573 . zip"
00198 | INFO | QC-JAV999996[00198] CPD de longueur 64 commencant en 1435 (ligne 198) et 1638 (ligne 224): ) throws Exception { MavenInstallation mavenInstallation = configureMaven3 ( ) ; MavenModuleSet m = createMavenProject ( ) ; m . setRootPOM ( "org . foobar . build / pom . xml" ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "JENKINS - 9326 . zip"
00205 | INFO | QC-JAV999996[00205] CPD de longueur 121 commencant en 1509 (ligne 205) et 1712 (ligne 231): "verify" ) ; buildAndAssertSuccess ( m ) ; System . out . println ( "modules size " + m . getModules ( ) ) ; MavenModule testModule = null ; for ( MavenModule mavenModule : m . getModules ( ) ) { System . out . println ( "module " + ( mavenModule . getName ( ) + ( " / " + mavenModule . getDisplayName ( ) ) ) ) ; if ( String . valueOf ( "org . foobar : org . foobar . test" ) . equals ( mavenModule . getName ( ) ) ) testModule = mavenModule ; } AbstractTestResultAction trpa = testModule . getLastBuild ( ) . getTestResultAction ( ) ; int totalCount = trpa . getTotalCount ( ) ; assertEquals ( 1 , totalCount ) ; } @

#### File test\src\test\java\hudson\maven\MavenArgumentInterceptorTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenArgumentInterceptorTest

Module / class or interface : hudson.maven.MavenArgumentInterceptorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSimpleMaven3BuildWithArgInterceptor_Goals() | 1 | 8
void | testSimpleMaven3BuildWithArgInterceptor_ArgBuilder() | 1 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00123 | MAJOR | QC-JAVCWE493[00123] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\maven\MavenBuildSurefireFailedTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenBuildSurefireFailedTest

Module / class or interface : hudson.maven.MavenBuildSurefireFailedTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testMaven2Unstable() | 1 | 5
void | testMaven2Failed() | 1 | 5
void | testMaven3Unstable() | 1 | 5
void | testMaven3Failed() | 1 | 5
void | testMaven3SkipPostBuilder() | 1 | 7
void | testMaven2SkipPostBuilder() | 1 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00055 | INFO | QC-JAV999996[00055] CPD de longueur 63 commencant en 384 (ligne 55) et 472 (ligne 67): setGoals ( "test" ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven - multimodule - unit - failure . zip" ) ) ) ; m . setRunPostStepsIfResult ( Result . SUCCESS ) ; m . addPostBuilder ( new Shell ( "no - valid - command" ) ) ; assertBuildStatus ( Result . UNSTABLE , m . scheduleBuild2 ( 0 ) . get ( ) ) ; } @

#### File test\src\test\java\hudson\maven\MavenBuildTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenBuildTest

Module / class or interface : hudson.maven.MavenBuildTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testMavenWorkspaceExists() | 1 | 5
void | testTestFailureInEarlyTaskSegment() | 1 | 5
void | testCompilationFailure() | 1 | 5
void | testParallelModuleBuild() | 1 | 7
void | testMaven2BuildWrongScope() | 1 | 9
void | testMaven2BuildWrongInheritence() | 1 | 8
void | testMaven2SeveralModulesInDirectory() | 1 | 8
void | testMavenWithDependencyVersionInEnvVar() | 1 | 10
void | testBuildTimeStampProperty() | 1 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00092 | INFO | QC-JAV999996[00092] CPD de longueur 57 commencant en 511 (ligne 92) et 616 (ligne 105): ) throws Exception { MavenModuleSet m = createMavenProject ( ) ; MavenInstallation mavenInstallation = configureDefaultMaven ( ) ; m . setMaven ( mavenInstallation . getName ( ) ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "incorrect - inheritence - testcase . zip"

#### File test\src\test\java\hudson\maven\MavenEmptyModuleTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenEmptyModuleTest

Module / class or interface : hudson.maven.MavenEmptyModuleTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testEmptyModuleParsesAndBuilds() | 1 | 5

#### File test\src\test\java\hudson\maven\MavenJellyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
TestCase | hudson.maven.MavenJellyTest

Module / class or interface : hudson.maven.MavenJellyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Test | suite() | 1 | 1

#### File test\src\test\java\hudson\maven\MavenModuleSetTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenModuleSetTest

Module / class or interface : hudson.maven.MavenModuleSetTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtripLocalRepository() | 1 | 8

#### File test\src\test\java\hudson\maven\MavenMultiModuleTest.java 15 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenMultiModuleTest

Module / class or interface : hudson.maven.MavenMultiModuleTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testMultiModMavenWsExists() | 1 | 6
void | testIncrementalMultiModMaven() | 8 | 16
void | assertFingerprintWereRecorded(MavenModuleSetBuild) | 4 | 4
void | assertFingerprintWereRecorded(MavenBuild) | 1 | 7
void | testIncrRelMultiModMaven() | 8 | 15
void | ignore_testEstimatedDurationForIncrementalMultiModMaven() | 1 | 11
void | testNewModMultiModMaven() | 1 | 6
void | testMultiModMavenNonRecursiveParsing() | 8 | 8
void | testIncrementalMultiModWithErrorsMaven() | 15 | 14
void | testIncrementalRedeployAfterAggregatorError() | 15 | 15
void | testMultiModWithTestFailuresMaven() | 8 | 8
void | testMultiModMavenNonRecursive() | 1 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 8
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 7

Line start | Criticity class | Rule
--- | --- | ---
00030 | INFO | QC-JAV999996[00030] CPD de longueur 53 commencant en 159 (ligne 30) et 2650 (ligne 397): ) throws Exception { configureDefaultMaven ( "apache - maven - 2.2.1" , MavenInstallation . MAVEN_21 ) ; MavenModuleSet m = createMavenProject ( ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven - multimod . zip" ) ) ) ; assertFalse
00053 | INFO | QC-JAV999996[00053] CPD de longueur 187 commencant en 327 (ligne 53) et 835 (ligne 128): m . getLastBuild ( ) ; ExtractChangeLogSet changeSet = ( ExtractChangeLogSet ) pBuild . getChangeSet ( ) ; assertFalse ( "ExtractChangeLogSet should not be empty . " , changeSet . isEmptySet ( ) ) ; for ( MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { String parentModuleName = modBuild . getParent ( ) . getModuleName ( ) . toString ( ) ; if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod : moduleA" ) ) { assertEquals ( "moduleA should have Result . NOT_BUILT" , Result . NOT_BUILT , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod : moduleB" ) ) { assertEquals ( "moduleB should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod : moduleC" ) ) { assertEquals ( "moduleC should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } } long summedModuleDuration = 0 ; for ( MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { summedModuleDuration += modBuild . getDuration ( ) ; } assertTrue ( "duration of moduleset build should be greater - equal than sum of the module builds" , pBuild . getDuration ( ) _= summedModuleDuration ) ; assertFingerprintWereRecorded
00157 | INFO | QC-JAV999996[00157] CPD de longueur 62 commencant en 1031 (ligne 157) et 1182 (ligne 191): ) throws Exception { configureDefaultMaven ( "apache - maven - 2.2.1" , MavenInstallation . MAVEN_21 ) ; MavenModuleSet m = createMavenProject ( ) ; m . getReporters ( ) . add ( new TestReporter ( ) ) ; m . setScm ( new ExtractResourceWithChangesSCM ( getClass ( ) . getResource ( "maven - multimod . zip" ) , getClass ( ) . getResource ( "maven - multimod - changes . zip" ) ) ) ; buildAndAssertSuccess
00246 | INFO | QC-JAV999996[00246] CPD de longueur 382 commencant en 1534 (ligne 246) et 1999 (ligne 310): new ExtractResourceWithChangesSCM ( getClass ( ) . getResource ( "maven - multimod - incr . zip" ) , getClass ( ) . getResource ( "maven - multimod - changes . zip" ) ) ) ; assertBuildStatus ( Result . UNSTABLE , m . scheduleBuild2 ( 0 ) . get ( ) ) ; MavenModuleSetBuild pBuild = m . getLastBuild ( ) ; for ( MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { String parentModuleName = modBuild . getParent ( ) . getModuleName ( ) . toString ( ) ; if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleA" ) ) { assertEquals ( "moduleA should have Result . UNSTABLE" , Result . UNSTABLE , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleB" ) ) { assertEquals ( "moduleB should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleC" ) ) { assertEquals ( "moduleC should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleD" ) ) { assertEquals ( "moduleD should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } } assertBuildStatus ( Result . UNSTABLE , m . scheduleBuild2 ( 0 ) . get ( ) ) ; pBuild = m . getLastBuild ( ) ; ExtractChangeLogSet changeSet = ( ExtractChangeLogSet ) pBuild . getChangeSet ( ) ; assertFalse ( "ExtractChangeLogSet should not be empty . " , changeSet . isEmptySet ( ) ) ; assertEquals ( "Parent build should have Result . UNSTABLE" , Result . UNSTABLE , pBuild . getResult ( ) ) ; for ( MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { String parentModuleName = modBuild . getParent ( ) . getModuleName ( ) . toString ( ) ; if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleA" ) ) { assertEquals ( "moduleA should have Result . UNSTABLE" , Result . UNSTABLE , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleB" ) ) { assertEquals ( "moduleB should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleC" ) ) { assertEquals ( "moduleC should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleD" ) ) { assertEquals ( "moduleD should have Result . NOT_BUILT"
00316 | INFO | QC-JAV999996[00316] CPD de longueur 140 commencant en 2051 (ligne 316) et 2256 (ligne 342): MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { String parentModuleName = modBuild . getParent ( ) . getModuleName ( ) . toString ( ) ; if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleA" ) ) { assertEquals ( "moduleA should have Result . UNSTABLE" , Result . UNSTABLE , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleB" ) ) { assertEquals ( "moduleB should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleC" ) ) { assertEquals ( "moduleC should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleD" ) ) { assertEquals ( "moduleD should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } } assertBuildStatus
00316 | INFO | QC-JAV999996[00316] CPD de longueur 140 commencant en 2051 (ligne 316) et 2501 (ligne 379): MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { String parentModuleName = modBuild . getParent ( ) . getModuleName ( ) . toString ( ) ; if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleA" ) ) { assertEquals ( "moduleA should have Result . UNSTABLE" , Result . UNSTABLE , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleB" ) ) { assertEquals ( "moduleB should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleC" ) ) { assertEquals ( "moduleC should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleD" ) ) { assertEquals ( "moduleD should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } } assertBuildStatus
00340 | INFO | QC-JAV999996[00340] CPD de longueur 159 commencant en 2241 (ligne 340) et 2486 (ligne 377): "Parent build should have Result . UNSTABLE" , Result . UNSTABLE , pBuild . getResult ( ) ) ; for ( MavenBuild modBuild : pBuild . getModuleLastBuilds ( ) . values ( ) ) { String parentModuleName = modBuild . getParent ( ) . getModuleName ( ) . toString ( ) ; if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleA" ) ) { assertEquals ( "moduleA should have Result . UNSTABLE" , Result . UNSTABLE , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleB" ) ) { assertEquals ( "moduleB should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleC" ) ) { assertEquals ( "moduleC should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } else if ( parentModuleName . equals ( "org . jvnet . hudson . main . test . multimod . incr : moduleD" ) ) { assertEquals ( "moduleD should have Result . SUCCESS" , Result . SUCCESS , modBuild . getResult ( ) ) ; } } } @ Bug ( 4378
00059 | MAJOR | QC-JAV000001[00059] Avoid declaring class instance within loop, performance impact
00134 | MAJOR | QC-JAV000001[00134] Avoid declaring class instance within loop, performance impact
00218 | MAJOR | QC-JAV000001[00218] Avoid declaring class instance within loop, performance impact
00253 | MAJOR | QC-JAV000001[00253] Avoid declaring class instance within loop, performance impact
00279 | MAJOR | QC-JAV000001[00279] Avoid declaring class instance within loop, performance impact
00317 | MAJOR | QC-JAV000001[00317] Avoid declaring class instance within loop, performance impact
00343 | MAJOR | QC-JAV000001[00343] Avoid declaring class instance within loop, performance impact
00380 | MAJOR | QC-JAV000001[00380] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\maven\MavenMultiModuleTestIncremental.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenMultiModuleTestIncremental

Module / class or interface : hudson.maven.MavenMultiModuleTestIncremental

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRelRootPom() | 8 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00041 | MAJOR | QC-JAV000001[00041] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\maven\MavenOptsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenOptsTest

Module / class or interface : hudson.maven.MavenOptsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | tearDown() | 1 | 2
void | testEnvMavenOptsNoneInProject() | 1 | 7
void | testEnvMavenOptsOverriddenByProject() | 1 | 8
void | testEnvAndGlobalMavenOptsOverriddenByProject() | 1 | 9
void | testGlobalMavenOpts() | 1 | 7
void | testGlobalMavenOptsOverridenByProject() | 1 | 8
void | testNewlinesInOptsRemoved() | 1 | 8
void | testEnvironmentVariableExpansion() | 1 | 8

#### File test\src\test\java\hudson\maven\MavenProjectTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenProjectTest

Module / class or interface : hudson.maven.MavenProjectTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testOnMaster() | 1 | 3
void | testCopyFromExistingMavenProject() | 1 | 6
MavenModuleSet | createSimpleProject() | 1 | 1
MavenModuleSet | createProject(String) | 1 | 5
void | testOnSlave() | 1 | 4
void | testSiteBuild() | 1 | 6
void | testMultiModuleSiteBuild() | 1 | 11
void | testMultiModuleSiteBuildOnSlave() | 1 | 8
void | testDeleteSetBuildDeletesModuleBuilds() | 1 | 9
void | testAbsolutePathPom() | 1 | 7
void | testConfigRoundtrip() | 2 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00189 | MAJOR | QC-JAV000001[00189] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\maven\MavenSnapshotTriggerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.MavenSnapshotTriggerTest

Module / class or interface : hudson.maven.MavenSnapshotTriggerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSnapshotDependencyBuildTrigger() | 1 | 15
void | testMixedTransitiveSnapshotTrigger() | 1 | 22

#### File test\src\test\java\hudson\maven\ModuleDependencyLocator.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.maven.ModuleDependencyLocator

Module / class or interface : hudson.maven.ModuleDependencyLocator

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
Collection<ModuleDependency> | find(MavenProject;PomInfo) | 1 | 1
ExtensionList<ModuleDependencyLocator> | all() | 1 | 1

#### File test\src\test\java\hudson\maven\RedeployPublisherTest.java 10 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.RedeployPublisherTest

Module / class or interface : hudson.maven.RedeployPublisherTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBug2593() | 1 | 8
void | testConfigRoundtrip() | 1 | 5
void | testTarGz() | 1 | 8
void | testTarGzUniqueVersionTrue() | 5 | 13
void | testTarGzMaven3() | 1 | 14
void | testTarGzUniqueVersionTrueMaven3() | 5 | 15
void | testDeployUnstable() | 1 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 6
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 4

Line start | Criticity class | Rule
--- | --- | ---
00053 | INFO | QC-JAV999996[00053] CPD de longueur 51 commencant en 179 (ligne 53) et 504 (ligne 117): getPublishersList ( ) . add ( new RedeployPublisher ( "" , repo . toURI ( ) . toString ( ) , true , false ) ) ; MavenModuleSetBuild b = m2 . scheduleBuild2 ( 0 ) . get ( ) ; assertBuildStatus ( Result . SUCCESS , b ) ; System
00129 | INFO | QC-JAV999996[00129] CPD de longueur 265 commencant en 603 (ligne 129) et 1255 (ligne 204): . contains ( " - bin . tar . gz" ) || ( name . endsWith ( " . jar" ) || name . endsWith ( " - bin . zip" ) ) ; } } ) ; System . out . println ( "deployed files " + Arrays . asList ( files ) ) ; assertFalse ( "tar . gz doesn't exist" , ( new File ( repo , "test / test / 0.1 - SNAPSHOT / test - 0.1 - SNAPSHOT - bin . tar . gz" ) . exists ( ) ) ) ; assertTrue ( "tar . gz doesn't exist" , ! files [ 0 ] . contains ( "SNAPSHOT" ) ) ; for ( String file : files ) { if ( file . endsWith ( " - bin . tar . gz" ) ) { String ver = StringUtils . remove ( file , " - bin . tar . gz" ) ; ver = ver . substring ( ( ver . length ( ) - 1 ) , ver . length ( ) ) ; assertEquals ( ( " - bin . tar . gz not ended with 1 , file " + file ) , "1" , ver ) ; } if ( file . endsWith ( " . jar" ) ) { String ver = StringUtils . remove ( file , " . jar" ) ; ver = ver . substring ( ( ver . length ( ) - 1 ) , ver . length ( ) ) ; assertEquals ( ( " . jar not ended with 1 , file " + file ) , "1" , ver ) ; } if ( file . endsWith ( " - bin . zip" ) ) { String ver = StringUtils . remove ( file , " - bin . zip" ) ; ver = ver . substring ( ( ver . length ( ) - 1 ) , ver . length ( ) ) ; assertEquals ( ( " - bin . zip not ended with 1 , file " + file ) , "1" , ver ) ; } } } public
00155 | INFO | QC-JAV999996[00155] CPD de longueur 88 commencant en 870 (ligne 155) et 1087 (ligne 183): ( ) throws Exception { MavenModuleSet m3 = createMavenProject ( ) ; MavenInstallation mvn = configureMaven3 ( ) ; m3 . setMaven ( mvn . getName ( ) ) ; File repo = createTmpDir ( ) ; FileUtils . cleanDirectory ( repo ) ; m3 . setScm ( new SingleFileSCM ( "pom . xml" , getClass ( ) . getResource ( "targz - artifact . pom" ) ) ) ; m3 . getPublishersList ( ) . add ( new RedeployPublisher ( "" , repo . toURI ( ) . toString ( ) , false
00164 | INFO | QC-JAV999996[00164] CPD de longueur 81 commencant en 959 (ligne 164) et 1176 (ligne 191): false ) ) ; MavenModuleSetBuild b = m3 . scheduleBuild2 ( 0 ) . get ( ) ; assertBuildStatus ( Result . SUCCESS , b ) ; assertTrue ( MavenUtil . maven3orLater ( b . getMavenVersionUsed ( ) ) ) ; File artifactDir = new File ( repo , "test / test / 0.1 - SNAPSHOT / " ) ; String [ ] files = artifactDir . list ( new FilenameFilter ( ) { public boolean accept ( File dir , String name ) { return name . endsWith
00137 | MAJOR | QC-JAV000001[00137] Avoid declaring class instance within loop, performance impact
00142 | MAJOR | QC-JAV000001[00142] Avoid declaring class instance within loop, performance impact
00147 | MAJOR | QC-JAV000001[00147] Avoid declaring class instance within loop, performance impact
00212 | MAJOR | QC-JAV000001[00212] Avoid declaring class instance within loop, performance impact
00217 | MAJOR | QC-JAV000001[00217] Avoid declaring class instance within loop, performance impact
00222 | MAJOR | QC-JAV000001[00222] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\maven\reporters\MavenMailerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.reporters.MavenMailerTest

Module / class or interface : hudson.maven.reporters.MavenMailerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testMulipleMails() | 1 | 2
void | testSingleMails() | 1 | 2
Mailbox | runMailTest(boolean) | 1 | 19

#### File test\src\test\java\hudson\maven\reporters\MavenSiteArchiverTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.reporters.MavenSiteArchiverTest

Module / class or interface : hudson.maven.reporters.MavenSiteArchiverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSiteArchiving() | 1 | 0

#### File test\src\test\java\hudson\maven\reporters\SurefireArchiverTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.maven.reporters.SurefireArchiverTest

Module / class or interface : hudson.maven.reporters.SurefireArchiverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSerialization() | 4 | 12

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00052 | MAJOR | QC-JAV000001[00052] Avoid declaring class instance within loop, performance impact
00054 | MAJOR | QC-JAV000001[00054] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\model\AbortedFreeStyleBuildTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.AbortedFreeStyleBuildTest

Module / class or interface : hudson.model.AbortedFreeStyleBuildTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBuildWrapperSeesAbortedStatus() | 1 | 7
void | testInterruptAsFailure() | 1 | 7

#### File test\src\test\java\hudson\model\AbstractProjectTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.AbstractProjectTest

Module / class or interface : hudson.model.AbstractProjectTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 5
void | testWipeWorkspace() | 1 | 10
void | testWipeWorkspaceProtected() | 1 | 5
void | testWipeWorkspaceProtected2() | 1 | 7
void | testOptionalBlockDataBindingRoundtrip() | 2 | 4
void | testConfiguringBlockBuildWhenUpstreamBuildingRoundtrip() | 1 | 11
void | testPollingAndBuildExclusion() | 1 | 12
void | testBuildSymlinks() | 2 | 16
void | assertSymlinkForBuild(File;int) | 1 | 4
void | testSymlinkForPostBuildFailure() | 2 | 13
void | testGetBuildAfterGC() | 1 | 4

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 4 | "lastStable"\---java.io.File (correctly sanitized)\------hudson.model.AbstractProjectTest.testBuildSymlinks.lastStable | correctly sanitized
| 3 | hudson.model.AbstractProjectTest.testBuildSymlinks.lastStable\---hudson.model.AbstractProjectTest.assertSymlinkForBuild\------hudson.model.AbstractProjectTest.assertSymlinkForBuild1 |
| 2 | hudson.model.AbstractProjectTest.assertSymlinkForBuild1\---dummymethode\------hudson.model.AbstractProjectTest.assertSymlinkForBuild.file |
| 1 | hudson.model.AbstractProjectTest.assertSymlinkForBuild.file\---java.io.File\------hudson.model.AbstractProjectTest.assertSymlinkForBuild.s | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None
No 2 |  |  |
| 4 | "lastSuccessful"\---java.io.File (correctly sanitized)\------hudson.model.AbstractProjectTest.testBuildSymlinks.lastSuccessful | correctly sanitized
| 3 | hudson.model.AbstractProjectTest.testBuildSymlinks.lastSuccessful\---hudson.model.AbstractProjectTest.assertSymlinkForBuild\------hudson.model.AbstractProjectTest.assertSymlinkForBuild1 |
| 2 | hudson.model.AbstractProjectTest.assertSymlinkForBuild1\---dummymethode\------hudson.model.AbstractProjectTest.assertSymlinkForBuild.file |
| 1 | hudson.model.AbstractProjectTest.assertSymlinkForBuild.file\---java.io.File\------hudson.model.AbstractProjectTest.assertSymlinkForBuild.s | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00069 | INFO | QC-JAV999996[00069] CPD de longueur 57 commencant en 282 (ligne 69) et 436 (ligne 94): ( ) throws Exception { FreeStyleProject project = createFreeStyleProject ( ) ; project . getBuildersList ( ) . add ( new Shell ( "echo hello" ) ) ; FreeStyleBuild b = project . scheduleBuild2 ( 0 ) . get ( ) ; assertTrue ( "Workspace should exist by now" , b . getWorkspace ( ) . exists ( ) ) ; WebClient
00219 | INFO | QC-JAV999996[00219] CPD de longueur 60 commencant en 1044 (ligne 219) et 1344 (ligne 257): ) throws Exception { if ( Functions . isWindows ( ) ) return ; FreeStyleProject job = createFreeStyleProject ( ) ; job . getBuildersList ( ) . add ( new Shell ( "echo \\"Build # $BUILD_NUMBER\\" n" ) ) ; FreeStyleBuild build = job . scheduleBuild2 ( 0 , ( new Cause . UserCause ( ) ) ) . get ( ) ; File
00125 | MAJOR | QC-JAVCWE390[00125] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\model\ApiTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ApiTest

Module / class or interface : hudson.model.ApiTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testXPath() | 1 | 1
void | testWrappedZeroItems() | 1 | 2
void | testWrappedOneItem() | 1 | 2
void | testWrappedMultipleItems() | 1 | 4
void | testUnwrappedZeroItems() | 1 | 1
void | testUnwrappedOneItem() | 1 | 2
void | testUnwrappedLongString() | 1 | 3
void | testUnwrappedMultipleItems() | 1 | 3

#### File test\src\test\java\hudson\model\AutoCompletionCandidatesTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.AutoCompletionCandidatesTest

Module / class or interface : hudson.model.AutoCompletionCandidatesTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCompletion() | 1 | 23
void | assertContains(AutoCompletionCandidates;String) | 1 | 1

#### File test\src\test\java\hudson\model\CauseTest.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.CauseTest

Module / class or interface : hudson.model.CauseTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | deeplyNestedCauses() | 3 | 11
void | broadlyNestedCauses() | 2 | 18

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5

Line start | Criticity class | Rule
--- | --- | ---
00039 | MAJOR | QC-JAVCWE493[00039] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00048 | MAJOR | QC-JAV000001[00048] Avoid declaring class instance within loop, performance impact
00066 | MAJOR | QC-JAV000001[00066] Avoid declaring class instance within loop, performance impact
00067 | MAJOR | QC-JAV000001[00067] Avoid declaring class instance within loop, performance impact
00070 | MAJOR | QC-JAV000001[00070] Avoid declaring class instance within loop, performance impact
00073 | MAJOR | QC-JAV000001[00073] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\model\ComputerSetTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ComputerSetTest

Module / class or interface : hudson.model.ComputerSetTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testPageRendering() | 1 | 3
void | testConfiguration() | 1 | 3
void | testNodeOfflineCli() | 1 | 7

#### File test\src\test\java\hudson\model\DependencyGraphTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.DependencyGraphTest

Module / class or interface : hudson.model.DependencyGraphTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testTriggerJob() | 1 | 26
void | testItemReadPermission() | 1 | 7

#### File test\src\test\java\hudson\model\DescriptorTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.DescriptorTest

Module / class or interface : hudson.model.DescriptorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | getItemTypeDescriptorOrDie() | 2 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00037 | MAJOR | QC-JAVCWE493[00037] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\model\DirectoryBrowserSupportTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.DirectoryBrowserSupportTest

Module / class or interface : hudson.model.DirectoryBrowserSupportTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testDoubleDots() | 3 | 5
void | testDoubleDots2() | 2 | 5
void | testNonAsciiChar() | 1 | 4
void | testGlob() | 1 | 8

#### File test\src\test\java\hudson\model\DisplayNameTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.DisplayNameTest

Module / class or interface : hudson.model.DisplayNameTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRenameJobWithNoDisplayName() | 1 | 6
void | testRenameJobWithDisplayName() | 1 | 8
void | testCopyJobWithNoDisplayName() | 1 | 7
void | testCopyJobWithDisplayName() | 1 | 9

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00068 | INFO | QC-JAV999996[00068] CPD de longueur 54 commencant en 226 (ligne 68) et 333 (ligne 83): project . getDisplayName ( ) ) ; AbstractProject newProject = Jenkins . getInstance ( ) . copy ( ( AbstractProject ) project , newProjectName ) ; Assert . assertEquals ( newProjectName , newProject . getName ( ) ) ; Assert . assertEquals ( newProjectName , newProject . getDisplayName ( ) ) ; } @

#### File test\src\test\java\hudson\model\DownloadServiceTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.DownloadServiceTest

Module / class or interface : hudson.model.DownloadServiceTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 3
void | tearDown() | 1 | 2
void | testPost() | 1 | 8
void | doData(StaplerResponse) | 1 | 2

#### File test\src\test\java\hudson\model\ExecutorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ExecutorTest

Module / class or interface : hudson.model.ExecutorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testYank() | 1 | 11
void | testWhenAnExecuterIsYankedANewExecuterTakesItsPlace() | 1 | 7
void | waitUntilExecutorSizeIs(Computer;int) | 2 | 3
void | kill(Executor) | 1 | 2
Executor | getExecutorByNumber(Computer;int) | 3 | 1
void | testAbortCause() | 1 | 14

#### File test\src\test\java\hudson\model\FreeStyleProjectTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.FreeStyleProjectTest

Module / class or interface : hudson.model.FreeStyleProjectTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigSubmission() | 1 | 12
void | testUpstreamPseudoTrigger() | 1 | 1
void | testUpstreamPseudoTrigger2() | 1 | 1
void | testUpstreamPseudoTrigger3() | 1 | 1
void | pseudoTriggerTest(AbstractProject;AbstractProject) | 1 | 9
void | testCustomWorkspaceAllocation() | 1 | 4
void | testCustomWorkspaceVariableExpansion() | 1 | 8
void | testMinimalConfigXml() | 1 | 14

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00049 | INFO | QC-JAV999996[00049] CPD de longueur 132 commencant en 121 (ligne 49) et 686 (ligne 134): = new Shell ( "echo hello" ) ; project . getBuildersList ( ) . add ( shell ) ; WebClient webClient = new WebClient ( ) ; HtmlPage page = webClient . getPage ( project , "configure" ) ; HtmlForm form = page . getFormByName ( "config" ) ; submit ( form ) ; List _ Builder _ builders = project . getBuilders ( ) ; assertEquals ( 1 , builders . size ( ) ) ; assertEquals ( Shell . class , builders . get ( 0 ) . getClass ( ) ) ; assertEquals ( "echo hello" , ( ( Shell ) builders . get ( 0 ) ) . getCommand ( ) . trim ( ) ) ; assertTrue ( builders . get ( 0 ) != shell ) ; }

#### File test\src\test\java\hudson\model\GetEnvironmentOutsideBuildTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.GetEnvironmentOutsideBuildTest

Module / class or interface : hudson.model.GetEnvironmentOutsideBuildTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | runTest() | 1 | 0
void | setUp() | 1 | 2
void | tearDown() | 1 | 2
void | restoreOldNumExecutors() | 1 | 3
MavenModuleSet | createSimpleMavenProject() | 1 | 6
void | whenJenkinsMasterHasNoExecutors() | 1 | 3
void | testMaven() | 1 | 2
void | testFreestyle() | 1 | 2
void | testMatrix() | 1 | 2
void | assertGetEnvironmentCallOutsideBuildWorks(AbstractProject) | 1 | 2
void | assertGetEnvironmentWorks(Run) | 1 | 3

#### File test\src\test\java\hudson\model\HelpLinkTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.HelpLinkTest

Module / class or interface : hudson.model.HelpLinkTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSystemConfig() | 1 | 1
void | testFreestyleConfig() | 1 | 1
void | testMavenConfig() | 1 | 1
void | testMatrixConfig() | 1 | 1
void | clickAllHelpLinks(AbstractProject) | 1 | 1
void | clickAllHelpLinks(HtmlPage) | 2 | 4
void | testNegative() | 3 | 9

#### File test\src\test\java\hudson\model\HudsonTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.HudsonTest

Module / class or interface : hudson.model.HudsonTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGlobalConfigRoundtrip() | 1 | 7
void | testSimpleConfigSubmit() | 1 | 16
void | assertAnt(AntInstallation;String;String) | 1 | 2
void | assertJDK(JDK;String;String) | 1 | 2
void | testSearchIndex() | 1 | 5
void | testBreadcrumb() | 1 | 3
void | testComputerConfigureLink() | 1 | 2
void | testDeleteHudsonComputer() | 2 | 8
void | testLegacyDescriptorLookup() | 1 | 5
void | testInvalidPrimaryView() | 1 | 8

#### File test\src\test\java\hudson\model\JobPropertyTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.JobPropertyTest

Module / class or interface : hudson.model.JobPropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testJobPropertySummaryIsShownInMavenModuleSetIndexPage() | 1 | 1
void | testJobPropertySummaryIsShownInMatrixProjectIndexPage() | 1 | 1
void | testJobPropertySummaryIsShownInFreeStyleProjectIndexPage() | 1 | 1
void | assertJobPropertySummaryIsShownInIndexPage(TopLevelItemDescriptor) | 1 | 5
void | testConfigRoundtrip() | 1 | 7
void | testInvisibleProperty() | 1 | 6

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00102 | MAJOR | QC-JAVCWE493[00102] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00128 | MAJOR | QC-JAVCWE493[00128] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\model\JobQueueTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.JobQueueTest

Module / class or interface : hudson.model.JobQueueTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 3
void | testBuildPendingWhenBuildRunning() | 1 | 7
void | testBuildPendingWhenBuildInPostProduction() | 5 | 18

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2

Line start | Criticity class | Rule
--- | --- | ---
00022 | MAJOR | QC-JAVCWE390[00022] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00029 | MAJOR | QC-JAVCWE390[00029] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\model\JobTest.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.JobTest

Module / class or interface : hudson.model.JobTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testJobPropertySummaryIsShownInMainPage() | 1 | 4
void | testBuildNumberSynchronization() | 1 | 11
void | testReadPermission() | 1 | 6
void | testConfigDotXmlPermission() | 1 | 12
void | tryConfigDotXml(WebClient;int;String) | 1 | 6
void | testGetArtifactsUpTo() | 1 | 5
void | testEmptyDescriptionReturnsEmptyPage() | 1 | 6
void | testProjectNamingStrategy() | 1 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
MINOR | QC-JAVCWE500 | Static public field not marked final | 1

Line start | Criticity class | Rule
--- | --- | ---
00096 | MAJOR | QC-JAV000001[00096] Avoid declaring class instance within loop, performance impact
00134 | MAJOR | QC-JAVCWE390[00134] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00146 | MAJOR | QC-JAVCWE493[00146] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00146 | MINOR | QC-JAVCWE500[00146] Static public field not marked final (see http://cwe.mitre.org/data/definitions/500.html)
00243 | MAJOR | QC-JAVCWE390[00243] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\model\ManagementLinkTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ManagementLinkTest

Module / class or interface : hudson.model.ManagementLinkTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLinks() | 3 | 5

#### File test\src\test\java\hudson\model\ParametersTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ParametersTest

Module / class or interface : hudson.model.ParametersTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testParameterTypes() | 3 | 42
void | testChoiceWithLTGT() | 3 | 23
void | testSensitiveParameters() | 1 | 9
void | testNonSensitiveParameters() | 1 | 9
void | testMixedSensitivity() | 1 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 4

Line start | Criticity class | Rule
--- | --- | ---
00028 | INFO | QC-JAV999996[00028] CPD de longueur 76 commencant en 205 (ligne 28) et 747 (ligne 80): ; CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder ( ) ; project . getBuildersList ( ) . add ( builder ) ; WebClient wc = new WebClient ( ) ; wc . setThrowExceptionOnFailingStatusCode ( false ) ; HtmlPage page = wc . goTo ( " / job / " + ( project . getName ( ) + " / build ? delay = 0sec" ) ) ; HtmlForm form = page . getFormByName ( "parameters" ) ; HtmlElement element = ( HtmlElement ) form . selectSingleNode ( " / / tr [ td / div / input / @ value = 'string' ] "
00111 | INFO | QC-JAV999996[00111] CPD de longueur 57 commencant en 1013 (ligne 111) et 1113 (ligne 127): . addProperty ( pdb ) ; CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder ( ) ; project . getBuildersList ( ) . add ( builder ) ; FreeStyleBuild build = project . scheduleBuild2 ( 0 ) . get ( ) ; Set _ String _ sensitiveVars = build . getSensitiveBuildVariables ( ) ; assertNotNull ( sensitiveVars ) ; assertTrue
00111 | INFO | QC-JAV999996[00111] CPD de longueur 57 commencant en 1013 (ligne 111) et 1239 (ligne 146): . addProperty ( pdb ) ; CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder ( ) ; project . getBuildersList ( ) . add ( builder ) ; FreeStyleBuild build = project . scheduleBuild2 ( 0 ) . get ( ) ; Set _ String _ sensitiveVars = build . getSensitiveBuildVariables ( ) ; assertNotNull ( sensitiveVars ) ; assertTrue
00127 | INFO | QC-JAV999996[00127] CPD de longueur 67 commencant en 1113 (ligne 127) et 1239 (ligne 146): . addProperty ( pdb ) ; CaptureEnvironmentBuilder builder = new CaptureEnvironmentBuilder ( ) ; project . getBuildersList ( ) . add ( builder ) ; FreeStyleBuild build = project . scheduleBuild2 ( 0 ) . get ( ) ; Set _ String _ sensitiveVars = build . getSensitiveBuildVariables ( ) ; assertNotNull ( sensitiveVars ) ; assertFalse ( sensitiveVars . contains ( "string" ) ) ; }

#### File test\src\test\java\hudson\model\QueueTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.QueueTest

Module / class or interface : hudson.model.QueueTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testPersistence() | 1 | 13
void | testPersistence2() | 1 | 13
void | testPersistenceBlockedItem() | 1 | 12
void | testFileItemPersistence() | 2 | 19
void | testFoldableCauseAction() | 2 | 29
void | testFlyweightTasks() | 3 | 9
void | testWaitForStart() | 1 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00072 | INFO | QC-JAV999996[00072] CPD de longueur 112 commencant en 353 (ligne 72) et 504 (ligne 100): ) throws Exception { Queue q = jenkins . getQueue ( ) ; jenkins . setNumExecutors ( 0 ) ; jenkins . setNodes ( jenkins . getNodes ( ) ) ; FreeStyleProject testProject = createFreeStyleProject ( "test" ) ; testProject . scheduleBuild ( new UserIdCause ( ) ) ; q . save ( ) ; System . out . println ( FileUtils . readFileToString ( new File ( jenkins . getRootDir ( ) , "queue . xml" ) ) ) ; assertEquals ( 1 , q . getItems ( ) . length ) ; q . clear ( ) ; assertEquals ( 0 , q . getItems ( ) . length ) ; q

#### File test\src\test\java\hudson\model\RunParameterDefinitionTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.RunParameterDefinitionTest

Module / class or interface : hudson.model.RunParameterDefinitionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | inFolders() | 1 | 25

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00037 | MAJOR | QC-JAVCWE493[00037] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\model\RunTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.RunTest

Module / class or interface : hudson.model.RunTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
List<?extendsRun<?,?>.Artifact> | createArtifactList(String) | 2 | 6
void | testArtifactListDisambiguation1() | 1 | 4
void | testArtifactListDisambiguation2() | 1 | 4
void | testArtifactListDisambiguation3() | 1 | 3

#### File test\src\test\java\hudson\model\SimpleJobTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.SimpleJobTest

Module / class or interface : hudson.model.SimpleJobTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGetEstimatedDuration() | 1 | 10
void | testGetEstimatedDurationWithOneRun() | 1 | 5
void | testGetEstimatedDurationWithFailedRun() | 1 | 5
void | testGetEstimatedDurationWithNoRuns() | 1 | 3
void | testGetEstimatedDurationIfPrevious3BuildsFailed() | 1 | 13
Job | createMockProject(SortedMap<Integer,TestBuild>) | 1 | 1

#### File test\src\test\java\hudson\model\UpdateSiteTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.UpdateSiteTest

Module / class or interface : hudson.model.UpdateSiteTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | relativeURLs() | 1 | 12
void | updateDirectlyWithJson() | 1 | 4
void | updateDirectlyWithHtml() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00040 | MAJOR | QC-JAVCWE493[00040] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\model\UsageStatisticsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.UsageStatisticsTest

Module / class or interface : hudson.model.UsageStatisticsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRoundtrip() | 1 | 11

#### File test\src\test\java\hudson\model\UserPropertyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.UserPropertyTest

Module / class or interface : hudson.model.UserPropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test9062() | 2 | 4

#### File test\src\test\java\hudson\model\UserTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.model.UserTest

Module / class or interface : hudson.model.UserTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | userPropertySummaryAndActionAreShownInUserPage() | 1 | 7
void | defaultUserAvatarCanBeFetched() | 1 | 3
void | getAuthorities() | 1 | 20

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00043 | MAJOR | QC-JAVCWE493[00043] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\model\ViewPropertyTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ViewPropertyTest

Module / class or interface : hudson.model.ViewPropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRoundtrip() | 1 | 12
void | testInvisibleProperty() | 1 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00059 | MAJOR | QC-JAVCWE493[00059] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\model\ViewTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.ViewTest

Module / class or interface : hudson.model.ViewTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testXHudsonHeader() | 1 | 1
void | testConflictingName() | 1 | 9
void | testPrivateView() | 1 | 24
void | testDeleteView() | 1 | 13
void | testPersistence() | 1 | 5
void | testAllImagesCanBeLoaded() | 1 | 4

#### File test\src\test\java\hudson\model\labels\LabelAtomPropertyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.labels.LabelAtomPropertyTest

Module / class or interface : hudson.model.labels.LabelAtomPropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 8

#### File test\src\test\java\hudson\model\labels\LabelExpressionTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.labels.LabelExpressionTest

Module / class or interface : hudson.model.labels.LabelExpressionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testQueueBehavior() | 1 | 22
void | testQueueBehavior2() | 1 | 11
void | testSetLabelString() | 1 | 4
void | testParser() | 1 | 8
void | testParser2() | 1 | 1
void | parseAndVerify(String;String) | 1 | 1
void | testParserError() | 1 | 2
void | testLaxParsing() | 1 | 3
void | testDataCompatibilityWithHostNameWithWhitespace() | 1 | 11
void | testQuote() | 1 | 2
void | testComposite() | 1 | 4
void | testDash() | 1 | 1
void | parseShouldFail(String) | 1 | 2
void | testFormValidation() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00219 | MAJOR | QC-JAVCWE390[00219] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\hudson\model\listeners\ItemListenerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.listeners.ItemListenerTest

Module / class or interface : hudson.model.listeners.ItemListenerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 3
void | testOnCreatedViaCLI() | 1 | 8

#### File test\src\test\java\hudson\model\queue\LoadPredictorTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.queue.LoadPredictorTest

Module / class or interface : hudson.model.queue.LoadPredictorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 8
BuildableItem | wrap(Queue.Task) | 1 | 1
void | test2() | 1 | 11
JobOffer | createMockOffer(Executor) | 1 | 3
Computer | createMockComputer(int) | 2 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00065 | INFO | QC-JAV999996[00065] CPD de longueur 54 commencant en 215 (ligne 65) et 373 (ligne 93): ) throws Exception { Task t = mock ( Task . class ) ; when ( t . getEstimatedDuration ( ) ) . thenReturn ( 10000L ) ; when ( t . getSubTasks ( ) ) . thenReturn ( ( Collection ) asList ( t ) ) ; Computer c = createMockComputer ( 1
00129 | MAJOR | QC-JAV000001[00129] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\model\queue\QueueTaskDispatcherTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.queue.QueueTaskDispatcherTest

Module / class or interface : hudson.model.queue.QueueTaskDispatcherTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCanRunBlockageIsDisplayed() | 2 | 9

#### File test\src\test\java\hudson\model\queue\WideExecutionTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.model.queue.WideExecutionTest

Module / class or interface : hudson.model.queue.WideExecutionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRun() | 1 | 3

#### File test\src\test\java\hudson\node_monitors\DiskSpaceMonitorDescriptorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.node_monitors.DiskSpaceMonitorDescriptorTest

Module / class or interface : hudson.node_monitors.DiskSpaceMonitorDescriptorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testRemoteDiskSpaceUsage() | 2 | 7
void | testParse() | 1 | 7

#### File test\src\test\java\hudson\pages\SystemConfigurationTestCase.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.pages.SystemConfigurationTestCase

Module / class or interface : hudson.pages.SystemConfigurationTestCase

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | tearDown() | 2 | 2
void | testPageDecoratorIsListedInPage() | 1 | 8

#### File test\src\test\java\hudson\scm\ScmTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.scm.ScmTest

Module / class or interface : hudson.scm.ScmTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testProjectDeletionAndCallback() | 1 | 6
void | testAbortDuringCheckoutMarksBuildAsAborted() | 1 | 4

#### File test\src\test\java\hudson\search\SearchTest.java 5 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.search.SearchTest

Module / class or interface : hudson.search.SearchTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFailure() | 1 | 3
void | testXSS() | 1 | 5
void | testSearchByProjectName() | 1 | 7
void | testSearchByDisplayName() | 1 | 8
void | testSearch2ProjectsWithSameDisplayName() | 1 | 17
void | testProjectNamePrecedesDisplayName() | 1 | 20
void | testGetSuggestionsHasBothNamesAndDisplayNames() | 5 | 21
void | testDisabledJobShouldBeSearchable() | 1 | 4
void | testCompletionOutsideView() | 1 | 10
List<SearchItem> | suggest(SearchIndex;String) | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 4
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00099 | INFO | QC-JAV999996[00099] CPD de longueur 51 commencant en 359 (ligne 99) et 495 (ligne 126): = search ( displayName ) ; Assert . assertNotNull ( result ) ; assertGoodStatus ( result ) ; String contents = result . getWebResponse ( ) . getContentAsString ( ) ; Assert . assertTrue ( contents . contains ( String . format ( " _ title _ % s [ Jenkins ] _ / title _ " , displayName ) ) ) ; }
00194 | MAJOR | QC-JAV000001[00194] Avoid declaring class instance within loop, performance impact
00194 | MAJOR | QC-JAV000001[00194] Avoid declaring class instance within loop, performance impact
00196 | MAJOR | QC-JAV000001[00196] Avoid declaring class instance within loop, performance impact
00196 | MAJOR | QC-JAV000001[00196] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\security\CliAuthenticationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.security.CliAuthenticationTest

Module / class or interface : hudson.security.CliAuthenticationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 2
void | successfulCommand(String) | 1 | 1
int | command(String) | 1 | 3
void | testLogin() | 1 | 5

#### File test\src\test\java\hudson\security\ExtendedReadPermissionTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.security.ExtendedReadPermissionTest

Module / class or interface : hudson.security.ExtendedReadPermissionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | tearDown() | 1 | 2
void | setPermissionEnabled(boolean) | 1 | 1
void | testReadOnlyConfigAccessWithPermissionEnabled() | 1 | 10
void | testReadOnlyConfigAccessWithPermissionDisabled() | 1 | 7
void | testNoConfigAccessWithPermissionEnabled() | 1 | 7

#### File test\src\test\java\hudson\security\HudsonPrivateSecurityRealmTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.security.HudsonPrivateSecurityRealmTest

Module / class or interface : hudson.security.HudsonPrivateSecurityRealmTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testDataCompatibilityWith1_282() | 1 | 6
void | testHashCompatibility() | 1 | 5

#### File test\src\test\java\hudson\security\LoginTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.security.LoginTest

Module / class or interface : hudson.security.LoginTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLoginErrorRedirect() | 1 | 1
void | verifyNotError(WebClient) | 1 | 4
void | testLoginErrorRedirect2() | 1 | 3

#### File test\src\test\java\hudson\security\PermissionGroupTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.security.PermissionGroupTest

Module / class or interface : hudson.security.PermissionGroupTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testOrder() | 1 | 1

#### File test\src\test\java\hudson\security\csrf\DefaultCrumbIssuerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.security.csrf.DefaultCrumbIssuerTest

Module / class or interface : hudson.security.csrf.DefaultCrumbIssuerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 5
void | testClientIPFromHeader() | 1 | 4
void | testHeaderChange() | 1 | 6
void | testProxyIPChanged() | 1 | 6
void | testProxyIPChain() | 1 | 4
void | testProxyCompatibilityMode() | 1 | 8
void | testApiXml() | 1 | 16
void | testApiJson() | 1 | 4

#### File test\src\test\java\hudson\slaves\ComputerConnectorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.slaves.ComputerConnectorTest

Module / class or interface : hudson.slaves.ComputerConnectorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 2

#### File test\src\test\java\hudson\slaves\DummyCloudImpl.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
Cloud | hudson.slaves.DummyCloudImpl

Module / class or interface : hudson.slaves.DummyCloudImpl

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
DummyCloudImpl | DummyCloudImpl(HudsonTestCase;int) | 1 | 3
Collection<PlannedNode> | provision(Label;int) | 2 | 8
boolean | canProvision(Label) | 1 | 1
Descriptor<Cloud> | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00060 | MAJOR | QC-JAVCWE493[00060] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00065 | MAJOR | QC-JAVCWE493[00065] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00080 | MAJOR | QC-JAV000001[00080] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\slaves\EnvironmentVariableNodePropertyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.slaves.EnvironmentVariableNodePropertyTest

Module / class or interface : hudson.slaves.EnvironmentVariableNodePropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSlavePropertyOnSlave() | 1 | 3
void | testMasterPropertyOnMaster() | 1 | 3
void | testSlaveAndMasterPropertyOnSlave() | 1 | 4
void | testSlaveAndMasterPropertyAndParameterOnSlave() | 1 | 6
void | testVariableResolving() | 1 | 4
void | testFormRoundTripForMaster() | 1 | 9
void | testFormRoundTripForSlave() | 1 | 9
void | setUp() | 1 | 3
void | setVariables(Node;Entry) | 1 | 1
Map<String,String> | executeBuild(Node) | 1 | 7

#### File test\src\test\java\hudson\slaves\JNLPLauncherTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.slaves.JNLPLauncherTest

Module / class or interface : hudson.slaves.JNLPLauncherTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLaunch() | 2 | 5
void | testHeadlessLaunch() | 1 | 3
ArgumentListBuilder | buildJnlpArgs(Computer) | 1 | 7
void | launchJnlpAndVerify(Computer;ArgumentListBuilder) | 3 | 9
String | getJnlpLink(Computer) | 1 | 4
Computer | addTestSlave() | 1 | 7
void | testConfigRoundtrip() | 1 | 6

#### File test\src\test\java\hudson\slaves\NodeCanTakeTaskTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.slaves.NodeCanTakeTaskTest

Module / class or interface : hudson.slaves.NodeCanTakeTaskTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testTakeBlockedByProperty() | 1 | 15

#### File test\src\test\java\hudson\slaves\NodePropertyTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.slaves.NodePropertyTest

Module / class or interface : hudson.slaves.NodePropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testInvisibleProperty() | 1 | 9
void | testBasicConfigRoundtrip() | 1 | 11

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00066 | MAJOR | QC-JAVCWE493[00066] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\slaves\NodeProvisionerTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.slaves.NodeProvisionerTest

Module / class or interface : hudson.slaves.NodeProvisionerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 5
void | tearDown() | 1 | 4
void | testDummy() | 1 | 0
void | _testAutoProvision() | 1 | 7
void | _testLoadSpike() | 1 | 5
void | _testBaselineSlaveUsage() | 1 | 7
void | _testLabels() | 4 | 14
FreeStyleProject | createJob(Builder) | 1 | 4
DummyCloudImpl | initHudson(int) | 1 | 5
List<FreeStyleProject> | create5SlowJobs(Latch) | 2 | 5
List<Future<FreeStyleBuild>> | buildAll(List<FreeStyleProject>) | 2 | 4
void | verifySuccessfulCompletion(List<Future<FreeStyleBuild>>) | 2 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00241 | MAJOR | QC-JAV000001[00241] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\tasks\ArtifactArchiverTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.ArtifactArchiverTest

Module / class or interface : hudson.tasks.ArtifactArchiverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSuccessVsFailure() | 1 | 34
void | testStableVsUnstable() | 1 | 33
void | testEmptyDirectories() | 1 | 15

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00072 | INFO | QC-JAV999996[00072] CPD de longueur 69 commencant en 480 (ligne 72) et 1052 (ligne 116): project . getBuildByNumber ( 2 ) . getHasArtifacts ( ) ) ; assertFalse ( project . getBuildByNumber ( 3 ) . getHasArtifacts ( ) ) ; assertFalse ( project . getBuildByNumber ( 4 ) . getHasArtifacts ( ) ) ; assertTrue ( project . getBuildByNumber ( 5 ) . getHasArtifacts ( ) ) ; assertTrue ( project . getBuildByNumber ( 6 ) . getHasArtifacts ( ) ) ; assertEquals

#### File test\src\test\java\hudson\tasks\BuildTriggerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.BuildTriggerTest

Module / class or interface : hudson.tasks.BuildTriggerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FreeStyleProject | createDownstreamProject() | 1 | 9
void | doTriggerTest(boolean;Result;Result) | 1 | 9
void | assertNoDownstreamBuild(FreeStyleProject;Run<?,?>) | 2 | 4
void | assertDownstreamBuild(FreeStyleProject;Run<?,?>) | 2 | 4
void | testBuildTrigger() | 1 | 1
void | testTriggerEvenWhenUnstable() | 1 | 1
void | doMavenTriggerTest(boolean) | 4 | 14
void | testMavenBuildTrigger() | 1 | 1
void | testMavenTriggerEvenWhenUnstable() | 1 | 1

#### File test\src\test\java\hudson\tasks\EnvVarsInConfigTasksTest.java 6 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.EnvVarsInConfigTasksTest

Module / class or interface : hudson.tasks.EnvVarsInConfigTasksTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 14
String | withVariable(String) | 1 | 1
void | testFreeStyleShellOnSlave() | 3 | 19
void | testFreeStyleAntOnSlave() | 2 | 23
void | testFreeStyleMavenOnSlave() | 1 | 18
void | testNativeMavenOnSlave() | 1 | 18
String | getBuildLog(AbstractBuild<?,?>) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 6

Line start | Criticity class | Rule
--- | --- | ---
00075 | INFO | QC-JAV999996[00075] CPD de longueur 105 commencant en 517 (ligne 75) et 1048 (ligne 154): build ) ; String buildLogRegular = getBuildLog ( build ) ; System . out . println ( buildLogRegular ) ; assertTrue ( buildLogRegular . contains ( DUMMY_LOCATION_VARNAME ) ) ; project . setAssignedLabel ( slaveEnv . getSelfLabel ( ) ) ; build = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getDisplayName ( ) + " completed" ) ; assertBuildStatusSuccess ( build ) ; String buildLogEnv = getBuildLog ( build ) ; System . out . println ( buildLogEnv ) ; assertFalse ( buildLogEnv . contains ( DUMMY_LOCATION_VARNAME ) ) ; } public void testFreeStyleAntOnSlave
00108 | INFO | QC-JAV999996[00108] CPD de longueur 59 commencant en 739 (ligne 108) et 1001 (ligne 147): ; project . setAssignedLabel ( slaveRegular . getSelfLabel ( ) ) ; FreeStyleBuild build = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getDisplayName ( ) + " completed" ) ; assertBuildStatus ( Result . FAILURE , build ) ; String buildLogRegular = getBuildLog ( build ) ; assertTrue
00121 | INFO | QC-JAV999996[00121] CPD de longueur 58 commencant en 814 (ligne 121) et 1082 (ligne 161): slaveEnv . getSelfLabel ( ) ) ; build = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getDisplayName ( ) + " completed" ) ; assertBuildStatusSuccess ( build ) ; String buildLogEnv = getBuildLog ( build ) ; System . out . println ( buildLogEnv ) ; assertTrue
00121 | INFO | QC-JAV999996[00121] CPD de longueur 58 commencant en 814 (ligne 121) et 1285 (ligne 193): slaveEnv . getSelfLabel ( ) ) ; build = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getDisplayName ( ) + " completed" ) ; assertBuildStatusSuccess ( build ) ; String buildLogEnv = getBuildLog ( build ) ; System . out . println ( buildLogEnv ) ; assertTrue
00151 | INFO | QC-JAV999996[00151] CPD de longueur 54 commencant en 1015 (ligne 151) et 1228 (ligne 184): = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getDisplayName ( ) + " completed" ) ; assertBuildStatus ( Result . FAILURE , build ) ; String buildLogRegular = getBuildLog ( build ) ; System . out . println ( buildLogRegular ) ; assertTrue
00161 | INFO | QC-JAV999996[00161] CPD de longueur 71 commencant en 1080 (ligne 161) et 1283 (ligne 193): setAssignedLabel ( slaveEnv . getSelfLabel ( ) ) ; build = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getDisplayName ( ) + " completed" ) ; assertBuildStatusSuccess ( build ) ; String buildLogEnv = getBuildLog ( build ) ; System . out . println ( buildLogEnv ) ; assertFalse ( buildLogEnv . contains ( DUMMY_LOCATION_VARNAME ) ) ; } public

#### File test\src\test\java\hudson\tasks\FingerprinterTest.java 7 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.FingerprinterTest

Module / class or interface : hudson.tasks.FingerprinterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 2
void | testFingerprintDependencies() | 1 | 10
void | testMultipleUpstreamDependencies() | 1 | 15
void | testMultipleDownstreamDependencies() | 1 | 16
void | testDependencyExclusion() | 1 | 10
void | testCircularDependency() | 1 | 7
void | testMatrixDependency() | 1 | 16
void | testProjectRename() | 5 | 33
FreeStyleProject | createFreeStyleProjectWithFingerprints(String[];String[]) | 1 | 3
void | addFingerprinterToProject(AbstractProject<?,?>;String[];String[]) | 4 | 5

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 5
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 2

Line start | Criticity class | Rule
--- | --- | ---
00207 | INFO | QC-JAV999996[00207] CPD de longueur 71 commencant en 1234 (ligne 207) et 1323 (ligne 216): = action . getFingerprints ( ) . values ( ) ; for ( Fingerprint f : fingerprints ) { assertTrue ( f . getOriginal ( ) . is ( upstream ) ) ; assertTrue ( f . getOriginal ( ) . getName ( ) . equals ( renamedProject1 ) ) ; assertFalse ( f . getOriginal ( ) . getName ( ) . equals ( oldUpstreamName ) ) ; } action
00227 | INFO | QC-JAV999996[00227] CPD de longueur 69 commencant en 1410 (ligne 227) et 1481 (ligne 237): . getAction ( Fingerprinter . FingerprintAction . class ) ; assertNotNull ( action ) ; fingerprints = action . getFingerprints ( ) . values ( ) ; for ( Fingerprint f : fingerprints ) { List _ String _ jobs = f . getJobs ( ) ; assertTrue ( jobs . contains ( renamedProject2 ) ) ; assertFalse ( jobs . contains ( oldDownstreamName ) ) ; } action
00231 | MAJOR | QC-JAV000001[00231] Avoid declaring class instance within loop, performance impact
00241 | MAJOR | QC-JAV000001[00241] Avoid declaring class instance within loop, performance impact
00259 | MAJOR | QC-JAV000001[00259] Avoid declaring class instance within loop, performance impact
00260 | MAJOR | QC-JAV000001[00260] Avoid declaring class instance within loop, performance impact
00262 | MAJOR | QC-JAV000001[00262] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\hudson\tasks\LogRotatorTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.LogRotatorTest

Module / class or interface : hudson.tasks.LogRotatorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSuccessVsFailure() | 1 | 13
void | testStableVsUnstable() | 1 | 11
void | testArtifactDelete() | 1 | 46
Result | build(FreeStyleProject) | 1 | 1
int | numberOf(Run<?,?>) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00047 | INFO | QC-JAV999996[00047] CPD de longueur 53 commencant en 127 (ligne 47) et 325 (ligne 64): ( ) throws Exception { FreeStyleProject project = createFreeStyleProject ( ) ; project . setLogRotator ( new LogRotator ( ( - 1 ) , 2 , ( - 1 ) , ( - 1 ) ) ) ; assertEquals ( Result . SUCCESS , build ( project ) ) ; project . getBuildersList

#### File test\src\test\java\hudson\tasks\MavenTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.MavenTest

Module / class or interface : hudson.tasks.MavenTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 15
void | testWithNodeProperty() | 1 | 18
void | testWithParameter() | 1 | 18
void | testGlobalConfigAjax() | 1 | 12
void | verify() | 1 | 8
void | testSensitiveParameters() | 1 | 10

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00088 | INFO | QC-JAV999996[00088] CPD de longueur 141 commencant en 416 (ligne 88) et 672 (ligne 117): ) throws Exception { MavenInstallation maven = configureDefaultMaven ( ) ; String mavenHome = maven . getHome ( ) ; String mavenHomeVar = "$ { VAR_MAVEN } " + mavenHome . substring ( 3 ) ; String mavenVar = mavenHome . substring ( 0 , 3 ) ; MavenInstallation varMaven = new MavenInstallation ( "varMaven" , mavenHomeVar , NO_PROPERTIES ) ; jenkins . getDescriptorByType ( Maven . DescriptorImpl . class ) . setInstallations ( maven , varMaven ) ; JDK jdk = jenkins . getJDK ( "default" ) ; String javaHome = jdk . getHome ( ) ; String javaHomeVar = "$ { VAR_JAVA } " + javaHome . substring ( 3 ) ; String javaVar = javaHome . substring ( 0 , 3 ) ; JDK varJDK = new JDK ( "varJDK" , javaHomeVar ) ; jenkins . getJDKs ( ) . add ( varJDK ) ; Jenkins

#### File test\src\test\java\hudson\tasks\ShellTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.ShellTest

Module / class or interface : hudson.tasks.ShellTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBasic() | 2 | 8

#### File test\src\test\java\hudson\tasks\UserAvatarResolverTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.UserAvatarResolverTest

Module / class or interface : hudson.tasks.UserAvatarResolverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testThatDefaultImageIsReturnedIfRegexFails() | 1 | 2
void | testThatResolverIsUsed() | 1 | 3
void | testThatNoResolverCanFindAvatar() | 1 | 2
void | testIconSizeRegex() | 1 | 4

#### File test\src\test\java\hudson\tasks\junit\CaseResultTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.junit.CaseResultTest

Module / class or interface : hudson.tasks.junit.CaseResultTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testIssue20090516() | 1 | 17
void | testFreestyleErrorMsgAndStacktraceRender() | 1 | 14
void | testMavenErrorMsgAndStacktraceRender() | 1 | 13
void | testRemoteApiDefaultVisibility() | 1 | 9
void | testRemoteApiNoDetails() | 1 | 9
void | testRemoteApiNameOnly() | 1 | 9
FreeStyleBuild | configureTestBuild(String) | 1 | 4
String | composeXPath(String[]) | 3 | 4
void | assertOutput(CaseResult;String;String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 3

Line start | Criticity class | Rule
--- | --- | ---
00160 | INFO | QC-JAV999996[00160] CPD de longueur 59 commencant en 877 (ligne 160) et 1015 (ligne 178): "application / xml" ) ; int found = 0 ; found = page . getByXPath ( composeXPath ( MAX_VISIBILITY_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found an element , but found " + found ) , ( found _ 0 ) ) ; found = page . getByXPath ( composeXPath ( REDUCED_VISIBILITY_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found an element , but found "
00160 | INFO | QC-JAV999996[00160] CPD de longueur 59 commencant en 877 (ligne 160) et 1153 (ligne 196): "application / xml" ) ; int found = 0 ; found = page . getByXPath ( composeXPath ( MAX_VISIBILITY_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found an element , but found " + found ) , ( found _ 0 ) ) ; found = page . getByXPath ( composeXPath ( REDUCED_VISIBILITY_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found an element , but found "
00178 | INFO | QC-JAV999996[00178] CPD de longueur 90 commencant en 1015 (ligne 178) et 1153 (ligne 196): "application / xml" ) ; int found = 0 ; found = page . getByXPath ( composeXPath ( MAX_VISIBILITY_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found an element , but found " + found ) , ( found _ 0 ) ) ; found = page . getByXPath ( composeXPath ( REDUCED_VISIBILITY_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found 0 elements , but found " + found ) , ( found == 0 ) ) ; found = page . getByXPath ( composeXPath ( OTHER_FIELDS ) ) . size ( ) ; assertTrue ( ( "Should have found an element , but found "

#### File test\src\test\java\hudson\tasks\junit\HistoryTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.junit.HistoryTest

Module / class or interface : hudson.tasks.junit.HistoryTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 3 | 7
void | testFailedSince() | 1 | 36

#### File test\src\test\java\hudson\tasks\junit\JUnitParserTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.junit.JUnitParserTest

Module / class or interface : hudson.tasks.junit.JUnitParserTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 4
void | testJustParsing() | 2 | 24

#### File test\src\test\java\hudson\tasks\junit\JUnitResultArchiverTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.junit.JUnitResultArchiverTest

Module / class or interface : hudson.tasks.junit.JUnitResultArchiverTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 5
void | testBasic() | 1 | 9
void | testSlave() | 1 | 8
void | assertTestResults(FreeStyleBuild) | 1 | 8
void | testPersistence() | 1 | 4
void | reloadJenkins() | 1 | 2
void | testSetDescription() | 1 | 10
void | testSetDescription(String;TestObject) | 1 | 6
HtmlForm | findForm(HtmlPage;String) | 3 | 2

#### File test\src\test\java\hudson\tasks\junit\SuiteResultTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.tasks.junit.SuiteResultTest

Module / class or interface : hudson.tasks.junit.SuiteResultTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | sizeSurefire() | 3 | 13
SuiteResult | parseOne(File) | 1 | 3

#### File test\src\test\java\hudson\tasks\junit\TestResultLinksTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.junit.TestResultLinksTest

Module / class or interface : hudson.tasks.junit.TestResultLinksTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 5
void | testFailureLinks() | 1 | 16
void | testNonDescendantRelativePath() | 1 | 13

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00062 | INFO | QC-JAV999996[00062] CPD de longueur 62 commencant en 205 (ligne 62) et 395 (ligne 93): ; assertBuildStatus ( Result . UNSTABLE , build ) ; TestResult theOverallTestResult = build . getAction ( TestResultAction . class ) . getResult ( ) ; CaseResult theFailedTestCase = theOverallTestResult . getFailedTests ( ) . get ( 0 ) ; String relativePath = theFailedTestCase . getRelativePathFrom ( theOverallTestResult ) ; System . out . println ( "relative path seems to be : " + relativePath ) ; HudsonTestCase

#### File test\src\test\java\hudson\tasks\junit\TestResultPublishingTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.junit.TestResultPublishingTest

Module / class or interface : hudson.tasks.junit.TestResultPublishingTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 5
void | testBasic() | 1 | 9
void | testSlave() | 1 | 8
void | testOpenJUnitPublishing() | 4 | 46
void | testInterBuildDiffs() | 3 | 7
void | testHistoryPageOpenJunit() | 3 | 16
void | assertStringEmptyOrNull(String;String) | 3 | 3
void | assertPaneDiffText(String;int;Object) | 3 | 5
void | assertTestResultsAsExpected(WebClient;Run;String;String;String;String;int;int;int;int;int;int) | 1 | 16
void | assertTestResults(FreeStyleBuild) | 1 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00101 | INFO | QC-JAV999996[00101] CPD de longueur 75 commencant en 432 (ligne 101) et 969 (ligne 210): ) throws IOException , SAXException { List _ Project _ projects = this . jenkins . getProjects ( ) ; Project proj = null ; for ( Project p : projects ) { if ( p . getName ( ) . equals ( TEST_PROJECT_WITH_HISTORY ) ) proj = p ; } assertNotNull ( ( "We should have a project named " + TEST_PROJECT_WITH_HISTORY ) , proj ) ; HudsonTestCase . WebClient wc = new HudsonTestCase . WebClient ( ) ; HtmlPage

#### File test\src\test\java\hudson\tasks\test\TestResultExtensionTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tasks.test.TestResultExtensionTest

Module / class or interface : hudson.tasks.test.TestResultExtensionTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testTrivialRecorder() | 1 | 21

#### File test\src\test\java\hudson\tasks\test\TrivialTestResult.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
SimpleCaseResult | hudson.tasks.test.TrivialTestResult

Module / class or interface : hudson.tasks.test.TrivialTestResult

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TrivialTestResult | TrivialTestResult() | 1 | 1
TrivialTestResult | TrivialTestResult(String) | 1 | 1
String | getSillyWord() | 1 | 1

#### File test\src\test\java\hudson\tasks\test\TrivialTestResultAction.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
AbstractTestResultAction<TrivialTestResultAction> | hudson.tasks.test.TrivialTestResultAction

Module / class or interface : hudson.tasks.test.TrivialTestResultAction

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
TrivialTestResultAction | TrivialTestResultAction(AbstractBuild;TrivialTestResult) | 1 | 3
int | getFailCount() | 1 | 1
int | getTotalCount() | 1 | 1
Object | getResult() | 1 | 1
Object | getTarget() | 1 | 1

#### File test\src\test\java\hudson\tasks\test\TrivialTestResultRecorder.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Recorder | hudson.tasks.test.TrivialTestResultRecorder

Module / class or interface : hudson.tasks.test.TrivialTestResultRecorder

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
boolean | perform(AbstractBuild<?,?>;Launcher;BuildListener) | 1 | 9
BuildStepMonitor | getRequiredMonitorService() | 1 | 1

#### File test\src\test\java\hudson\tools\JDKInstallerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tools.JDKInstallerTest

Module / class or interface : hudson.tools.JDKInstallerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 3 | 7
void | tearDown() | 1 | 2
void | testEnterCredential() | 1 | 8
void | testConfigRoundtrip() | 1 | 8
void | testLocate() | 2 | 7
void | retrieveUpdateCenterData() | 1 | 1
void | testAutoInstallation6u13() | 1 | 1
void | testAutoInstallation7() | 1 | 1
void | testAutoInstallation142_17() | 1 | 1
void | doTestAutoInstallation(String;String) | 2 | 14
void | testFakeUnixInstall() | 2 | 8

Security risk sequences

Seq | Step | Source / Method / Target | Risk nature
--- | --- | --- | ---
No 1 |  |  |
| 3 | " . jenkins - ci . org"\---java.io.File (correctly sanitized)\------hudson.tools.JDKInstallerTest.setUp.f | correctly sanitized
| 2 | hudson.tools.JDKInstallerTest.setUp.f\---java.io.FileInputStream\------hudson.tools.JDKInstallerTest.setUp.in | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
| 1 | hudson.tools.JDKInstallerTest.setUp.in\---hudson.ClassicPluginStrategy.load\------hudson.ClassicPluginStrategy.load1 |
|  |  | Security risk level : None
No 2 |  |  |
| 2 | " . jenkins - ci . org"\---java.io.File (correctly sanitized)\------hudson.tools.JDKInstallerTest.setUp.f | correctly sanitized
| 1 | hudson.tools.JDKInstallerTest.setUp.f\---java.io.FileInputStream\------hudson.tools.JDKInstallerTest.setUp.in | //QC-JAVCWE099[00001] source or target data PATHtainted(java.io.File)
|  |  | Security risk level : None

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---

Line start | Criticity class | Rule
--- | --- | ---

#### File test\src\test\java\hudson\tools\ToolLocationNodePropertyTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tools.ToolLocationNodePropertyTest

Module / class or interface : hudson.tools.ToolLocationNodePropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFormRoundTrip() | 1 | 27
void | testMaven() | 1 | 11
void | configureDumpEnvBuilder() | 3 | 2
void | testAnt() | 1 | 13
void | testNativeMaven() | 1 | 16
void | setUp() | 1 | 7

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 1

Line start | Criticity class | Rule
--- | --- | ---
00142 | INFO | QC-JAV999996[00142] CPD de longueur 53 commencant en 936 (ligne 142) et 1148 (ligne 168): ) ) ; slave . getNodeProperties ( ) . add ( property ) ; build = project . scheduleBuild2 ( 0 ) . get ( ) ; System . out . println ( build . getLog ( ) ) ; assertBuildStatus ( Result . SUCCESS , build ) ; } public void testNativeMaven

#### File test\src\test\java\hudson\tools\ToolLocationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.tools.ToolLocationTest

Module / class or interface : hudson.tools.ToolLocationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testToolCompatibility() | 1 | 15

#### File test\src\test\java\hudson\triggers\SCMTriggerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.triggers.SCMTriggerTest

Module / class or interface : hudson.triggers.SCMTriggerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSimultaneousPollAndBuild() | 1 | 7
void | testMultiplePollingOneBuildAction() | 1 | 18

#### File test\src\test\java\hudson\triggers\TriggerStartTest.java 2 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | hudson.triggers.TriggerStartTest

Module / class or interface : hudson.triggers.TriggerStartTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | loadCallsStartFalse() | 1 | 8
void | submitCallsStartTrue() | 1 | 8
void | updateByXmlCallsStartTrue() | 1 | 8
void | createProjectFromXmlCallsStartTrue() | 1 | 4
void | copyCallsStartTrue() | 1 | 8
String | triggersSection() | 1 | 2

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2

Line start | Criticity class | Rule
--- | --- | ---
00049 | MAJOR | QC-JAVCWE493[00049] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00109 | MAJOR | QC-JAVCWE493[00109] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\hudson\util\AlternativeUiTextProviderTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.util.AlternativeUiTextProviderTest

Module / class or interface : hudson.util.AlternativeUiTextProviderTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBasics() | 1 | 2

#### File test\src\test\java\hudson\util\ArgumentListBuilder2Test.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.util.ArgumentListBuilder2Test

Module / class or interface : hudson.util.ArgumentListBuilder2Test

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSlaveMask() | 1 | 9

#### File test\src\test\java\hudson\util\FormFieldValidatorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.util.FormFieldValidatorTest

Module / class or interface : hudson.util.FormFieldValidatorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test2771() | 1 | 2
void | testNegative() | 3 | 9

#### File test\src\test\java\hudson\util\ProcessTreeKillerTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.util.ProcessTreeKillerTest

Module / class or interface : hudson.util.ProcessTreeKillerTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testManualAbortProcess() | 1 | 10

#### File test\src\test\java\hudson\views\ListViewColumnTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | hudson.views.ListViewColumnTest

Module / class or interface : hudson.views.ListViewColumnTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCreateView() | 1 | 2

#### File test\src\test\java\jenkins\ExtensionFilterTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | jenkins.ExtensionFilterTest

Module / class or interface : jenkins.ExtensionFilterTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testFilter() | 1 | 2

#### File test\src\test\java\jenkins\model\JenkinsLocationConfigurationTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | jenkins.model.JenkinsLocationConfigurationTest

Module / class or interface : jenkins.model.JenkinsLocationConfigurationTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testLocalHostWarning() | 1 | 4

#### File test\src\test\java\jenkins\model\JenkinsTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | jenkins.model.JenkinsTest

Module / class or interface : jenkins.model.JenkinsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testIsDisplayNameUniqueTrue() | 1 | 9
void | testIsDisplayNameUniqueFalse() | 1 | 9
void | testIsDisplayNameUniqueSameAsCurrentJob() | 1 | 6
void | testIsNameUniqueTrue() | 1 | 6
void | testIsNameUniqueFalse() | 1 | 6
void | testIsNameUniqueSameAsCurrentJob() | 1 | 6
void | testDoCheckDisplayNameUnique() | 1 | 9
void | testDoCheckDisplayNameSameAsDisplayName() | 1 | 10
void | testDoCheckDisplayNameSameAsJobName() | 1 | 10
void | testItemFullNameExpansion() | 1 | 9
void | testUnprotectedRootAction() | 1 | 8

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
INFO | QC-JAV999996 | Local Cut and Paste Detector in single file | 4

Line start | Criticity class | Rule
--- | --- | ---
00052 | INFO | QC-JAV999996[00052] CPD de longueur 56 commencant en 159 (ligne 52) et 560 (ligne 131): ) throws Exception { final String curJobName = "curJobName" ; final String jobName = "jobName" ; FreeStyleProject curProject = createFreeStyleProject ( curJobName ) ; curProject . setDisplayName ( "currentProjectDisplayName" ) ; FreeStyleProject p = createFreeStyleProject ( jobName ) ; p . setDisplayName ( "displayName" ) ; Jenkins jenkins = Jenkins . getInstance ( ) ; Assert
00067 | INFO | QC-JAV999996[00067] CPD de longueur 62 commencant en 249 (ligne 67) et 647 (ligne 146): ) throws Exception { final String curJobName = "curJobName" ; final String jobName = "jobName" ; final String displayName = "displayName" ; FreeStyleProject curProject = createFreeStyleProject ( curJobName ) ; curProject . setDisplayName ( "currentProjectDisplayName" ) ; FreeStyleProject p = createFreeStyleProject ( jobName ) ; p . setDisplayName ( displayName ) ; Jenkins jenkins = Jenkins . getInstance ( ) ; Assert
00067 | INFO | QC-JAV999996[00067] CPD de longueur 62 commencant en 249 (ligne 67) et 742 (ligne 162): ) throws Exception { final String curJobName = "curJobName" ; final String jobName = "jobName" ; final String displayName = "displayName" ; FreeStyleProject curProject = createFreeStyleProject ( curJobName ) ; curProject . setDisplayName ( "currentProjectDisplayName" ) ; FreeStyleProject p = createFreeStyleProject ( jobName ) ; p . setDisplayName ( displayName ) ; Jenkins jenkins = Jenkins . getInstance ( ) ; Assert
00146 | INFO | QC-JAV999996[00146] CPD de longueur 69 commencant en 647 (ligne 146) et 742 (ligne 162): ) throws Exception { final String curJobName = "curJobName" ; final String jobName = "jobName" ; final String displayName = "displayName" ; FreeStyleProject curProject = createFreeStyleProject ( curJobName ) ; curProject . setDisplayName ( "currentProjectDisplayName" ) ; FreeStyleProject p = createFreeStyleProject ( jobName ) ; p . setDisplayName ( displayName ) ; Jenkins jenkins = Jenkins . getInstance ( ) ; FormValidation v = jenkins . doCheckDisplayName ( displayName

#### File test\src\test\java\jenkins\scm\SCMCheckoutStrategyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | jenkins.scm.SCMCheckoutStrategyTest

Module / class or interface : jenkins.scm.SCMCheckoutStrategyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testConfigRoundtrip() | 1 | 3
void | testConfigRoundtrip2() | 1 | 10
boolean | pageHasUI(FreeStyleProject) | 1 | 2

#### File test\src\test\java\jenkins\security\ApiTokenPropertyTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | jenkins.security.ApiTokenPropertyTest

Module / class or interface : jenkins.security.ApiTokenPropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBasics() | 1 | 13
void | testSecurity49Upgrade() | 1 | 13

#### File test\src\test\java\jenkins\security\RekeySecretAdminMonitorTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | jenkins.security.RekeySecretAdminMonitorTest

Module / class or interface : jenkins.security.RekeySecretAdminMonitorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | setUp() | 1 | 3
void | tearDown() | 1 | 2
void | recipe() | 1 | 2
void | putSomeOldData(File) | 1 | 2
void | verifyRewrite(File) | 1 | 2
void | testBasicWorkflow() | 1 | 22
HtmlForm | getRekeyForm(WebClient) | 1 | 1
HtmlButton | getButton(HtmlForm;int) | 1 | 1
void | testScanOnBoot() | 1 | 7
String | encryptOld(String) | 1 | 3
String | encryptNew(String) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 1

Line start | Criticity class | Rule
--- | --- | ---
00117 | MAJOR | QC-JAVCWE390[00117] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)

#### File test\src\test\java\lib\form\AdvancedButtonTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.AdvancedButtonTest

Module / class or interface : lib.form.AdvancedButtonTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testNestedOptionalBlock() | 1 | 5
FormValidation | doSubmitNestedOptionalBlock(StaplerRequest) | 1 | 7

#### File test\src\test\java\lib\form\ComboBoxTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.ComboBoxTest

Module / class or interface : lib.form.ComboBoxTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCompoundFieldDependentComboBox() | 3 | 9

#### File test\src\test\java\lib\form\DropdownListTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.DropdownListTest

Module / class or interface : lib.form.DropdownListTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 3
FormValidation | doSubmitTest1(StaplerRequest) | 1 | 3

#### File test\src\test\java\lib\form\EnumSetTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.EnumSetTest

Module / class or interface : lib.form.EnumSetTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
EnumSetTest | EnumSetTest() | 1 | 1
EnumSetTest | EnumSetTest(EnumSet<BallColor>) | 1 | 1
void | test1() | 1 | 3
FormValidation | doSubmitTest1(StaplerRequest) | 1 | 5

#### File test\src\test\java\lib\form\ExpandableTextboxTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.ExpandableTextboxTest

Module / class or interface : lib.form.ExpandableTextboxTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testMultiline() | 1 | 5
HtmlPage | evaluateAsHtml(String) | 1 | 5

#### File test\src\test\java\lib\form\NameRefTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.NameRefTest

Module / class or interface : lib.form.NameRefTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 3
HttpResponse | doSubmitTest1(StaplerRequest) | 1 | 4

#### File test\src\test\java\lib\form\PasswordTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.PasswordTest

Module / class or interface : lib.form.PasswordTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 5
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00038 | MAJOR | QC-JAVCWE493[00038] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\lib\form\RepeatablePropertyTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.RepeatablePropertyTest

Module / class or interface : lib.form.RepeatablePropertyTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSimple() | 1 | 2
void | testNullFieldNoDefault() | 1 | 1
void | testNullFieldWithDefault() | 1 | 2
void | testFieldNotNullWithDefaultIgnoresDefaults() | 1 | 3
void | assertFormContents(String;ArrayList<ExcitingObject>) | 2 | 6
List<HtmlTextInput> | toTextInputList(List<HtmlElement>) | 2 | 5
ArrayList<ExcitingObject> | createRepeatable() | 1 | 1
HtmlForm | getForm(String) | 1 | 3
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 2
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 2

Line start | Criticity class | Rule
--- | --- | ---
00047 | MAJOR | QC-JAVCWE493[00047] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00048 | MAJOR | QC-JAVCWE493[00048] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00085 | MAJOR | QC-JAV000001[00085] Avoid declaring class instance within loop, performance impact
00086 | MAJOR | QC-JAV000001[00086] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\lib\form\RepeatableTest.java 12 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.RepeatableTest

Module / class or interface : lib.form.RepeatableTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | doSubmitTest(StaplerRequest) | 2 | 2
void | doTestSimple() | 1 | 10
void | testSimple() | 1 | 2
void | addData() | 1 | 2
void | testSimple_ExistingData() | 1 | 3
void | testMinimum() | 1 | 11
void | testMinimum_ExistingData() | 1 | 10
void | testNoData() | 1 | 6
void | testItemsWithDefaults() | 1 | 1
void | testItemsDefaultsIgnoredIfFieldHasData() | 1 | 1
void | testFieldWithDefaults() | 1 | 1
void | testFieldDefaultsIgnoredIfFieldHasData() | 1 | 1
void | addDefaults() | 1 | 3
void | assertWithDefaults(String) | 1 | 5
void | assertDefaultsIgnoredIfHaveData(String) | 1 | 5
void | gotoAndSubmitConfig(String) | 1 | 3
void | testRadio() | 1 | 10
void | testRadio_ExistingData() | 1 | 10
void | testRadioBlock() | 1 | 13
DescriptorExtensionList<Fruit,Descriptor<Fruit>> | getFruitDescriptors() | 1 | 1
void | testDropdownList() | 1 | 15
void | testNested() | 1 | 18
void | clickButton(HtmlPage;HtmlForm;String) | 1 | 2
void | testNestedRadio() | 1 | 21
void | waitForJavaScript(HtmlPage) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE390 | Detection of error condition without action | 2
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 10

Line start | Criticity class | Rule
--- | --- | ---
00055 | MAJOR | QC-JAVCWE493[00055] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00056 | MAJOR | QC-JAVCWE493[00056] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00057 | MAJOR | QC-JAVCWE493[00057] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00090 | MAJOR | QC-JAVCWE493[00090] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00091 | MAJOR | QC-JAVCWE493[00091] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00118 | MAJOR | QC-JAVCWE390[00118] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00132 | MAJOR | QC-JAVCWE390[00132] Detection of error condition without action (see http://cwe.mitre.org/data/definitions/390.html)
00216 | MAJOR | QC-JAVCWE493[00216] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00289 | MAJOR | QC-JAVCWE493[00289] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00290 | MAJOR | QC-JAVCWE493[00290] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00325 | MAJOR | QC-JAVCWE493[00325] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00326 | MAJOR | QC-JAVCWE493[00326] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\lib\form\RowVisibilityGroupTest.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.RowVisibilityGroupTest

Module / class or interface : lib.form.RowVisibilityGroupTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 12
void | test2() | 2 | 20
void | doSubmitTest2(StaplerRequest) | 1 | 3
DescriptorImpl | getDescriptor() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4

Line start | Criticity class | Rule
--- | --- | ---
00036 | MAJOR | QC-JAVCWE493[00036] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00124 | MAJOR | QC-JAVCWE493[00124] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00133 | MAJOR | QC-JAVCWE493[00133] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00134 | MAJOR | QC-JAVCWE493[00134] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\lib\form\ValidateButtonTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.form.ValidateButtonTest

Module / class or interface : lib.form.ValidateButtonTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 2 | 5
DescriptorImpl | getDescriptor() | 1 | 1

#### File test\src\test\java\lib\hudson\ActionsTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.hudson.ActionsTest

Module / class or interface : lib.hudson.ActionsTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testOverride() | 1 | 1

#### File test\src\test\java\lib\hudson\ListScmBrowsersTest.java 3 rule violations (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.hudson.ListScmBrowsersTest

Module / class or interface : lib.hudson.ListScmBrowsersTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testSelectBoxesUnique() | 1 | 1
void | testSelectBoxesUnique2() | 1 | 1
void | testSelectBoxesUnique3() | 1 | 1
void | check(Item) | 3 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 3

Line start | Criticity class | Rule
--- | --- | ---
00036 | MAJOR | QC-JAV000001[00036] Avoid declaring class instance within loop, performance impact
00036 | MAJOR | QC-JAV000001[00036] Avoid declaring class instance within loop, performance impact
00037 | MAJOR | QC-JAV000001[00037] Avoid declaring class instance within loop, performance impact

#### File test\src\test\java\lib\layout\RenderOnDemandTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | lib.layout.RenderOnDemandTest

Module / class or interface : lib.layout.RenderOnDemandTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testBehaviour() | 1 | 4
void | testScript() | 1 | 8

#### File test\src\test\java\org\jvnet\hudson\main\AppTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | org.jvnet.hudson.main.AppTest

Module / class or interface : org.jvnet.hudson.main.AppTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | test1() | 1 | 1
void | test2() | 1 | 1
void | meat() | 3 | 7

#### File test\src\test\java\org\jvnet\hudson\test\MemoryAssertTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.MemoryAssertTest

Module / class or interface : org.jvnet.hudson.test.MemoryAssertTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | heapUsage() | 1 | 9

#### File test\src\test\java\org\jvnet\hudson\test\MockFolderTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.test.MockFolderTest

Module / class or interface : org.jvnet.hudson.test.MockFolderTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | basics() | 1 | 3

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00034 | MAJOR | QC-JAVCWE493[00034] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File test\src\test\java\scripts\BehaviorTest.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
HudsonTestCase | scripts.BehaviorTest

Module / class or interface : scripts.BehaviorTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testCssSelectors() | 1 | 7
int | asInt(ScriptResult) | 1 | 1
void | testDuplicateRegistrations() | 1 | 3
void | testSelectorOrdering() | 1 | 3

#### File test\src\test\java\scripts\package-info.java 0 rule violation (XML file)

Module / class or interface : scripts.

#### File test\src\test\junit4\org\jvnet\hudson\main\UseRecipesWithJenkinsRuleTest.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | org.jvnet.hudson.main.UseRecipesWithJenkinsRuleTest

Module / class or interface : org.jvnet.hudson.main.UseRecipesWithJenkinsRuleTest

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
void | testGetItemFromLocalData() | 1 | 1
void | testWithPlugin() | 1 | 1
void | testPresetData() | 1 | 3
void | testWithPluginManager() | 1 | 1
void | verifyNotError(WebClient) | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 1

Line start | Criticity class | Rule
--- | --- | ---
00029 | MAJOR | QC-JAVCWE493[00029] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\AutoCompleteTextBox.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.AutoCompleteTextBox

Module / class or interface : jenkins.plugins.ui_samples.AutoCompleteTextBox

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\CopyButton.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.CopyButton

Module / class or interface : jenkins.plugins.ui_samples.CopyButton

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\DropdownList.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.DropdownList

Module / class or interface : jenkins.plugins.ui_samples.DropdownList

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
Fruit | getFruit() | 1 | 1
DescriptorExtensionList<Fruit,Descriptor<Fruit>> | getFruitDescriptors() | 1 | 1
void | doSubmit(StaplerRequest;StaplerResponse) | 1 | 3
List<SourceFile> | getSourceFiles() | 1 | 4

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\DynamicComboBox.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.DynamicComboBox

Module / class or interface : jenkins.plugins.ui_samples.DynamicComboBox

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
String | getAlbum() | 1 | 1
String | getTitle() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\DynamicDropDownListBox.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.DynamicDropDownListBox

Module / class or interface : jenkins.plugins.ui_samples.DynamicDropDownListBox

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
String | getCountry() | 1 | 1
String | getState() | 1 | 1
String | getCity() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\FormFieldValidationWithContext.java 4 rule violations (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.FormFieldValidationWithContext

Module / class or interface : jenkins.plugins.ui_samples.FormFieldValidationWithContext

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
FormFieldValidationWithContext | FormFieldValidationWithContext() | 1 | 0
FormFieldValidationWithContext | FormFieldValidationWithContext(List<State>) | 1 | 1
String | getDescription() | 1 | 1
List<State> | getStates() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 4

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE493 | Critical public variable without final modifier | 4

Line start | Criticity class | Rule
--- | --- | ---
00057 | MAJOR | QC-JAVCWE493[00057] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00058 | MAJOR | QC-JAVCWE493[00058] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00059 | MAJOR | QC-JAVCWE493[00059] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)
00092 | MAJOR | QC-JAVCWE493[00092] Critical public variable without final modifier (see http://cwe.mitre.org/data/definitions/493.html)

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\InpageNavigationWithBreadcrumb.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.InpageNavigationWithBreadcrumb

Module / class or interface : jenkins.plugins.ui_samples.InpageNavigationWithBreadcrumb

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\JavaScriptProxy.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.JavaScriptProxy

Module / class or interface : jenkins.plugins.ui_samples.JavaScriptProxy

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
int | increment(int) | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAVCWE481 | Assigning instead of comparing | 1

Line start | Criticity class | Rule
--- | --- | ---
00026 | MAJOR | QC-JAVCWE481[00026] Assigning instead of comparing on i+=n (see http://cwe.mitre.org/data/definitions/481.html)

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\ModularizeViewScript.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.ModularizeViewScript

Module / class or interface : jenkins.plugins.ui_samples.ModularizeViewScript

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\NavigationContextMenu.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.NavigationContextMenu

Module / class or interface : jenkins.plugins.ui_samples.NavigationContextMenu

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
ContextMenu | doContextMenu(StaplerRequest;StaplerResponse) | 3 | 2

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\NotificationBar.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.NotificationBar

Module / class or interface : jenkins.plugins.ui_samples.NotificationBar

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\ProgressBar.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.ProgressBar

Module / class or interface : jenkins.plugins.ui_samples.ProgressBar

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\ProgressivelyRendered.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.ProgressivelyRendered

Module / class or interface : jenkins.plugins.ui_samples.ProgressivelyRendered

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
ProgressiveRendering | factor(String) | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\Root.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.plugins.ui_samples.Root

Module / class or interface : jenkins.plugins.ui_samples.Root

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getDisplayName() | 1 | 1
String | getUrlName() | 1 | 1
UISample | getDynamic(String) | 3 | 2
List<UISample> | getAll() | 1 | 1
ContextMenu | doContextMenu(StaplerRequest;StaplerResponse) | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\SyntaxHighlightedTextArea.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
UISample | jenkins.plugins.ui_samples.SyntaxHighlightedTextArea

Module / class or interface : jenkins.plugins.ui_samples.SyntaxHighlightedTextArea

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDescription() | 1 | 1
List<SourceFile> | getSourceFiles() | 1 | 1

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\UISample.java 1 rule violations (XML file)

Ancestor class | Children classes
--- | ---
java.lang.Object | jenkins.plugins.ui_samples.UISample

Module / class or interface : jenkins.plugins.ui_samples.UISample

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getIconFileName() | 1 | 1
String | getUrlName() | 1 | 1
String | getDisplayName() | 1 | 1
List<SourceFile> | getSourceFiles() | 3 | 5
void | doSourceFile(StaplerRequest;StaplerResponse) | 3 | 4
String | getDescription() | 1 | 1
UISampleDescriptor | getDescriptor() | 1 | 1
ExtensionList<UISample> | all() | 1 | 1

Criticity class | Rule | Description | Nb of violations
--- | --- | --- | ---
MAJOR | QC-JAV000001 | Instance is created within a loop, huge performance impact | 1

Line start | Criticity class | Rule
--- | --- | ---
00046 | MAJOR | QC-JAV000001[00046] Avoid declaring class instance within loop, performance impact

#### File ui-samples-plugin\src\main\java\jenkins\plugins\ui_samples\UISampleDescriptor.java 0 rule violation (XML file)

Ancestor class | Children classes
--- | ---
Descriptor<UISample> | jenkins.plugins.ui_samples.UISampleDescriptor

Module / class or interface : jenkins.plugins.ui_samples.UISampleDescriptor

Quality index : nature | Name of function/method | McCABE complexity | Lines of code / NCSS
--- | --- | --- | ---
String | getDisplayName() | 1 | 1