The following document contains the results of PMD 5.3.2.

Files

pikes-naflib - eu/fbk/dkm/pikes/naflib/Corpus.java

Violation Line
Possible God class (WMC=66, ATFD=18, TCC=0.02) 1344
The class 'Corpus' has a Cyclomatic Complexity of 3 (Highest = 10). 30344
The user-supplied array 'files' is stored directly. 81
The method 'get' has a Cyclomatic Complexity of 10. 131172
Avoid using redundant field initializer for 'index' 178
Avoid instantiating new objects inside loops 311

pikes-naflib - eu/fbk/dkm/pikes/naflib/CorpusStatistics.java

Violation Line
The class 'CorpusStatistics' has a Modified Cyclomatic Complexity of 12 (Highest = 11). 17113
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 17113
The class 'CorpusStatistics' has a Standard Cyclomatic Complexity of 12 (Highest = 11). 17113
The class 'CorpusStatistics' has a Cyclomatic Complexity of 16 (Highest = 15). 17113
When instantiating a SimpleDateFormat object, specify a Locale 20
The method 'main' has a Modified Cyclomatic Complexity of 11. 22112
The method main() has an NPath complexity of 202 22112
The method 'main' has a Cyclomatic Complexity of 15. 22112
The method 'main' has a Standard Cyclomatic Complexity of 11. 22112
Consider using varargs for methods or constructors which take an array the last parameter. 22
Parameter 'args' is not assigned and could be declared final 22
Local variable 'inputFolder' could be declared final 32
Local variable 'recursive' could be declared final 33
Local variable 'corpus' could be declared final 35
Local variable 'numDoc' could be declared final 47
Local variable 'lpName' could be declared final 63
Local variable 'linguisticProcessors' could be declared final 64
Local variable 'linguisticProcessor' could be declared final 65
Local variable 'diff' could be declared final 86
Deeply nested if..then statements are hard to read 8789

pikes-naflib - eu/fbk/dkm/pikes/naflib/NafOffsetReader.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 2055
Consider using varargs for methods or constructors which take an array the last parameter. 24
Parameter 'args' is not assigned and could be declared final 24
Local variable 'document' could be declared final 41
Local variable 'span' could be declared final 46
Local variable 'piece' could be declared final 47

pikes-naflib - eu/fbk/dkm/pikes/naflib/NafRenderUtils.java

Violation Line
Possible God class (WMC=134, ATFD=76, TCC=0.0) 1748
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 27748
The class 'NafRenderUtils' has a Modified Cyclomatic Complexity of 8 (Highest = 16). 27748
The class 'NafRenderUtils' has a Standard Cyclomatic Complexity of 8 (Highest = 16). 27748
The class 'NafRenderUtils' has a Cyclomatic Complexity of 9 (Highest = 19). 27748
The method 'renderText' has a Cyclomatic Complexity of 17. 29110
The method 'renderText' has a Standard Cyclomatic Complexity of 16. 29110
The method 'renderText' has a Modified Cyclomatic Complexity of 16. 29110
The method renderText() has an NPath complexity of 3912 29110
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
The method 'emitTermTooltip' has a Standard Cyclomatic Complexity of 15. 118192
The method 'emitTermTooltip' has a Modified Cyclomatic Complexity of 15. 118192
The method 'emitTermTooltip' has a Cyclomatic Complexity of 19. 118192
The method emitTermTooltip() has an NPath complexity of 3360 118192
Using equalsIgnoreCase() is cleaner than using toUpperCase/toLowerCase().equals(). 147
Position literals first in String comparisons 219
Position literals first in String comparisons 219
Position literals first in String comparisons 219
The class 'ParsingRenderer' has a Standard Cyclomatic Complexity of 10 (Highest = 24). 225674
The class 'ParsingRenderer' has a Cyclomatic Complexity of 10 (Highest = 26). 225674
The class 'ParsingRenderer' has a Modified Cyclomatic Complexity of 10 (Highest = 24). 225674
The method 'renderDependencies' has a Standard Cyclomatic Complexity of 19. 271368
The method 'renderDependencies' has a Cyclomatic Complexity of 19. 271368
The method renderDependencies() has an NPath complexity of 3570078 271368
The method 'renderDependencies' has a Modified Cyclomatic Complexity of 19. 271368
Avoid instantiating new objects inside loops 298
The method 'computeDependencyRows' has a Cyclomatic Complexity of 10. 410468
The method 'renderSRL' has a Cyclomatic Complexity of 26. 503631
The method 'renderSRL' has a Standard Cyclomatic Complexity of 24. 503631
Avoid really long methods. 503631
The method 'renderSRL' has a Modified Cyclomatic Complexity of 24. 503631
The method renderSRL() has an NPath complexity of 243458 503631
Avoid instantiating new objects inside loops 512
Avoid instantiating new objects inside loops 528
Avoid instantiating new objects inside loops 530
Avoid instantiating new objects inside loops 543
Avoid instantiating new objects inside loops 544
Avoid instantiating new objects inside loops 561

pikes-naflib - eu/fbk/dkm/pikes/naflib/OpinionPrecisionRecall.java

Violation Line
Possible God class (WMC=71, ATFD=57, TCC=0.005263157894736842) 1426
StringBuffer constructor is initialized with size 16, but has at least 415 characters appended. 113
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 114115
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 116117
Avoid declaring a variable if it is unreferenced before a possible exit point. 237
Avoid declaring a variable if it is unreferenced before a possible exit point. 238
Avoid declaring a variable if it is unreferenced before a possible exit point. 239
Avoid declaring a variable if it is unreferenced before a possible exit point. 240
Avoid instantiation through private constructors from outside of the constructors class. 256
The class 'Evaluator' has a Cyclomatic Complexity of 4 (Highest = 10). 259424
Use block level rather than method level synchronization 292348
The method 'add' has a Cyclomatic Complexity of 10. 292348
Use block level rather than method level synchronization 378389
Use block level rather than method level synchronization 391404
Use block level rather than method level synchronization 406422

pikes-naflib - eu/fbk/dkm/pikes/naflib/StripNAF.java

Violation Line
The class 'StripNAF' has a Modified Cyclomatic Complexity of 11 (Highest = 10). 1593
The class 'StripNAF' has a Cyclomatic Complexity of 11 (Highest = 10). 1593
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1593
The class 'StripNAF' has a Standard Cyclomatic Complexity of 11 (Highest = 10). 1593
Avoid unused private fields such as 'LOGGER'. 17
Avoid unused private fields such as 'sdf'. 18
When instantiating a SimpleDateFormat object, specify a Locale 18
The method 'main' has a Standard Cyclomatic Complexity of 10. 2592
Parameter 'args' is not assigned and could be declared final 25
Consider using varargs for methods or constructors which take an array the last parameter. 25
The method 'main' has a Cyclomatic Complexity of 10. 2592
The method 'main' has a Modified Cyclomatic Complexity of 10. 2592
Local variable 'inputFolder' could be declared final 35
Local variable 'outputFolder' could be declared final 36
Avoid instantiating new objects inside loops 51
Local variable 'outputFile' could be declared final 51
Local variable 'document' could be declared final 60
Local variable 'layer' could be declared final 65
Avoid empty catch blocks 7981

pikes-naflib - eu/fbk/dkm/pikes/naflib/TxtToNaf.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 16117
The class 'TxtToNaf' has a Standard Cyclomatic Complexity of 13 (Highest = 12). 16117
The class 'TxtToNaf' has a Modified Cyclomatic Complexity of 12 (Highest = 11). 16117
The class 'TxtToNaf' has a Cyclomatic Complexity of 14 (Highest = 13). 16117
The method main() has an NPath complexity of 389 24116
The method 'main' has a Modified Cyclomatic Complexity of 11. 24116
The method 'main' has a Standard Cyclomatic Complexity of 12. 24116
Consider using varargs for methods or constructors which take an array the last parameter. 24
The method 'main' has a Cyclomatic Complexity of 13. 24116
Parameter 'args' is not assigned and could be declared final 24
Local variable 'inputFolder' could be declared final 42
Local variable 'outputFolder' could be declared final 43
Local variable 'prefix' could be declared final 44
Local variable 'trimText' could be declared final 46
Local variable 'outputFile' could be declared final 8385
Avoid instantiating new objects inside loops 8385
A switch with less than three branches is inefficient, use a if statement instead. 8997
Switch statements should have a default label 8997
Local variable 'parts' could be declared final 94
Local variable 'document' could be declared final 99
Avoid instantiating new objects inside loops 99
Local variable 'documentPublic' could be declared final 101
Do not add empty strings 103
Local variable 'documentFileDesc' could be declared final 105

pikes-naflib - ixa/kaflib/AnnotationContainer.java

Violation Line
Possible God class (WMC=216, ATFD=85, TCC=0.057971014492753624) 11137
The class 'AnnotationContainer' has a Cyclomatic Complexity of 2 (Highest = 34). 111137
The class 'AnnotationContainer' has a Modified Cyclomatic Complexity of 2 (Highest = 34). 111137
Too many fields 111137
The class 'AnnotationContainer' has a Standard Cyclomatic Complexity of 2 (Highest = 34). 111137
Private field 'text' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'nextOffset' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'terms' could be made final; it is only initialized in the declaration or constructor. 28
Private field 'marks' could be made final; it is only initialized in the declaration or constructor. 30
Private field 'deps' could be made final; it is only initialized in the declaration or constructor. 35
Private field 'chunks' could be made final; it is only initialized in the declaration or constructor. 40
Private field 'entities' could be made final; it is only initialized in the declaration or constructor. 45
Private field 'properties' could be made final; it is only initialized in the declaration or constructor. 50
Private field 'categories' could be made final; it is only initialized in the declaration or constructor. 55
Private field 'coreferences' could be made final; it is only initialized in the declaration or constructor. 60
Private field 'timeExpressions' could be made final; it is only initialized in the declaration or constructor. 65
Private field 'tLinks' could be made final; it is only initialized in the declaration or constructor. 68
Private field 'cLinks' could be made final; it is only initialized in the declaration or constructor. 71
Private field 'topics' could be made final; it is only initialized in the declaration or constructor. 76
Private field 'factualities' could be made final; it is only initialized in the declaration or constructor. 81
Private field 'linkedEntities' could be made final; it is only initialized in the declaration or constructor. 86
Private field 'sstSpans' could be made final; it is only initialized in the declaration or constructor. 91
Private field 'opinions' could be made final; it is only initialized in the declaration or constructor. 96
Private field 'relations' could be made final; it is only initialized in the declaration or constructor. 101
Private field 'predicates' could be made final; it is only initialized in the declaration or constructor. 106
Private field 'trees' could be made final; it is only initialized in the declaration or constructor. 111
Private field 'constituencyStrings' could be made final; it is only initialized in the declaration or constructor. 112
Private field 'unknownLayers' could be made final; it is only initialized in the declaration or constructor. 117
Private field 'termsIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 122
Private field 'marksIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 123
Private field 'depsIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 124
Private field 'chunksIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 125
Private field 'entitiesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 126
Private field 'corefsIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 127
Private field 'timeExsIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 128
Private field 'factsIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 129
Private field 'linkedEntitiesIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 130
Private field 'sstSpansIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 131
Private field 'propertiesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 132
Private field 'categoriesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 133
Private field 'opinionsIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 134
Private field 'relationsIndexedByRelational' could be made final; it is only initialized in the declaration or constructor. 135
Private field 'predicatesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 136
Avoid instantiating String objects; this is usually unnecessary. 162
Parameter 'index' is not assigned and could be declared final 225
Parameter 'sent' is not assigned and could be declared final 225
Parameter 'annotation' is not assigned and could be declared final 225
Parameter 'mark' is not assigned and could be declared final 234
Parameter 'sent' is not assigned and could be declared final 234
Parameter 'source' is not assigned and could be declared final 234
Parameter 'sent' is not assigned and could be declared final 246
Parameter 'para' is not assigned and could be declared final 246
Useless parentheses. 247
Useless parentheses. 247
Parameter 'para' is not assigned and could be declared final 255
Parameter 'para' is not assigned and could be declared final 259
Parameter 'index' is not assigned and could be declared final 259
Local variable 'layer' could be declared final 260
Local variable 'sent' could be declared final 261
Parameter 'source' is not assigned and could be declared final 293
Parameter 'str' is not assigned and could be declared final 413
Parameter 'wf' is not assigned and could be declared final 420
Parameter 'annotation' is not assigned and could be declared final 426
Parameter 'index' is not assigned and could be declared final 426
Parameter 'hashId' is not assigned and could be declared final 426
Parameter 'mark' is not assigned and could be declared final 433
Parameter 'tid' is not assigned and could be declared final 433
Parameter 'source' is not assigned and could be declared final 433
Parameter 'term' is not assigned and could be declared final 446
Parameter 'term' is not assigned and could be declared final 450
Parameter 'index' is not assigned and could be declared final 450
Local variable 'wf' could be declared final 452
Parameter 'term' is not assigned and could be declared final 460
Parameter 'mark' is not assigned and could be declared final 464
Parameter 'source' is not assigned and could be declared final 464
Local variable 'term' could be declared final 471
Parameter 'dep' is not assigned and could be declared final 480
Local variable 'tId' could be declared final 484
Local variable 'tId' could be declared final 488
Parameter 'chunk' is not assigned and could be declared final 497
Local variable 'term' could be declared final 500
Parameter 'entity' is not assigned and could be declared final 509
Local variable 'term' could be declared final 512
Parameter 'feature' is not assigned and could be declared final 521
Local variable 'term' could be declared final 525
Local variable 'term' could be declared final 533
Parameter 'coref' is not assigned and could be declared final 543
Local variable 'span' could be declared final 546
Local variable 'term' could be declared final 547
Parameter 'timex3' is not assigned and could be declared final 555
Local variable 'wf' could be declared final 559
Parameter 'tLink' is not assigned and could be declared final 566
Parameter 'cLink' is not assigned and could be declared final 572
Parameter 'factuality' is not assigned and could be declared final 580
Local variable 'wf' could be declared final 584
Parameter 'linkedEntity' is not assigned and could be declared final 593
Local variable 'wf' could be declared final 597
Parameter 'sst' is not assigned and could be declared final 606
Local variable 't' could be declared final 610
Parameter 't' is not assigned and could be declared final 619
Parameter 'opinion' is not assigned and could be declared final 626
Parameter 'relation' is not assigned and could be declared final 644
Local variable 'rId' could be declared final 648
Local variable 'rId' could be declared final 652
Parameter 'predicate' is not assigned and could be declared final 660
Local variable 'term' could be declared final 663
Parameter 'tree' is not assigned and could be declared final 672
Avoid reassigning parameters such as 'sent' 676
Parameter 'tree' is not assigned and could be declared final 676
Parameter 'sent' is not assigned and could be declared final 700
Parameter 'constituencyString' is not assigned and could be declared final 700
Parameter 'layer' is not assigned and could be declared final 707
Parameter 'sent' is not assigned and could be declared final 714
Parameter 'term' is not assigned and could be declared final 714
Local variable 'sentences' could be declared final 730
Local variable 'sentNumsSet' could be declared final 731
Local variable 'sentNumsList' could be declared final 732
Local variable 'i' could be declared final 734
Local variable 'wfs' could be declared final 735
Parameter 'term' is not assigned and could be declared final 741
Parameter 'sent' is not assigned and could be declared final 748
Parameter 'sent' is not assigned and could be declared final 755
Parameter 'wf' is not assigned and could be declared final 759
Local variable 'terms' could be declared final 760
Parameter 'wf' is not assigned and could be declared final 767
Local variable 'terms' could be declared final 768
Parameter 'wfs' is not assigned and could be declared final 778
Local variable 'terms' could be declared final 779
Local variable 'wf' could be declared final 780
Parameter 'source' is not assigned and could be declared final 786
Parameter 'term' is not assigned and could be declared final 786
Local variable 'marks' could be declared final 787
Local variable 'sourceMarks' could be declared final 791
Parameter 'term' is not assigned and could be declared final 795
Local variable 'deps' could be declared final 796
Parameter 'term' is not assigned and could be declared final 800
Local variable 'chunks' could be declared final 801
Parameter 'term' is not assigned and could be declared final 805
Avoid empty catch blocks 809810
Parameter 'term' is not assigned and could be declared final 814
Local variable 'corefs' could be declared final 815
Parameter 'wf' is not assigned and could be declared final 819
Local variable 'timeExs' could be declared final 820
Parameter 'term' is not assigned and could be declared final 824
Local variable 'properties' could be declared final 825
Parameter 'term' is not assigned and could be declared final 829
Local variable 'categories' could be declared final 830
Parameter 'term' is not assigned and could be declared final 834
Local variable 'opinions' could be declared final 835
Parameter 'relational' is not assigned and could be declared final 839
Local variable 'relations' could be declared final 840
Parameter 'term' is not assigned and could be declared final 844
Local variable 'predicates' could be declared final 845
Parameter 'terms' is not assigned and could be declared final 849
Local variable 'deps' could be declared final 850
Local variable 'term' could be declared final 851
Parameter 'terms' is not assigned and could be declared final 857
Local variable 'chunks' could be declared final 858
Local variable 'term' could be declared final 859
Parameter 'terms' is not assigned and could be declared final 865
Local variable 'entities' could be declared final 866
Local variable 'term' could be declared final 867
Parameter 'terms' is not assigned and could be declared final 873
Local variable 'corefs' could be declared final 874
Local variable 'term' could be declared final 875
Parameter 'wfs' is not assigned and could be declared final 881
Local variable 'timeExs' could be declared final 882
Local variable 'wf' could be declared final 883
Parameter 'terms' is not assigned and could be declared final 889
Local variable 'properties' could be declared final 890
Local variable 'term' could be declared final 891
Parameter 'terms' is not assigned and could be declared final 897
Local variable 'categories' could be declared final 898
Local variable 'term' could be declared final 899
Parameter 'terms' is not assigned and could be declared final 905
Local variable 'opinions' could be declared final 906
Local variable 'term' could be declared final 907
Parameter 'relationals' is not assigned and could be declared final 913
Local variable 'relations' could be declared final 914
Local variable 'relational' could be declared final 915
Parameter 'terms' is not assigned and could be declared final 921
Local variable 'predicates' could be declared final 922
Local variable 'term' could be declared final 923
Parameter 'wfIds' is not assigned and could be declared final 943
Local variable 'terms' could be declared final 944
Local variable 'wfId' could be declared final 945
Parameter 'layer' is not assigned and could be declared final 951
The method 'removeLayer' has a Cyclomatic Complexity of 16. 9511002
The method 'removeLayer' has a Standard Cyclomatic Complexity of 16. 9511002
Avoid really long methods. 10051113
The method removeAnnotation() has an NCSS line count of 100 10051113
The method 'removeAnnotation' has a Modified Cyclomatic Complexity of 34. 10051113
The method 'removeAnnotation' has a Cyclomatic Complexity of 34. 10051113
The method 'removeAnnotation' has a Standard Cyclomatic Complexity of 34. 10051113
Parameter 'annotation' is not assigned and could be declared final 1005
Local variable 'term' could be declared final 1007
Local variable 'wf' could be declared final 1009
Local variable 'dep' could be declared final 1019
Local variable 'entity' could be declared final 1033
Local variable 'term' could be declared final 1035
Local variable 'timex3' could be declared final 1045
Local variable 'wf' could be declared final 1048
Local variable 'coref' could be declared final 1055
Local variable 'span' could be declared final 1057
Local variable 'term' could be declared final 1058
Local variable 'factuality' could be declared final 1064
Local variable 'wf' could be declared final 1067
Local variable 'entity' could be declared final 1073
Local variable 'wf' could be declared final 1076
Local variable 'sst' could be declared final 1082
Local variable 't' could be declared final 1085
Local variable 'predicate' could be declared final 1100
Local variable 'term' could be declared final 1102
Parameter 'hashId' is not assigned and could be declared final 1115
Parameter 'annotation' is not assigned and could be declared final 1115
Parameter 'index' is not assigned and could be declared final 1115
Local variable 'list' could be declared final 1116
Parameter 'index' is not assigned and could be declared final 1125
Parameter 'annotation' is not assigned and could be declared final 1125
Parameter 'sent' is not assigned and could be declared final 1125
Local variable 'list' could be declared final 1127

pikes-naflib - ixa/kaflib/CLink.java

Violation Line
Private field 'id' could be made final; it is only initialized in the declaration or constructor. 8
Parameter 'to' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 31
Parameter 'to' is not assigned and could be declared final 39
Parameter 'relType' is not assigned and could be declared final 51

pikes-naflib - ixa/kaflib/Chunk.java

Violation Line
Parameter 'span' is not assigned and could be declared final 24
Parameter 'cid' is not assigned and could be declared final 24
Parameter 'chunk' is not assigned and could be declared final 32
Parameter 'terms' is not assigned and could be declared final 32
Local variable 'id' could be declared final 37
Local variable 'span' could be declared final 38
Local variable 'targets' could be declared final 39
Local variable 'copiedTargets' could be declared final 40
Local variable 'term' could be declared final 41
Local variable 'copiedTerm' could be declared final 42
Local variable 'copiedHead' could be declared final 49
Parameter 'id' is not assigned and could be declared final 61
Useless parentheses. 66
Parameter 'phrase' is not assigned and could be declared final 81
Parameter 'chunkcase' is not assigned and could be declared final 93
Parameter 'term' is not assigned and could be declared final 101
Parameter 'term' is not assigned and could be declared final 105
Parameter 'isHead' is not assigned and could be declared final 105
Parameter 'span' is not assigned and could be declared final 113
Local variable 'term' could be declared final 119
Prefer StringBuffer over += for concatenating strings 121
Prefer StringBuffer over += for concatenating strings 123
Parameter 'term' is not assigned and could be declared final 129

pikes-naflib - ixa/kaflib/Comment.java

Violation Line
Avoid reassigning parameters such as 'text' 14
Avoid reassigning parameters such as 'text' 14
Avoid reassigning parameters such as 'text' 14

pikes-naflib - ixa/kaflib/Coref.java

Violation Line
Parameter 'cluster' is not assigned and could be declared final 21
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Private field 'mentions' could be made final; it is only initialized in the declaration or constructor. 28
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 31
Parameter 'mentions' is not assigned and could be declared final 34
Parameter 'coid' is not assigned and could be declared final 34
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 35
Parameter 'coref' is not assigned and could be declared final 46
Parameter 'terms' is not assigned and could be declared final 46
Local variable 'id' could be declared final 49
Local variable 'span' could be declared final 51
Local variable 'targets' could be declared final 53
Local variable 'copiedTargets' could be declared final 54
Avoid instantiating new objects inside loops 54
Local variable 'term' could be declared final 55
Local variable 'copiedTerm' could be declared final 56
Local variable 'copiedHead' could be declared final 63
Avoid instantiating new objects inside loops 64
Avoid instantiating new objects inside loops 67
Parameter 'id' is not assigned and could be declared final 76
Parameter 'type' is not assigned and could be declared final 92
Parameter 'externalRef' is not assigned and could be declared final 100
Parameter 'externalRefs' is not assigned and could be declared final 104
Parameter 'term' is not assigned and could be declared final 114
Parameter 'term' is not assigned and could be declared final 119
Parameter 'isHead' is not assigned and could be declared final 119
Parameter 'span' is not assigned and could be declared final 127
Parameter 'span' is not assigned and could be declared final 131
Local variable 'term' could be declared final 133
Prefer StringBuffer over += for concatenating strings 135
Prefer StringBuffer over += for concatenating strings 137
Local variable 'list' could be declared final 144
Local variable 'span' could be declared final 145
Parameter 'span' is not assigned and could be declared final 152

pikes-naflib - ixa/kaflib/Dep.java

Violation Line
Parameter 'to' is not assigned and could be declared final 22
Parameter 'rfunc' is not assigned and could be declared final 22
Parameter 'from' is not assigned and could be declared final 22
Parameter 'dep' is not assigned and could be declared final 28
Parameter 'terms' is not assigned and could be declared final 28
Parameter 'term' is not assigned and could be declared final 45
Parameter 'term' is not assigned and could be declared final 53
Parameter 'rfunc' is not assigned and could be declared final 61
Parameter 'depcase' is not assigned and could be declared final 73
Local variable 'idFrom' could be declared final 78
Local variable 'idTo' could be declared final 79
Local variable 'depList' could be declared final 104
Local variable 'deps' could be declared final 209

pikes-naflib - ixa/kaflib/Entity.java

Violation Line
Private field 'references' could be made final; it is only initialized in the declaration or constructor. 32
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 35
Parameter 'eid' is not assigned and could be declared final 37
Parameter 'references' is not assigned and could be declared final 37
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 38
Parameter 'entity' is not assigned and could be declared final 50
Parameter 'terms' is not assigned and could be declared final 50
Local variable 'id' could be declared final 54
Local variable 'span' could be declared final 56
Local variable 'targets' could be declared final 58
Local variable 'copiedTargets' could be declared final 59
Avoid instantiating new objects inside loops 59
Local variable 'term' could be declared final 60
Local variable 'copiedTerm' could be declared final 61
Local variable 'copiedHead' could be declared final 68
Avoid instantiating new objects inside loops 69
Avoid instantiating new objects inside loops 72
Local variable 'externalRef' could be declared final 77
Avoid instantiating new objects inside loops 78
Parameter 'id' is not assigned and could be declared final 87
Parameter 'type' is not assigned and could be declared final 99
Parameter 'named' is not assigned and could be declared final 107
Parameter 'term' is not assigned and could be declared final 117
Parameter 'term' is not assigned and could be declared final 122
Parameter 'isHead' is not assigned and could be declared final 122
Parameter 'span' is not assigned and could be declared final 130
Parameter 'resource' is not assigned and could be declared final 134
Local variable 'ref' could be declared final 135
Parameter 'externalRef' is not assigned and could be declared final 147
Parameter 'externalRefs' is not assigned and could be declared final 151
Parameter 'span' is not assigned and could be declared final 155
Local variable 'term' could be declared final 157
Prefer StringBuffer over += for concatenating strings 159
Prefer StringBuffer over += for concatenating strings 161
Local variable 'list' could be declared final 172
Local variable 'span' could be declared final 173
Parameter 'span' is not assigned and could be declared final 180

pikes-naflib - ixa/kaflib/ExternalRef.java

Violation Line
Avoid using redundant field initializer for 'source' 11
Parameter 'reference' is not assigned and could be declared final 14
Parameter 'resource' is not assigned and could be declared final 14
Parameter 'externalReference' is not assigned and could be declared final 19
Parameter 'source' is not assigned and could be declared final 33
Parameter 'val' is not assigned and could be declared final 41
Parameter 'val' is not assigned and could be declared final 49
Parameter 'val' is not assigned and could be declared final 61
Parameter 'externalRef' is not assigned and could be declared final 73
Parameter 'object' is not assigned and could be declared final 78
Local variable 'other' could be declared final 85

pikes-naflib - ixa/kaflib/Factuality.java

Violation Line
Parameter 'word' is not assigned and could be declared final 15
Parameter 'word' is not assigned and could be declared final 23
Parameter 'part' is not assigned and could be declared final 31
Parameter 'prediction' is not assigned and could be declared final 35
Parameter 'confidence' is not assigned and could be declared final 35
Local variable 'p' could be declared final 51
Parameter 'confidence' is not assigned and could be declared final 66
Parameter 'prediction' is not assigned and could be declared final 66
Parameter 'prediction' is not assigned and could be declared final 75
Parameter 'confidence' is not assigned and could be declared final 83

pikes-naflib - ixa/kaflib/Feature.java

Violation Line
Private field 'references' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'id' is not assigned and could be declared final 22
Parameter 'references' is not assigned and could be declared final 22
Parameter 'lemma' is not assigned and could be declared final 22
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 23
Parameter 'terms' is not assigned and could be declared final 35
Parameter 'feature' is not assigned and could be declared final 35
Local variable 'id' could be declared final 39
Local variable 'span' could be declared final 41
Local variable 'targets' could be declared final 43
Local variable 'copiedTargets' could be declared final 44
Avoid instantiating new objects inside loops 44
Local variable 'term' could be declared final 45
Local variable 'copiedTerm' could be declared final 46
Local variable 'copiedHead' could be declared final 53
Avoid instantiating new objects inside loops 54
Avoid instantiating new objects inside loops 57
Local variable 'externalRef' could be declared final 62
Avoid instantiating new objects inside loops 63
Parameter 'id' is not assigned and could be declared final 79
Parameter 'lemma' is not assigned and could be declared final 87
Parameter 'term' is not assigned and could be declared final 97
Parameter 'term' is not assigned and could be declared final 102
Parameter 'isHead' is not assigned and could be declared final 102
Parameter 'span' is not assigned and could be declared final 110
Parameter 'externalRef' is not assigned and could be declared final 118
Parameter 'externalRefs' is not assigned and could be declared final 122
Parameter 'span' is not assigned and could be declared final 126
Local variable 'term' could be declared final 128
Prefer StringBuffer over += for concatenating strings 130
Prefer StringBuffer over += for concatenating strings 132
Local variable 'list' could be declared final 144
Local variable 'span' could be declared final 145
Parameter 'span' is not assigned and could be declared final 152

pikes-naflib - ixa/kaflib/GenericId.java

Violation Line
Private field 'prefix' could be made final; it is only initialized in the declaration or constructor. 15
Avoid using redundant field initializer for 'counter' 16
Avoid using redundant field initializer for 'inconsistent' 17
Parameter 'id' is not assigned and could be declared final 26
Local variable 'idNum' could be declared final 28
Parameter 'prefix' is not assigned and could be declared final 37
Parameter 'id' is not assigned and could be declared final 41
Local variable 'matcher' could be declared final 42

pikes-naflib - ixa/kaflib/IReferable.java

Violation Line
Parameter 'o' is not assigned and could be declared final 7

pikes-naflib - ixa/kaflib/IdManager.java

Violation Line
Too many fields 1270
Private field 'componentCounter' could be made final; it is only initialized in the declaration or constructor. 37
Avoid using redundant field initializer for 'inconsistentIdComponent' 38
Parameter 'termId' is not assigned and could be declared final 41
Avoid declaring a variable if it is unreferenced before a possible exit point. 42
Avoid declaring a variable if it is unreferenced before a possible exit point. 43
Parameter 'id' is not assigned and could be declared final 59
Parameter 'termId' is not assigned and could be declared final 59
Avoid declaring a variable if it is unreferenced before a possible exit point. 60
Local variable 'matcher' could be declared final 61

pikes-naflib - ixa/kaflib/KAFDocument.java

Violation Line
Possible God class (WMC=328, ATFD=146, TCC=3.778932451582428E-4) 12161
The class 'KAFDocument' has a Modified Cyclomatic Complexity of 2 (Highest = 14). 192161
The class 'KAFDocument' has a Cyclomatic Complexity of 2 (Highest = 14). 192161
The class 'KAFDocument' has a Standard Cyclomatic Complexity of 2 (Highest = 14). 192161
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 60
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 65
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 70
Private field 'lps' could be made final; it is only initialized in the declaration or constructor. 70
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 74
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 79
Private field 'idManager' could be made final; it is only initialized in the declaration or constructor. 79
Private field 'annotationContainer' could be made final; it is only initialized in the declaration or constructor. 84
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 84
Parameter 'version' is not assigned and could be declared final 89
Parameter 'lang' is not assigned and could be declared final 89
Parameter 'file' is not assigned and could be declared final 102
Parameter 'stream' is not assigned and could be declared final 113
Parameter 'lang' is not assigned and could be declared final 126
Parameter 'version' is not assigned and could be declared final 140
Parameter 'name' is not assigned and could be declared final 154
Parameter 'layer' is not assigned and could be declared final 154
Local variable 'lp' could be declared final 155
Parameter 'linguisticProcessor' is not assigned and could be declared final 165
Parameter 'layer' is not assigned and could be declared final 165
Parameter 'lps' is not assigned and could be declared final 175
Local variable 'entry' could be declared final 176
Local variable 'layerLps' could be declared final 177
Local variable 'lp' could be declared final 178
Local variable 'newLp' could be declared final 179
Parameter 'name' is not assigned and could be declared final 207
Parameter 'layer' is not assigned and could be declared final 207
Parameter 'version' is not assigned and could be declared final 207
Local variable 'layerLPs' could be declared final 208
Local variable 'lp' could be declared final 212
Parameter 'layer' is not assigned and could be declared final 226
Parameter 'name' is not assigned and could be declared final 226
Local variable 'layerLPs' could be declared final 227
Local variable 'lp' could be declared final 231
Avoid instantiation through private constructors from outside of the constructors class. 243
Avoid instantiation through private constructors from outside of the constructors class. 252
Parameter 'rawText' is not assigned and could be declared final 270
Parameter 'sent' is not assigned and could be declared final 281
Parameter 'form' is not assigned and could be declared final 281
Parameter 'id' is not assigned and could be declared final 281
Local variable 'newWF' could be declared final 283
Parameter 'offset' is not assigned and could be declared final 295
Parameter 'form' is not assigned and could be declared final 295
Local variable 'newId' could be declared final 296
Local variable 'offsetVal' could be declared final 297
Local variable 'newWF' could be declared final 298
Parameter 'offset' is not assigned and could be declared final 311
Parameter 'sent' is not assigned and could be declared final 311
Parameter 'form' is not assigned and could be declared final 311
Local variable 'newId' could be declared final 312
Local variable 'newWF' could be declared final 313
Parameter 'span' is not assigned and could be declared final 330
Parameter 'id' is not assigned and could be declared final 330
Local variable 'newTerm' could be declared final 332
Parameter 'isComponent' is not assigned and could be declared final 337
Parameter 'id' is not assigned and could be declared final 337
Parameter 'span' is not assigned and could be declared final 337
Local variable 'newTerm' could be declared final 339
Parameter 'position' is not assigned and could be declared final 346
Parameter 'span' is not assigned and could be declared final 346
Parameter 'id' is not assigned and could be declared final 346
Local variable 'newTerm' could be declared final 348
Parameter 'span' is not assigned and could be declared final 362
Local variable 'newId' could be declared final 363
Local variable 'newTerm' could be declared final 364
Parameter 'span' is not assigned and could be declared final 378
Parameter 'morphofeat' is not assigned and could be declared final 378
Local variable 'newId' could be declared final 379
Local variable 'newTerm' could be declared final 380
Parameter 'lemma' is not assigned and could be declared final 386
Parameter 'terms' is not assigned and could be declared final 386
Local variable 'span' could be declared final 387
Local variable 'term' could be declared final 388
Local variable 'newId' could be declared final 391
Local variable 'compound' could be declared final 392
Local variable 'term' could be declared final 394
Local variable 'newSentiment' could be declared final 408
Consider simply returning the value vs storing it in local variable 'newSentiment' 409
Parameter 'source' is not assigned and could be declared final 412
Parameter 'id' is not assigned and could be declared final 412
Parameter 'span' is not assigned and could be declared final 412
Local variable 'newMark' could be declared final 414
Parameter 'source' is not assigned and could be declared final 419
Parameter 'span' is not assigned and could be declared final 419
Local variable 'newId' could be declared final 420
Local variable 'newMark' could be declared final 421
Parameter 'to' is not assigned and could be declared final 434
Parameter 'rfunc' is not assigned and could be declared final 434
Parameter 'from' is not assigned and could be declared final 434
Local variable 'newDep' could be declared final 435
Parameter 'phrase' is not assigned and could be declared final 449
Parameter 'id' is not assigned and could be declared final 449
Parameter 'span' is not assigned and could be declared final 449
Local variable 'newChunk' could be declared final 451
Parameter 'span' is not assigned and could be declared final 465
Parameter 'phrase' is not assigned and could be declared final 465
Local variable 'newId' could be declared final 466
Local variable 'newChunk' could be declared final 467
Parameter 'references' is not assigned and could be declared final 481
Parameter 'id' is not assigned and could be declared final 481
Local variable 'newEntity' could be declared final 483
Parameter 'references' is not assigned and could be declared final 495
Local variable 'newId' could be declared final 496
Local variable 'newEntity' could be declared final 497
Parameter 'mentions' is not assigned and could be declared final 509
Parameter 'id' is not assigned and could be declared final 509
Local variable 'newCoref' could be declared final 511
Parameter 'mentions' is not assigned and could be declared final 522
Local variable 'newId' could be declared final 523
Local variable 'newCoref' could be declared final 524
Parameter 'mentions' is not assigned and could be declared final 536
Parameter 'id' is not assigned and could be declared final 536
Parameter 'type' is not assigned and could be declared final 536
Local variable 'newTimex3' could be declared final 538
Parameter 'type' is not assigned and could be declared final 550
Parameter 'mentions' is not assigned and could be declared final 550
Local variable 'newId' could be declared final 551
Local variable 'newTimex3' could be declared final 552
Parameter 'id' is not assigned and could be declared final 563
Parameter 'type' is not assigned and could be declared final 563
Local variable 'newTimex3' could be declared final 565
Parameter 'type' is not assigned and could be declared final 574
Local variable 'newId' could be declared final 575
Local variable 'newTimex3' could be declared final 576
Parameter 'from' is not assigned and could be declared final 581
Parameter 'relType' is not assigned and could be declared final 581
Parameter 'id' is not assigned and could be declared final 581
Parameter 'to' is not assigned and could be declared final 581
Local variable 'newTLink' could be declared final 583
Parameter 'from' is not assigned and could be declared final 588
Parameter 'to' is not assigned and could be declared final 588
Parameter 'relType' is not assigned and could be declared final 588
Local variable 'newId' could be declared final 589
Local variable 'newTLink' could be declared final 590
Parameter 'id' is not assigned and could be declared final 595
Parameter 'from' is not assigned and could be declared final 595
Parameter 'to' is not assigned and could be declared final 595
Local variable 'newCLink' could be declared final 597
Parameter 'to' is not assigned and could be declared final 602
Parameter 'from' is not assigned and could be declared final 602
Local variable 'newId' could be declared final 603
Local variable 'newCLink' could be declared final 604
Parameter 'term' is not assigned and could be declared final 616
Local variable 'factuality' could be declared final 617
Parameter 'span' is not assigned and could be declared final 629
Parameter 'id' is not assigned and could be declared final 629
Local variable 'linkedEntity' could be declared final 630
Parameter 'span' is not assigned and could be declared final 641
Local variable 'newId' could be declared final 642
Local variable 'linkedEntity' could be declared final 643
Parameter 'span' is not assigned and could be declared final 654
Local variable 'newId' could be declared final 655
Local variable 'sst' could be declared final 656
Parameter 'span' is not assigned and could be declared final 661
Parameter 'type' is not assigned and could be declared final 661
Parameter 'label' is not assigned and could be declared final 661
Local variable 'newId' could be declared final 662
Local variable 'sst' could be declared final 663
Local variable 'newId' could be declared final 677
Local variable 't' could be declared final 678
Parameter 'probability' is not assigned and could be declared final 683
Parameter 'label' is not assigned and could be declared final 683
Local variable 'newId' could be declared final 684
Local variable 't' could be declared final 685
Parameter 'references' is not assigned and could be declared final 700
Parameter 'lemma' is not assigned and could be declared final 700
Parameter 'id' is not assigned and could be declared final 700
Local variable 'newProperty' could be declared final 702
Parameter 'references' is not assigned and could be declared final 714
Parameter 'lemma' is not assigned and could be declared final 714
Local variable 'newId' could be declared final 715
Local variable 'newProperty' could be declared final 716
Parameter 'references' is not assigned and could be declared final 729
Parameter 'id' is not assigned and could be declared final 729
Parameter 'lemma' is not assigned and could be declared final 729
Local variable 'newCategory' could be declared final 731
Parameter 'lemma' is not assigned and could be declared final 743
Parameter 'references' is not assigned and could be declared final 743
Local variable 'newId' could be declared final 744
Local variable 'newCategory' could be declared final 745
Local variable 'newId' could be declared final 756
Local variable 'newOpinion' could be declared final 757
Parameter 'id' is not assigned and could be declared final 767
Local variable 'newOpinion' could be declared final 769
Parameter 'from' is not assigned and could be declared final 781
Parameter 'to' is not assigned and could be declared final 781
Local variable 'newId' could be declared final 782
Local variable 'newRelation' could be declared final 783
Parameter 'id' is not assigned and could be declared final 796
Parameter 'to' is not assigned and could be declared final 796
Parameter 'from' is not assigned and could be declared final 796
Local variable 'newRelation' could be declared final 798
Parameter 'id' is not assigned and could be declared final 810
Parameter 'span' is not assigned and could be declared final 810
Local variable 'newPredicate' could be declared final 812
Parameter 'span' is not assigned and could be declared final 823
Local variable 'newId' could be declared final 824
Local variable 'newPredicate' could be declared final 825
Parameter 'id' is not assigned and could be declared final 839
Parameter 'span' is not assigned and could be declared final 839
Parameter 'predicate' is not assigned and could be declared final 839
Parameter 'semRole' is not assigned and could be declared final 839
Local variable 'newRole' could be declared final 841
Consider simply returning the value vs storing it in local variable 'newRole' 842
Parameter 'predicate' is not assigned and could be declared final 853
Parameter 'span' is not assigned and could be declared final 853
Parameter 'semRole' is not assigned and could be declared final 853
Local variable 'newId' could be declared final 854
Local variable 'newRole' could be declared final 855
Consider simply returning the value vs storing it in local variable 'newRole' 856
Parameter 'resource' is not assigned and could be declared final 866
Parameter 'reference' is not assigned and could be declared final 866
Parameter 'root' is not assigned and could be declared final 870
Parameter 'root' is not assigned and could be declared final 874
Parameter 'sentence' is not assigned and could be declared final 874
Local variable 'tree' could be declared final 875
Parameter 'sent' is not assigned and could be declared final 880
Parameter 'constituencyString' is not assigned and could be declared final 880
Parameter 'parseOut' is not assigned and could be declared final 884
Parameter 'sentence' is not assigned and could be declared final 888
Parameter 'parseOut' is not assigned and could be declared final 888
Parameter 'label' is not assigned and could be declared final 892
Parameter 'id' is not assigned and could be declared final 892
Local variable 'tn' could be declared final 893
Local variable 'newEdgeId' could be declared final 894
Parameter 'label' is not assigned and could be declared final 899
Local variable 'newId' could be declared final 900
Local variable 'newEdgeId' could be declared final 901
Local variable 'newNonterminal' could be declared final 902
Parameter 'id' is not assigned and could be declared final 907
Parameter 'span' is not assigned and could be declared final 907
Local variable 'tn' could be declared final 908
Local variable 'newEdgeId' could be declared final 909
Parameter 'span' is not assigned and could be declared final 914
Local variable 'newId' could be declared final 915
Local variable 'newEdgeId' could be declared final 916
Local variable 'tn' could be declared final 917
Parameter 'targets' is not assigned and could be declared final 926
Parameter 'head' is not assigned and could be declared final 930
Parameter 'targets' is not assigned and could be declared final 930
Parameter 'targets' is not assigned and could be declared final 938
Parameter 'targets' is not assigned and could be declared final 942
Parameter 'head' is not assigned and could be declared final 942
Parameter 'layer' is not assigned and could be declared final 946
Local variable 'wfs' could be declared final 976
Local variable 'firstSentence' could be declared final 977
Local variable 'lastSentence' could be declared final 978
Parameter 'para' is not assigned and could be declared final 982
Parameter 'wfs' is not assigned and could be declared final 1010
Parameter 'sent' is not assigned and could be declared final 1014
Parameter 'source' is not assigned and could be declared final 1022
Parameter 'label' is not assigned and could be declared final 1079
Parameter 'sent' is not assigned and could be declared final 1104
Local variable 'wfs' could be declared final 1105
Parameter 'para' is not assigned and could be declared final 1109
Parameter 'sent' is not assigned and could be declared final 1113
Local variable 'terms' could be declared final 1114
Parameter 'para' is not assigned and could be declared final 1118
Parameter 'sent' is not assigned and could be declared final 1122
Local variable 'entities' could be declared final 1123
Parameter 'para' is not assigned and could be declared final 1127
Parameter 'sent' is not assigned and could be declared final 1131
Parameter 'para' is not assigned and could be declared final 1135
Parameter 'sent' is not assigned and could be declared final 1139
Parameter 'para' is not assigned and could be declared final 1143
Parameter 'sent' is not assigned and could be declared final 1147
Local variable 'result' could be declared final 1148
Parameter 'para' is not assigned and could be declared final 1152
Parameter 'sent' is not assigned and could be declared final 1156
Local variable 'typeTreeIndex' could be declared final 1157
Local variable 'typeTrees' could be declared final 1161
Parameter 'kaf' is not assigned and could be declared final 1169
The method 'copyAnnotationsToKAF' has a Standard Cyclomatic Complexity of 11. 11691254
Avoid long parameter lists. 11691182
The method 'copyAnnotationsToKAF' has a Modified Cyclomatic Complexity of 11. 11691254
The method 'copyAnnotationsToKAF' has a Cyclomatic Complexity of 11. 11691254
The method copyAnnotationsToKAF() has an NPath complexity of 1024 11691254
Parameter 'wfs' is not assigned and could be declared final 1170
Parameter 'terms' is not assigned and could be declared final 1171
Parameter 'deps' is not assigned and could be declared final 1172
Parameter 'chunks' is not assigned and could be declared final 1173
Parameter 'entities' is not assigned and could be declared final 1174
Parameter 'corefs' is not assigned and could be declared final 1175
Parameter 'timeExs' is not assigned and could be declared final 1176
Avoid unused method parameters such as 'timeExs'. 1176
Parameter 'properties' is not assigned and could be declared final 1177
Parameter 'categories' is not assigned and could be declared final 1178
Parameter 'opinions' is not assigned and could be declared final 1179
Parameter 'relations' is not assigned and could be declared final 1180
Avoid unused method parameters such as 'predicates'. 1181
Parameter 'predicates' is not assigned and could be declared final 1181
Local variable 'copiedWFs' could be declared final 1183
Local variable 'copiedTerms' could be declared final 1184
Local variable 'copiedRelationals' could be declared final 1185
Local variable 'wf' could be declared final 1188
Avoid instantiating new objects inside loops 1189
Local variable 'wfCopy' could be declared final 1189
Local variable 'term' could be declared final 1194
Local variable 'termCopy' could be declared final 1195
Avoid instantiating new objects inside loops 1195
Local variable 'dep' could be declared final 1200
Local variable 'depCopy' could be declared final 1201
Avoid instantiating new objects inside loops 1201
Local variable 'chunk' could be declared final 1205
Local variable 'chunkCopy' could be declared final 1206
Avoid instantiating new objects inside loops 1206
Local variable 'entity' could be declared final 1210
Avoid instantiating new objects inside loops 1211
Local variable 'entityCopy' could be declared final 1211
Local variable 'coref' could be declared final 1216
Avoid instantiating new objects inside loops 1217
Local variable 'corefCopy' could be declared final 1217
Local variable 'property' could be declared final 1226
Local variable 'propertyCopy' could be declared final 1227
Avoid instantiating new objects inside loops 1227
Local variable 'category' could be declared final 1232
Local variable 'categoryCopy' could be declared final 1233
Avoid instantiating new objects inside loops 1233
Local variable 'opinion' could be declared final 1238
Local variable 'opinionCopy' could be declared final 1239
Avoid instantiating new objects inside loops 1239
Local variable 'relation' could be declared final 1243
Local variable 'relationCopy' could be declared final 1244
Avoid instantiating new objects inside loops 1244
Parameter 'wfs' is not assigned and could be declared final 1264
Local variable 'terms' could be declared final 1265
Local variable 'deps' could be declared final 1266
Local variable 'chunks' could be declared final 1267
Local variable 'entities' could be declared final 1268
Local variable 'corefs' could be declared final 1269
Local variable 'timeExs' could be declared final 1270
Local variable 'properties' could be declared final 1271
Local variable 'categories' could be declared final 1272
Local variable 'predicates' could be declared final 1274
Local variable 'relationals' could be declared final 1275
Local variable 'relations' could be declared final 1279
Local variable 'newKaf' could be declared final 1281
The method 'join' has a Cyclomatic Complexity of 14. 12911367
Parameter 'doc' is not assigned and could be declared final 1291
The method 'join' has a Standard Cyclomatic Complexity of 14. 12911367
The method 'join' has a Modified Cyclomatic Complexity of 14. 12911367
The method join() has an NPath complexity of 4096 12911367
Local variable 'copiedWFs' could be declared final 1292
Local variable 'copiedTerms' could be declared final 1293
Local variable 'copiedRelationals' could be declared final 1294
Local variable 'lps' could be declared final 1296
Local variable 'entry' could be declared final 1297
Local variable 'layer' could be declared final 1298
Local variable 'lpList' could be declared final 1299
Local variable 'lp' could be declared final 1300
Local variable 'wf' could be declared final 1308
Avoid instantiating new objects inside loops 1309
Local variable 'wfCopy' could be declared final 1309
Local variable 'term' could be declared final 1314
Local variable 'termCopy' could be declared final 1315
Avoid instantiating new objects inside loops 1315
Local variable 'dep' could be declared final 1320
Local variable 'depCopy' could be declared final 1321
Avoid instantiating new objects inside loops 1321
Local variable 'chunk' could be declared final 1325
Local variable 'chunkCopy' could be declared final 1326
Avoid instantiating new objects inside loops 1326
Local variable 'entity' could be declared final 1330
Avoid instantiating new objects inside loops 1331
Local variable 'entityCopy' could be declared final 1331
Local variable 'coref' could be declared final 1336
Local variable 'corefCopy' could be declared final 1337
Avoid instantiating new objects inside loops 1337
Local variable 'property' could be declared final 1346
Local variable 'propertyCopy' could be declared final 1347
Avoid instantiating new objects inside loops 1347
Local variable 'category' could be declared final 1352
Avoid instantiating new objects inside loops 1353
Local variable 'categoryCopy' could be declared final 1353
Local variable 'opinion' could be declared final 1358
Avoid instantiating new objects inside loops 1359
Local variable 'opinionCopy' could be declared final 1359
Local variable 'relation' could be declared final 1363
Local variable 'relationCopy' could be declared final 1364
Avoid instantiating new objects inside loops 1364
Parameter 'wf' is not assigned and could be declared final 1369
Local variable 'newId' could be declared final 1370
Parameter 'term' is not assigned and could be declared final 1376
Local variable 'newId' could be declared final 1377
Parameter 'dep' is not assigned and could be declared final 1383
Parameter 'chunk' is not assigned and could be declared final 1387
Local variable 'newId' could be declared final 1388
Parameter 'entity' is not assigned and could be declared final 1394
Local variable 'newId' could be declared final 1395
Parameter 'coref' is not assigned and could be declared final 1401
Local variable 'newId' could be declared final 1402
Parameter 'timex3' is not assigned and could be declared final 1408
Local variable 'newId' could be declared final 1409
Parameter 'property' is not assigned and could be declared final 1415
Local variable 'newId' could be declared final 1416
Parameter 'category' is not assigned and could be declared final 1422
Local variable 'newId' could be declared final 1423
Parameter 'opinion' is not assigned and could be declared final 1429
Local variable 'newId' could be declared final 1430
Parameter 'relation' is not assigned and could be declared final 1436
Local variable 'newId' could be declared final 1437
Parameter 'filename' is not assigned and could be declared final 1448
Parameter 'file' is not assigned and could be declared final 1457
Parameter 'layer' is not assigned and could be declared final 1480
Parameter 'version' is not assigned and could be declared final 1480
Parameter 'name' is not assigned and could be declared final 1480
Local variable 'lp' could be declared final 1481
Parameter 'version' is not assigned and could be declared final 1489
Parameter 'name' is not assigned and could be declared final 1489
Parameter 'layer' is not assigned and could be declared final 1489
Parameter 'timestamp' is not assigned and could be declared final 1489
Local variable 'lp' could be declared final 1490
Parameter 'id' is not assigned and could be declared final 1499
Parameter 'form' is not assigned and could be declared final 1499
Parameter 'form' is not assigned and could be declared final 1506
Parameter 'id' is not assigned and could be declared final 1513
Parameter 'form' is not assigned and could be declared final 1513
Parameter 'form' is not assigned and could be declared final 1520
Parameter 'offset' is not assigned and could be declared final 1527
Parameter 'form' is not assigned and could be declared final 1527
Parameter 'lemma' is not assigned and could be declared final 1534
Parameter 'pos' is not assigned and could be declared final 1534
Parameter 'span' is not assigned and could be declared final 1534
Parameter 'id' is not assigned and could be declared final 1534
Parameter 'type' is not assigned and could be declared final 1534
Local variable 'term' could be declared final 1535
Parameter 'type' is not assigned and could be declared final 1545
Parameter 'span' is not assigned and could be declared final 1545
Parameter 'pos' is not assigned and could be declared final 1545
Parameter 'lemma' is not assigned and could be declared final 1545
Local variable 'term' could be declared final 1546
Parameter 'type' is not assigned and could be declared final 1556
Parameter 'span' is not assigned and could be declared final 1556
Parameter 'morphofeat' is not assigned and could be declared final 1556
Parameter 'pos' is not assigned and could be declared final 1556
Parameter 'lemma' is not assigned and could be declared final 1556
Local variable 'newTerm' could be declared final 1557
Parameter 'lemma' is not assigned and could be declared final 1567
Parameter 'type' is not assigned and could be declared final 1567
Parameter 'pos' is not assigned and could be declared final 1567
Parameter 'wfs' is not assigned and could be declared final 1567
Parameter 'id' is not assigned and could be declared final 1567
Parameter 'type' is not assigned and could be declared final 1574
Parameter 'wfs' is not assigned and could be declared final 1574
Parameter 'pos' is not assigned and could be declared final 1574
Parameter 'lemma' is not assigned and could be declared final 1574
Parameter 'type' is not assigned and could be declared final 1581
Parameter 'lemma' is not assigned and could be declared final 1581
Parameter 'wfs' is not assigned and could be declared final 1581
Parameter 'morphofeat' is not assigned and could be declared final 1581
Parameter 'pos' is not assigned and could be declared final 1581
Parameter 'from' is not assigned and could be declared final 1630
Parameter 'rfunc' is not assigned and could be declared final 1630
Parameter 'to' is not assigned and could be declared final 1630
Parameter 'head' is not assigned and could be declared final 1637
Parameter 'id' is not assigned and could be declared final 1637
Parameter 'terms' is not assigned and could be declared final 1637
Parameter 'phrase' is not assigned and could be declared final 1637
Parameter 'phrase' is not assigned and could be declared final 1644
Parameter 'terms' is not assigned and could be declared final 1644
Parameter 'head' is not assigned and could be declared final 1644
Parameter 'references' is not assigned and could be declared final 1651
Parameter 'type' is not assigned and could be declared final 1651
Parameter 'id' is not assigned and could be declared final 1651
Local variable 'spanReferences' could be declared final 1652
Local variable 'list' could be declared final 1653
Local variable 'entity' could be declared final 1656
Parameter 'type' is not assigned and could be declared final 1664
Parameter 'references' is not assigned and could be declared final 1664
Local variable 'spanReferences' could be declared final 1665
Local variable 'list' could be declared final 1666
Local variable 'entity' could be declared final 1669
Parameter 'id' is not assigned and could be declared final 1677
Parameter 'references' is not assigned and could be declared final 1677
Local variable 'spanReferences' could be declared final 1678
Local variable 'list' could be declared final 1679
Parameter 'references' is not assigned and could be declared final 1688
Local variable 'spanReferences' could be declared final 1689
Local variable 'list' could be declared final 1690
Parameter 'id' is not assigned and could be declared final 1699
Parameter 'lemma' is not assigned and could be declared final 1699
Parameter 'references' is not assigned and could be declared final 1699
Local variable 'spanReferences' could be declared final 1700
Local variable 'list' could be declared final 1701
Parameter 'lemma' is not assigned and could be declared final 1710
Parameter 'references' is not assigned and could be declared final 1710
Local variable 'spanReferences' could be declared final 1711
Local variable 'list' could be declared final 1712
Parameter 'id' is not assigned and could be declared final 1721
Parameter 'references' is not assigned and could be declared final 1721
Parameter 'lemma' is not assigned and could be declared final 1721
Local variable 'spanReferences' could be declared final 1722
Local variable 'list' could be declared final 1723
Parameter 'references' is not assigned and could be declared final 1732
Parameter 'lemma' is not assigned and could be declared final 1732
Local variable 'spanReferences' could be declared final 1733
Local variable 'list' could be declared final 1734
Parameter 'id' is not assigned and could be declared final 1750
Parameter 'to' is not assigned and could be declared final 1757
Parameter 'from' is not assigned and could be declared final 1757
Parameter 'from' is not assigned and could be declared final 1764
Parameter 'id' is not assigned and could be declared final 1764
Parameter 'to' is not assigned and could be declared final 1764
Parameter 'resource' is not assigned and could be declared final 1771
Parameter 'reference' is not assigned and could be declared final 1771
Parameter 'term' is not assigned and could be declared final 1781
Parameter 'isHead' is not assigned and could be declared final 1792
Parameter 'term' is not assigned and could be declared final 1792
Parameter 'layer' is not assigned and could be declared final 1796
Parameter 'annotations' is not assigned and could be declared final 1800
Local variable 'annotation' could be declared final 1801
Parameter 'annotation' is not assigned and could be declared final 1806
Parameter 'list' is not assigned and could be declared final 1813
Local variable 'span' could be declared final 1814
Local variable 'elem' could be declared final 1815
Parameter 'head' is not assigned and could be declared final 1824
Parameter 'list' is not assigned and could be declared final 1824
Local variable 'span' could be declared final 1825
Local variable 'elem' could be declared final 1826
Parameter 'list' is not assigned and could be declared final 1840
Local variable 'span' could be declared final 1841
Local variable 'target' could be declared final 1842
Parameter 'span' is not assigned and could be declared final 1856
Local variable 'list' could be declared final 1857
Local variable 't' could be declared final 1858
Useless parentheses. 1859
Parameter 'wfIds' is not assigned and could be declared final 1870
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 1876
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 1878
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1881
Avoid appending characters as strings in StringBuffer.append. 1916
The method 'getDepPathRegex' has a Standard Cyclomatic Complexity of 10. 19211959
The method 'getDepPathRegex' has a Modified Cyclomatic Complexity of 10. 19211959
The method 'getDepPathRegex' has a Cyclomatic Complexity of 11. 19211959
Parameter 'pattern' is not assigned and could be declared final 1921
Local variable 'pattern2' could be declared final 1930
These nested if statements could be combined 20512053
Parameter 'descendents' is not assigned and could be declared final 2073
These nested if statements could be combined 20852087
Parameter 'pattern' is not assigned and could be declared final 2094
Parameter 'descendents' is not assigned and could be declared final 2094
Local variable 'result' could be declared final 2095
Parameter 'term' is not assigned and could be declared final 2107
Parameter 'term' is not assigned and could be declared final 2116
Parameter 'term' is not assigned and could be declared final 2120
Parameter 'sent' is not assigned and could be declared final 2124
Local variable 'timexs' could be declared final 2125
Consider using varargs for methods or constructors which take an array the last parameter. 2152
Parameter 'args' is not assigned and could be declared final 2152
Local variable 'file' could be declared final 2153
Local variable 'document' could be declared final 2156
Avoid unused local variables such as 'document'. 2156

pikes-naflib - ixa/kaflib/KAFNotValidException.java

Violation Line
Parameter 'msg' is not assigned and could be declared final 9

pikes-naflib - ixa/kaflib/LinguisticProcessor.java

Violation Line
Parameter 'layer' is not assigned and could be declared final 27
Local variable 'date' could be declared final 35
Local variable 'sdf' could be declared final 37
When instantiating a SimpleDateFormat object, specify a Locale 37
Local variable 'formattedDate' could be declared final 38
Consider simply returning the value vs storing it in local variable 'formattedDate' 39
Parameter 'name' is not assigned and could be declared final 42
Parameter 'layer' is not assigned and could be declared final 42
Parameter 'name' is not assigned and could be declared final 47
Parameter 'timestamp' is not assigned and could be declared final 59
Local variable 'timestamp' could be declared final 64
Parameter 'timestamp' is not assigned and could be declared final 76
Local variable 'timestamp' could be declared final 81
Parameter 'timestamp' is not assigned and could be declared final 93
Local variable 'timestamp' could be declared final 98
Parameter 'version' is not assigned and could be declared final 110

pikes-naflib - ixa/kaflib/LinkedEntity.java

Violation Line
Avoid unused imports such as 'org.openrdf.query.algebra.Str' 3
Avoid unused imports such as 'java.util.ArrayList' 5
Private field 'mentions' could be made final; it is only initialized in the declaration or constructor. 32
Parameter 'linkedEntityId' is not assigned and could be declared final 34
Parameter 'linkedEntityId' is not assigned and could be declared final 39
Parameter 'mentions' is not assigned and could be declared final 39
Avoid unused constructor parameters such as 'WFs'. 47
Parameter 'WFs' is not assigned and could be declared final 47
Parameter 'linkedEntity' is not assigned and could be declared final 47
Avoid unused local variables such as 'id'. 53
Local variable 'id' could be declared final 53
Parameter 'resource' is not assigned and could be declared final 61
Parameter 'reference' is not assigned and could be declared final 69
Parameter 'confidence' is not assigned and could be declared final 77
Parameter 'id' is not assigned and could be declared final 85
Local variable 'wf' could be declared final 91
Prefer StringBuffer over += for concatenating strings 93
Prefer StringBuffer over += for concatenating strings 95
Parameter 'category' is not assigned and could be declared final 100
Parameter 'type' is not assigned and could be declared final 100
Parameter 'types' is not assigned and could be declared final 111
Parameter 'spotted' is not assigned and could be declared final 119

pikes-naflib - ixa/kaflib/Mark.java

Violation Line
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 35
Parameter 'span' is not assigned and could be declared final 38
Parameter 'id' is not assigned and could be declared final 38
Parameter 'id' is not assigned and could be declared final 53
Parameter 'type' is not assigned and could be declared final 65
Parameter 'lemma' is not assigned and could be declared final 77
Parameter 'pos' is not assigned and could be declared final 89
Parameter 'morphofeat' is not assigned and could be declared final 101
Parameter 'termcase' is not assigned and could be declared final 113
Local variable 'term' could be declared final 119
Prefer StringBuffer over += for concatenating strings 121
Prefer StringBuffer over += for concatenating strings 123
Parameter 'span' is not assigned and could be declared final 132
Parameter 'externalRef' is not assigned and could be declared final 140
Parameter 'externalRefs' is not assigned and could be declared final 144

pikes-naflib - ixa/kaflib/NonTerminal.java

Violation Line
Private field 'children' could be made final; it is only initialized in the declaration or constructor. 14
Parameter 'label' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 17
Parameter 'label' is not assigned and could be declared final 27
Parameter 'tn' is not assigned and could be declared final 31

pikes-naflib - ixa/kaflib/Opinion.java

Violation Line
Possible God class (WMC=144, ATFD=49, TCC=0.0) 1652
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 32
Avoid instantiating new objects inside loops 79
Avoid instantiating new objects inside loops 196
Avoid instantiating new objects inside loops 335
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 472
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 473
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 474
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 475
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 476
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 477
Avoid instantiating new objects inside loops 505
Prefer StringBuffer over += for concatenating strings 620
Prefer StringBuffer over += for concatenating strings 622

pikes-naflib - ixa/kaflib/Predicate.java

Violation Line
Possible God class (WMC=59, ATFD=10, TCC=0.013793103448275862) 1274
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 14
Private field 'flags' could be made final; it is only initialized in the declaration or constructor. 15
Parameter 'span' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 17
Parameter 'semRole' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 37
Parameter 'semRole' is not assigned and could be declared final 45
Parameter 'span' is not assigned and could be declared final 53
Parameter 'term' is not assigned and could be declared final 61
Parameter 'term' is not assigned and could be declared final 65
Parameter 'isHead' is not assigned and could be declared final 65
Local variable 'term' could be declared final 71
Prefer StringBuffer over += for concatenating strings 73
Prefer StringBuffer over += for concatenating strings 75
Parameter 'resource' is not assigned and could be declared final 80
Local variable 'ref' could be declared final 81
Parameter 'externalRef' is not assigned and could be declared final 93
Parameter 'externalRefs' is not assigned and could be declared final 97
Parameter 'flag' is not assigned and could be declared final 105
Parameter 'flag' is not assigned and could be declared final 111
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 117
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 118
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 119
Parameter 'source' is not assigned and could be declared final 125
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 133
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 134
Private field 'roles' could be made final; it is only initialized in the declaration or constructor. 135
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 135
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 136
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 136
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 137
Private field 'flags' could be made final; it is only initialized in the declaration or constructor. 137
Parameter 'id' is not assigned and could be declared final 139
Parameter 'span' is not assigned and could be declared final 139
Parameter 'id' is not assigned and could be declared final 152
Useless parentheses. 157
Parameter 'uri' is not assigned and could be declared final 164
Parameter 'confidence' is not assigned and could be declared final 176
Parameter 'span' is not assigned and could be declared final 184
Parameter 'term' is not assigned and could be declared final 192
Parameter 'term' is not assigned and could be declared final 196
Parameter 'isHead' is not assigned and could be declared final 196
Local variable 'target' could be declared final 203
Prefer StringBuffer over += for concatenating strings 204
Prefer StringBuffer over += for concatenating strings 206
Local variable 'role' could be declared final 207
Local variable 'roleTarget' could be declared final 209
Prefer StringBuffer over += for concatenating strings 210
Local variable 'term' could be declared final 218
Prefer StringBuffer over += for concatenating strings 220
Prefer StringBuffer over += for concatenating strings 222
Parameter 'resource' is not assigned and could be declared final 227
Local variable 'ref' could be declared final 228
Parameter 'externalRef' is not assigned and could be declared final 240
Parameter 'externalRefs' is not assigned and could be declared final 244
Parameter 'role' is not assigned and could be declared final 252
Parameter 'role' is not assigned and could be declared final 256
Parameter 'flag' is not assigned and could be declared final 264
Parameter 'flag' is not assigned and could be declared final 270

pikes-naflib - ixa/kaflib/ReadWriteManager.java

Violation Line
Possible God class (WMC=478, ATFD=546, TCC=0.0) 12255
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 202255
The class 'ReadWriteManager' has a Modified Cyclomatic Complexity of 21 (Highest = 202). 202255
The type has an NCSS line count of 1718 202255
The class 'ReadWriteManager' has a Cyclomatic Complexity of 21 (Highest = 204). 202255
The class 'ReadWriteManager' has a Standard Cyclomatic Complexity of 21 (Highest = 202). 202255
Parameter 'file' is not assigned and could be declared final 25
Local variable 'builder' could be declared final 26
Local variable 'document' could be declared final 27
Avoid declaring a variable if it is unreferenced before a possible exit point. 28
Local variable 'rootElem' could be declared final 28
Avoid unused local variables such as 'rootElem'. 28
Parameter 'stream' is not assigned and could be declared final 35
Local variable 'builder' could be declared final 36
Local variable 'document' could be declared final 37
Local variable 'rootElem' could be declared final 38
Avoid declaring a variable if it is unreferenced before a possible exit point. 38
Avoid unused local variables such as 'rootElem'. 38
Parameter 'kaf' is not assigned and could be declared final 45
Parameter 'filename' is not assigned and could be declared final 45
Local variable 'file' could be declared final 46
Parameter 'file' is not assigned and could be declared final 53
Parameter 'kaf' is not assigned and could be declared final 53
Local variable 'out' could be declared final 55
Parameter 'kaf' is not assigned and could be declared final 67
Local variable 'out' could be declared final 69
Parameter 'kaf' is not assigned and could be declared final 80
Local variable 'out' could be declared final 81
Local variable 'jdom' could be declared final 83
The method DOMToKAF() has an NCSS line count of 730 90989
Avoid really long methods. 90989
The method 'DOMToKAF' has a Standard Cyclomatic Complexity of 202. 90989
The method DOMToKAF() has an NPath complexity of 628339 90989
The method 'DOMToKAF' has a Cyclomatic Complexity of 204. 90989
Parameter 'dom' is not assigned and could be declared final 90
The method 'DOMToKAF' has a Modified Cyclomatic Complexity of 202. 90989
Local variable 'wfIndex' could be declared final 91
Local variable 'termIndex' could be declared final 92
Local variable 'relationalIndex' could be declared final 93
Local variable 'timexIndex' could be declared final 94
Local variable 'predicateIndex' could be declared final 95
Local variable 'rootElem' could be declared final 97
Local variable 'lang' could be declared final 98
Local variable 'kafVersion' could be declared final 99
Local variable 'kaf' could be declared final 100
Local variable 'rootChildrenElems' could be declared final 102
Local variable 'elem' could be declared final 103
Local variable 'lpsElems' could be declared final 105
Local variable 'lpsElem' could be declared final 106
Local variable 'layer' could be declared final 107
Local variable 'lpElems' could be declared final 108
Local variable 'lpElem' could be declared final 109
Local variable 'name' could be declared final 110
Local variable 'newLp' could be declared final 111
Local variable 'timestamp' could be declared final 112
Local variable 'beginTimestamp' could be declared final 116
Local variable 'endTimestamp' could be declared final 120
Local variable 'version' could be declared final 124
Local variable 'fileDescElem' could be declared final 130
Local variable 'fd' could be declared final 132
Local variable 'author' could be declared final 133
Local variable 'title' could be declared final 137
Local variable 'filename' could be declared final 141
Local variable 'filetype' could be declared final 145
Local variable 'pages' could be declared final 149
Local variable 'creationtime' could be declared final 153
Local variable 'publicElem' could be declared final 158
Local variable 'pub' could be declared final 160
Local variable 'publicId' could be declared final 161
Local variable 'uri' could be declared final 165
Local variable 'wfElems' could be declared final 173
Local variable 'wfElem' could be declared final 174
Local variable 'wForm' could be declared final 181
Local variable 'wSent' could be declared final 182
Local variable 'newWf' could be declared final 183
Local variable 'wPara' could be declared final 184
Local variable 'wPage' could be declared final 188
Local variable 'wOffset' could be declared final 192
Local variable 'wLength' could be declared final 196
Local variable 'wXpath' could be declared final 200
Local variable 'termElems' could be declared final 207
Local variable 'termElem' could be declared final 208
Local variable 'source' could be declared final 212
Local variable 'markElems' could be declared final 213
Local variable 'markElem' could be declared final 214
Local variable 'sid' could be declared final 215
Avoid declaring a variable if it is unreferenced before a possible exit point. 215
Local variable 'spanElem' could be declared final 216
Local variable 'marksTermElems' could be declared final 220
Local variable 'span' could be declared final 221
Local variable 'marksTermElem' could be declared final 222
Local variable 'termId' could be declared final 223
Avoid declaring a variable if it is unreferenced before a possible exit point. 224
Local variable 'isHead' could be declared final 224
Local variable 'term' could be declared final 225
Local variable 'newMark' could be declared final 231
Local variable 'type' could be declared final 232
Local variable 'lemma' could be declared final 236
Local variable 'pos' could be declared final 240
Local variable 'tMorphofeat' could be declared final 244
Local variable 'markcase' could be declared final 248
Local variable 'externalReferencesElems' could be declared final 252
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 253
Local variable 'externalRefs' could be declared final 254
Local variable 'depElems' could be declared final 260
Local variable 'depElem' could be declared final 261
Local variable 'fromId' could be declared final 262
Local variable 'toId' could be declared final 263
Local variable 'from' could be declared final 264
Local variable 'to' could be declared final 269
Local variable 'rfunc' could be declared final 274
Local variable 'newDep' could be declared final 275
Local variable 'depcase' could be declared final 276
Local variable 'chunkElems' could be declared final 283
Local variable 'chunkElem' could be declared final 284
Local variable 'chunkId' could be declared final 285
Local variable 'headId' could be declared final 286
Local variable 'chunkHead' could be declared final 287
Local variable 'spanElem' could be declared final 292
Local variable 'chunksTermElems' could be declared final 296
Local variable 'span' could be declared final 297
Local variable 'chunksTermElem' could be declared final 298
Local variable 'termId' could be declared final 299
Avoid declaring a variable if it is unreferenced before a possible exit point. 300
Local variable 'isHead' could be declared final 300
Local variable 'targetTerm' could be declared final 301
Useless parentheses. 306
Useless parentheses. 306
Local variable 'newChunk' could be declared final 311
Local variable 'chunkPhrase' could be declared final 312
Local variable 'chunkCase' could be declared final 316
Local variable 'entityElems' could be declared final 322
Local variable 'entityElem' could be declared final 323
Avoid declaring a variable if it is unreferenced before a possible exit point. 324
Local variable 'entId' could be declared final 324
Local variable 'referencesElem' could be declared final 325
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 326
Local variable 'spanElems' could be declared final 329
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 330
Local variable 'references' could be declared final 334
Avoid instantiating new objects inside loops 334
Local variable 'spanElem' could be declared final 335
Avoid declaring a variable if it is unreferenced before a possible exit point. 336
Local variable 'span' could be declared final 336
Local variable 'targetElems' could be declared final 337
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 338
Local variable 'targetElem' could be declared final 342
Local variable 'targetTermId' could be declared final 343
Local variable 'targetTerm' could be declared final 344
Local variable 'isHead' could be declared final 349
Local variable 'newEntity' could be declared final 354
Local variable 'entType' could be declared final 355
Local variable 'externalReferencesElems' could be declared final 362
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 363
Local variable 'externalRefs' could be declared final 364
Local variable 'corefElems' could be declared final 370
Local variable 'corefElem' could be declared final 371
Avoid declaring a variable if it is unreferenced before a possible exit point. 372
Local variable 'coId' could be declared final 372
Avoid declaring a variable if it is unreferenced before a possible exit point. 373
Local variable 'clusterId' could be declared final 373
Local variable 'spanElems' could be declared final 374
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 375
Local variable 'mentions' could be declared final 379
Avoid instantiating new objects inside loops 379
Local variable 'spanElem' could be declared final 380
Local variable 'span' could be declared final 381
Avoid declaring a variable if it is unreferenced before a possible exit point. 381
Local variable 'targetElems' could be declared final 382
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 383
Local variable 'targetElem' could be declared final 387
Local variable 'targetTermId' could be declared final 388
Local variable 'targetTerm' could be declared final 389
Local variable 'isHead' could be declared final 394
Local variable 'newCoref' could be declared final 399
Local variable 'corefType' could be declared final 400
Local variable 'externalReferencesElems' could be declared final 407
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 408
Local variable 'externalRefs' could be declared final 409
Local variable 'timex3Elems' could be declared final 414
Local variable 'timex3Elem' could be declared final 415
Local variable 'timex3Id' could be declared final 416
Local variable 'timex3Type' could be declared final 417
Local variable 'timex3' could be declared final 418
Local variable 'timex3BeginPointId' could be declared final 419
Local variable 'beginPoint' could be declared final 421
Avoid empty if statements 422424
Local variable 'timex3EndPointId' could be declared final 428
Local variable 'endPoint' could be declared final 430
Avoid empty if statements 431433
Local variable 'timex3Quant' could be declared final 437
Local variable 'timex3Freq' could be declared final 441
Local variable 'timex3FuncInDoc' could be declared final 445
Local variable 'timex3TempFunc' could be declared final 449
Position literals first in String comparisons 451
Local variable 'tempFunc' could be declared final 451
Local variable 'timex3Value' could be declared final 454
Local variable 'timex3ValueFromFunction' could be declared final 458
Local variable 'timex3Mod' could be declared final 462
Local variable 'timex3AnchorTimeId' could be declared final 466
Local variable 'timex3Comment' could be declared final 470
Local variable 'spanElem' could be declared final 474
Local variable 'timex3Span' could be declared final 476
Local variable 'targetElem' could be declared final 477
Local variable 'targetId' could be declared final 478
Local variable 'wf' could be declared final 479
Local variable 'isHead' could be declared final 484
Local variable 'tLinkElems' could be declared final 492
Local variable 'tLinkElem' could be declared final 493
Local variable 'tlid' could be declared final 494
Local variable 'fromId' could be declared final 495
Local variable 'toId' could be declared final 496
Local variable 'fromType' could be declared final 497
Local variable 'toType' could be declared final 498
Local variable 'relType' could be declared final 499
Position literals first in String comparisons 500
Local variable 'from' could be declared final 500501
Position literals first in String comparisons 502
Local variable 'to' could be declared final 502503
Local variable 'tLink' could be declared final 504
Avoid unused local variables such as 'tLink'. 504
Local variable 'clinkElems' could be declared final 507
Local variable 'clinkElem' could be declared final 508
Local variable 'clid' could be declared final 509
Local variable 'fromId' could be declared final 510
Local variable 'toId' could be declared final 511
Local variable 'relType' could be declared final 512
Local variable 'from' could be declared final 513
Local variable 'to' could be declared final 514
Local variable 'clink' could be declared final 515
Local variable 'propertiesElem' could be declared final 521
Local variable 'categoriesElem' could be declared final 522
Avoid declaring a variable if it is unreferenced before a possible exit point. 522
Local variable 'propertyElems' could be declared final 524
Local variable 'propertyElem' could be declared final 525
Avoid declaring a variable if it is unreferenced before a possible exit point. 526
Local variable 'pid' could be declared final 526
Avoid declaring a variable if it is unreferenced before a possible exit point. 527
Local variable 'lemma' could be declared final 527
Local variable 'referencesElem' could be declared final 528
Local variable 'spanElems' could be declared final 532
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 533
Avoid instantiating new objects inside loops 537
Local variable 'references' could be declared final 537
Local variable 'spanElem' could be declared final 538
Avoid declaring a variable if it is unreferenced before a possible exit point. 539
Local variable 'span' could be declared final 539
Local variable 'targetElems' could be declared final 540
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 541
Local variable 'targetElem' could be declared final 545
Local variable 'targetTermId' could be declared final 546
Local variable 'targetTerm' could be declared final 547
Local variable 'isHead' could be declared final 552
Local variable 'newProperty' could be declared final 557
Local variable 'externalReferencesElems' could be declared final 558
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 559
Local variable 'externalRefs' could be declared final 560
Local variable 'categoryElems' could be declared final 567
Local variable 'categoryElem' could be declared final 568
Local variable 'cid' could be declared final 569
Avoid declaring a variable if it is unreferenced before a possible exit point. 569
Avoid declaring a variable if it is unreferenced before a possible exit point. 570
Local variable 'lemma' could be declared final 570
Local variable 'referencesElem' could be declared final 571
Local variable 'spanElems' could be declared final 575
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 576
Local variable 'references' could be declared final 580
Avoid instantiating new objects inside loops 580
Local variable 'spanElem' could be declared final 581
Avoid declaring a variable if it is unreferenced before a possible exit point. 582
Local variable 'span' could be declared final 582
Local variable 'targetElems' could be declared final 583
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 584
Local variable 'targetElem' could be declared final 588
Local variable 'targetTermId' could be declared final 589
Local variable 'targetTerm' could be declared final 590
Local variable 'isHead' could be declared final 595
Local variable 'newCategory' could be declared final 600
Local variable 'externalReferencesElems' could be declared final 601
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 602
Local variable 'externalRefs' could be declared final 603
Local variable 'opinionElems' could be declared final 610
Local variable 'opinionElem' could be declared final 611
Local variable 'opinion' could be declared final 618
Local variable 'label' could be declared final 620
Avoid empty catch blocks 622624
Local variable 'opinionExternalRefs' could be declared final 625
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 626
Local variable 'opinionHolderElem' could be declared final 629
Local variable 'span' could be declared final 631
Local variable 'opinionHolder' could be declared final 632
Local variable 'ohType' could be declared final 633
Local variable 'spanElem' could be declared final 637
Local variable 'targetElems' could be declared final 639
Local variable 'targetElem' could be declared final 640
Local variable 'refId' could be declared final 641
Avoid declaring a variable if it is unreferenced before a possible exit point. 642
Local variable 'isHead' could be declared final 642
Local variable 'targetTerm' could be declared final 643
Local variable 'holderExternalRefs' could be declared final 651
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 652
Local variable 'opinionTargetElem' could be declared final 656
Local variable 'span' could be declared final 658
Local variable 'opinionTarget' could be declared final 659
Local variable 'otType' could be declared final 660
Local variable 'spanElem' could be declared final 664
Local variable 'targetElems' could be declared final 666
Local variable 'targetElem' could be declared final 667
Local variable 'refId' could be declared final 668
Local variable 'isHead' could be declared final 669
Avoid declaring a variable if it is unreferenced before a possible exit point. 669
Local variable 'targetTerm' could be declared final 670
Local variable 'targetExternalRefs' could be declared final 678
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 679
Local variable 'opinionExpressionElem' could be declared final 683
Local variable 'span' could be declared final 685
Local variable 'polarity' could be declared final 686
Local variable 'strength' could be declared final 687
Local variable 'subjectivity' could be declared final 688
Local variable 'sentimentSemanticType' could be declared final 689690
Local variable 'sentimentProductFeature' could be declared final 691692
Local variable 'opinionExpression' could be declared final 693
Local variable 'spanElem' could be declared final 710
Local variable 'targetElems' could be declared final 712
Local variable 'targetElem' could be declared final 713
Local variable 'refId' could be declared final 714
Avoid declaring a variable if it is unreferenced before a possible exit point. 715
Local variable 'isHead' could be declared final 715
Local variable 'targetTerm' could be declared final 716
Local variable 'expressionExternalRefs' could be declared final 725
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 726
Local variable 'relationElems' could be declared final 733
Local variable 'relationElem' could be declared final 734
Local variable 'id' could be declared final 735
Local variable 'fromId' could be declared final 736
Local variable 'toId' could be declared final 737
Avoid declaring a variable if it is unreferenced before a possible exit point. 737
Local variable 'confidenceStr' could be declared final 738
Local variable 'from' could be declared final 743
Local variable 'to' could be declared final 748
Local variable 'newRelation' could be declared final 753
Local variable 'predicateElems' could be declared final 759
Local variable 'predicateElem' could be declared final 760
Local variable 'id' could be declared final 761
Local variable 'span' could be declared final 762
Local variable 'spanElem' could be declared final 763
Local variable 'targetElems' could be declared final 765
Local variable 'targetElem' could be declared final 766
Local variable 'targetId' could be declared final 767
Local variable 'isHead' could be declared final 768
Avoid declaring a variable if it is unreferenced before a possible exit point. 768
Local variable 'targetTerm' could be declared final 769
Local variable 'predTypes' could be declared final 777
Avoid instantiating new objects inside loops 777
Local variable 'predTypeElems' could be declared final 778
Local variable 'predTypeElem' could be declared final 779
Local variable 'ptUri' could be declared final 780
Local variable 'newPredicate' could be declared final 783
Local variable 'source' could be declared final 784
Local variable 'uri' could be declared final 788
Local variable 'externalReferencesElems' could be declared final 792
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 793
Local variable 'externalRefs' could be declared final 794
Local variable 'confidence' could be declared final 797
Local variable 'roleElems' could be declared final 801
Local variable 'roleElem' could be declared final 802
Local variable 'rid' could be declared final 803
Local variable 'semRole' could be declared final 804
Avoid declaring a variable if it is unreferenced before a possible exit point. 804
Local variable 'roleSpan' could be declared final 805
Local variable 'roleSpanElem' could be declared final 806
Local variable 'targetElems' could be declared final 808
Local variable 'targetElem' could be declared final 809
Local variable 'targetId' could be declared final 810
Local variable 'isHead' could be declared final 811
Avoid declaring a variable if it is unreferenced before a possible exit point. 811
Local variable 'targetTerm' could be declared final 812
Local variable 'newRole' could be declared final 820
Local variable 'rExternalReferencesElems' could be declared final 821
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 822
Local variable 'externalRefs' could be declared final 823824
Local variable 'treeElems' could be declared final 833
Local variable 'treeElem' could be declared final 834
Local variable 'treeNodes' could be declared final 835
Avoid instantiating new objects inside loops 835
Local variable 'rootNodes' could be declared final 836
Avoid instantiating new objects inside loops 836
Local variable 'terminalElems' could be declared final 843
Local variable 'terminalElem' could be declared final 844
Avoid declaring a variable if it is unreferenced before a possible exit point. 845
Local variable 'id' could be declared final 845
Local variable 'spanElem' could be declared final 846
Local variable 'span' could be declared final 850
Local variable 'nonTerminalElems' could be declared final 855
Local variable 'nonTerminalElem' could be declared final 856
Local variable 'id' could be declared final 857
Local variable 'label' could be declared final 858
Local variable 'edgeElems' could be declared final 863
Local variable 'edgeElem' could be declared final 864
Local variable 'fromId' could be declared final 865
Local variable 'toId' could be declared final 866
Avoid declaring a variable if it is unreferenced before a possible exit point. 867
Local variable 'edgeId' could be declared final 867
Local variable 'head' could be declared final 868
Avoid declaring a variable if it is unreferenced before a possible exit point. 869
Local variable 'isHead' could be declared final 869
Useless parentheses. 869
Local variable 'parentNode' could be declared final 870
Local variable 'childNode' could be declared final 871
Useless parentheses. 872
Useless parentheses. 872
Avoid empty catch blocks 879880
Local variable 'areRoot' could be declared final 890
Local variable 'rootNode' could be declared final 892
Avoid empty catch blocks 897899
Local variable 'factElem' could be declared final 901
Local variable 'id' could be declared final 902
Local variable 'wf' could be declared final 903
Local variable 'terms' could be declared final 904
Local variable 'factuality' could be declared final 908
Local variable 'partElem' could be declared final 909
Local variable 'prediction' could be declared final 910
Local variable 'confidence' could be declared final 911
Local variable 'entityElem' could be declared final 917
Avoid declaring a variable if it is unreferenced before a possible exit point. 918
Local variable 'id' could be declared final 918
Local variable 'span' could be declared final 919
Avoid declaring a variable if it is unreferenced before a possible exit point. 919
Local variable 'targetElems' could be declared final 920
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 921
Local variable 'targetElem' could be declared final 925
Local variable 'targetWfId' could be declared final 926
Local variable 'wf' could be declared final 927
Local variable 'e' could be declared final 934
Local variable 'spotted' could be declared final 938
Local variable 'confidence' could be declared final 941
Local variable 'typesElem' could be declared final 945
Local variable 'topicElem' could be declared final 947
Local variable 'category' could be declared final 948
Local variable 'label' could be declared final 949
Local variable 'sstElem' could be declared final 955
Local variable 'id' could be declared final 956
Avoid declaring a variable if it is unreferenced before a possible exit point. 956
Avoid declaring a variable if it is unreferenced before a possible exit point. 957
Local variable 'type' could be declared final 957
Local variable 'label' could be declared final 958
Avoid declaring a variable if it is unreferenced before a possible exit point. 958
Local variable 'span' could be declared final 959
Avoid declaring a variable if it is unreferenced before a possible exit point. 959
Local variable 'targetElems' could be declared final 960
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 961
Local variable 'targetElem' could be declared final 965
Local variable 'targetTermId' could be declared final 966
Local variable 'term' could be declared final 967
Local variable 'topicElem' could be declared final 977
Local variable 'label' could be declared final 978
Local variable 'probability' could be declared final 979
Parameter 'wfIndex' is not assigned and could be declared final 991
Avoid really long methods. 9911098
The method 'DOMToTerm' has a Cyclomatic Complexity of 25. 9911098
The method DOMToTerm() has an NPath complexity of 4737024 9911098
The method 'DOMToTerm' has a Modified Cyclomatic Complexity of 25. 9911098
The method 'DOMToTerm' has a Standard Cyclomatic Complexity of 25. 9911098
Parameter 'kaf' is not assigned and could be declared final 991
Parameter 'termElem' is not assigned and could be declared final 991
Parameter 'isComponent' is not assigned and could be declared final 991
Parameter 'termIndex' is not assigned and could be declared final 992
Local variable 'spanElem' could be declared final 999
Local variable 'termsWfElems' could be declared final 1003
Local variable 'span' could be declared final 1004
Local variable 'termsWfElem' could be declared final 1005
Local variable 'wfId' could be declared final 1006
Local variable 'isHead' could be declared final 1007
Avoid declaring a variable if it is unreferenced before a possible exit point. 1007
Local variable 'wf' could be declared final 1008
Local variable 'newTerm' could be declared final 1014
Local variable 'type' could be declared final 1015
Local variable 'lemma' could be declared final 1019
Local variable 'supersenseTag' could be declared final 1023
Local variable 'wordnetSense' could be declared final 1027
Local variable 'bbnTag' could be declared final 1031
Local variable 'pos' could be declared final 1035
Local variable 'tMorphofeat' could be declared final 1039
Local variable 'tHead' could be declared final 1043
Avoid unused local variables such as 'tHead'. 1043
Local variable 'termcase' could be declared final 1044
Local variable 'sentimentElems' could be declared final 1048
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1049
Local variable 'sentimentElem' could be declared final 1050
Local variable 'newSentiment' could be declared final 1051
Local variable 'sentResource' could be declared final 1052
Local variable 'sentPolarity' could be declared final 1056
Local variable 'sentStrength' could be declared final 1060
Local variable 'sentSubjectivity' could be declared final 1064
Local variable 'sentSentimentSemanticType' could be declared final 1068
Local variable 'sentSentimentModifier' could be declared final 1072
Local variable 'sentSentimentMarker' could be declared final 1076
Local variable 'sentSentimentProductFeature' could be declared final 1080
Local variable 'termsComponentElems' could be declared final 1087
Local variable 'termsComponentElem' could be declared final 1088
Local variable 'externalReferencesElems' could be declared final 1092
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1093
Local variable 'externalRefs' could be declared final 1094
Parameter 'terms' is not assigned and could be declared final 1100
Parameter 'objId' is not assigned and could be declared final 1100
Parameter 'spanElem' is not assigned and could be declared final 1100
Local variable 'targetElems' could be declared final 1102
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1103
Local variable 'span' could be declared final 1106
Local variable 'targetElem' could be declared final 1107
Local variable 'targetId' could be declared final 1108
Avoid declaring a variable if it is unreferenced before a possible exit point. 1109
Local variable 'isHead' could be declared final 1109
Local variable 'targetTerm' could be declared final 1110
Parameter 'span' is not assigned and could be declared final 1119
Local variable 'spanElem' could be declared final 1120
Local variable 'term' could be declared final 1121
Local variable 'targetElem' could be declared final 1122
Avoid instantiating new objects inside loops 1122
Local variable 'targetId' could be declared final 1123
Parameter 'kaf' is not assigned and could be declared final 1133
Parameter 'externalReferencesElem' is not assigned and could be declared final 1133
Local variable 'externalRefs' could be declared final 1134
Local variable 'externalRefElems' could be declared final 1135
Local variable 'externalRefElem' could be declared final 1136
Local variable 'externalRef' could be declared final 1137
Parameter 'externalRefElem' is not assigned and could be declared final 1143
Parameter 'kaf' is not assigned and could be declared final 1143
Local variable 'resource' could be declared final 1144
Local variable 'references' could be declared final 1145
Local variable 'newExternalRef' could be declared final 1146
Local variable 'confidence' could be declared final 1149
Avoid empty catch blocks 11511152
Local variable 'source' could be declared final 1155
Avoid empty catch blocks 11571158
Local variable 'subRefElems' could be declared final 1160
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1161
Local variable 'subRefElem' could be declared final 1162
Local variable 'subRef' could be declared final 1163
Parameter 'attName' is not assigned and could be declared final 1169
Parameter 'elem' is not assigned and could be declared final 1169
Local variable 'value' could be declared final 1170
Parameter 'elem' is not assigned and could be declared final 1177
Parameter 'nmspace' is not assigned and could be declared final 1177
Parameter 'attName' is not assigned and could be declared final 1177
Local variable 'value' could be declared final 1178
Parameter 'elem' is not assigned and could be declared final 1185
Parameter 'attName' is not assigned and could be declared final 1185
Local variable 'value' could be declared final 1186
Parameter 'elem' is not assigned and could be declared final 1193
Local variable 'value' could be declared final 1194
Position literals first in String comparisons 1198
Avoid unnecessary if..then..else statements when returning booleans 11981200
Parameter 'to' is not assigned and could be declared final 1211
Parameter 'from' is not assigned and could be declared final 1211
Parameter 'kaf' is not assigned and could be declared final 1224
Avoid really long methods. 12242101
The method 'KAFToDOM' has a Cyclomatic Complexity of 175. 12242101
The method 'KAFToDOM' has a Standard Cyclomatic Complexity of 175. 12242101
The method KAFToDOM() has an NCSS line count of 680 12242101
The method 'KAFToDOM' has a Modified Cyclomatic Complexity of 175. 12242101
Local variable 'annotationContainer' could be declared final 1225
Local variable 'root' could be declared final 1226
Local variable 'doc' could be declared final 1230
Local variable 'kafHeaderElem' could be declared final 1232
Local variable 'fd' could be declared final 1235
Local variable 'fdElem' could be declared final 1237
Local variable 'pub' could be declared final 1259
Local variable 'pubElem' could be declared final 1261
Local variable 'lps' could be declared final 1271
Local variable 'entry' could be declared final 1272
Local variable 'lpsElem' could be declared final 1273
Avoid instantiating new objects inside loops 1273
Local variable 'lp' could be declared final 1275
Avoid instantiating new objects inside loops 1276
Local variable 'lpElem' could be declared final 1276
Local variable 'rawText' could be declared final 1295
Local variable 'rawElem' could be declared final 1297
Local variable 'cdataElem' could be declared final 1298
Local variable 'text' could be declared final 1303
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1304
Local variable 'textElem' could be declared final 1305
Local variable 'wf' could be declared final 1306
Avoid instantiating new objects inside loops 1307
Local variable 'wfElem' could be declared final 1307
Local variable 'terms' could be declared final 1331
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1332
Local variable 'termsElem' could be declared final 1333
Local variable 'term' could be declared final 1334
Local variable 'markSources' could be declared final 1340
Local variable 'source' could be declared final 1341
Local variable 'marks' could be declared final 1342
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1343
Local variable 'marksElem' could be declared final 1344
Avoid instantiating new objects inside loops 1344
Local variable 'mark' could be declared final 1346
Local variable 'markComment' could be declared final 1347
Avoid instantiating new objects inside loops 1347
Local variable 'markElem' could be declared final 1349
Avoid instantiating new objects inside loops 1349
Local variable 'spanElem' could be declared final 1366
Avoid instantiating new objects inside loops 1366
Local variable 'span' could be declared final 1367
Local variable 'target' could be declared final 1368
Local variable 'targetElem' could be declared final 1369
Avoid instantiating new objects inside loops 1369
Local variable 'externalReferences' could be declared final 1377
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1378
Local variable 'externalReferencesElem' could be declared final 1379
Local variable 'deps' could be declared final 1388
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1389
Local variable 'depsElem' could be declared final 1390
Local variable 'dep' could be declared final 1391
Avoid instantiating new objects inside loops 1392
Local variable 'depComment' could be declared final 1392
Local variable 'depElem' could be declared final 1394
Avoid instantiating new objects inside loops 1394
Local variable 'chunks' could be declared final 1406
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1407
Local variable 'chunksElem' could be declared final 1408
Local variable 'chunk' could be declared final 1409
Avoid instantiating new objects inside loops 1410
Local variable 'chunkComment' could be declared final 1410
Local variable 'chunkElem' could be declared final 1412
Avoid instantiating new objects inside loops 1412
Local variable 'spanElem' could be declared final 1421
Avoid instantiating new objects inside loops 1421
Local variable 'target' could be declared final 1422
Local variable 'targetElem' could be declared final 1423
Avoid instantiating new objects inside loops 1423
Local variable 'entities' could be declared final 1433
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1434
Local variable 'entitiesElem' could be declared final 1435
Local variable 'entity' could be declared final 1436
Local variable 'entityElem' could be declared final 1437
Avoid instantiating new objects inside loops 1437
Avoid instantiating new objects inside loops 1445
Local variable 'referencesElem' could be declared final 1445
Local variable 'span' could be declared final 1446
Avoid instantiating new objects inside loops 1447
Local variable 'spanComment' could be declared final 1447
Avoid instantiating new objects inside loops 1449
Local variable 'spanElem' could be declared final 1449
Local variable 'term' could be declared final 1450
Avoid instantiating new objects inside loops 1451
Local variable 'targetElem' could be declared final 1451
Local variable 'externalReferences' could be declared final 1461
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1462
Local variable 'externalReferencesElem' could be declared final 1463
Local variable 'corefs' could be declared final 1471
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1472
Local variable 'corefsElem' could be declared final 1473
Local variable 'coref' could be declared final 1474
Avoid instantiating new objects inside loops 1475
Local variable 'corefElem' could be declared final 1475
Local variable 'span' could be declared final 1483
Local variable 'spanComment' could be declared final 1484
Avoid instantiating new objects inside loops 1484
Local variable 'spanElem' could be declared final 1486
Avoid instantiating new objects inside loops 1486
Local variable 'target' could be declared final 1487
Avoid instantiating new objects inside loops 1488
Local variable 'targetElem' could be declared final 1488
Local variable 'externalReferences' could be declared final 1497
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1498
Local variable 'externalReferencesElem' could be declared final 1499
Local variable 'timeExs' could be declared final 1507
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1508
Local variable 'timeExsElem' could be declared final 1509
Local variable 'timex3' could be declared final 1510
Local variable 'timex3Elem' could be declared final 1511
Avoid instantiating new objects inside loops 1511
Local variable 'tempFun' could be declared final 1530
Local variable 'span' could be declared final 1549
Local variable 'spanComment' could be declared final 1550
Avoid instantiating new objects inside loops 1550
Avoid instantiating new objects inside loops 1552
Local variable 'spanElem' could be declared final 1552
Local variable 'target' could be declared final 1553
Local variable 'targetElem' could be declared final 1554
Avoid instantiating new objects inside loops 1554
Local variable 'factualities' could be declared final 1584
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1585
Local variable 'factsElement' could be declared final 1586
Local variable 'f' could be declared final 1587
Local variable 'fact' could be declared final 1589
Avoid instantiating new objects inside loops 1589
Local variable 'p' could be declared final 1594
Local variable 'factPartial' could be declared final 1595
Avoid instantiating new objects inside loops 1595
Avoid empty catch blocks 16021604
Local variable 'linkedEntities' could be declared final 1609
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1610
Local variable 'linkedEntityElement' could be declared final 1611
Local variable 'e' could be declared final 1612
Avoid instantiating new objects inside loops 1613
Local variable 'lEnt' could be declared final 1613
Avoid instantiating new objects inside loops 1620
Local variable 'spanComment' could be declared final 1620
Avoid instantiating new objects inside loops 1622
Local variable 'spanElem' could be declared final 1622
Local variable 'target' could be declared final 1623
Local variable 'targetElem' could be declared final 1624
Avoid instantiating new objects inside loops 1624
Avoid instantiating new objects inside loops 1631
Local variable 'typesElement' could be declared final 1631
Local variable 'category' could be declared final 1632
Local variable 'type' could be declared final 1633
Avoid instantiating new objects inside loops 1634
Local variable 'typeElement' could be declared final 1634
Local variable 'ssts' could be declared final 1648
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1649
Local variable 'linkedEntityElement' could be declared final 1650
Local variable 's' could be declared final 1651
Local variable 'lEnt' could be declared final 1652
Avoid instantiating new objects inside loops 1652
Avoid instantiating new objects inside loops 1657
Local variable 'spanComment' could be declared final 1657
Avoid instantiating new objects inside loops 1659
Local variable 'spanElem' could be declared final 1659
Local variable 'target' could be declared final 1660
Avoid instantiating new objects inside loops 1661
Local variable 'targetElem' could be declared final 1661
Local variable 'topics' could be declared final 1672
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1673
Local variable 'topicLayer' could be declared final 1674
Local variable 't' could be declared final 1675
Avoid instantiating new objects inside loops 1676
Local variable 'topicElement' could be declared final 1676
Local variable 'featuresElem' could be declared final 1684
Local variable 'properties' could be declared final 1685
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1686
Local variable 'propertiesElem' could be declared final 1687
Local variable 'property' could be declared final 1688
Local variable 'propertyElem' could be declared final 1689
Avoid instantiating new objects inside loops 1689
Local variable 'references' could be declared final 1692
Local variable 'referencesElem' could be declared final 1693
Avoid instantiating new objects inside loops 1693
Local variable 'span' could be declared final 1694
Avoid instantiating new objects inside loops 1695
Local variable 'spanComment' could be declared final 1695
Local variable 'spanElem' could be declared final 1697
Avoid instantiating new objects inside loops 1697
Local variable 'term' could be declared final 1698
Local variable 'targetElem' could be declared final 1699
Avoid instantiating new objects inside loops 1699
Local variable 'categories' could be declared final 1713
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1714
Local variable 'categoriesElem' could be declared final 1715
Local variable 'category' could be declared final 1716
Avoid instantiating new objects inside loops 1717
Local variable 'categoryElem' could be declared final 1717
Local variable 'references' could be declared final 1720
Avoid instantiating new objects inside loops 1721
Local variable 'referencesElem' could be declared final 1721
Local variable 'span' could be declared final 1722
Local variable 'spanComment' could be declared final 1723
Avoid instantiating new objects inside loops 1723
Avoid instantiating new objects inside loops 1725
Local variable 'spanElem' could be declared final 1725
Local variable 'term' could be declared final 1726
Local variable 'targetElem' could be declared final 1727
Avoid instantiating new objects inside loops 1727
Local variable 'opinions' could be declared final 1745
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1746
Local variable 'opinionsElem' could be declared final 1747
Local variable 'opinion' could be declared final 1748
Local variable 'opinionElem' could be declared final 1749
Avoid instantiating new objects inside loops 1749
Local variable 'holder' could be declared final 1757
Avoid instantiating new objects inside loops 1759
Local variable 'opinionHolderElem' could be declared final 1759
Avoid instantiating new objects inside loops 1763
Local variable 'comment' could be declared final 1763
Local variable 'targets' could be declared final 1765
Local variable 'span' could be declared final 1766
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1767
Local variable 'spanElem' could be declared final 1768
Avoid instantiating new objects inside loops 1768
Local variable 'target' could be declared final 1770
Local variable 'targetElem' could be declared final 1771
Avoid instantiating new objects inside loops 1771
Local variable 'opTarget' could be declared final 1784
Avoid instantiating new objects inside loops 1786
Local variable 'opinionTargetElem' could be declared final 1786
Avoid instantiating new objects inside loops 1790
Local variable 'comment' could be declared final 1790
Local variable 'targets' could be declared final 1792
Local variable 'span' could be declared final 1793
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1794
Avoid instantiating new objects inside loops 1795
Local variable 'spanElem' could be declared final 1795
Local variable 'target' could be declared final 1797
Avoid instantiating new objects inside loops 1798
Local variable 'targetElem' could be declared final 1798
Local variable 'expression' could be declared final 1811
Avoid instantiating new objects inside loops 1813
Local variable 'opinionExpressionElem' could be declared final 1813
Local variable 'comment' could be declared final 1814
Avoid instantiating new objects inside loops 1814
Local variable 'targets' could be declared final 1833
Local variable 'span' could be declared final 1834
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1835
Local variable 'spanElem' could be declared final 1836
Avoid instantiating new objects inside loops 1836
Local variable 'target' could be declared final 1838
Local variable 'targetElem' could be declared final 1839
Avoid instantiating new objects inside loops 1839
Local variable 'relations' could be declared final 1858
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1859
Local variable 'relationsElem' could be declared final 1860
Local variable 'relation' could be declared final 1861
Avoid instantiating new objects inside loops 1862
Local variable 'comment' could be declared final 1862
Local variable 'relationElem' could be declared final 1864
Avoid instantiating new objects inside loops 1864
Local variable 'predicates' could be declared final 1876
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1877
Local variable 'predicatesElem' could be declared final 1878
Local variable 'predicate' could be declared final 1879
Local variable 'predicateComment' could be declared final 1880
Avoid instantiating new objects inside loops 1880
Avoid instantiating new objects inside loops 1882
Local variable 'predicateElem' could be declared final 1882
Avoid instantiating new objects inside loops 1894
Local variable 'builder' could be declared final 1894
Local variable 'flag' could be declared final 1896
Local variable 'span' could be declared final 1902
Avoid instantiating new objects inside loops 1904
Local variable 'spanComment' could be declared final 1904
Avoid instantiating new objects inside loops 1905
Local variable 'spanElem' could be declared final 1905
Local variable 'target' could be declared final 1908
Local variable 'targetElem' could be declared final 1909
Avoid instantiating new objects inside loops 1909
Local variable 'externalReferences' could be declared final 1917
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1918
Local variable 'externalReferencesElem' could be declared final 1919
Local variable 'role' could be declared final 1922
Avoid instantiating new objects inside loops 1923
Local variable 'roleElem' could be declared final 1923
Local variable 'builder' could be declared final 1927
Avoid instantiating new objects inside loops 1927
Local variable 'flag' could be declared final 1929
Local variable 'roleSpan' could be declared final 1935
Local variable 'spanComment' could be declared final 1937
Avoid instantiating new objects inside loops 1937
Local variable 'spanElem' could be declared final 1938
Avoid instantiating new objects inside loops 1938
Local variable 'target' could be declared final 1941
Local variable 'targetElem' could be declared final 1942
Avoid instantiating new objects inside loops 1942
Local variable 'rExternalReferences' could be declared final 1950
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1951
Local variable 'externalReferencesElem' could be declared final 1952
Local variable 'conStrings' could be declared final 1962
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1963
Local variable 'constituentsElem' could be declared final 1964
Local variable 'sent' could be declared final 1965
Local variable 'constituencyString' could be declared final 1966
Local variable 'treeElem' could be declared final 1967
Avoid instantiating new objects inside loops 1967
Local variable 'constituents' could be declared final 1975
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1976
Local variable 'constituentsElem' could be declared final 1977
Local variable 'tree' could be declared final 1978
Avoid instantiating new objects inside loops 1979
Local variable 'treeElem' could be declared final 1979
Avoid empty catch blocks 19821984
Local variable 'nonTerminals' could be declared final 1986
Avoid instantiating new objects inside loops 1986
Local variable 'terminals' could be declared final 1987
Avoid instantiating new objects inside loops 1987
Avoid instantiating new objects inside loops 1988
Local variable 'edges' could be declared final 1988
Local variable 'rootNode' could be declared final 1989
Avoid instantiating new objects inside loops 19912002
Parameter 'nt2' is not assigned and could be declared final 1993
Parameter 'nt1' is not assigned and could be declared final 1993
Avoid instantiating new objects inside loops 20032014
Parameter 't2' is not assigned and could be declared final 2005
Parameter 't1' is not assigned and could be declared final 2005
Avoid instantiating new objects inside loops 2015
Local variable 'ntCom' could be declared final 2015
Local variable 'node' could be declared final 2017
Avoid instantiating new objects inside loops 2018
Local variable 'nodeElem' could be declared final 2018
Local variable 'tCom' could be declared final 2023
Avoid instantiating new objects inside loops 2023
Local variable 'node' could be declared final 2025
Avoid instantiating new objects inside loops 2026
Local variable 'nodeElem' could be declared final 2026
Local variable 'tStrCom' could be declared final 2030
Avoid instantiating new objects inside loops 2030
Avoid instantiating new objects inside loops 2034
Local variable 'edgeCom' could be declared final 2034
Local variable 'edge' could be declared final 2036
Local variable 'edgeElem' could be declared final 2037
Avoid instantiating new objects inside loops 2037
Local variable 'tLinks' could be declared final 2052
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2053
Local variable 'tLinksElem' could be declared final 2054
Local variable 'tLink' could be declared final 2055
Local variable 'tLinkComment' could be declared final 20562057
Avoid instantiating new objects inside loops 20562057
Avoid instantiating new objects inside loops 2059
Local variable 'tLinkElem' could be declared final 2059
Local variable 'cLinks' could be declared final 2071
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2072
Local variable 'cLinksElem' could be declared final 2073
Local variable 'cLink' could be declared final 2074
Prefer StringBuffer over += for concatenating strings 2077
Prefer StringBuffer over += for concatenating strings 2079
Local variable 'cLinkComment' could be declared final 2080
Avoid instantiating new objects inside loops 2080
Avoid instantiating new objects inside loops 2082
Local variable 'cLinkElem' could be declared final 2082
Local variable 'unknownLayers' could be declared final 2094
Local variable 'layer' could be declared final 2095
The method termToDOM() has an NPath complexity of 15790080 21032193
Parameter 'termsElem' is not assigned and could be declared final 2103
Parameter 'isComponent' is not assigned and could be declared final 2103
The method 'termToDOM' has a Standard Cyclomatic Complexity of 26. 21032193
The method 'termToDOM' has a Modified Cyclomatic Complexity of 26. 21032193
The method 'termToDOM' has a Cyclomatic Complexity of 26. 21032193
Parameter 'term' is not assigned and could be declared final 2103
Local variable 'morphofeat' could be declared final 2104
Avoid unused local variables such as 'morphofeat'. 2104
Local variable 'head' could be declared final 2105
Avoid unused local variables such as 'head'. 2105
Local variable 'termcase' could be declared final 2106
Avoid unused local variables such as 'termcase'. 2106
Local variable 'termComment' could be declared final 2107
Useless parentheses. 2109
Local variable 'tag' could be declared final 2109
Local variable 'termElem' could be declared final 2110
Local variable 'sentiment' could be declared final 2140
Local variable 'sentimentElem' could be declared final 2141
Local variable 'spanElem' could be declared final 2168
Local variable 'span' could be declared final 2169
Local variable 'target' could be declared final 2170
Local variable 'targetElem' could be declared final 2171
Avoid instantiating new objects inside loops 2171
Local variable 'components' could be declared final 2180
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2181
Local variable 'component' could be declared final 2182
Local variable 'externalReferences' could be declared final 2187
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2188
Local variable 'externalReferencesElem' could be declared final 2189
Parameter 'node' is not assigned and could be declared final 2195
Parameter 'terminals' is not assigned and could be declared final 2195
Parameter 'nonTerminals' is not assigned and could be declared final 2195
Parameter 'edges' is not assigned and could be declared final 2196
Local variable 'treeNodes' could be declared final 2199
Local variable 'child' could be declared final 2200
Avoid instantiating new objects inside loops 2201
Parameter 'externalRefs' is not assigned and could be declared final 2209
Local variable 'externalReferencesElem' could be declared final 2210
Local variable 'externalRef' could be declared final 2211
Local variable 'externalRefElem' could be declared final 2212
Parameter 'externalRef' is not assigned and could be declared final 2218
Local variable 'externalRefElem' could be declared final 2219
Local variable 'subExternalRefElem' could be declared final 2229
Parameter 'id2' is not assigned and could be declared final 2235
Parameter 'id1' is not assigned and could be declared final 2235
Local variable 'nbr1' could be declared final 2236
Local variable 'nbr2' could be declared final 2237
Parameter 'id' is not assigned and could be declared final 2247
Local variable 'matcher' could be declared final 2248

pikes-naflib - ixa/kaflib/Relation.java

Violation Line
Parameter 'from' is not assigned and could be declared final 21
Parameter 'id' is not assigned and could be declared final 21
Parameter 'to' is not assigned and could be declared final 21
Parameter 'relational' is not assigned and could be declared final 28
Parameter 'relation' is not assigned and could be declared final 28
Parameter 'id' is not assigned and could be declared final 49
Parameter 'obj' is not assigned and could be declared final 57
Parameter 'obj' is not assigned and could be declared final 65
Parameter 'confidence' is not assigned and could be declared final 80
Useless parentheses. 81
Useless parentheses. 81
Prefer StringBuffer over += for concatenating strings 90

pikes-naflib - ixa/kaflib/SSTspan.java

Violation Line
Private field 'mentions' could be made final; it is only initialized in the declaration or constructor. 22
Parameter 'linkedEntityId' is not assigned and could be declared final 24
Parameter 'mentions' is not assigned and could be declared final 29
Parameter 'sstSpan' is not assigned and could be declared final 29
Parameter 'type' is not assigned and could be declared final 41
Parameter 'label' is not assigned and could be declared final 49
Parameter 'id' is not assigned and could be declared final 57
Local variable 'term' could be declared final 63
Prefer StringBuffer over += for concatenating strings 65
Prefer StringBuffer over += for concatenating strings 67

pikes-naflib - ixa/kaflib/SimpleTopic.java

Violation Line
Document empty constructor 1415
Parameter 'label' is not assigned and could be declared final 17
Parameter 'probability' is not assigned and could be declared final 17
Parameter 'probability' is not assigned and could be declared final 26
Parameter 'label' is not assigned and could be declared final 34

pikes-naflib - ixa/kaflib/Span.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 15
Private field 'targets' could be made final; it is only initialized in the declaration or constructor. 15
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 16
Parameter 'targets' is not assigned and could be declared final 23
Parameter 'head' is not assigned and could be declared final 28
Parameter 'targets' is not assigned and could be declared final 28
Useless parentheses. 35
Local variable 'builder' could be declared final 39
Local variable 'term' could be declared final 40
Useless parentheses. 66
Local variable 'term' could be declared final 71
Avoid using a branching statement as the last in a loop. 72
Parameter 'target' is not assigned and could be declared final 82
Useless parentheses. 83
Parameter 'head' is not assigned and could be declared final 86
Parameter 'head' is not assigned and could be declared final 90
Parameter 'target' is not assigned and could be declared final 98
Parameter 'target' is not assigned and could be declared final 102
Parameter 'isHead' is not assigned and could be declared final 102
Parameter 'targets' is not assigned and could be declared final 109
Parameter 'target' is not assigned and could be declared final 113
Local variable 't' could be declared final 114
Parameter 'object' is not assigned and could be declared final 128
Local variable 'other' could be declared final 135

pikes-naflib - ixa/kaflib/TLink.java

Violation Line
Private field 'id' could be made final; it is only initialized in the declaration or constructor. 8
Parameter 'to' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 17
Parameter 'relType' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 32
Parameter 'to' is not assigned and could be declared final 40
Useless parentheses. 45
Useless parentheses. 49
Parameter 'relType' is not assigned and could be declared final 56

pikes-naflib - ixa/kaflib/TLinkReferable.java

Violation Line
Avoid modifiers which are implied by the context 6

pikes-naflib - ixa/kaflib/Target.java

Violation Line
Parameter 'head' is not assigned and could be declared final 10
Parameter 'term' is not assigned and could be declared final 10
Parameter 'term' is not assigned and could be declared final 23
Parameter 'term' is not assigned and could be declared final 28
Parameter 'head' is not assigned and could be declared final 28
Parameter 'head' is not assigned and could be declared final 33

pikes-naflib - ixa/kaflib/Term.java

Violation Line
Possible God class (WMC=101, ATFD=37, TCC=0.01649122807017544) 1588
Too many fields 8588
Parameter 'trimmed' is not assigned and could be declared final 15
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 31
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 44
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 47
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 50
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 53
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 56
Private field 'components' could be made final; it is only initialized in the declaration or constructor. 56
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 59
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 62
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 65
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 65
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 67
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 68
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 70
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
Parameter 'supersenseTag' is not assigned and could be declared final 78
Parameter 'wordnetSense' is not assigned and could be declared final 86
Parameter 'bbnTag' is not assigned and could be declared final 102
Document empty constructor 165166
Parameter 'sentiment' is not assigned and could be declared final 168
Parameter 'val' is not assigned and could be declared final 187
Parameter 'val' is not assigned and could be declared final 199
Parameter 'val' is not assigned and could be declared final 211
Parameter 'val' is not assigned and could be declared final 223
Parameter 'val' is not assigned and could be declared final 235
Parameter 'val' is not assigned and could be declared final 247
Parameter 'val' is not assigned and could be declared final 259
Parameter 'val' is not assigned and could be declared final 271
Parameter 'id' is not assigned and could be declared final 276
Parameter 'span' is not assigned and could be declared final 276
Parameter 'isComponent' is not assigned and could be declared final 276
Parameter 'wfs' is not assigned and could be declared final 290
Parameter 'term' is not assigned and could be declared final 290
Local variable 'newComponents' could be declared final 303304
Local variable 'component' could be declared final 306
Local variable 'copyComponent' could be declared final 307
Avoid instantiating new objects inside loops 307
Local variable 'targets' could be declared final 315
Local variable 'copiedTargets' could be declared final 316
Local variable 'wf' could be declared final 317
Local variable 'copiedWf' could be declared final 318
Local variable 'copiedHead' could be declared final 325
Local variable 'externalRef' could be declared final 333
Avoid instantiating new objects inside loops 334
Parameter 'id' is not assigned and could be declared final 342
Parameter 'type' is not assigned and could be declared final 354
Parameter 'lemma' is not assigned and could be declared final 366
Parameter 'pos' is not assigned and could be declared final 378
Parameter 'morphofeat' is not assigned and could be declared final 390
Parameter 'termcase' is not assigned and could be declared final 402
Local variable 'builder' could be declared final 409
Local variable 'sortedWFs' could be declared final 410
Local variable 'wf' could be declared final 413
Local variable 'index' could be declared final 417
This call to String.startsWith can be rewritten using String.charAt(0) 434
Useless parentheses. 448
Local variable 'newSentiment' could be declared final 459
Useless parentheses. 465
Parameter 'sentiment' is not assigned and could be declared final 472
Parameter 'component' is not assigned and could be declared final 480
Parameter 'isHead' is not assigned and could be declared final 484
Parameter 'component' is not assigned and could be declared final 484
Parameter 'wf' is not assigned and could be declared final 499
Parameter 'isHead' is not assigned and could be declared final 503
Parameter 'wf' is not assigned and could be declared final 503
Parameter 'span' is not assigned and could be declared final 511
Parameter 'externalRef' is not assigned and could be declared final 530
Parameter 'externalRefs' is not assigned and could be declared final 534
Parameter 'compound' is not assigned and could be declared final 542
Local variable 'word' could be declared final 554
Local variable 'wordOffset' could be declared final 555
Local variable 'word' could be declared final 566
Local variable 'wordOffset' could be declared final 567
Local variable 'length' could be declared final 568
Parameter 'second' is not assigned and could be declared final 582
Parameter 'first' is not assigned and could be declared final 582

pikes-naflib - ixa/kaflib/Terminal.java

Violation Line
Private field 'span' could be made final; it is only initialized in the declaration or constructor. 9
Parameter 'span' is not assigned and could be declared final 11
Parameter 'id' is not assigned and could be declared final 11
Local variable 'term' could be declared final 23
Prefer StringBuffer over += for concatenating strings 25
Prefer StringBuffer over += for concatenating strings 27
Local variable 'strValue' could be declared final 33
This call to String.startsWith can be rewritten using String.charAt(0) 34
Parameter 'tn' is not assigned and could be declared final 45

pikes-naflib - ixa/kaflib/Timex3.java

Violation Line
Parameter 'type' is not assigned and could be declared final 44
Parameter 'timex3id' is not assigned and could be declared final 44
Parameter 'id' is not assigned and could be declared final 96
Parameter 'type' is not assigned and could be declared final 104
Parameter 'beginPoint' is not assigned and could be declared final 116
Parameter 'endPoint' is not assigned and could be declared final 128
Parameter 'freq' is not assigned and could be declared final 140
Parameter 'quant' is not assigned and could be declared final 152
Parameter 'functionInDocument' is not assigned and could be declared final 164
Parameter 'temporalFunction' is not assigned and could be declared final 176
Parameter 'value' is not assigned and could be declared final 188
Parameter 'valueFromFunction' is not assigned and could be declared final 200
Parameter 'mod' is not assigned and could be declared final 212
Parameter 'anchorTimeId' is not assigned and could be declared final 224
Parameter 'comment' is not assigned and could be declared final 236
Parameter 'span' is not assigned and could be declared final 248
Parameter 'span' is not assigned and could be declared final 252
Local variable 'wf' could be declared final 254
Prefer StringBuffer over += for concatenating strings 256
Prefer StringBuffer over += for concatenating strings 258

pikes-naflib - ixa/kaflib/Topic.java

Violation Line
Parameter 'topicID' is not assigned and could be declared final 13
Parameter 'id' is not assigned and could be declared final 21

pikes-naflib - ixa/kaflib/Tree.java

Violation Line
Possible God class (WMC=77, ATFD=27, TCC=0.02197802197802198) 1279
The class 'Tree' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 7279
The class 'Tree' has a Cyclomatic Complexity of 5 (Highest = 21). 7279
The class 'Tree' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 7279
Avoid using redundant field initializer for 'sentence' 13
Parameter 'root' is not assigned and could be declared final 15
Parameter 'root' is not assigned and could be declared final 19
Parameter 'sentence' is not assigned and could be declared final 19
Parameter 'root' is not assigned and could be declared final 28
Parameter 'parOut' is not assigned and could be declared final 37
Parameter 'kaf' is not assigned and could be declared final 37
Parameter 'parOut' is not assigned and could be declared final 45
Parameter 'kaf' is not assigned and could be declared final 45
Parameter 'sentence' is not assigned and could be declared final 45
Local variable 'tokens' could be declared final 46
Local variable 'parMatching' could be declared final 48
Avoid declaring a variable if it is unreferenced before a possible exit point. 48
Local variable 'termMatching' could be declared final 49
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 51
Avoid unused local variables such as 'trees'. 54
Local variable 'trees' could be declared final 54
Local variable 'end' could be declared final 57
Local variable 'root' could be declared final 58
Parameter 'parOut' is not assigned and could be declared final 64
Local variable 'tokens' could be declared final 65
Local variable 'length' could be declared final 67
Avoid instantiating String objects; this is usually unnecessary. 68
Local variable 'nextChar' could be declared final 70
Avoid instantiating new objects inside loops 75
Avoid instantiating String objects; this is usually unnecessary. 75
Avoid instantiating new objects inside loops 76
Avoid instantiating String objects; this is usually unnecessary. 76
Avoid instantiating String objects; this is usually unnecessary. 82
Avoid instantiating new objects inside loops 82
Avoid instantiating new objects inside loops 83
Avoid instantiating String objects; this is usually unnecessary. 83
Useless parentheses. 85
Useless parentheses. 85
Avoid instantiating new objects inside loops 88
Avoid instantiating String objects; this is usually unnecessary. 88
Prefer StringBuffer over += for concatenating strings 92
Consider using varargs for methods or constructors which take an array the last parameter. 98
Parameter 'tokens' is not assigned and could be declared final 98
Local variable 'indexes' could be declared final 99
Local variable 'stack' could be declared final 100
Local variable 'token' could be declared final 102
Position literals first in String comparisons 103
Position literals first in String comparisons 106
The method 'matchTerms' has a Cyclomatic Complexity of 21. 114174
The method 'matchTerms' has a Standard Cyclomatic Complexity of 16. 114174
Parameter 'tokens' is not assigned and could be declared final 114
The method 'matchTerms' has a Modified Cyclomatic Complexity of 16. 114174
Parameter 'terms' is not assigned and could be declared final 114
Local variable 'mapping' could be declared final 115
Useless parentheses. 118
Useless parentheses. 118
Useless parentheses. 119
Useless parentheses. 119
These nested if statements could be combined 119170
Position literals first in String comparisons 126
Avoid instantiating new objects inside loops 127
Avoid instantiating String objects; this is usually unnecessary. 127
Position literals first in String comparisons 129
Avoid instantiating String objects; this is usually unnecessary. 130
Avoid instantiating new objects inside loops 130
Position literals first in String comparisons 132
Avoid instantiating new objects inside loops 133
Avoid instantiating String objects; this is usually unnecessary. 133
Position literals first in String comparisons 135
Avoid instantiating String objects; this is usually unnecessary. 136
Avoid instantiating new objects inside loops 136
Position literals first in String comparisons 138
Avoid instantiating new objects inside loops 139
Avoid instantiating String objects; this is usually unnecessary. 139
Position literals first in String comparisons 141
Avoid instantiating String objects; this is usually unnecessary. 142
Avoid instantiating new objects inside loops 142
Useless parentheses. 150
Useless parentheses. 158
Parameter 'kaf' is not assigned and could be declared final 176
Parameter 'tokens' is not assigned and could be declared final 176
Parameter 'parenthesesMap' is not assigned and could be declared final 176
Parameter 'start' is not assigned and could be declared final 176
Parameter 'end' is not assigned and could be declared final 176
Parameter 'termMap' is not assigned and could be declared final 176
Local variable 'isHead' could be declared final 178
Local variable 'nt' could be declared final 182
Local variable 't' could be declared final 187
Avoid empty catch blocks 190
Local variable 'subParEnd' could be declared final 195
Local variable 'nnt' could be declared final 196
Avoid empty catch blocks 199
Avoid unused method parameters such as 'token'. 206
Parameter 'kaf' is not assigned and could be declared final 206
Parameter 'token' is not assigned and could be declared final 206
Parameter 'term' is not assigned and could be declared final 206
Local variable 'span' could be declared final 207
The method 'check' has a Standard Cyclomatic Complexity of 12. 212248
The method 'check' has a Cyclomatic Complexity of 17. 212248
Consider using varargs for methods or constructors which take an array the last parameter. 212
The method 'check' has a Modified Cyclomatic Complexity of 12. 212248
Parameter 'tokens' is not assigned and could be declared final 212
Useless parentheses. 216
Useless parentheses. 216
Useless parentheses. 225
Useless parentheses. 231
Useless parentheses. 231
Parameter 'token' is not assigned and could be declared final 250
Useless parentheses. 251
Useless parentheses. 251
Position literals first in String comparisons 251
Position literals first in String comparisons 251
Parameter 'ind' is not assigned and could be declared final 254
Parameter 'tokens' is not assigned and could be declared final 254
Avoid instantiating String objects; this is usually unnecessary. 255
Prefer StringBuffer over += for concatenating strings 258
Prefer StringBuffer over += for concatenating strings 260
Prefer StringBuffer over += for concatenating strings 262
Prefer StringBuffer over += for concatenating strings 264
Parameter 'tag' is not assigned and could be declared final 269
Parameter 'tag' is not assigned and could be declared final 273

pikes-naflib - ixa/kaflib/TreeNode.java

Violation Line
Private field 'isTerminal' could be made final; it is only initialized in the declaration or constructor. 17
Parameter 'id' is not assigned and could be declared final 20
Parameter 'isTerminal' is not assigned and could be declared final 20
Parameter 'head' is not assigned and could be declared final 20
Parameter 'id' is not assigned and could be declared final 30
Parameter 'edgeId' is not assigned and could be declared final 42
Parameter 'head' is not assigned and could be declared final 50

pikes-naflib - ixa/kaflib/WF.java

Violation Line
Private field 'annotationContainer' could be made final; it is only initialized in the declaration or constructor. 10
Parameter 'annotationContainer' is not assigned and could be declared final 36
Parameter 'wid' is not assigned and could be declared final 36
Parameter 'form' is not assigned and could be declared final 36
Parameter 'sent' is not assigned and could be declared final 36
Parameter 'wf' is not assigned and could be declared final 47
Parameter 'annotationContainer' is not assigned and could be declared final 47
Parameter 'wid' is not assigned and could be declared final 63
Parameter 'sent' is not assigned and could be declared final 71
Parameter 'para' is not assigned and could be declared final 91
Parameter 'page' is not assigned and could be declared final 104
Parameter 'offset' is not assigned and could be declared final 116
Parameter 'length' is not assigned and could be declared final 128
Parameter 'xpath' is not assigned and could be declared final 140
Parameter 'form' is not assigned and could be declared final 148
Parameter 'second' is not assigned and could be declared final 162
Parameter 'first' is not assigned and could be declared final 162

pikes-raid - eu/fbk/dkm/pikes/raid/Analyzer.java

Violation Line
Possible God class (WMC=75, ATFD=72, TCC=0.022222222222222223) 1545
The class 'Analyzer' has a Modified Cyclomatic Complexity of 5 (Highest = 26). 47545
The class 'Analyzer' has a Standard Cyclomatic Complexity of 5 (Highest = 26). 47545
The class 'Analyzer' has a Cyclomatic Complexity of 6 (Highest = 29). 47545
Use block level rather than method level synchronization 163231
The method 'doAdd' has a Cyclomatic Complexity of 10. 163231
Avoid instantiating new objects inside loops 200
Avoid instantiating new objects inside loops 204
Avoid instantiating new objects inside loops 205
Avoid instantiating new objects inside loops 206
Avoid really long methods. 274397
The method 'renderOpinions' has a Modified Cyclomatic Complexity of 26. 274397
The method 'renderOpinions' has a Standard Cyclomatic Complexity of 26. 274397
The method 'renderOpinions' has a Cyclomatic Complexity of 29. 274397
Avoid really long methods. 443543
The method main() has an NPath complexity of 751 443543
Avoid declaring a variable if it is unreferenced before a possible exit point. 486487
Avoid declaring a variable if it is unreferenced before a possible exit point. 488489
Avoid declaring a variable if it is unreferenced before a possible exit point. 490491
Avoid declaring a variable if it is unreferenced before a possible exit point. 495
Avoid declaring a variable if it is unreferenced before a possible exit point. 496
Avoid declaring a variable if it is unreferenced before a possible exit point. 497
Avoid declaring a variable if it is unreferenced before a possible exit point. 498

pikes-raid - eu/fbk/dkm/pikes/raid/Component.java

Violation Line
Returning 'headPos' may expose an internal array. 32
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 53

pikes-raid - eu/fbk/dkm/pikes/raid/CreateTrainingForExpression.java

Violation Line
Possible God class (WMC=186, ATFD=127, TCC=0.3) 1894
The class 'CreateTrainingForExpression' has a Standard Cyclomatic Complexity of 33 (Highest = 91). 23894
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23894
The class 'CreateTrainingForExpression' has a Cyclomatic Complexity of 38 (Highest = 105). 23894
The class 'CreateTrainingForExpression' has a Modified Cyclomatic Complexity of 32 (Highest = 91). 23894
Too many fields 23894
Avoid using redundant field initializer for 'MAJORITY' 49
Avoid using redundant field initializer for 'FEATS_STANFORD' 51
Avoid using redundant field initializer for 'FEATS_SENTIWORDNET' 56
The method extractFeats() has an NCSS line count of 241 101461
The method 'extractFeats' has a Cyclomatic Complexity of 105. 101461
Parameter 'document' is not assigned and could be declared final 101
The method 'extractFeats' has a Modified Cyclomatic Complexity of 91. 101461
The method 'extractFeats' has a Standard Cyclomatic Complexity of 91. 101461
Parameter 'skipEmpty' is not assigned and could be declared final 101
The method extractFeats() has an NPath complexity of 600906662 101461
Parameter 'labels' is not assigned and could be declared final 101
Avoid really long methods. 101461
Parameter 'hypernyms' is not assigned and could be declared final 101
Local variable 'opinionTerms' could be declared final 102
Local variable 'stanfordTerms' could be declared final 103
Local variable 'entityTerms' could be declared final 104
Local variable 'srlFeatures' could be declared final 107
Local variable 'predicate' could be declared final 110
Local variable 'term' could be declared final 111
Local variable 'externalRef' could be declared final 113
Local variable 'role' could be declared final 120
Local variable 'externalRef' could be declared final 121
Local variable 'roleTerm' could be declared final 130
Local variable 'roleExternalRef' could be declared final 136
Local variable 'entity' could be declared final 156
Local variable 'term' could be declared final 157
Local variable 'opinion' could be declared final 163
Local variable 'label' could be declared final 177
Deeply nested if..then statements are hard to read 186192
These nested if statements could be combined 186192
Position literals first in String comparisons 188
These nested if statements could be combined 199201
Local variable 'term' could be declared final 205
Local variable 'senticnetMM' could be declared final 214
Local variable 'subjectivityMM' could be declared final 215
Local variable 'intensitiesMM' could be declared final 216
Local variable 'ret' could be declared final 219
Local variable 'sentence' could be declared final 223
Avoid instantiating new objects inside loops 223
Local variable 'sent' could be declared final 224
Local variable 'term' could be declared final 226
Local variable 'feats' could be declared final 227
Avoid instantiating new objects inside loops 227
Local variable 'to' could be declared final 240
Local variable 's' could be declared final 254
Local variable 'externalRef' could be declared final 271
Local variable 'snLexemes' could be declared final 283
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 290
Local variable 'lexeme' could be declared final 292
Avoid using a branching statement as the last in a loop. 298
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 328
Local variable 'lexeme' could be declared final 331
Deeply nested if..then statements are hard to read 332334
Avoid using a branching statement as the last in a loop. 336
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 349
Local variable 'lexeme' could be declared final 351
Deeply nested if..then statements are hard to read 352354
Avoid using a branching statement as the last in a loop. 356
Local variable 'type' could be declared final 371
Local variable 'lexeme' could be declared final 374
Deeply nested if..then statements are hard to read 375378
Local variable 'first' could be declared final 381
Local variable 'split' could be declared final 393
Local variable 'wnSense' could be declared final 398
Avoid instantiating new objects inside loops 401
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 405
Local variable 'hypernym' could be declared final 406
Local variable 'hypernym' could be declared final 418
Local variable 'swnPair' could be declared final 430
Local variable 'posTimes' could be declared final 431
Local variable 'negTimes' could be declared final 432
Position literals first in String comparisons 443
The method 'main' has a Cyclomatic Complexity of 38. 463696
Parameter 'args' is not assigned and could be declared final 463
The method 'main' has a Standard Cyclomatic Complexity of 32. 463696
Avoid really long methods. 463696
The method 'main' has a Modified Cyclomatic Complexity of 32. 463696
The method main() has an NCSS line count of 124 463696
The method main() has an NPath complexity of 8064001 463696
Consider using varargs for methods or constructors which take an array the last parameter. 463
Local variable 'mainFolder' could be declared final 485
Avoid declaring a variable if it is unreferenced before a possible exit point. 485
Avoid declaring a variable if it is unreferenced before a possible exit point. 486
Local variable 'outputFolder' could be declared final 486
Local variable 'wnFolder' could be declared final 488
Avoid declaring a variable if it is unreferenced before a possible exit point. 488
Local variable 'swnFolder' could be declared final 489
Avoid declaring a variable if it is unreferenced before a possible exit point. 489
Local variable 'label' could be declared final 491
Local variable 'labels' could be declared final 492
Avoid declaring a variable if it is unreferenced before a possible exit point. 492
Local variable 'skipEmptyTrain' could be declared final 494
Avoid declaring a variable if it is unreferenced before a possible exit point. 494
Local variable 'skipEmptyTest' could be declared final 495
Avoid declaring a variable if it is unreferenced before a possible exit point. 495
Local variable 'typeString' could be declared final 499
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 502
Avoid declaring a variable if it is unreferenced before a possible exit point. 514
Local variable 'slotSize' could be declared final 514
Local variable 'split' could be declared final 515
Avoid declaring a variable if it is unreferenced before a possible exit point. 515
Avoid declaring a variable if it is unreferenced before a possible exit point. 519
Local variable 'seed' could be declared final 519
Local variable 'trainList' could be declared final 529
Local variable 'testList' could be declared final 530
Useless parentheses. 532
Useless parentheses. 532
Local variable 'createdOutputFolder' could be declared final 539
Local variable 'trainFiles' could be declared final 565
Local variable 'testFiles' could be declared final 566
Local variable 'myCorpus' could be declared final 571
Local variable 'allHypernyms' could be declared final 576
Local variable 'columns' could be declared final 579
Local variable 'file' could be declared final 584
Local variable 'document' could be declared final 585
Local variable 'term' could be declared final 586
Local variable 'wnSense' could be declared final 587
Local variable 'hypernyms' could be declared final 589
Local variable 'file' could be declared final 597
Local variable 'document' could be declared final 598
Local variable 'sentences' could be declared final 599
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 600
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 600
Local variable 'key' could be declared final 601
Local variable 'trainDataFile' could be declared final 613
Local variable 'trainWriter' could be declared final 614
Local variable 'file' could be declared final 615
Local variable 'document' could be declared final 616
Local variable 'testDataFile' could be declared final 623
Local variable 'testWriter' could be declared final 624
Local variable 'file' could be declared final 625
Local variable 'document' could be declared final 626
Local variable 'templateFile' could be declared final 632
Local variable 'templateWriter' could be declared final 633
Local variable 'buffer' could be declared final 634
Local variable 'colName' could be declared final 638
Avoid appending characters as strings in StringBuffer.append. 644
Avoid appending characters as strings in StringBuffer.append. 644
Avoid appending characters as strings in StringBuffer.append. 648
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 648
Avoid appending characters as strings in StringBuffer.append. 648
Avoid appending characters as strings in StringBuffer.append. 649
Avoid appending characters as strings in StringBuffer.append. 649
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 649
Avoid appending characters as strings in StringBuffer.append. 650
Avoid appending characters as strings in StringBuffer.append. 654
Avoid appending characters as strings in StringBuffer.append. 654
StringBuffer (or StringBuilder).append is called 4 consecutive times with literal Strings. Use a single append with a single combined String. 654
Avoid appending characters as strings in StringBuffer.append. 655
Avoid appending characters as strings in StringBuffer.append. 655
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 655
Avoid appending characters as strings in StringBuffer.append. 655
Avoid appending characters as strings in StringBuffer.append. 656
Avoid appending characters as strings in StringBuffer.append. 661
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 661
Avoid appending characters as strings in StringBuffer.append. 661
Avoid appending characters as strings in StringBuffer.append. 662
Avoid appending characters as strings in StringBuffer.append. 662
Avoid appending characters as strings in StringBuffer.append. 663
Avoid appending characters as strings in StringBuffer.append. 664
Avoid appending characters as strings in StringBuffer.append. 664
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 664
Avoid appending characters as strings in StringBuffer.append. 665
Avoid appending characters as strings in StringBuffer.append. 671
Avoid appending characters as strings in StringBuffer.append. 671
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 671
Avoid appending characters as strings in StringBuffer.append. 672
Avoid appending characters as strings in StringBuffer.append. 672
Avoid appending characters as strings in StringBuffer.append. 673
Avoid appending characters as strings in StringBuffer.append. 674
Avoid appending characters as strings in StringBuffer.append. 674
Avoid appending characters as strings in StringBuffer.append. 675
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 676
Avoid appending characters as strings in StringBuffer.append. 676
Avoid appending characters as strings in StringBuffer.append. 676
Avoid appending characters as strings in StringBuffer.append. 677
Avoid appending characters as strings in StringBuffer.append. 681
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 684
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 684
Avoid appending characters as strings in StringBuffer.append. 685
Avoid appending characters as strings in StringBuffer.append. 685
Parameter 'term' is not assigned and could be declared final 698
Local variable 'externalRef' could be declared final 701
Parameter 'baseFolder' is not assigned and could be declared final 714
Parameter 'replaceExtension' is not assigned and could be declared final 714
Parameter 'fileList' is not assigned and could be declared final 714
Local variable 'ret' could be declared final 716
Avoid instantiating new objects inside loops 735
Local variable 'file' could be declared final 735
Parameter 'writer' is not assigned and could be declared final 753
The method 'writeFeats' has a Modified Cyclomatic Complexity of 22. 753893
Parameter 'document' is not assigned and could be declared final 753
Parameter 'type' is not assigned and could be declared final 753
Parameter 'skipEmptySentences' is not assigned and could be declared final 753
Parameter 'hypernyms' is not assigned and could be declared final 753
The method 'writeFeats' has a Cyclomatic Complexity of 30. 753893
Avoid really long methods. 753893
The method 'writeFeats' has a Standard Cyclomatic Complexity of 27. 753893
Parameter 'labels' is not assigned and could be declared final 753
Parameter 'slotSize' is not assigned and could be declared final 753
The method writeFeats() has an NPath complexity of 15040 753893
Switch statements should have a default label 761780
Local variable 'sentences' could be declared final 782
Prefer StringBuffer over += for concatenating strings 793
Local variable 'bigBuffer' could be declared final 795
Local variable 'sentence' could be declared final 797
Local variable 'isAnnotated' could be declared final 799
Avoid instantiating new objects inside loops 800
Local variable 'buffer' could be declared final 800
Local variable 'token' could be declared final 803
Local variable 'classification' could be declared final 804
A switch with less than three branches is inefficient, use a if statement instead. 810878
Switch statements should have a default label 810878
A high ratio of statements to labels in a switch statement. Consider refactoring. 810878
Local variable 'key' could be declared final 813
Local variable 'value' could be declared final 818
Avoid appending characters as strings in StringBuffer.append. 825
Local variable 'key' could be declared final 839
Local variable 'thisValue' could be declared final 858
Avoid appending characters as strings in StringBuffer.append. 864
Avoid appending characters as strings in StringBuffer.append. 864
Avoid appending characters as strings in StringBuffer.append. 865
Avoid appending characters as strings in StringBuffer.append. 884
Avoid appending characters as strings in StringBuffer.append. 886

pikes-raid - eu/fbk/dkm/pikes/raid/EvaluateOnStanford.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23235
The class 'EvaluateOnStanford' has a Cyclomatic Complexity of 9 (Highest = 29). 23235
The class 'EvaluateOnStanford' has a Modified Cyclomatic Complexity of 7 (Highest = 23). 23235
The class 'EvaluateOnStanford' has a Standard Cyclomatic Complexity of 7 (Highest = 23). 23235
Avoid unused private fields such as 'STANFORD_LABEL'. 26
Parameter 'desc' is not assigned and could be declared final 37
Parameter 'unsortedMap' is not assigned and could be declared final 37
Local variable 'sortedMap' could be declared final 38
Avoid unused private methods such as 'addOpinionToMap(Map,Opinion)'. 43
Parameter 'map' is not assigned and could be declared final 43
Parameter 'opinion' is not assigned and could be declared final 43
The method main() has an NPath complexity of 7513 47199
Parameter 'args' is not assigned and could be declared final 47
The method 'main' has a Modified Cyclomatic Complexity of 23. 47199
The method 'main' has a Standard Cyclomatic Complexity of 23. 47199
Avoid really long methods. 47199
Consider using varargs for methods or constructors which take an array the last parameter. 47
The method 'main' has a Cyclomatic Complexity of 29. 47199
Local variable 'mainFolder' could be declared final 63
Local variable 'threshold' could be declared final 69
Local variable 'fileIterator' could be declared final 85
Local variable 'precisionRecallStats' could be declared final 87
Local variable 'file' could be declared final 94
Local variable 'document' could be declared final 97
Avoid instantiating new objects inside loops 100
Local variable 'mpqaOpinions' could be declared final 100
Local variable 'stanfordOpinions' could be declared final 101
Avoid instantiating new objects inside loops 101
Local variable 'opinion' could be declared final 103
These nested if statements could be combined 105108
Local variable 'entry' could be declared final 119
Local variable 'opinion' could be declared final 120
Avoid instantiating new objects inside loops 121
Local variable 'terms' could be declared final 121
Local variable 'checkEntry' could be declared final 123
Local variable 'checkOpinion' could be declared final 124
Avoid instantiating new objects inside loops 126
Local variable 'checkTerms' could be declared final 126
Local variable 'sizeBefore' could be declared final 127
Local variable 'goldPolarity' could be declared final 133
Local variable 'stanfordPolarities' could be declared final 135
Local variable 'parts' could be declared final 137
Local variable 'neg' could be declared final 138
Local variable 'neu' could be declared final 139
Local variable 'pos' could be declared final 140
Position literals first in String comparisons 168
Parameter 'polarity' is not assigned and could be declared final 201
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 202
Local variable 'p' could be declared final 202
The method 'isValidOpinion' has a Cyclomatic Complexity of 11. 215233
Avoid unnecessary if..then..else statements when returning booleans 227229

pikes-raid - eu/fbk/dkm/pikes/raid/Evaluation.java

Violation Line
The class 'Evaluation' has a Cyclomatic Complexity of 14 (Highest = 13). 18169
The class 'Evaluation' has a Standard Cyclomatic Complexity of 14 (Highest = 13). 18169
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 18169
The class 'Evaluation' has a Modified Cyclomatic Complexity of 14 (Highest = 13). 18169
Avoid really long methods. 22168
Parameter 'args' is not assigned and could be declared final 22
The method 'main' has a Modified Cyclomatic Complexity of 13. 22168
Consider using varargs for methods or constructors which take an array the last parameter. 22
The method main() has an NPath complexity of 326 22168
The method 'main' has a Standard Cyclomatic Complexity of 13. 22168
The method 'main' has a Cyclomatic Complexity of 13. 22168
Local variable 'testFile' could be declared final 33
Local variable 'e' could be declared final 37
Local variable 'reader' could be declared final 39
String.trim().length()==0 is an inefficient way to validate an empty String. 61
String.trim().length()==0 is an inefficient way to validate an empty String. 67
Local variable 'allGold' could be declared final 73
Avoid instantiating new objects inside loops 73
Local variable 'goldSpan' could be declared final 74
Local variable 'allTest' could be declared final 77
Avoid instantiating new objects inside loops 77
Local variable 'testSpan' could be declared final 78
Local variable 'parts' could be declared final 102
Local variable 'testCol' could be declared final 107
Local variable 'goldCol' could be declared final 108
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 124
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 134
Local variable 'spr' could be declared final 149

pikes-raid - eu/fbk/dkm/pikes/raid/Extractor.java

Violation Line
Avoid unused private methods such as 'extract(KAFDocument,String,EnumSet)'. 8990
Avoid unused private methods such as 'refine(KAFDocument,Iterable,String,EnumSet)'. 115116
New exception is thrown in catch block, original stack trace may be lost 233234
The method main() has an NPath complexity of 601 242344
Avoid really long methods. 242344

pikes-raid - eu/fbk/dkm/pikes/raid/OpinionSet.java

Violation Line
Private field 'opinion' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'size' could be made final; it is only initialized in the declaration or constructor. 19
Parameter 'opinion' is not assigned and could be declared final 21
Avoid using redundant field initializer for 'desc' 45
Parameter 'desc' is not assigned and could be declared final 47
Parameter 'o2' is not assigned and could be declared final 52
Parameter 'o1' is not assigned and could be declared final 52
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
Parameter 'desc' is not assigned and could be declared final 80
Parameter 'opinion' is not assigned and could be declared final 84

pikes-raid - eu/fbk/dkm/pikes/raid/Opinions.java

Violation Line
Possible God class (WMC=50, ATFD=62, TCC=0.0) 1227
The class 'Opinions' has a Standard Cyclomatic Complexity of 5 (Highest = 10). 21227
The class 'Opinions' has a Cyclomatic Complexity of 6 (Highest = 14). 21227
The class 'Opinions' has a Modified Cyclomatic Complexity of 5 (Highest = 10). 21227
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 21227
The method 'split' has a Modified Cyclomatic Complexity of 10. 75132
The method 'split' has a Standard Cyclomatic Complexity of 10. 75132
The method 'split' has a Cyclomatic Complexity of 10. 75132
The method 'retain' has a Cyclomatic Complexity of 14. 134179
The method 'retain' has a Standard Cyclomatic Complexity of 10. 134179
The method 'retain' has a Modified Cyclomatic Complexity of 10. 134179
The method retain() has an NPath complexity of 257 134179
The method 'create' has a Cyclomatic Complexity of 12. 181225

pikes-raid - eu/fbk/dkm/pikes/raid/SenticSubjlexTraining.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 28212
The class 'SenticSubjlexTraining' has a Cyclomatic Complexity of 20 (Highest = 19). 28212
The class 'SenticSubjlexTraining' has a Standard Cyclomatic Complexity of 19 (Highest = 18). 28212
The class 'SenticSubjlexTraining' has a Modified Cyclomatic Complexity of 19 (Highest = 18). 28212
The method 'main' has a Standard Cyclomatic Complexity of 18. 33211
The method 'main' has a Modified Cyclomatic Complexity of 18. 33211
The method 'main' has a Cyclomatic Complexity of 19. 33211
The method main() has an NPath complexity of 13473 33211
Avoid really long methods. 33211
Consider using varargs for methods or constructors which take an array the last parameter. 33
Parameter 'args' is not assigned and could be declared final 33
Local variable 'mainFolder' could be declared final 45
Local variable 'wnFolder' could be declared final 46
Local variable 'stemmer' could be declared final 57
Avoid unused local variables such as 'stemmer'. 57
Local variable 'senticNet' could be declared final 70
Local variable 'subjectivityLexicon' could be declared final 71
Local variable 'parameters' could be declared final 86
Local variable 'trainingSet' could be declared final 87
Local variable 'files' could be declared final 92
Local variable 'file' could be declared final 94
Local variable 'document' could be declared final 101
Local variable 'senticnetMM' could be declared final 104
Local variable 'subjectivityMM' could be declared final 105
Avoid instantiating new objects inside loops 107
Local variable 'opinionTerms' could be declared final 107
Local variable 'opinion' could be declared final 109
Local variable 'term' could be declared final 126
Local variable 'term' could be declared final 131
Local variable 'vector' could be declared final 157
Avoid unused local variables such as 'grid'. 193
Local variable 'grid' could be declared final 193

pikes-raid - eu/fbk/dkm/pikes/raid/SimpleEvaluation.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1461
Avoid unused private fields such as 'LOGGER'. 16
Parameter 'args' is not assigned and could be declared final 18
Consider using varargs for methods or constructors which take an array the last parameter. 18
Local variable 'testFile' could be declared final 29
Local variable 'reader' could be declared final 30
Local variable 'parts' could be declared final 39
Local variable 'testCol' could be declared final 44
Local variable 'goldCol' could be declared final 45

pikes-raid - eu/fbk/dkm/pikes/raid/Trainer.java

Violation Line
The class 'Trainer' has a Cyclomatic Complexity of 3 (Highest = 10). 43301
The method 'doAdd' has a Cyclomatic Complexity of 10. 114161
Avoid instantiating new objects inside loops 151
Consider using varargs for methods or constructors which take an array the last parameter. 171
New exception is thrown in catch block, original stack trace may be lost 195
Avoid really long methods. 199300

pikes-raid - eu/fbk/dkm/pikes/raid/UpdateNafsWithResults.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 25399
The class 'UpdateNafsWithResults' has a Modified Cyclomatic Complexity of 25 (Highest = 24). 25399
The class 'UpdateNafsWithResults' has a Cyclomatic Complexity of 29 (Highest = 28). 25399
The class 'UpdateNafsWithResults' has a Standard Cyclomatic Complexity of 25 (Highest = 24). 25399
Avoid unused private fields such as 'MAX_DOCS'. 28
Avoid unused private fields such as 'DEFAULT_LABEL'. 29
Avoid unused private fields such as 'DEFAULT_CLASSIFICATION_LABEL'. 32
The method main() has an NPath complexity of 191881 38397
The method main() has an NCSS line count of 102 38397
Consider using varargs for methods or constructors which take an array the last parameter. 38
Parameter 'args' is not assigned and could be declared final 38
The method 'main' has a Modified Cyclomatic Complexity of 24. 38397
The method 'main' has a Standard Cyclomatic Complexity of 24. 38397
Avoid really long methods. 38397
The method 'main' has a Cyclomatic Complexity of 28. 38397
Avoid declaring a variable if it is unreferenced before a possible exit point. 60
Local variable 'mainFolder' could be declared final 60
Local variable 'outputFolder' could be declared final 61
Avoid declaring a variable if it is unreferenced before a possible exit point. 61
Local variable 'resultsFile' could be declared final 63
Avoid declaring a variable if it is unreferenced before a possible exit point. 63
Local variable 'label' could be declared final 64
Avoid declaring a variable if it is unreferenced before a possible exit point. 64
Avoid declaring a variable if it is unreferenced before a possible exit point. 65
Local variable 'split' could be declared final 65
Avoid declaring a variable if it is unreferenced before a possible exit point. 66
Local variable 'seed' could be declared final 66
Local variable 'trainList' could be declared final 76
Local variable 'testList' could be declared final 77
Local variable 'sentimentModel' could be declared final 79
Avoid declaring a variable if it is unreferenced before a possible exit point. 79
Avoid declaring a variable if it is unreferenced before a possible exit point. 80
Local variable 'sentimentProperties' could be declared final 80
Local variable 'negLimit' could be declared final 82
Avoid declaring a variable if it is unreferenced before a possible exit point. 82
Local variable 'posLimit' could be declared final 83
Avoid declaring a variable if it is unreferenced before a possible exit point. 83
Avoid declaring a variable if it is unreferenced before a possible exit point. 85
Local variable 'fakeMode' could be declared final 85
Useless parentheses. 87
Useless parentheses. 87
Local variable 'mkdirs' could be declared final 94
Local variable 'prp' could be declared final 104
Local variable 'iS' could be declared final 105
Local variable 'trainFiles' could be declared final 116
Local variable 'testFiles' could be declared final 117
Local variable 'myCorpus' could be declared final 122
Local variable 'reader' could be declared final 126
Local variable 'startIndex' could be declared final 127
Local variable 'endIndex' could be declared final 128
Local variable 'parts' could be declared final 135
Local variable 'res' could be declared final 140
This call to String.startsWith can be rewritten using String.charAt(0) 143
This call to String.startsWith can be rewritten using String.charAt(0) 148
These nested if statements could be combined 149151
Local variable 'file' could be declared final 158
Local variable 'baseFileName' could be declared final 160
Local variable 'outputFile' could be declared final 161
Local variable 'document' could be declared final 165
Local variable 'terms' could be declared final 166
Local variable 'length' could be declared final 171
Local variable 'termSpan' could be declared final 172
Local variable 'opinion' could be declared final 184
Local variable 'opinionExpression' could be declared final 186
Local variable 'computedPolarity' could be declared final 263
Deeply nested if..then statements are hard to read 267269
Deeply nested if..then statements are hard to read 270272

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/APIManager.java

Violation Line
Possible God class (WMC=68, ATFD=68, TCC=0.0) 1436
The class 'APIManager' has a Modified Cyclomatic Complexity of 10 (Highest = 35). 19436
The class 'APIManager' has a Standard Cyclomatic Complexity of 10 (Highest = 35). 19436
The class 'APIManager' has a Cyclomatic Complexity of 12 (Highest = 41). 19436
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 21
Perhaps 'domain' could be replaced by a local variable. 22
Perhaps 'wnl' could be replaced by a local variable. 23
Local variable 'iS' could be declared final 30
Parameter 'prp' is not assigned and could be declared final 35
Parameter 'modelPath' is not assigned and could be declared final 40
The method evaluateSentence() has an NPath complexity of 132678 51198
Avoid really long methods. 51198
The method 'evaluateSentence' has a Standard Cyclomatic Complexity of 22. 51198
The method 'evaluateSentence' has a Modified Cyclomatic Complexity of 22. 51198
Parameter 'text' is not assigned and could be declared final 51
The method 'evaluateSentence' has a Cyclomatic Complexity of 27. 51198
Avoid declaring a variable if it is unreferenced before a possible exit point. 52
Local variable 'sentenceTokens' could be declared final 61
Local variable 'stemmedTokens' could be declared final 62
Local variable 'eT' could be declared final 64
Local variable 'lexToken' could be declared final 68
Avoid instantiating new objects inside loops 73
Avoid instantiating new objects inside loops 75
Local variable 'stemmer' could be declared final 75
Avoid instantiating new objects inside loops 82
Local variable 'it' could be declared final 85
Local variable 'currentConcept' could be declared final 87
Local variable 'cts' could be declared final 88
Local variable 'ct' could be declared final 93
Avoid using if statements without curly braces 106
Avoid using if statements without curly braces 107
Local variable 'notToken' could be declared final 111
Avoid empty if statements 112114
Useless parentheses. 118
Useless parentheses. 120
Useless parentheses. 120
Useless parentheses. 120
Local variable 'feature' could be declared final 133
Local variable 'ratioFactor' could be declared final 142
Local variable 'fm' could be declared final 144
Avoid using if statements without curly braces 173
Avoid using if statements without curly braces 174
Avoid using if statements without curly braces 175
Avoid using if statements without curly braces 176
Parameter 'blockedNodes' is not assigned and could be declared final 205
Parameter 'sentence' is not assigned and could be declared final 205
Parameter 'startNodeId' is not assigned and could be declared final 205
Local variable 'dependencies' could be declared final 206
Local variable 'dependenciesList' could be declared final 207
The method evaluateSentence() has an NPath complexity of 36619128 211431
The method 'evaluateSentence' has a Standard Cyclomatic Complexity of 35. 211431
Parameter 'dependenciesList' is not assigned and could be declared final 211
The method 'evaluateSentence' has a Modified Cyclomatic Complexity of 35. 211431
The method 'evaluateSentence' has a Cyclomatic Complexity of 41. 211431
Parameter 'startNodeId' is not assigned and could be declared final 211
The method evaluateSentence() has an NCSS line count of 131 211431
Avoid really long methods. 211431
Parameter 'blockedNodes' is not assigned and could be declared final 211
Local variable 'tokensToPolarize' could be declared final 212
Avoid declaring a variable if it is unreferenced before a possible exit point. 213
Local variable 'tokensToBlock' could be declared final 218
Local variable 'tokensToAnalyze' could be declared final 219
Local variable 'bn' could be declared final 221
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 226
Local variable 'currentNode' could be declared final 227
Local variable 'rel' could be declared final 229
String.indexOf(char) is faster than String.indexOf(String). 229
String.indexOf(char) is faster than String.indexOf(String). 229
Local variable 'gov' could be declared final 230
Local variable 'dep' could be declared final 231
Local variable 'blockFlag' could be declared final 232
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 240
Avoid instantiating new objects inside loops 242
Avoid instantiating new objects inside loops 248
Avoid instantiating new objects inside loops 261
Avoid instantiating new objects inside loops 267
Avoid instantiating String objects; this is usually unnecessary. 279
Avoid instantiating new objects inside loops 281
Local variable 'token' could be declared final 281
Local variable 'sentenceTokens' could be declared final 294
Local variable 'stemmedTokens' could be declared final 295
Local variable 'eT' could be declared final 297
Local variable 'lexToken' could be declared final 301
Avoid instantiating new objects inside loops 306
Local variable 'stemmer' could be declared final 308
Avoid instantiating new objects inside loops 308
Avoid instantiating new objects inside loops 315
Local variable 'it' could be declared final 318
Local variable 'currentConcept' could be declared final 320
Local variable 'cts' could be declared final 321
Local variable 'ct' could be declared final 326
Avoid using if statements without curly braces 339
Avoid using if statements without curly braces 340
Local variable 'notToken' could be declared final 344
Avoid empty if statements 345347
Useless parentheses. 351
Useless parentheses. 353
Useless parentheses. 353
Useless parentheses. 353
Local variable 'feature' could be declared final 366
Local variable 'ratioFactor' could be declared final 375
Local variable 'fm' could be declared final 377
Avoid using if statements without curly braces 406
Avoid using if statements without curly braces 407
Avoid using if statements without curly braces 408
Avoid using if statements without curly braces 409

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/FileManager.java

Violation Line
Private field 'fileName' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'currentFile' could be made final; it is only initialized in the declaration or constructor. 25
Private field 'absolutePath' could be made final; it is only initialized in the declaration or constructor. 26
Perhaps 'rowsList' could be replaced by a local variable. 29
Private field 'mode' could be made final; it is only initialized in the declaration or constructor. 38
Parameter 'fileAbsolutePath' is not assigned and could be declared final 46
Parameter 'm' is not assigned and could be declared final 46
Local variable 'iS' could be declared final 55
Local variable 'reader' could be declared final 59
Parameter 'dataStream' is not assigned and could be declared final 79
Avoid instantiating String objects; this is usually unnecessary. 137
Parameter 'rowDelimiter' is not assigned and could be declared final 147
Avoid instantiating String objects; this is usually unnecessary. 148
Document empty method body 160162
Parameter 'splitter' is not assigned and could be declared final 165
Local variable 'splittedData' could be declared final 167
Local variable 'content' could be declared final 170
Local variable 'dbFactory' could be declared final 181
Local variable 'dBuilder' could be declared final 182
Avoid declaring a variable if it is unreferenced before a possible exit point. 193
Local variable 'model' could be declared final 193
Local variable 'in' could be declared final 196

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/MaxEntTagger.java

Violation Line
Perhaps 'prp' could be replaced by a local variable. 17
Perhaps 'modelName' could be replaced by a local variable. 18
Parameter 'prp' is not assigned and could be declared final 21
Parameter 'fn' is not assigned and could be declared final 33
Avoid instantiating String objects; this is usually unnecessary. 34
Local variable 'sentences' could be declared final 36
Local variable 'sentence' could be declared final 37
Local variable 'tSentence' could be declared final 38

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/DatasetInstanceParser.java

Violation Line
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 16
Private field 'wnl' could be made final; it is only initialized in the declaration or constructor. 17
Private field 'db' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'met' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'wnl' is not assigned and could be declared final 22
Parameter 'prp' is not assigned and could be declared final 22
Parameter 'originalText' is not assigned and could be declared final 38
Parameter 'id' is not assigned and could be declared final 38
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 93
Local variable 'ssr' could be declared final 101
Parameter 'datasetName' is not assigned and could be declared final 125
Parameter 'filename' is not assigned and could be declared final 125
Local variable 'fm' could be declared final 126
Local variable 'contents' could be declared final 128
Local variable 'rdfOut' could be declared final 130
Do not add empty strings 149

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/DependenciesBuilder.java

Violation Line
Perhaps 'tlp' could be replaced by a local variable. 18
Document empty constructor 2324
Parameter 'text' is not assigned and could be declared final 43
Local variable 'reader' could be declared final 47
Avoid unused local variables such as 'dp'. 48
Local variable 'dp' could be declared final 48
Local variable 'sentence' could be declared final 49
Local variable 'parsedTree' could be declared final 53
Local variable 'gs' could be declared final 56
Local variable 'tdl' could be declared final 57
Avoid instantiating new objects inside loops 59
Local variable 'dt' could be declared final 59
Local variable 'td' could be declared final 60
Local variable 'dep' could be declared final 61
Local variable 'gov' could be declared final 62
Local variable 'gr' could be declared final 63
Local variable 'depString' could be declared final 64
Parameter 'texts' is not assigned and could be declared final 75
Local variable 'dtList' could be declared final 76
Local variable 'text' could be declared final 78
Local variable 'sent' could be declared final 80
Local variable 'parse' could be declared final 81
Local variable 'gs' could be declared final 82
Local variable 'tdl' could be declared final 83
Avoid instantiating new objects inside loops 84
Local variable 'curDT' could be declared final 84
Local variable 'td' could be declared final 85
Local variable 'dep' could be declared final 86
Local variable 'gov' could be declared final 87
Local variable 'gr' could be declared final 88
Local variable 'depString' could be declared final 89

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/DependencyTree.java

Violation Line
Private field 'dependecies' could be made final; it is only initialized in the declaration or constructor. 10
Parameter 'dep' is not assigned and could be declared final 16

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/ReviewsParser.java

Violation Line
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'wnl' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'wnl' is not assigned and could be declared final 22
Parameter 'prp' is not assigned and could be declared final 22
Parameter 'datasetName' is not assigned and could be declared final 32
Return an empty array rather than null. 3237
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
Avoid unused local variables such as 'positiveReviews'. 33
Local variable 'positiveReviews' could be declared final 33
Local variable 'negativeReviews' could be declared final 34
Avoid unused local variables such as 'negativeReviews'. 34
Avoid declaring a variable if it is unreferenced before a possible exit point. 34
Avoid declaring a variable if it is unreferenced before a possible exit point. 35
Local variable 'allReviews' could be declared final 35
Avoid unused local variables such as 'allReviews'. 35
Parameter 'filename' is not assigned and could be declared final 44
Avoid really long methods. 44169
Local variable 'wnlex' could be declared final 46
Local variable 'ssrList' could be declared final 47
Avoid declaring a variable if it is unreferenced before a possible exit point. 48
Local variable 'treeParser' could be declared final 48
Avoid unused local variables such as 'treeParser'. 48
Local variable 'db' could be declared final 49
Local variable 'met' could be declared final 50
Local variable 'fm' could be declared final 52
Local variable 'content' could be declared final 53
Avoid declaring a variable if it is unreferenced before a possible exit point. 55
Avoid unused local variables such as 'task'. 55
Local variable 'task' could be declared final 55
Local variable 'iter' could be declared final 59
Avoid unused local variables such as 'stmtID'. 62
Local variable 'stmtID' could be declared final 62
Avoid declaring a variable if it is unreferenced before a possible exit point. 62
Ensure that resources like this Statement object are closed after use 66
Local variable 'stmt' could be declared final 66
Local variable 'subject' could be declared final 67
Local variable 'predicate' could be declared final 68
Avoid unused local variables such as 'predicate'. 68
Local variable 'object' could be declared final 69
Local variable 'endText' could be declared final 72
Local variable 'currentReviewOriginal' could be declared final 73
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 125
Avoid instantiating new objects inside loops 144
Local variable 'ssr' could be declared final 144
Parameter 'filename' is not assigned and could be declared final 177
Parameter 'datasetName' is not assigned and could be declared final 177
Local variable 'fm' could be declared final 178
Local variable 'contents' could be declared final 180
Local variable 'rdfOut' could be declared final 182
Do not add empty strings 201

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/wordnet/WordNetLexicalizer.java

Violation Line
Too many fields 5390
The class 'WordNetLexicalizer' has a Cyclomatic Complexity of 6 (Highest = 20). 5390
The class 'WordNetLexicalizer' has a Modified Cyclomatic Complexity of 5 (Highest = 17). 5390
The class 'WordNetLexicalizer' has a Standard Cyclomatic Complexity of 5 (Highest = 17). 5390
Private field 'SufxNoun' could be made final; it is only initialized in the declaration or constructor. 8
Private field 'EndNoun' could be made final; it is only initialized in the declaration or constructor. 9
Private field 'SufxVerb' could be made final; it is only initialized in the declaration or constructor. 10
Private field 'EndVerb' could be made final; it is only initialized in the declaration or constructor. 11
Private field 'SufxAdj' could be made final; it is only initialized in the declaration or constructor. 12
Private field 'EndAdj' could be made final; it is only initialized in the declaration or constructor. 13
Perhaps 'S' could be replaced by a local variable. 14
Private field 'allNouns' could be made final; it is only initialized in the declaration or constructor. 17
Private field 'allVerbs' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'allAdjs' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'allAdvs' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'nounExceptions' could be made final; it is only initialized in the declaration or constructor. 21
Private field 'verbExceptions' could be made final; it is only initialized in the declaration or constructor. 22
Private field 'adjExceptions' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'advExceptions' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'HNoun' could be made final; it is only initialized in the declaration or constructor. 26
Private field 'HVerb' could be made final; it is only initialized in the declaration or constructor. 27
Private field 'HAdj' could be made final; it is only initialized in the declaration or constructor. 28
Parameter 'allTerms' is not assigned and could be declared final 35
The user-supplied array 'allTerms' is stored directly. 35
Parameter 'exceptions' is not assigned and could be declared final 35
Consider using varargs for methods or constructors which take an array the last parameter. 35
The user-supplied array 'exceptions' is stored directly. 35
The user-supplied array 'allTerms' is stored directly. 35
The user-supplied array 'allTerms' is stored directly. 35
The user-supplied array 'exceptions' is stored directly. 35
The user-supplied array 'exceptions' is stored directly. 35
The user-supplied array 'allTerms' is stored directly. 35
The user-supplied array 'exceptions' is stored directly. 35
Parameter 't' is not assigned and could be declared final 62
Parameter 'word' is not assigned and could be declared final 67
Parameter 'posTag' is not assigned and could be declared final 80
Parameter 'word' is not assigned and could be declared final 80
Parameter 'noun' is not assigned and could be declared final 114
Avoid declaring a variable if it is unreferenced before a possible exit point. 116
Avoid declaring a variable if it is unreferenced before a possible exit point. 117
These nested if statements could be combined 127134
Avoid instantiating new objects inside loops 128
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 129
Parameter 'verb' is not assigned and could be declared final 146
Avoid declaring a variable if it is unreferenced before a possible exit point. 148
Avoid declaring a variable if it is unreferenced before a possible exit point. 149
These nested if statements could be combined 159166
Avoid instantiating new objects inside loops 160
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 161
Parameter 'adj' is not assigned and could be declared final 179
Avoid declaring a variable if it is unreferenced before a possible exit point. 181
Avoid declaring a variable if it is unreferenced before a possible exit point. 182
These nested if statements could be combined 192199
Avoid instantiating new objects inside loops 193
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 194
Parameter 'adv' is not assigned and could be declared final 211
Avoid declaring a variable if it is unreferenced before a possible exit point. 213
Avoid declaring a variable if it is unreferenced before a possible exit point. 214
These nested if statements could be combined 224231
Avoid instantiating new objects inside loops 225
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 226
Avoid really long methods. 244351
The method 'getLexicalization' has a Cyclomatic Complexity of 20. 244351
The method 'getLexicalization' has a Modified Cyclomatic Complexity of 17. 244351
The method getLexicalization() has an NPath complexity of 344 244351
The method 'getLexicalization' has a Standard Cyclomatic Complexity of 17. 244351
Avoid instantiating String objects; this is usually unnecessary. 247
These nested if statements could be combined 262277
Avoid instantiating new objects inside loops 266268
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 270
These nested if statements could be combined 291309
Avoid instantiating new objects inside loops 296298
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 301
These nested if statements could be combined 323342
Avoid instantiating new objects inside loops 329331
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 334
Avoid empty catch blocks 348
Parameter 'CurrentString' is not assigned and could be declared final 355
Local variable 'Words' could be declared final 358
Avoid using if statements without curly braces 374
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 376
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 377
Avoid using if statements without curly braces 377
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 378
Avoid using if statements without curly braces 378
Avoid using if...else statements without curly braces 381

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/wordnet/WordNetLoader.java

Violation Line
Too many fields 12365
The class 'WordNetLoader' has a Modified Cyclomatic Complexity of 2 (Highest = 15). 12365
The class 'WordNetLoader' has a Standard Cyclomatic Complexity of 2 (Highest = 15). 12365
The class 'WordNetLoader' has a Cyclomatic Complexity of 2 (Highest = 15). 12365
Private field 'wordSynsets' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'synsetWords' could be made final; it is only initialized in the declaration or constructor. 16
Private field 'allowedRelations' could be made final; it is only initialized in the declaration or constructor. 17
Private field 'weightsRelations' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'synsetRelations' could be made final; it is only initialized in the declaration or constructor. 19
Parameter 'prp' is not assigned and could be declared final 42
Local variable 'fm' could be declared final 90
Local variable 'relations' could be declared final 91
Local variable 'it' could be declared final 92
Local variable 'currentRelation' could be declared final 94
Local variable 'tokens' could be declared final 95
The method 'loadWordNetRawData' has a Cyclomatic Complexity of 15. 105220
Avoid really long methods. 105220
The method 'loadWordNetRawData' has a Standard Cyclomatic Complexity of 15. 105220
The method 'loadWordNetRawData' has a Modified Cyclomatic Complexity of 15. 105220
The method loadWordNetRawData() has an NPath complexity of 1081 105220
Local variable 'row' could be declared final 116
Local variable 'currentWord' could be declared final 121
Local variable 'currentSynset' could be declared final 122
Avoid instantiating new objects inside loops 127
Avoid instantiating new objects inside loops 135
Local variable 'row' could be declared final 147
Local variable 'currentSynSource' could be declared final 152
Local variable 'currentSynTarget' could be declared final 153
Local variable 'currentRelation' could be declared final 154
Avoid instantiating new objects inside loops 158
Avoid instantiating new objects inside loops 160161
Local variable 'wnr' could be declared final 160161
Avoid instantiating new objects inside loops 177
Local variable 'row' could be declared final 179
Local variable 'data' could be declared final 183
Avoid instantiating new objects inside loops 184
Avoid instantiating new objects inside loops 198
Local variable 'row' could be declared final 200
Local variable 'curExc' could be declared final 201
Local variable 'stopwordsFile' could be declared final 210
Local variable 'row' could be declared final 213
Parameter 'g' is not assigned and could be declared final 229
Local variable 'synsets' could be declared final 236
Local variable 'currentSynset' could be declared final 238
Local variable 'synRelations' could be declared final 239
Local variable 'rel' could be declared final 240
Local variable 'targetSynset' could be declared final 241
Local variable 'weight' could be declared final 242
Returning 'allTerms' may expose an internal array. 257
Parameter 'allTerms' is not assigned and could be declared final 261
Consider using varargs for methods or constructors which take an array the last parameter. 261
The user-supplied array 'allTerms' is stored directly. 261
Parameter 'allNouns' is not assigned and could be declared final 271
Parameter 'allVerbs' is not assigned and could be declared final 281
Parameter 'allAdjs' is not assigned and could be declared final 291
Parameter 'allAdvs' is not assigned and could be declared final 301
Returning 'allExceptions' may expose an internal array. 307
The user-supplied array 'allExceptions' is stored directly. 311
Consider using varargs for methods or constructors which take an array the last parameter. 311
Parameter 'allExceptions' is not assigned and could be declared final 311
Parameter 'nounExceptions' is not assigned and could be declared final 321
Parameter 'verbExceptions' is not assigned and could be declared final 331
Parameter 'adjExceptions' is not assigned and could be declared final 341
Parameter 'advExceptions' is not assigned and could be declared final 351
Parameter 'stopwords' is not assigned and could be declared final 361

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/wordnet/WordNetRelation.java

Violation Line
Parameter 't' is not assigned and could be declared final 9
Parameter 'w' is not assigned and could be declared final 9
Parameter 'r' is not assigned and could be declared final 9
Parameter 'relationType' is not assigned and could be declared final 19
Parameter 'targetSynset' is not assigned and could be declared final 27
Parameter 'relationWeight' is not assigned and could be declared final 35

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/LinkLabeller.java

Violation Line
Possible God class (WMC=92, ATFD=77, TCC=0.041666666666666664) 1519
The class 'LinkLabeller' has a Cyclomatic Complexity of 5 (Highest = 22). 44519
The class 'LinkLabeller' has a Modified Cyclomatic Complexity of 5 (Highest = 16). 44519
The class 'LinkLabeller' has a Standard Cyclomatic Complexity of 5 (Highest = 16). 44519
The method 'candidates' has a Modified Cyclomatic Complexity of 14. 139197
The method 'candidates' has a Cyclomatic Complexity of 22. 139197
The method candidates() has an NPath complexity of 3800 139197
The method 'candidates' has a Standard Cyclomatic Complexity of 14. 139197
This call to Collection.toArray() may be optimizable 180
Avoid really long methods. 212329
The method 'features' has a Modified Cyclomatic Complexity of 16. 212329
The method features() has an NPath complexity of 668250 212329
The method 'features' has a Standard Cyclomatic Complexity of 16. 212329
The method 'features' has a Cyclomatic Complexity of 18. 212329
Avoid instantiating new objects inside loops 314
Avoid appending characters as strings in StringBuffer.append. 320
Avoid instantiation through private constructors from outside of the constructors class. 421
Avoid instantiating new objects inside loops 493
Avoid instantiation through private constructors from outside of the constructors class. 514

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/PipelineExtractor.java

Violation Line
Possible God class (WMC=51, ATFD=33, TCC=0.0) 1299
The class 'PipelineExtractor' has a Modified Cyclomatic Complexity of 5 (Highest = 21). 37299
The class 'PipelineExtractor' has a Cyclomatic Complexity of 6 (Highest = 25). 37299
The class 'PipelineExtractor' has a Standard Cyclomatic Complexity of 5 (Highest = 21). 37299
Useless parentheses. 76
Useless parentheses. 77
Avoid unused method parameters such as 'sentence'. 202
Avoid unused method parameters such as 'document'. 202
The method 'findArguments' has a Standard Cyclomatic Complexity of 21. 207292
The method 'findArguments' has a Modified Cyclomatic Complexity of 21. 207292
The method findArguments() has an NPath complexity of 167400 207292
Avoid unused method parameters such as 'sentence'. 207
The method 'findArguments' has a Cyclomatic Complexity of 25. 207292
Avoid unused method parameters such as 'span'. 294

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/PipelineTrainer.java

Violation Line
The class 'PipelineTrainer' has a Cyclomatic Complexity of 5 (Highest = 10). 30220
Use block level rather than method level synchronization 97101
Consider using varargs for methods or constructors which take an array the last parameter. 98
Use block level rather than method level synchronization 104147
The method 'doTrain' has a Cyclomatic Complexity of 10. 104147
Avoid unused method parameters such as 'sentence'. 149
Avoid unused method parameters such as 'document'. 149
Consider using varargs for methods or constructors which take an array the last parameter. 150
Avoid unused method parameters such as 'opinions'. 150
Consider using varargs for methods or constructors which take an array the last parameter. 155
Avoid unused method parameters such as 'sentence'. 194

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/SpanLabeller.java

Violation Line
Possible God class (WMC=83, ATFD=75, TCC=0.0) 1549
The class 'SpanLabeller' has a Standard Cyclomatic Complexity of 4 (Highest = 13). 40549
The class 'SpanLabeller' has a Modified Cyclomatic Complexity of 4 (Highest = 13). 40549
The class 'SpanLabeller' has a Cyclomatic Complexity of 4 (Highest = 14). 40549
Private field 'predictor' could be made final; it is only initialized in the declaration or constructor. 46
The method 'expand' has a Cyclomatic Complexity of 14. 64111
Deeply nested if..then statements are hard to read 94101
Position literals first in String comparisons 96
The method 'expandRecursive' has a Cyclomatic Complexity of 13. 136195
The method 'expandRecursive' has a Standard Cyclomatic Complexity of 13. 136195
The method 'expandRecursive' has a Modified Cyclomatic Complexity of 13. 136195
Avoid really long methods. 215360
The method features() has an NPath complexity of 320 215360
Prefer StringBuffer over += for concatenating strings 233
Prefer StringBuffer over += for concatenating strings 234
Avoid empty if statements 336338
Avoid empty if statements 341347
Avoid using a branching statement as the last in a loop. 406
Avoid instantiation through private constructors from outside of the constructors class. 446
Avoid instantiating new objects inside loops 508
Avoid instantiating new objects inside loops 511
Avoid instantiation through private constructors from outside of the constructors class. 538

pikes-raid - eu/fbk/dkm/pikes/raid/sbrs/CreateTraining.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 2667
Consider using varargs for methods or constructors which take an array the last parameter. 30
Parameter 'args' is not assigned and could be declared final 30
Local variable 'folder' could be declared final 32
Local variable 'wordnetPath' could be declared final 33
Local variable 'folderFile' could be declared final 39
Local variable 'labels' could be declared final 45
Local variable 'documents' could be declared final 5657

pikes-raid - eu/fbk/dkm/pikes/raid/sbrs/SBRSExtractor.java

Violation Line
Parameter 'document' is not assigned and could be declared final 18
Parameter 'sentenceID' is not assigned and could be declared final 18
Parameter 'components' is not assigned and could be declared final 18
Parameter 'opinion' is not assigned and could be declared final 23
Parameter 'sentenceID' is not assigned and could be declared final 23
Parameter 'components' is not assigned and could be declared final 23
Parameter 'document' is not assigned and could be declared final 23

pikes-raid - eu/fbk/dkm/pikes/raid/sbrs/SBRSTrainer.java

Violation Line
Perhaps 'jointSpan' could be replaced by a local variable. 40
Avoid unused private fields such as 'filter'. 41
Perhaps 'filter' could be replaced by a local variable. 41
Parameter 'sentence' is not assigned and could be declared final 68
Parameter 'document' is not assigned and could be declared final 68
Consider using varargs for methods or constructors which take an array the last parameter. 68
Parameter 'opinions' is not assigned and could be declared final 68
Consider using varargs for methods or constructors which take an array the last parameter. 79
Avoid unused method parameters such as 'sentence'. 118

pikes-raid - eu/fbk/shell/mdfsa/data/structures/DatasetInstance.java

Violation Line
Document empty constructor 25
Parameter 'features' is not assigned and could be declared final 27
Parameter 'polarity' is not assigned and could be declared final 27
Parameter 'features' is not assigned and could be declared final 32
Parameter 'polarity' is not assigned and could be declared final 32
Parameter 'id' is not assigned and could be declared final 32
Parameter 'polarity' is not assigned and could be declared final 43
Parameter 'instanceId' is not assigned and could be declared final 55
Parameter 'inferredPolarity' is not assigned and could be declared final 63
Parameter 'domain' is not assigned and could be declared final 71
Parameter 'inferredDomain' is not assigned and could be declared final 79
Parameter 'instanceOriginalText' is not assigned and could be declared final 87
Parameter 'ssr' is not assigned and could be declared final 95

pikes-raid - eu/fbk/shell/mdfsa/data/structures/DomainEdge.java

Violation Line
Parameter 'weight' is not assigned and could be declared final 19
Parameter 'creator' is not assigned and could be declared final 19
Parameter 'nodeId' is not assigned and could be declared final 19
Parameter 'nodeId' is not assigned and could be declared final 29
Parameter 'weight' is not assigned and could be declared final 37
Parameter 'creator' is not assigned and could be declared final 45

pikes-raid - eu/fbk/shell/mdfsa/data/structures/DomainGraph.java

Violation Line
Possible God class (WMC=114, ATFD=70, TCC=0.010526315789473684) 1946
Too many fields 11946
The class 'DomainGraph' has a Cyclomatic Complexity of 5 (Highest = 22). 11946
The class 'DomainGraph' has a Modified Cyclomatic Complexity of 4 (Highest = 19). 11946
The class 'DomainGraph' has a Standard Cyclomatic Complexity of 4 (Highest = 19). 11946
Avoid unused private fields such as 'id'. 13
Perhaps 'id' could be replaced by a local variable. 13
Parameter 'prp' is not assigned and could be declared final 35
Parameter 'p' is not assigned and could be declared final 40
Parameter 'c' is not assigned and could be declared final 40
Parameter 'id' is not assigned and could be declared final 40
Parameter 'g' is not assigned and could be declared final 40
Parameter 'a' is not assigned and could be declared final 40
Parameter 'prp' is not assigned and could be declared final 40
Parameter 'd' is not assigned and could be declared final 40
Parameter 'instances' is not assigned and could be declared final 66
Local variable 'di' could be declared final 72
Local variable 'features' could be declared final 73
Local variable 'polarity' could be declared final 74
Local variable 'currentFeature' could be declared final 76
Local variable 'featureIds' could be declared final 78
Local variable 'featureId' could be declared final 80
Avoid instantiating new objects inside loops 83
Avoid instantiating new objects inside loops 94
Local variable 'featureId' could be declared final 110
Local variable 'startPolarity' could be declared final 111
Avoid instantiating new objects inside loops 114
Local variable 'fm' could be declared final 114
Parameter 'concept' is not assigned and could be declared final 127
Parameter 'fm' is not assigned and could be declared final 127
Local variable 'featureIds' could be declared final 132
Local variable 'featureId' could be declared final 134
The method 'domainInitialization' has a Cyclomatic Complexity of 18. 155284
Parameter 'allInstances' is not assigned and could be declared final 155
The method domainInitialization() has an NPath complexity of 533 155284
Parameter 'datasets' is not assigned and could be declared final 155
The method 'domainInitialization' has a Modified Cyclomatic Complexity of 17. 155284
Parameter 'currentDomain' is not assigned and could be declared final 155
Avoid really long methods. 155284
The method 'domainInitialization' has a Standard Cyclomatic Complexity of 17. 155284
Avoid unused local variables such as 'featuresOverlap'. 160
Local variable 'currentDataset' could be declared final 167
Local variable 'domainInstances' could be declared final 177
Local variable 'di' could be declared final 179
Local variable 'features' could be declared final 180
Local variable 'currentFeature' could be declared final 181
Local variable 'featureIds' could be declared final 183
Local variable 'featureId' could be declared final 185
Avoid instantiating new objects inside loops 192
Avoid instantiating new objects inside loops 211
Avoid instantiating new objects inside loops 218
Avoid instantiating new objects inside loops 228
Avoid instantiating new objects inside loops 235
Local variable 'featureId' could be declared final 255
Local variable 'startPolarity' could be declared final 275
Avoid instantiating new objects inside loops 279
Local variable 'fm' could be declared final 279
The method 'polaritiesPropagation' has a Modified Cyclomatic Complexity of 19. 298412
The method polaritiesPropagation() has an NPath complexity of 10368 298412
The method 'polaritiesPropagation' has a Cyclomatic Complexity of 20. 298412
The method 'polaritiesPropagation' has a Standard Cyclomatic Complexity of 19. 298412
Avoid really long methods. 298412
Avoid unused local variables such as 'positive'. 302
Avoid unused local variables such as 'negative'. 303
Avoid unused local variables such as 'neutral'. 304
Local variable 'featureId' could be declared final 305
Local variable 'currentPolarity' could be declared final 306
Local variable 'threadNumber' could be declared final 320
Avoid instantiating new objects inside loops 323
Avoid instantiating new objects inside loops 326
Local variable 'featureId' could be declared final 350
Local variable 'currentPolarity' could be declared final 351
Local variable 'featureId' could be declared final 367
Local variable 'conceptConvergenceHistory' could be declared final 373
Local variable 'value' could be declared final 380
Local variable 'value' could be declared final 386
Avoid instantiating new objects inside loops 409
Parameter 'instances' is not assigned and could be declared final 421
The method 'polarityTest' has a Cyclomatic Complexity of 22. 421494
Local variable 'deadzone' could be declared final 425
Local variable 'di' could be declared final 431
Local variable 'features' could be declared final 432
Local variable 'testPolarity' could be declared final 433
Local variable 'currentFeature' could be declared final 441
Local variable 'featureIds' could be declared final 443
Local variable 'featureId' could be declared final 445
Local variable 'fm' could be declared final 447
Local variable 'validationRestrictionFlag' could be declared final 466
Useless parentheses. 468
Useless parentheses. 468
Useless parentheses. 468
Useless parentheses. 468
Avoid empty if statements 469471
Useless parentheses. 469
Useless parentheses. 469
Useless parentheses. 471
Useless parentheses. 472
Local variable 'fmeasure' could be declared final 483
Parameter 'instances' is not assigned and could be declared final 503
Local variable 'results' could be declared final 505
Local variable 'deadzone' could be declared final 506
Avoid declaring a variable if it is unreferenced before a possible exit point. 506
Avoid unused local variables such as 'deadzone'. 506
Avoid declaring a variable if it is unreferenced before a possible exit point. 508
Local variable 'judged' could be declared final 508
Avoid unused local variables such as 'judged'. 508
Avoid declaring a variable if it is unreferenced before a possible exit point. 509
Avoid unused local variables such as 'precision'. 509
Local variable 'precision' could be declared final 509
Local variable 'recall' could be declared final 510
Avoid declaring a variable if it is unreferenced before a possible exit point. 510
Avoid unused local variables such as 'recall'. 510
Local variable 'di' could be declared final 512
Local variable 'features' could be declared final 513
Local variable 'testPolarity' could be declared final 514
Avoid unused local variables such as 'testPolarity'. 514
Local variable 'currentFeature' could be declared final 522
Local variable 'featureIds' could be declared final 524
Local variable 'featureId' could be declared final 526
Local variable 'fm' could be declared final 528
Parameter 'graphs' is not assigned and could be declared final 557
Parameter 'features' is not assigned and could be declared final 557
Local variable 'currentFeature' could be declared final 564
Local variable 'featureIds' could be declared final 566
Local variable 'featureId' could be declared final 568
Local variable 'it' could be declared final 569
Local variable 'domainValues' could be declared final 570
Avoid instantiating new objects inside loops 570
Local variable 'currentDomain' could be declared final 572
Local variable 'domain' could be declared final 573
Local variable 'inferredValue' could be declared final 574
Local variable 'fm' could be declared final 584
Parameter 'g' is not assigned and could be declared final 611
Parameter 'currentFeature' is not assigned and could be declared final 611
Local variable 'featureIds' could be declared final 620
Local variable 'featureId' could be declared final 622
Local variable 'fm' could be declared final 624
Use block level rather than method level synchronization 656662
Parameter 'nodeId' is not assigned and could be declared final 664
Parameter 'fm' is not assigned and could be declared final 664
Use block level rather than method level synchronization 664666
Avoid unnecessary return statements 665
Use block level rather than method level synchronization 673676
Parameter 'contribution' is not assigned and could be declared final 673
Avoid unnecessary return statements 675
Parameter 'nodeId' is not assigned and could be declared final 688
Parameter 'value' is not assigned and could be declared final 688
Use block level rather than method level synchronization 688705
Avoid unnecessary return statements 704
Avoid unused local variables such as 'numberOfNodes'. 711
Local variable 'numberOfNodes' could be declared final 711
Avoid unused local variables such as 'numberOfEdges'. 712
Local variable 'numberOfEdges' could be declared final 712
Local variable 'it' could be declared final 714
Local variable 'nodeId' could be declared final 716
Local variable 'lambda' could be declared final 720
Parameter 'values' is not assigned and could be declared final 735
Avoid unused private methods such as 'getSignificativityFlag(ArrayList)'. 735
Local variable 'd' could be declared final 739
Private field 'dg' could be made final; it is only initialized in the declaration or constructor. 763
Private field 'propagationRate' could be made final; it is only initialized in the declaration or constructor. 764
Private field 'nodes' could be made final; it is only initialized in the declaration or constructor. 765
Private field 'threadId' could be made final; it is only initialized in the declaration or constructor. 766
Parameter 'dg' is not assigned and could be declared final 768
Parameter 'threadId' is not assigned and could be declared final 768
Local variable 'des' could be declared final 798
Local variable 'de' could be declared final 812
Local variable 'edgeNodeId' could be declared final 813
Local variable 'currentEdgePolarity' could be declared final 815
Useless parentheses. 818
Local variable 'currentNodePolarity' could be declared final 824825
Useless parentheses. 824
Local variable 'sdg' could be declared final 846
Parameter 'currentDataset' is not assigned and could be declared final 870
Parameter 'modelPath' is not assigned and could be declared final 870
Parameter 'type' is not assigned and could be declared final 870
Local variable 'objectInputStream' could be declared final 872873
Local variable 'sdg' could be declared final 874
Parameter 'modelPath' is not assigned and could be declared final 899
Local variable 'objectInputStream' could be declared final 901
Local variable 'sdg' could be declared final 902
Parameter 'polarities' is not assigned and could be declared final 933
Parameter 'graph' is not assigned and could be declared final 943

pikes-raid - eu/fbk/shell/mdfsa/data/structures/FuzzyMembership.java

Violation Line
Parameter 'b' is not assigned and could be declared final 14
Parameter 'a' is not assigned and could be declared final 14
Parameter 'd' is not assigned and could be declared final 14
Parameter 'c' is not assigned and could be declared final 14
Parameter 'a' is not assigned and could be declared final 26
Parameter 'b' is not assigned and could be declared final 34
Parameter 'c' is not assigned and could be declared final 42
Parameter 'd' is not assigned and could be declared final 50
Parameter 'oldFlag' is not assigned and could be declared final 54
Local variable 'centroid' could be declared final 55
Local variable 'xCoeffR1' could be declared final 70
Avoid unused local variables such as 'yCoeffR1'. 71
Local variable 'yCoeffR1' could be declared final 71
Local variable 'cCoeffR1' could be declared final 72
Local variable 'xCoeffR2' could be declared final 73
Avoid unused local variables such as 'yCoeffR2'. 74
Local variable 'yCoeffR2' could be declared final 74
Local variable 'cCoeffR2' could be declared final 75
Local variable 'x' could be declared final 76
Useless parentheses. 88
Local variable 'num' could be declared final 88
Local variable 'den' could be declared final 89

pikes-raid - eu/fbk/shell/mdfsa/data/structures/Graph.java

Violation Line
Private field 'ids' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'markers' could be made final; it is only initialized in the declaration or constructor. 16
Parameter 'labels' is not assigned and could be declared final 38
Parameter 'nodes' is not assigned and could be declared final 44
Parameter 'wnWordSynsets' is not assigned and could be declared final 50
Parameter 'label' is not assigned and could be declared final 56
Local variable 'feature' could be declared final 57
Local variable 'synsets' could be declared final 66
Local variable 'currentSynset' could be declared final 68
Parameter 'wSource' is not assigned and could be declared final 89
Parameter 'target' is not assigned and could be declared final 89
Parameter 'source' is not assigned and could be declared final 89
Parameter 'creator' is not assigned and could be declared final 89
Parameter 'wTarget' is not assigned and could be declared final 89
Local variable 'de1' could be declared final 112
Local variable 'de2' could be declared final 118
Parameter 'nodeId' is not assigned and could be declared final 130
Parameter 'newEdge' is not assigned and could be declared final 130
Avoid unnecessary comparisons in boolean expressions 149
Local variable 'markers' could be declared final 164
Local variable 'currentId' could be declared final 166
Local variable 'currentMarker' could be declared final 167
Local variable 'currentLabel' could be declared final 171
Local variable 'synsets' could be declared final 175
Local variable 'currentSynset' could be declared final 178
Local variable 'synsetIdGraph' could be declared final 179
Avoid instantiating new objects inside loops 185
Local variable 'de1' could be declared final 185
Local variable 'de2' could be declared final 188
Avoid instantiating new objects inside loops 188

pikes-raid - eu/fbk/shell/mdfsa/data/structures/SentenceStructuredRepresentation.java

Violation Line
Possible God class (WMC=74, ATFD=10, TCC=0.0) 1330
The class 'SentenceStructuredRepresentation' has a Modified Cyclomatic Complexity of 4 (Highest = 15). 14330
The class 'SentenceStructuredRepresentation' has a Cyclomatic Complexity of 4 (Highest = 19). 14330
The class 'SentenceStructuredRepresentation' has a Standard Cyclomatic Complexity of 4 (Highest = 15). 14330
Perhaps 'prp' could be replaced by a local variable. 18
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 18
Avoid unused private fields such as 'prp'. 18
Avoid unused private fields such as 'stemmedString'. 23
Parameter 'prp' is not assigned and could be declared final 30
Parameter 'uri' is not assigned and could be declared final 34
Parameter 'originalText' is not assigned and could be declared final 46
Parameter 'posTaggedString' is not assigned and could be declared final 54
Parameter 'dts' is not assigned and could be declared final 62
Parameter 'parsedTree' is not assigned and could be declared final 78
The method 'createLexicalizedRepresentation' has a Cyclomatic Complexity of 16. 82120
Parameter 'wnlex' is not assigned and could be declared final 82
Local variable 'posTaggedTerms' could be declared final 85
Local variable 'tempLex' could be declared final 86
Local variable 'curTaggedTerm' could be declared final 87
String.indexOf(char) is faster than String.indexOf(String). 92
Local variable 'tag' could be declared final 93
String.indexOf(char) is faster than String.indexOf(String). 93
String.indexOf(char) is faster than String.indexOf(String). 106
Document empty method body 123125
Parameter 'wnlex' is not assigned and could be declared final 131
The method 'extractSemanticConcepts' has a Standard Cyclomatic Complexity of 14. 131190
The method extractSemanticConcepts() has an NPath complexity of 240 131190
The method 'extractSemanticConcepts' has a Modified Cyclomatic Complexity of 14. 131190
Parameter 'wnl' is not assigned and could be declared final 131
The method 'extractSemanticConcepts' has a Cyclomatic Complexity of 18. 131190
Local variable 'termsList' could be declared final 135
Local variable 'currentTerm' could be declared final 137
Local variable 'atom' could be declared final 138
Local variable 'stopFlag' could be declared final 140
Avoid using if statements without curly braces 141
Avoid unnecessary comparisons in boolean expressions 145
Prefer StringBuffer over += for concatenating strings 147
Local variable 'dt' could be declared final 164
Local variable 'dependencies' could be declared final 166
Local variable 'curDep' could be declared final 167
Local variable 'tokens' could be declared final 168
These nested if statements could be combined 170185
Local variable 'tokenOne' could be declared final 171
Local variable 'tokenTwo' could be declared final 172
Local variable 'newAspect' could be declared final 181
The method 'extractAspects' has a Modified Cyclomatic Complexity of 15. 196262
The method 'extractAspects' has a Cyclomatic Complexity of 19. 196262
The method extractAspects() has an NPath complexity of 220 196262
Parameter 'wnl' is not assigned and could be declared final 196
The method 'extractAspects' has a Standard Cyclomatic Complexity of 15. 196262
Local variable 'tempAspects' could be declared final 197
Local variable 'termsList' could be declared final 203
Local variable 'currentTerm' could be declared final 205
Local variable 'atom' could be declared final 206
Local variable 'stopFlag' could be declared final 208
Avoid using if statements without curly braces 209
Avoid unnecessary comparisons in boolean expressions 213
Prefer StringBuffer over += for concatenating strings 215
Local variable 'featureSentence' could be declared final 233
Local variable 'pt' could be declared final 234
Local variable 'curAspect' could be declared final 238
Local variable 'compoundAspect' could be declared final 239
Local variable 'cA' could be declared final 241
Local variable 'it' could be declared final 242
Local variable 'key' could be declared final 244
Local variable 'currentTree' could be declared final 245
Avoid instantiating new objects inside loops 249
Local variable 'currentFeature' could be declared final 251
Parameter 't' is not assigned and could be declared final 266
Local variable 'wanted' could be declared final 267
Local variable 'child' could be declared final 270
Avoid instantiating new objects inside loops 271
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 273
Local variable 'child' could be declared final 283
The method 'extractRelatedFeatures' has a Cyclomatic Complexity of 10. 295327
Avoid reassigning parameters such as 'marker' 295
Parameter 'featureSentence' is not assigned and could be declared final 295
Parameter 't' is not assigned and could be declared final 295
Avoid reassigning parameters such as 'marker' 295
Local variable 'child' could be declared final 312
Local variable 'temp' could be declared final 313
Avoid instantiating new objects inside loops 313
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 315
Local variable 'it' could be declared final 316
Local variable 'currentFeature' could be declared final 318
Avoid unused local variables such as 'currentFeature'. 318

pikes-raid - eu/fbk/shell/mdfsa/data/structures/SerializableDomainGraph.java

Violation Line
Too many fields 8180
Document empty constructor 31
Parameter 'prp' is not assigned and could be declared final 37
Parameter 'graph' is not assigned and could be declared final 45
Parameter 'polarities' is not assigned and could be declared final 53
Parameter 'conceptsConvergenceIterationsValues' is not assigned and could be declared final 61
Parameter 'startPolarities' is not assigned and could be declared final 69
Parameter 'tempInDomainStartPolarities' is not assigned and could be declared final 77
Parameter 'tempOutDomainStartPolarities' is not assigned and could be declared final 85
Parameter 'currentPolarities' is not assigned and could be declared final 93
Parameter 'tokensCounter' is not assigned and could be declared final 101
Parameter 'inDomainTokensCounter' is not assigned and could be declared final 109
Parameter 'outDomainTokensCounter' is not assigned and could be declared final 117
Parameter 'currentGraphConvergenceValue' is not assigned and could be declared final 125
Parameter 'currentAveragePolarity' is not assigned and could be declared final 133
Parameter 'iteration' is not assigned and could be declared final 141
Parameter 'propagationRate' is not assigned and could be declared final 149
Parameter 'convergenceLimit' is not assigned and could be declared final 157
Parameter 'deadzone' is not assigned and could be declared final 165
Parameter 'annealingRate' is not assigned and could be declared final 173

pikes-raid - eu/fbk/shell/mdfsa/data/structures/TreeGraphStatisticalModel.java

Violation Line
Possible God class (WMC=79, ATFD=85, TCC=0.04395604395604396) 1538
The class 'TreeGraphStatisticalModel' has a Standard Cyclomatic Complexity of 9 (Highest = 26). 11538
The class 'TreeGraphStatisticalModel' has a Modified Cyclomatic Complexity of 9 (Highest = 26). 11538
The class 'TreeGraphStatisticalModel' has a Cyclomatic Complexity of 10 (Highest = 28). 11538
Perhaps 'prp' could be replaced by a local variable. 15
Avoid unused private fields such as 'prp'. 15
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'domainDependentModelsPositive' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'domainDependentModelsNegative' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'domainDependentModelsNeutral' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'domainIndependentModelPositive' could be made final; it is only initialized in the declaration or constructor. 21
Private field 'domainIndependentModelNegative' could be made final; it is only initialized in the declaration or constructor. 22
Private field 'domainIndependentModelNeutral' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'domainInstanceCounter' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'domainLevels' could be made final; it is only initialized in the declaration or constructor. 25
Parameter 'p' is not assigned and could be declared final 27
Parameter 'training' is not assigned and could be declared final 44
Parameter 'test' is not assigned and could be declared final 49
The method 'buildModel' has a Modified Cyclomatic Complexity of 26. 58300
Avoid really long methods. 58300
The method buildModel() has an NCSS line count of 170 58300
The method buildModel() has an NPath complexity of 393330 58300
The method 'buildModel' has a Standard Cyclomatic Complexity of 26. 58300
The method 'buildModel' has a Cyclomatic Complexity of 26. 58300
Local variable 'di' could be declared final 60
Local variable 'domain' could be declared final 63
Local variable 'domains' could be declared final 64
Local variable 'cDomain' could be declared final 66
Avoid instantiating new objects inside loops 71
Avoid instantiating new objects inside loops 73
Avoid instantiating new objects inside loops 75
Local variable 'polarity' could be declared final 82
Local variable 'ssr' could be declared final 100
Local variable 'dts' could be declared final 101
Local variable 'dt' could be declared final 102
Local variable 'dependencies' could be declared final 104
Avoid instantiating new objects inside loops 110
Avoid instantiating new objects inside loops 117
String.indexOf(char) is faster than String.indexOf(String). 140
Prefer StringBuffer over += for concatenating strings 140
Prefer StringBuffer over += for concatenating strings 141
String.indexOf(char) is faster than String.indexOf(String). 141
Avoid instantiating new objects inside loops 158
Avoid instantiating new objects inside loops 165
Avoid instantiating new objects inside loops 178
Avoid instantiating new objects inside loops 185
Avoid instantiating new objects inside loops 198
Avoid instantiating new objects inside loops 205
Avoid instantiating new objects inside loops 215
Avoid instantiating new objects inside loops 219
Avoid instantiating new objects inside loops 226
Avoid instantiating new objects inside loops 236
Avoid instantiating new objects inside loops 240
Avoid instantiating new objects inside loops 247
Avoid instantiating new objects inside loops 257
Avoid instantiating new objects inside loops 261
Avoid instantiating new objects inside loops 268
Parameter 'fineGranedPolarity' is not assigned and could be declared final 308
The method 'computeResults' has a Standard Cyclomatic Complexity of 22. 308426
Parameter 'flagEvaluateDomain' is not assigned and could be declared final 308
Avoid really long methods. 308426
Parameter 'flagEvaluateDoubleDomain' is not assigned and could be declared final 308
The method 'computeResults' has a Cyclomatic Complexity of 28. 308426
The method 'computeResults' has a Modified Cyclomatic Complexity of 22. 308426
The method computeResults() has an NPath complexity of 15055 308426
Local variable 'positiveCounter' could be declared final 310
Local variable 'negativeCounter' could be declared final 311
Local variable 'neutralCounter' could be declared final 312
Local variable 'di' could be declared final 314
Local variable 'delta' could be declared final 324
Local variable 'domainMembership' could be declared final 358
Avoid instantiating new objects inside loops 358
Local variable 'd' could be declared final 362
Local variable 'currentDomainCounter' could be declared final 368
Avoid instantiating new objects inside loops 401
Avoid instantiating String objects; this is usually unnecessary. 401
Avoid instantiating new objects inside loops 402
Avoid instantiating String objects; this is usually unnecessary. 402
Local variable 'd' could be declared final 407
Local variable 'level' could be declared final 408
Local variable 'membership' could be declared final 409
Avoid instantiating new objects inside loops 412
Avoid instantiating String objects; this is usually unnecessary. 412
These nested if statements could be combined 416419
Avoid instantiating String objects; this is usually unnecessary. 417
Avoid instantiating new objects inside loops 417
The method 'computeMembershipCoefficient' has a Standard Cyclomatic Complexity of 10. 431490
Parameter 'h' is not assigned and could be declared final 431
Parameter 'normCounter' is not assigned and could be declared final 431
The method 'computeMembershipCoefficient' has a Cyclomatic Complexity of 14. 431490
Parameter 'di' is not assigned and could be declared final 431
The method 'computeMembershipCoefficient' has a Modified Cyclomatic Complexity of 10. 431490
The method computeMembershipCoefficient() has an NPath complexity of 327 431490
Local variable 'ssr' could be declared final 435
Local variable 'dts' could be declared final 436
Local variable 'dt' could be declared final 437
Local variable 'dependencies' could be declared final 438
String.indexOf(char) is faster than String.indexOf(String). 441
Prefer StringBuffer over += for concatenating strings 441
String.indexOf(char) is faster than String.indexOf(String). 442
Prefer StringBuffer over += for concatenating strings 442
Local variable 'governor' could be declared final 447
Local variable 'dependent' could be declared final 448
Avoid instantiating new objects inside loops 449
Local variable 'rdg' could be declared final 449
Local variable 'gd' could be declared final 450
Avoid instantiating new objects inside loops 450
Avoid instantiating new objects inside loops 451
Local variable 'dg' could be declared final 451
Local variable 'tDep' could be declared final 454
Local variable 'tG' could be declared final 455
Local variable 'tD' could be declared final 456
Local variable 'tRDG' could be declared final 457
Local variable 'tGD' could be declared final 458
Local variable 'tDG' could be declared final 459
Useless parentheses. 466467
Useless parentheses. 470471
Useless parentheses. 477478
Useless parentheses. 481482
Useless parentheses. 484
Private field 'counter' could be made final; it is only initialized in the declaration or constructor. 504
Parameter 'type' is not assigned and could be declared final 506
Parameter 'token' is not assigned and could be declared final 516
Parameter 'frequency' is not assigned and could be declared final 522
Parameter 'weight' is not assigned and could be declared final 528
Parameter 'type' is not assigned and could be declared final 534

pikes-rdf - eu/fbk/dkm/pikes/rdf/Main.java

Violation Line
The class 'Main' has a Cyclomatic Complexity of 5 (Highest = 11). 24171
The class 'Main' has a Standard Cyclomatic Complexity of 5 (Highest = 11). 24171
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 24171
The class 'Main' has a Modified Cyclomatic Complexity of 5 (Highest = 11). 24171
The method 'main' has a Modified Cyclomatic Complexity of 11. 34109
The method 'main' has a Cyclomatic Complexity of 11. 34109
The method 'main' has a Standard Cyclomatic Complexity of 11. 34109
The method main() has an NPath complexity of 672 34109
Avoid empty catch blocks 3840
This call to String.startsWith can be rewritten using String.charAt(0) 49
Position literals first in String comparisons 52
Position literals first in String comparisons 53
Position literals first in String comparisons 54
Avoid empty catch blocks 6870
Avoid appending characters as strings in StringBuffer.append. 145
New exception is thrown in catch block, original stack trace may be lost 152

pikes-rdf - eu/fbk/dkm/pikes/rdf/RDFGenerator.java

Violation Line
Possible God class (WMC=398, ATFD=433, TCC=0.0) 12025
Do not add empty strings 117
Avoid instantiation through private constructors from outside of the constructors class. 287
The class 'Runner' has a Standard Cyclomatic Complexity of 6 (Highest = 16). 292448
The class 'Runner' has a Cyclomatic Complexity of 6 (Highest = 16). 292448
The class 'Runner' has a Modified Cyclomatic Complexity of 6 (Highest = 16). 292448
Avoid really long methods. 326447
The method 'run' has a Cyclomatic Complexity of 16. 326447
The method 'run' has a Standard Cyclomatic Complexity of 16. 326447
The method run() has an NPath complexity of 612 326447
The method 'run' has a Modified Cyclomatic Complexity of 16. 326447
Avoid declaring a variable if it is unreferenced before a possible exit point. 330332
Avoid instantiating new objects inside loops 357432
The class 'Extractor' has a Standard Cyclomatic Complexity of 12 (Highest = 60). 4502004
The class 'Extractor' has a Modified Cyclomatic Complexity of 12 (Highest = 60). 4502004
The class 'Extractor' has a Cyclomatic Complexity of 15 (Highest = 74). 4502004
Consider using varargs for methods or constructors which take an array the last parameter. 471
The user-supplied array 'sentenceIDs' is stored directly. 471
Avoid appending characters as strings in StringBuffer.append. 488
The method 'run' has a Standard Cyclomatic Complexity of 60. 498721
The method run() has an NCSS line count of 138 498721
The method 'run' has a Modified Cyclomatic Complexity of 60. 498721
Avoid really long methods. 498721
The method run() has an NPath complexity of 1698693120 498721
The method 'run' has a Cyclomatic Complexity of 74. 498721
Ensure that resources like this Statement object are closed after use 717
The method 'processMetadata' has a Standard Cyclomatic Complexity of 12. 723800
The method 'processMetadata' has a Cyclomatic Complexity of 12. 723800
The method 'processMetadata' has a Modified Cyclomatic Complexity of 12. 723800
The method 'processTimex' has a Cyclomatic Complexity of 11. 802874
Avoid declaring a variable if it is unreferenced before a possible exit point. 812
Avoid declaring a variable if it is unreferenced before a possible exit point. 813
Position literals first in String comparisons 830
Position literals first in String comparisons 830
Position literals first in String comparisons 840
The method 'processEntity' has a Standard Cyclomatic Complexity of 16. 876974
The method processEntity() has an NPath complexity of 651000 876974
The method 'processEntity' has a Modified Cyclomatic Complexity of 16. 876974
The method 'processEntity' has a Cyclomatic Complexity of 20. 876974
Avoid declaring a variable if it is unreferenced before a possible exit point. 880
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 888
Prefer StringBuffer over += for concatenating strings 888
Avoid declaring a variable if it is unreferenced before a possible exit point. 890
Avoid empty catch blocks 969971
The method 'processPredicate' has a Modified Cyclomatic Complexity of 18. 9761078
The method 'processPredicate' has a Standard Cyclomatic Complexity of 18. 9761078
The method processPredicate() has an NPath complexity of 69120 9761078
Avoid really long methods. 9761078
The method 'processPredicate' has a Cyclomatic Complexity of 19. 9761078
Avoid declaring a variable if it is unreferenced before a possible exit point. 980
The method 'processModifier' has a Cyclomatic Complexity of 10. 11011146
Avoid declaring a variable if it is unreferenced before a possible exit point. 1105
Avoid declaring a variable if it is unreferenced before a possible exit point. 1106
Avoid declaring a variable if it is unreferenced before a possible exit point. 1107
Avoid really long methods. 11481255
The method 'processCoref' has a Modified Cyclomatic Complexity of 18. 11481255
The method 'processCoref' has a Cyclomatic Complexity of 18. 11481255
The method 'processCoref' has a Standard Cyclomatic Complexity of 18. 11481255
The method processCoref() has an NPath complexity of 8512 11481255
Avoid instantiating new objects inside loops 1203
Avoid instantiating new objects inside loops 1222
The method processRole() has an NPath complexity of 191520000 12571385
Avoid really long methods. 12571385
The method 'processRole' has a Cyclomatic Complexity of 38. 12571385
The method 'processRole' has a Modified Cyclomatic Complexity of 27. 12571385
The method 'processRole' has a Standard Cyclomatic Complexity of 27. 12571385
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1299
Position literals first in String comparisons 1307
Position literals first in String comparisons 1309
Position literals first in String comparisons 1322
The method processOpinion() has an NPath complexity of 56250 13871430
The method 'emitOpinionArgument' has a Cyclomatic Complexity of 14. 14321459
The method 'emitOpinionArgument' has a Standard Cyclomatic Complexity of 11. 14321459
The method emitOpinionArgument() has an NPath complexity of 407 14321459
The method 'emitOpinionArgument' has a Modified Cyclomatic Complexity of 11. 14321459
The method 'emitCommonAttributes' has a Cyclomatic Complexity of 13. 14611510
The method emitCommonAttributes() has an NPath complexity of 576 14611510
Position literals first in String comparisons 1493
Position literals first in String comparisons 1493
The method 'emitEntityAttributes' has a Cyclomatic Complexity of 20. 15121572
The method emitEntityAttributes() has an NPath complexity of 200 15121572
The method 'emitEntityAttributes' has a Standard Cyclomatic Complexity of 18. 15121572
The method 'emitEntityAttributes' has a Modified Cyclomatic Complexity of 18. 15121572
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1518
Prefer StringBuffer over += for concatenating strings 1518
Avoid empty catch blocks 15271529
Avoid appending characters as strings in StringBuffer.append. 1599
The method emitTerm() has an NPath complexity of 1080 16621720
The method 'emitTerm' has a Modified Cyclomatic Complexity of 11. 16621720
The method 'emitTerm' has a Cyclomatic Complexity of 11. 16621720
The method 'emitTerm' has a Standard Cyclomatic Complexity of 11. 16621720
The method extractPath() has an NPath complexity of 384 17231763
The method 'extractPath' has a Cyclomatic Complexity of 13. 17231763
Position literals first in String comparisons for EqualsIgnoreCase 1756
Position literals first in String comparisons 1756
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1804
Avoid empty if statements 18391842
Avoid really long methods. 18481951
The method 'merge' has a Cyclomatic Complexity of 28. 18481951
The method merge() has an NPath complexity of 5160 18481951
The method 'merge' has a Modified Cyclomatic Complexity of 23. 18481951
The method 'merge' has a Standard Cyclomatic Complexity of 23. 18481951
Ensure that resources like this Statement object are closed after use 1857
Ensure that resources like this Statement object are closed after use 1868
Avoid empty if statements 18741876
Ensure that resources like this Statement object are closed after use 1897
Ensure that resources like this Statement object are closed after use 1907
Ensure that resources like this Statement object are closed after use 1926

pikes-rdf - eu/fbk/dkm/pikes/rdf/Renderer.java

Violation Line
Possible God class (WMC=129, ATFD=130, TCC=0.011494252873563218) 1857
The class 'Renderer' has a Cyclomatic Complexity of 5 (Highest = 11). 71857
The class 'Renderer' has a Modified Cyclomatic Complexity of 5 (Highest = 10). 71857
The class 'Renderer' has a Standard Cyclomatic Complexity of 5 (Highest = 10). 71857
The method loadTemplate() has an NPath complexity of 661 112144
The method 'loadTemplate' has a Cyclomatic Complexity of 10. 112144
The method 'loadTemplate' has a Standard Cyclomatic Complexity of 10. 112144
The method 'loadTemplate' has a Modified Cyclomatic Complexity of 10. 112144
Avoid empty catch blocks 124126
New exception is thrown in catch block, original stack trace may be lost 142
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 146
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 148
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 150
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 152
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 154
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 156
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 158
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 160
Private field 'template' could be made final; it is only initialized in the declaration or constructor. 160
Private field 'templateParameters' could be made final; it is only initialized in the declaration or constructor. 162
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 162
The constructor 'Renderer' has a Cyclomatic Complexity of 10. 164199
The constructor 'Renderer' has a Modified Cyclomatic Complexity of 10. 164199
The constructor 'Renderer' has a Standard Cyclomatic Complexity of 10. 164199
Avoid instantiating new objects inside loops 213
Avoid instantiation through private constructors from outside of the constructors class. 213
Avoid instantiating new objects inside loops 214
Avoid instantiation through private constructors from outside of the constructors class. 214
Avoid instantiating new objects inside loops 215
Avoid instantiation through private constructors from outside of the constructors class. 215
Avoid instantiation through private constructors from outside of the constructors class. 222
Avoid instantiation through private constructors from outside of the constructors class. 223
Avoid instantiation through private constructors from outside of the constructors class. 224
Avoid instantiation through private constructors from outside of the constructors class. 225
Avoid instantiation through private constructors from outside of the constructors class. 226
The method renderPropertiesHelper() has an NPath complexity of 242 287336
The method 'renderPropertiesHelper' has a Cyclomatic Complexity of 10. 287336
Ensure that resources like this Statement object are closed after use 352
The method 'renderMentionsTable' has a Cyclomatic Complexity of 11. 378430
Avoid instantiating new objects inside loops 400
Ensure that resources like this Statement object are closed after use 401
Ensure that resources like this Statement object are closed after use 416
Ensure that resources like this Statement object are closed after use 475
Avoid instantiating new objects inside loops 492493
Avoid instantiation through private constructors from outside of the constructors class. 628
The class 'Renderable' has a Cyclomatic Complexity of 7 (Highest = 12). 649737
The class 'Renderable' has a Modified Cyclomatic Complexity of 7 (Highest = 12). 649737
The class 'Renderable' has a Standard Cyclomatic Complexity of 7 (Highest = 12). 649737
The user-supplied array 'times' is stored directly. 679
The method 'call' has a Cyclomatic Complexity of 12. 688735
The method 'call' has a Modified Cyclomatic Complexity of 12. 688735
The method 'call' has a Standard Cyclomatic Complexity of 12. 688735
Avoid instantiating new objects inside loops 770771
Avoid declaring a variable if it is unreferenced before a possible exit point. 782
Prefer StringBuffer over += for concatenating strings 784
This call to String.startsWith can be rewritten using String.charAt(0) 784
Prefer StringBuffer over += for concatenating strings 784
Avoid declaring a variable if it is unreferenced before a possible exit point. 785
Avoid declaring a variable if it is unreferenced before a possible exit point. 786

pikes-rdf - eu/fbk/dkm/pikes/rdf/api/Extractor.java

Violation Line
Avoid modifiers which are implied by the context 1021

pikes-rdf - eu/fbk/dkm/pikes/rdf/api/Mapper.java

Violation Line
Avoid modifiers which are implied by the context 1829
Avoid modifiers which are implied by the context 3144

pikes-rdf - eu/fbk/dkm/pikes/rdf/naf/NAFExtractor.java

Violation Line
Possible God class (WMC=128, ATFD=183, TCC=0.0) 1715
The class 'Extraction' has a Cyclomatic Complexity of 11 (Highest = 19). 53681
The class 'Extraction' has a Modified Cyclomatic Complexity of 9 (Highest = 18). 53681
The class 'Extraction' has a Standard Cyclomatic Complexity of 9 (Highest = 18). 53681
Avoid appending characters as strings in StringBuffer.append. 78
The method run() has an NPath complexity of 3240 93167
The method 'run' has a Modified Cyclomatic Complexity of 18. 93167
The method 'run' has a Cyclomatic Complexity of 19. 93167
The method 'run' has a Standard Cyclomatic Complexity of 18. 93167
The method 'processMetadata' has a Cyclomatic Complexity of 12. 169247
The method 'processMetadata' has a Modified Cyclomatic Complexity of 12. 169247
The method 'processMetadata' has a Standard Cyclomatic Complexity of 12. 169247
The method 'processTimex' has a Standard Cyclomatic Complexity of 10. 249294
The method 'processTimex' has a Cyclomatic Complexity of 11. 249294
The method 'processTimex' has a Modified Cyclomatic Complexity of 10. 249294
Position literals first in String comparisons 274
Position literals first in String comparisons 274
Position literals first in String comparisons 280
Avoid declaring a variable if it is unreferenced before a possible exit point. 299
Avoid empty catch blocks 338340
Avoid declaring a variable if it is unreferenced before a possible exit point. 347
Avoid declaring a variable if it is unreferenced before a possible exit point. 387
Avoid declaring a variable if it is unreferenced before a possible exit point. 388389
The method 'processCoref' has a Modified Cyclomatic Complexity of 12. 430473
The method 'processCoref' has a Standard Cyclomatic Complexity of 12. 430473
The method 'processCoref' has a Cyclomatic Complexity of 13. 430473
The method 'processRole' has a Standard Cyclomatic Complexity of 11. 475532
The method 'processRole' has a Cyclomatic Complexity of 14. 475532
The method processRole() has an NPath complexity of 864 475532
The method 'processRole' has a Modified Cyclomatic Complexity of 11. 475532
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 495
The method 'emitInstanceMention' has a Cyclomatic Complexity of 19. 535621
The method 'emitInstanceMention' has a Standard Cyclomatic Complexity of 15. 535621
The method emitInstanceMention() has an NPath complexity of 3360 535621
The method 'emitInstanceMention' has a Modified Cyclomatic Complexity of 15. 535621
Position literals first in String comparisons 596
Position literals first in String comparisons 596
Avoid appending characters as strings in StringBuffer.append. 652

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/ModelUtil.java

Violation Line
The class 'ModelUtil' has a Modified Cyclomatic Complexity of 5 (Highest = 12). 21196
The class 'ModelUtil' has a Cyclomatic Complexity of 10 (Highest = 26). 21196
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 21196
The class 'ModelUtil' has a Standard Cyclomatic Complexity of 5 (Highest = 12). 21196
Avoid instantiating new objects inside loops 31
The method 'getSubModel' has a Standard Cyclomatic Complexity of 12. 59111
The method 'getSubModel' has a Cyclomatic Complexity of 13. 59111
The method 'getSubModel' has a Modified Cyclomatic Complexity of 12. 59111
Ensure that resources like this Statement object are closed after use 70
Ensure that resources like this Statement object are closed after use 75
Ensure that resources like this Statement object are closed after use 95
Deeply nested if..then statements are hard to read 102104
The method 'cleanIRI' has a Cyclomatic Complexity of 26. 157194

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/OWLTime.java

Violation Line
Possible God class (WMC=180, ATFD=133, TCC=0.0026455026455026454) 1741
The class 'Interval' has a Modified Cyclomatic Complexity of 4 (Highest = 28). 48293
The class 'Interval' has a Cyclomatic Complexity of 5 (Highest = 40). 48293
The class 'Interval' has a Standard Cyclomatic Complexity of 4 (Highest = 28). 48293
The method parseTimex() has an NCSS line count of 102 82225
The method 'parseTimex' has a Cyclomatic Complexity of 40. 82225
The method 'parseTimex' has a Standard Cyclomatic Complexity of 28. 82225
The method 'parseTimex' has a Modified Cyclomatic Complexity of 28. 82225
The method parseTimex() has an NPath complexity of 1269675 82225
Avoid really long methods. 82225
Avoid declaring a variable if it is unreferenced before a possible exit point. 85
Avoid declaring a variable if it is unreferenced before a possible exit point. 86
Avoid declaring a variable if it is unreferenced before a possible exit point. 87
Avoid declaring a variable if it is unreferenced before a possible exit point. 88
Avoid declaring a variable if it is unreferenced before a possible exit point. 89
Avoid declaring a variable if it is unreferenced before a possible exit point. 90
Avoid declaring a variable if it is unreferenced before a possible exit point. 91
Avoid declaring a variable if it is unreferenced before a possible exit point. 92
Avoid declaring a variable if it is unreferenced before a possible exit point. 93
Avoid declaring a variable if it is unreferenced before a possible exit point. 94
Avoid declaring a variable if it is unreferenced before a possible exit point. 95
Avoid declaring a variable if it is unreferenced before a possible exit point. 103
Position literals first in String comparisons 109
Position literals first in String comparisons 109
Position literals first in String comparisons 110
Avoid empty if statements 110112
Position literals first in String comparisons 146
Position literals first in String comparisons 146
Position literals first in String comparisons 146
Position literals first in String comparisons 147
Position literals first in String comparisons 147
Position literals first in String comparisons 147
Position literals first in String comparisons 148
Avoid empty if statements 148150
Position literals first in String comparisons 187
Position literals first in String comparisons 190
Position literals first in String comparisons 193
Position literals first in String comparisons 196
The class 'DateTime' has a Cyclomatic Complexity of 4 (Highest = 15). 295516
The class 'DateTime' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 295516
The class 'DateTime' has a Standard Cyclomatic Complexity of 3 (Highest = 15). 295516
Avoid reassigning parameters such as 'month' 325
Avoid reassigning parameters such as 'month' 325
Avoid reassigning parameters such as 'month' 325
The method 'create' has a Cyclomatic Complexity of 12. 325364
Avoid reassigning parameters such as 'week' 325
The method 'toRDF' has a Modified Cyclomatic Complexity of 15. 418476
The method 'toRDF' has a Cyclomatic Complexity of 15. 418476
The method 'toRDF' has a Standard Cyclomatic Complexity of 15. 418476
The method toRDF() has an NPath complexity of 1024 418476
The method 'toString' has a Cyclomatic Complexity of 14. 484514
The class 'Duration' has a Standard Cyclomatic Complexity of 3 (Highest = 15). 518739
The class 'Duration' has a Cyclomatic Complexity of 3 (Highest = 18). 518739
The class 'Duration' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 518739
The method 'parseTimex' has a Modified Cyclomatic Complexity of 15. 562625
The method 'parseTimex' has a Cyclomatic Complexity of 18. 562625
The method 'parseTimex' has a Standard Cyclomatic Complexity of 15. 562625
Avoid declaring a variable if it is unreferenced before a possible exit point. 564
This call to String.startsWith can be rewritten using String.charAt(0) 579
The method toString() has an NPath complexity of 512 710737
The method 'toString' has a Cyclomatic Complexity of 11. 710737

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/ProcessorASNorm.java

Violation Line
Possible God class (WMC=47, ATFD=52, TCC=0.0) 1266
The class 'ProcessorASNorm' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 28266
The class 'ProcessorASNorm' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 28266
The class 'ProcessorASNorm' has a Cyclomatic Complexity of 4 (Highest = 10). 28266
The method 'hash' has a Modified Cyclomatic Complexity of 10. 89118
The method 'hash' has a Cyclomatic Complexity of 10. 89118
The method 'hash' has a Standard Cyclomatic Complexity of 10. 89118
Ensure that resources like this Statement object are closed after use 91
Avoid instantiating new objects inside loops 9293
Ensure that resources like this Statement object are closed after use 137
Ensure that resources like this Statement object are closed after use 145
Unnecessary use of fully qualified name 'eu.fbk.rdfpro.Mapper' due to existing import 'eu.fbk.rdfpro.Mapper' 161
Unnecessary use of fully qualified name 'eu.fbk.rdfpro.Mapper' due to existing import 'eu.fbk.rdfpro.Mapper' 190
Unnecessary use of fully qualified name 'eu.fbk.rdfpro.Mapper.BYPASS_KEY' due to existing import 'eu.fbk.rdfpro.Mapper' 203
Ensure that resources like this Statement object are closed after use 218
Ensure that resources like this Statement object are closed after use 227
Ensure that resources like this Statement object are closed after use 248

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/RDFGraphvizRenderer.java

Violation Line
Possible God class (WMC=81, ATFD=55, TCC=0.0) 1437
The class 'RDFGraphvizRenderer' has a Standard Cyclomatic Complexity of 6 (Highest = 17). 23437
The class 'RDFGraphvizRenderer' has a Modified Cyclomatic Complexity of 6 (Highest = 17). 23437
The class 'RDFGraphvizRenderer' has a Cyclomatic Complexity of 7 (Highest = 21). 23437
The constructor 'RDFGraphvizRenderer' has a Modified Cyclomatic Complexity of 10. 4762
The constructor 'RDFGraphvizRenderer' has a Cyclomatic Complexity of 10. 4762
The constructor 'RDFGraphvizRenderer' has a Standard Cyclomatic Complexity of 10. 4762
The method 'emitSVG' has a Cyclomatic Complexity of 11. 64131
The method 'emitSVG' has a Modified Cyclomatic Complexity of 10. 64131
The method 'emitSVG' has a Standard Cyclomatic Complexity of 10. 64131
The method 'emitDot' has a Cyclomatic Complexity of 21. 133233
The method 'emitDot' has a Standard Cyclomatic Complexity of 17. 133233
The method 'emitDot' has a Modified Cyclomatic Complexity of 17. 133233
Avoid really long methods. 133233
The method emitDot() has an NPath complexity of 10875 133233
Ensure that resources like this Statement object are closed after use 146
Ensure that resources like this Statement object are closed after use 182
Avoid instantiating new objects inside loops 210
Avoid instantiating new objects inside loops 215
Avoid unused private methods such as 'shorten(URI)'. 292
Avoid instantiation through private constructors from outside of the constructors class. 432

pikes-rdf - eu/fbk/dkm/pikes/rdf/vocab/BBN.java

Violation Line
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 86

pikes-resources - eu/fbk/dkm/pikes/resources/FrameBase.java

Violation Line
Possible God class (WMC=54, ATFD=30, TCC=0.02857142857142857) 1333
The class 'FrameBase' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 36333
The class 'FrameBase' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 36333
The class 'FrameBase' has a Cyclomatic Complexity of 4 (Highest = 19). 36333
The method 'main' has a Cyclomatic Complexity of 19. 181280
The method 'main' has a Modified Cyclomatic Complexity of 16. 181280
The method 'main' has a Standard Cyclomatic Complexity of 16. 181280
The method 'handleStatement' has a Cyclomatic Complexity of 12. 214246
These nested if statements could be combined 241243
Avoid reassigning parameters such as 'tag' 305
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 306
Avoid reassigning parameters such as 'tag' 318
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 319

pikes-resources - eu/fbk/dkm/pikes/resources/FrameNet.java

Violation Line
The class 'FrameNet' has a Cyclomatic Complexity of 16 (Highest = 15). 17186
The class 'FrameNet' has a Standard Cyclomatic Complexity of 15 (Highest = 15). 17186
The class 'FrameNet' has a Modified Cyclomatic Complexity of 15 (Highest = 15). 17186
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 17186
The method 'main' has a Modified Cyclomatic Complexity of 15. 79154
The method 'main' has a Standard Cyclomatic Complexity of 15. 79154
Consider using varargs for methods or constructors which take an array the last parameter. 79
The method 'main' has a Cyclomatic Complexity of 15. 79154
Avoid instantiating new objects inside loops 100
String.indexOf(char) is faster than String.indexOf(String). 119

pikes-resources - eu/fbk/dkm/pikes/resources/Intensities.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 18120
Avoid using redundant field initializer for 'instance' 22
Use block level rather than method level synchronization 2426
Use block level rather than method level synchronization 2840
Local variable 'lexicon' could be declared final 44
Local variable 'fileName' could be declared final 46
Local variable 'document' could be declared final 47
Local variable 'lexemeMultimap' could be declared final 48
Local variable 'term' could be declared final 50
Local variable 'lexemes' could be declared final 51
Local variable 'lexeme' could be declared final 52

pikes-resources - eu/fbk/dkm/pikes/resources/Lexicon.java

Violation Line
Possible God class (WMC=113, ATFD=53, TCC=0.005263157894736842) 1517
New exception is thrown in catch block, original stack trace may be lost 64
Local variable 'token' could be declared final 106
The class 'Lexeme' has a Modified Cyclomatic Complexity of 4 (Highest = 17). 173411
The class 'Lexeme' has a Standard Cyclomatic Complexity of 4 (Highest = 17). 173411
The class 'Lexeme' has a Cyclomatic Complexity of 4 (Highest = 17). 173411
The method 'create' has a Cyclomatic Complexity of 15. 187234
The method 'create' has a Modified Cyclomatic Complexity of 11. 187234
The method 'create' has a Standard Cyclomatic Complexity of 11. 187234
The method create() has an NPath complexity of 380 187234
Avoid declaring a variable if it is unreferenced before a possible exit point. 191
Avoid declaring a variable if it is unreferenced before a possible exit point. 192193
Deeply nested if..then statements are hard to read 206208
New exception is thrown in catch block, original stack trace may be lost 229
Avoid using a branching statement as the last in a loop. 288
The method 'matchRecursive' has a Cyclomatic Complexity of 17. 295363
The method 'matchRecursive' has a Standard Cyclomatic Complexity of 17. 295363
The method matchRecursive() has an NPath complexity of 1218 295363
The method 'matchRecursive' has a Modified Cyclomatic Complexity of 17. 295363
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 428
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 429
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 430
The method parse() has an NPath complexity of 250 443453
Parameter 'altLemma' is not assigned and could be declared final 443

pikes-resources - eu/fbk/dkm/pikes/resources/NAFFilter.java

Violation Line
Possible God class (WMC=399, ATFD=345, TCC=0.0) 12209
The class 'NAFFilter' has a Cyclomatic Complexity of 14 (Highest = 32). 712209
The class 'NAFFilter' has a Standard Cyclomatic Complexity of 11 (Highest = 24). 712209
The class 'NAFFilter' has a Modified Cyclomatic Complexity of 11 (Highest = 24). 712209
Too many fields 712209
Do not add empty strings 86
The method 'filter' has a Modified Cyclomatic Complexity of 20. 238318
The method 'filter' has a Standard Cyclomatic Complexity of 20. 238318
The method 'filter' has a Cyclomatic Complexity of 20. 238318
The method filter() has an NPath complexity of 524288 238318
The method applyTermSenseCompletion() has an NPath complexity of 63181 333441
The method 'applyTermSenseCompletion' has a Modified Cyclomatic Complexity of 20. 333441
The method 'applyTermSenseCompletion' has a Cyclomatic Complexity of 29. 333441
Avoid really long methods. 333441
The method 'applyTermSenseCompletion' has a Standard Cyclomatic Complexity of 20. 333441
Deeply nested if..then statements are hard to read 365370
Deeply nested if..then statements are hard to read 377383
Deeply nested if..then statements are hard to read 389394
The method 'applyEntityRemoveOverlaps' has a Cyclomatic Complexity of 10. 480512
The method 'applyEntityAddition' has a Cyclomatic Complexity of 13. 514565
The method applyEntityValueNormalization() has an NPath complexity of 231 567607
The method 'applyEntityValueNormalization' has a Standard Cyclomatic Complexity of 12. 567607
The method 'applyEntityValueNormalization' has a Modified Cyclomatic Complexity of 12. 567607
The method 'applyEntityValueNormalization' has a Cyclomatic Complexity of 16. 567607
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 571
Prefer StringBuffer over += for concatenating strings 571
The method 'applyLinkingCompletion' has a Standard Cyclomatic Complexity of 17. 609680
The method applyLinkingCompletion() has an NPath complexity of 4393 609680
The method 'applyLinkingCompletion' has a Cyclomatic Complexity of 19. 609680
The method 'applyLinkingCompletion' has a Modified Cyclomatic Complexity of 17. 609680
Avoid instantiating new objects inside loops 643
These nested if statements could be combined 670676
The method 'applyCorefSpanFixing' has a Cyclomatic Complexity of 28. 714820
The method applyCorefSpanFixing() has an NPath complexity of 3025 714820
The method 'applyCorefSpanFixing' has a Standard Cyclomatic Complexity of 24. 714820
The method 'applyCorefSpanFixing' has a Modified Cyclomatic Complexity of 24. 714820
Avoid really long methods. 714820
Avoid instantiating new objects inside loops 753
The method 'applyCorefForRoleDependencies' has a Cyclomatic Complexity of 32. 822909
The method 'applyCorefForRoleDependencies' has a Standard Cyclomatic Complexity of 19. 822909
The method 'applyCorefForRoleDependencies' has a Modified Cyclomatic Complexity of 19. 822909
The method applyCorefForRoleDependencies() has an NPath complexity of 48388 822909
Position literals first in String comparisons 838
Avoid instantiating new objects inside loops 900
Avoid appending characters as strings in StringBuffer.append. 901
The method 'applySRLPreprocess' has a Cyclomatic Complexity of 24. 9111033
The method 'applySRLPreprocess' has a Modified Cyclomatic Complexity of 20. 9111033
The method 'applySRLPreprocess' has a Standard Cyclomatic Complexity of 20. 9111033
Avoid really long methods. 9111033
The method applySRLPreprocess() has an NPath complexity of 11352 9111033
Avoid instantiating new objects inside loops 986
Avoid instantiating new objects inside loops 1006
Avoid instantiating new objects inside loops 1016
The method 'applySRLRemoveWrongRefs' has a Modified Cyclomatic Complexity of 12. 10351087
The method 'applySRLRemoveWrongRefs' has a Standard Cyclomatic Complexity of 12. 10351087
The method applySRLRemoveWrongRefs() has an NPath complexity of 721 10351087
The method 'applySRLRemoveWrongRefs' has a Cyclomatic Complexity of 17. 10351087
The method 'applySRLPredicateAddition' has a Modified Cyclomatic Complexity of 11. 11151170
The method applySRLPredicateAddition() has an NPath complexity of 1009 11151170
The method 'applySRLPredicateAddition' has a Standard Cyclomatic Complexity of 11. 11151170
The method 'applySRLPredicateAddition' has a Cyclomatic Complexity of 18. 11151170
The method 'applySRLSelfArgFixing' has a Cyclomatic Complexity of 13. 11721234
The method 'applySRLSelfArgFixing' has a Modified Cyclomatic Complexity of 12. 11721234
The method applySRLSelfArgFixing() has an NPath complexity of 561 11721234
The method 'applySRLSelfArgFixing' has a Standard Cyclomatic Complexity of 12. 11721234
The method 'applySRLSenseMapping' has a Modified Cyclomatic Complexity of 24. 12361332
The method applySRLSenseMapping() has an NPath complexity of 3014155 12361332
The method 'applySRLSenseMapping' has a Cyclomatic Complexity of 25. 12361332
The method 'applySRLSenseMapping' has a Standard Cyclomatic Complexity of 24. 12361332
Avoid instantiating new objects inside loops 12901291
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1291
The method 'applySRLFrameBaseMapping' has a Modified Cyclomatic Complexity of 12. 13341382
The method 'applySRLFrameBaseMapping' has a Standard Cyclomatic Complexity of 12. 13341382
The method 'applySRLFrameBaseMapping' has a Cyclomatic Complexity of 12. 13341382
Avoid instantiating new objects inside loops 1344
Avoid instantiating new objects inside loops 1358
Avoid instantiating new objects inside loops 1375
The method 'linkEntitiesTimexPredicates' has a Modified Cyclomatic Complexity of 23. 14471530
The method linkEntitiesTimexPredicates() has an NPath complexity of 44952 14471530
The method 'linkEntitiesTimexPredicates' has a Standard Cyclomatic Complexity of 23. 14471530
The method 'linkEntitiesTimexPredicates' has a Cyclomatic Complexity of 23. 14471530
Avoid instantiating new objects inside loops 1559
Unnecessary final modifier in final class 15741576
Unnecessary final modifier in final class 15871604
The class 'Builder' has a Standard Cyclomatic Complexity of 3 (Highest = 35). 17322207
Too many fields 17322207
The class 'Builder' has a Modified Cyclomatic Complexity of 3 (Highest = 35). 17322207
The class 'Builder' has a Cyclomatic Complexity of 3 (Highest = 37). 17322207
Document empty constructor 18031804
The method 'withProperties' has a Modified Cyclomatic Complexity of 35. 18151892
The method withProperties() has an NPath complexity of 315 18151892
The method 'withProperties' has a Standard Cyclomatic Complexity of 35. 18151892
The method 'withProperties' has a Cyclomatic Complexity of 37. 18151892
Avoid instantiation through private constructors from outside of the constructors class. 2204

pikes-resources - eu/fbk/dkm/pikes/resources/NAFUtils.java

Violation Line
Possible God class (WMC=241, ATFD=157, TCC=0.0) 1973
The class 'NAFUtils' has a Modified Cyclomatic Complexity of 5 (Highest = 19). 49973
The class 'NAFUtils' has a Cyclomatic Complexity of 6 (Highest = 24). 49973
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 49973
The class 'NAFUtils' has a Standard Cyclomatic Complexity of 5 (Highest = 19). 49973
The method 'normalize' has a Cyclomatic Complexity of 11. 100135
The method 'extractHeadsHelper' has a Cyclomatic Complexity of 10. 213239
This call to String.startsWith can be rewritten using String.charAt(0) 217
The method 'getNominalSpan' has a Modified Cyclomatic Complexity of 11. 266314
The method 'getNominalSpan' has a Standard Cyclomatic Complexity of 11. 266314
The method getNominalSpan() has an NPath complexity of 468 266314
The method 'getNominalSpan' has a Cyclomatic Complexity of 11. 266314
Position literals first in String comparisons 365
Position literals first in String comparisons 365
Position literals first in String comparisons 365
The method 'toString' has a Modified Cyclomatic Complexity of 12. 442475
The method 'toString' has a Standard Cyclomatic Complexity of 12. 442475
The method 'toString' has a Cyclomatic Complexity of 12. 442475
The method 'trimSpan' has a Cyclomatic Complexity of 10. 575602
The method 'normalizeSpan' has a Cyclomatic Complexity of 24. 606703
The method 'normalizeSpan' has a Modified Cyclomatic Complexity of 19. 606703
The method normalizeSpan() has an NPath complexity of 64800 606703
The method 'normalizeSpan' has a Standard Cyclomatic Complexity of 19. 606703
The method 'mergeSpans' has a Modified Cyclomatic Complexity of 11. 705760
The method 'mergeSpans' has a Standard Cyclomatic Complexity of 11. 705760
The method 'mergeSpans' has a Cyclomatic Complexity of 11. 705760
The method 'splitSpans' has a Cyclomatic Complexity of 10. 762805
Unnecessary final modifier in final class 762805
Unnecessary final modifier in final class 807823
The method 'extendedPos' has a Cyclomatic Complexity of 11. 875887
Avoid declaring a variable if it is unreferenced before a possible exit point. 890
This call to String.startsWith can be rewritten using String.charAt(0) 892
Position literals first in String comparisons 895
Position literals first in String comparisons 895
Avoid declaring a variable if it is unreferenced before a possible exit point. 907

pikes-resources - eu/fbk/dkm/pikes/resources/NomBank.java

Violation Line
Possible God class (WMC=77, ATFD=23, TCC=0.0) 1479
The class 'NomBank' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 20479
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 20479
The class 'NomBank' has a Cyclomatic Complexity of 4 (Highest = 10). 20479
The class 'NomBank' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 20479
Avoid instantiating new objects inside loops 49
Avoid instantiating new objects inside loops 6869
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 99
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 106
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 110
Consider using varargs for methods or constructors which take an array the last parameter. 117
Avoid instantiating new objects inside loops 179
Avoid instantiating new objects inside loops 181
The method 'getPredicateRoles' has a Standard Cyclomatic Complexity of 10. 206254
The method 'getPredicateRoles' has a Cyclomatic Complexity of 10. 206254
The method 'getPredicateRoles' has a Modified Cyclomatic Complexity of 10. 206254
Deeply nested if..then statements are hard to read 241243
The class 'Parser' has a Cyclomatic Complexity of 15 (Highest = 28). 256379
The class 'Parser' has a Standard Cyclomatic Complexity of 14 (Highest = 26). 256379
The class 'Parser' has a Modified Cyclomatic Complexity of 14 (Highest = 26). 256379
The method 'parse' has a Standard Cyclomatic Complexity of 26. 265378
The method 'parse' has a Cyclomatic Complexity of 28. 265378
The method 'parse' has a Modified Cyclomatic Complexity of 26. 265378
Avoid really long methods. 265378
The method parse() has an NPath complexity of 112322 265378
Avoid instantiating new objects inside loops 282
Avoid instantiating new objects inside loops 283
Avoid empty catch blocks 295297
The user-supplied array 'argPBNums' is stored directly. 407
The user-supplied array 'argDescr' is stored directly. 407

pikes-resources - eu/fbk/dkm/pikes/resources/NumberSpeller.java

Violation Line
Possible God class (WMC=92, ATFD=24, TCC=0.06666666666666667) 1433
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 16433
The class 'NumberSpeller' has a Standard Cyclomatic Complexity of 12 (Highest = 30). 16433
The class 'NumberSpeller' has a Cyclomatic Complexity of 15 (Highest = 40). 16433
The class 'NumberSpeller' has a Modified Cyclomatic Complexity of 11 (Highest = 26). 16433
The method parseCardinal() has an NCSS line count of 104 85245
The method 'parseCardinal' has a Cyclomatic Complexity of 40. 85245
The method 'parseCardinal' has a Modified Cyclomatic Complexity of 26. 85245
Avoid really long methods. 85245
The method parseCardinal() has an NPath complexity of 8725 85245
The method 'parseCardinal' has a Standard Cyclomatic Complexity of 30. 85245
A high ratio of statements to labels in a switch statement. Consider refactoring. 121219
Avoid instantiating new objects inside loops 139
Avoid instantiating new objects inside loops 186
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 187
No need to call String.valueOf to append to a string. 208
Avoid appending characters as strings in StringBuffer.append. 232
The method 'spellCardinal' has a Modified Cyclomatic Complexity of 16. 259359
The method 'spellCardinal' has a Standard Cyclomatic Complexity of 18. 259359
The method spellCardinal() has an NPath complexity of 1845 259359
Avoid really long methods. 259359
The method 'spellCardinal' has a Cyclomatic Complexity of 19. 259359
A switch with less than three branches is inefficient, use a if statement instead. 296306
Avoid appending characters as strings in StringBuffer.append. 300
Avoid appending characters as strings in StringBuffer.append. 301
Avoid appending characters as strings in StringBuffer.append. 303
Avoid appending characters as strings in StringBuffer.append. 312
Avoid appending characters as strings in StringBuffer.append. 314
Avoid appending characters as strings in StringBuffer.append. 318
Avoid appending characters as strings in StringBuffer.append. 321
Avoid appending characters as strings in StringBuffer.append. 335
Avoid appending characters as strings in StringBuffer.append. 338
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 351
The method 'parse' has a Cyclomatic Complexity of 16. 397431
The method 'parse' has a Standard Cyclomatic Complexity of 10. 397431
The method 'parse' has a Modified Cyclomatic Complexity of 10. 397431
The method parse() has an NPath complexity of 495 397431
Avoid empty catch blocks 417419

pikes-resources - eu/fbk/dkm/pikes/resources/PosNegPair.java

Violation Line
Private field 'posScore' could be made final; it is only initialized in the declaration or constructor. 9
Private field 'negScore' could be made final; it is only initialized in the declaration or constructor. 10
Parameter 'negScore' is not assigned and could be declared final 12
Parameter 'posScore' is not assigned and could be declared final 12

pikes-resources - eu/fbk/dkm/pikes/resources/PredicateMatrix.java

Violation Line
Possible God class (WMC=68, ATFD=12, TCC=0.0) 1294
The class 'PredicateMatrix' has a Modified Cyclomatic Complexity of 5 (Highest = 41). 8294
The class 'PredicateMatrix' has a Standard Cyclomatic Complexity of 5 (Highest = 41). 8294
The class 'PredicateMatrix' has a Cyclomatic Complexity of 5 (Highest = 42). 8294
Private field 'vnClass' could be made final; it is only initialized in the declaration or constructor. 10
Private field 'vnSubClass' could be made final; it is only initialized in the declaration or constructor. 11
Private field 'fnFrame' could be made final; it is only initialized in the declaration or constructor. 12
Private field 'pbPredicate' could be made final; it is only initialized in the declaration or constructor. 13
Private field 'esoClass' could be made final; it is only initialized in the declaration or constructor. 14
Private field 'eventType' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'wnSense' could be made final; it is only initialized in the declaration or constructor. 16
Private field 'vnToFn' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'vnThematicRole' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'fnFrameElement' could be made final; it is only initialized in the declaration or constructor. 21
Private field 'pbArgument' could be made final; it is only initialized in the declaration or constructor. 22
Private field 'esoRole' could be made final; it is only initialized in the declaration or constructor. 23
The constructor 'PredicateMatrix' has a Standard Cyclomatic Complexity of 41. 25187
The constructor 'PredicateMatrix' has a Modified Cyclomatic Complexity of 41. 25187
The constructor 'PredicateMatrix' has a Cyclomatic Complexity of 42. 25187
Parameter 'modelFile' is not assigned and could be declared final 25
Local variable 'pmReader' could be declared final 27
Avoid instantiating new objects inside loops 39
Deeply nested if..then statements are hard to read 4042
Deeply nested if..then statements are hard to read 4345
Avoid instantiating new objects inside loops 49
Deeply nested if..then statements are hard to read 5052
Deeply nested if..then statements are hard to read 5355
Deeply nested if..then statements are hard to read 5860
Avoid instantiating new objects inside loops 59
Deeply nested if..then statements are hard to read 6166
Avoid instantiating new objects inside loops 69
Deeply nested if..then statements are hard to read 7072
Deeply nested if..then statements are hard to read 7375
Avoid instantiating new objects inside loops 79
Deeply nested if..then statements are hard to read 8082
Deeply nested if..then statements are hard to read 8385
Avoid instantiating new objects inside loops 89
Deeply nested if..then statements are hard to read 9092
Deeply nested if..then statements are hard to read 9395
Avoid instantiating new objects inside loops 99
Deeply nested if..then statements are hard to read 100102
Deeply nested if..then statements are hard to read 103105
Avoid instantiating new objects inside loops 109
Deeply nested if..then statements are hard to read 110112
Deeply nested if..then statements are hard to read 113115
Deeply nested if..then statements are hard to read 119132
Avoid instantiating new objects inside loops 120
Deeply nested if..then statements are hard to read 133146
Avoid instantiating new objects inside loops 134
Deeply nested if..then statements are hard to read 147160
Avoid instantiating new objects inside loops 148
Deeply nested if..then statements are hard to read 161174
Avoid instantiating new objects inside loops 162
Parameter 'PBSense' is not assigned and could be declared final 189
Parameter 'vnSense' is not assigned and could be declared final 197
Parameter 'PBSense' is not assigned and could be declared final 205
Parameter 'PBSense' is not assigned and could be declared final 213
Parameter 'PBSense' is not assigned and could be declared final 221
Parameter 'PBSense' is not assigned and could be declared final 229
Parameter 'PBSense' is not assigned and could be declared final 237
Parameter 'PBSense' is not assigned and could be declared final 245
Parameter 'PBSenseArgument' is not assigned and could be declared final 253
Parameter 'PBSenseArgument' is not assigned and could be declared final 261
Parameter 'PBSenseArgument' is not assigned and could be declared final 269
Parameter 'PBSenseArgument' is not assigned and could be declared final 277
Parameter 'array' is not assigned and could be declared final 285
Parameter 'element' is not assigned and could be declared final 285

pikes-resources - eu/fbk/dkm/pikes/resources/PropBank.java

Violation Line
Possible God class (WMC=63, ATFD=19, TCC=0.0) 1502
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 21502
Avoid instantiating new objects inside loops 3536
Avoid instantiating new objects inside loops 8081
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 99
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 103
Consider using varargs for methods or constructors which take an array the last parameter. 110
Avoid instantiating new objects inside loops 142
Avoid instantiating new objects inside loops 144
The class 'Matrix' has a Modified Cyclomatic Complexity of 6 (Highest = 11). 156259
The class 'Matrix' has a Standard Cyclomatic Complexity of 6 (Highest = 11). 156259
The class 'Matrix' has a Cyclomatic Complexity of 6 (Highest = 13). 156259
The method 'parseMatrix' has a Standard Cyclomatic Complexity of 11. 179238
The method parseMatrix() has an NPath complexity of 1442 179238
The method 'parseMatrix' has a Modified Cyclomatic Complexity of 11. 179238
The method 'parseMatrix' has a Cyclomatic Complexity of 13. 179238
Avoid reassigning parameters such as 'string' 241
Avoid empty catch blocks 333335
Avoid long parameter lists. 387392

pikes-resources - eu/fbk/dkm/pikes/resources/SentiWordNet.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1795
Avoid using redundant field initializer for 'path' 21
Avoid using redundant field initializer for 'values' 22
Parameter 'path' is not assigned and could be declared final 24
Singleton is not thread safe 2954
Local variable 'reader' could be declared final 32
This call to String.startsWith can be rewritten using String.charAt(0) 36
Local variable 'parts' could be declared final 39
Local variable 'pos' could be declared final 44
Local variable 'id' could be declared final 45
Local variable 'posScore' could be declared final 46
Local variable 'negScore' could be declared final 47
Local variable 'wnID' could be declared final 49
Avoid instantiating new objects inside loops 51
Parameter 'wnID' is not assigned and could be declared final 57
Avoid empty catch blocks 6062
Consider using varargs for methods or constructors which take an array the last parameter. 71
Parameter 'args' is not assigned and could be declared final 71

pikes-resources - eu/fbk/dkm/pikes/resources/SenticNet.java

Violation Line
The class 'SenticNet' has a Cyclomatic Complexity of 4 (Highest = 16). 28315
The class 'SenticNet' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 28315
The class 'SenticNet' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 28315
Avoid using redundant field initializer for 'instance' 55
Use block level rather than method level synchronization 5759
Use block level rather than method level synchronization 6172
The method 'index' has a Modified Cyclomatic Complexity of 16. 94159
The method 'index' has a Standard Cyclomatic Complexity of 16. 94159
The method 'index' has a Cyclomatic Complexity of 16. 94159
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 306

pikes-resources - eu/fbk/dkm/pikes/resources/Stemming.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1175
New exception is thrown in catch block, original stack trace may be lost 56
New exception is thrown in catch block, original stack trace may be lost 63

pikes-resources - eu/fbk/dkm/pikes/resources/SubjectivityLexicon.java

Violation Line
The class 'SubjectivityLexicon' has a Cyclomatic Complexity of 6 (Highest = 24). 20198
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 20198
The class 'SubjectivityLexicon' has a Standard Cyclomatic Complexity of 6 (Highest = 21). 20198
The class 'SubjectivityLexicon' has a Modified Cyclomatic Complexity of 6 (Highest = 21). 20198
Avoid using redundant field initializer for 'instance' 24
Use block level rather than method level synchronization 2628
Use block level rather than method level synchronization 3042
The method index() has an NPath complexity of 90685 44118
The method 'index' has a Cyclomatic Complexity of 24. 44118
The method 'index' has a Standard Cyclomatic Complexity of 21. 44118
The method 'index' has a Modified Cyclomatic Complexity of 21. 44118
Position literals first in String comparisons 67
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 68
Position literals first in String comparisons 69
Position literals first in String comparisons 71
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 72
Position literals first in String comparisons 73
Position literals first in String comparisons 75
Position literals first in String comparisons 77
Position literals first in String comparisons 79
Position literals first in String comparisons 84
Position literals first in String comparisons for EqualsIgnoreCase 85
Position literals first in String comparisons 86
Position literals first in String comparisons for EqualsIgnoreCase 88
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 89
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 100
Avoid instantiating new objects inside loops 101

pikes-resources - eu/fbk/dkm/pikes/resources/Sumo.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 27210
Avoid instantiating new objects inside loops 56
Avoid instantiating new objects inside loops 62
Avoid instantiating new objects inside loops 69
Avoid instantiating new objects inside loops 78
Avoid instantiating new objects inside loops 8384
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 105
The user-supplied array 'synsets' is stored directly. 201
The user-supplied array 'children' is stored directly. 201
The user-supplied array 'parents' is stored directly. 201
Consider using varargs for methods or constructors which take an array the last parameter. 201

pikes-resources - eu/fbk/dkm/pikes/resources/Txt2Naf.java

Violation Line
Avoid unused imports such as 'javax.xml.parsers.DocumentBuilder' 10
Avoid unused imports such as 'javax.xml.parsers.DocumentBuilderFactory' 11
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1473
Avoid unused private fields such as 'LOGGER'. 16
Parameter 'args' is not assigned and could be declared final 19
Consider using varargs for methods or constructors which take an array the last parameter. 19
Local variable 'inputFolder' could be declared final 31
Local variable 'outputFolder' could be declared final 32
Local variable 'content' could be declared final 46
Avoid instantiating new objects inside loops 4851
Local variable 'outputFile' could be declared final 4851
Avoid instantiating new objects inside loops 54
Local variable 'document' could be declared final 54
Local variable 'documentPublic' could be declared final 56
Local variable 'documentFileDesc' could be declared final 60

pikes-resources - eu/fbk/dkm/pikes/resources/VerbNet.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 824

pikes-resources - eu/fbk/dkm/pikes/resources/WordNet.java

Violation Line
Possible God class (WMC=64, ATFD=51, TCC=0.021052631578947368) 1413
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 19413
Parameter 'lemma' is not assigned and could be declared final 156
Parameter 'pos' is not assigned and could be declared final 156
Local variable 'indexWord' could be declared final 159
Local variable 'synsets' could be declared final 163
Local variable 'ret' could be declared final 164
Local variable 'synset' could be declared final 166
Do not add empty strings 274
Avoid reassigning parameters such as 'synsetID' 279
Avoid instantiating new objects inside loops 376377

pikes-resources - eu/fbk/dkm/pikes/resources/YagoTaxonomy.java

Violation Line
The class 'YagoTaxonomy' has a Standard Cyclomatic Complexity of 7 (Highest = 10). 41319
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 41319
The class 'YagoTaxonomy' has a Cyclomatic Complexity of 8 (Highest = 14). 41319
The class 'YagoTaxonomy' has a Modified Cyclomatic Complexity of 7 (Highest = 10). 41319
Avoid empty catch blocks 6971
Avoid instantiating new objects inside loops 89
Avoid instantiating new objects inside loops 90
Avoid instantiating new objects inside loops 99
The method 'main' has a Standard Cyclomatic Complexity of 10. 228301
The method 'main' has a Cyclomatic Complexity of 14. 228301
The method 'main' has a Modified Cyclomatic Complexity of 10. 228301
Consider using varargs for methods or constructors which take an array the last parameter. 311
The user-supplied array 'children' is stored directly. 311
The user-supplied array 'parents' is stored directly. 311

pikes-resources - eu/fbk/dkm/pikes/resources/boxer/CorpusEvaluator.java

Violation Line
The class 'CorpusEvaluator' has a Modified Cyclomatic Complexity of 20 (Highest = 19). 23153
The class 'CorpusEvaluator' has a Standard Cyclomatic Complexity of 20 (Highest = 19). 23153
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23153
The class 'CorpusEvaluator' has a Cyclomatic Complexity of 20 (Highest = 19). 23153
The method 'main' has a Cyclomatic Complexity of 19. 27152
Parameter 'args' is not assigned and could be declared final 27
Consider using varargs for methods or constructors which take an array the last parameter. 27
The method main() has an NPath complexity of 7207 27152
Avoid really long methods. 27152
The method 'main' has a Standard Cyclomatic Complexity of 19. 27152
The method 'main' has a Modified Cyclomatic Complexity of 19. 27152
Local variable 'lines' could be declared final 43
Local variable 'reader' could be declared final 45
Local variable 'evaluator' could be declared final 56
Local variable 'fileIterator' could be declared final 58
Local variable 'file' could be declared final 60
Local variable 'document' could be declared final 62
Avoid instantiating new objects inside loops 64
Local variable 'fnTerms' could be declared final 64
Local variable 'predicate' could be declared final 65
Avoid instantiating new objects inside loops 66
Local variable 'frameNets' could be declared final 66
Local variable 'externalRef' could be declared final 67
Local variable 'fn1' could be declared final 78
Local variable 'predicateTerm' could be declared final 85
Local variable 'last' could be declared final 90
Local variable 'start' could be declared final 91
Local variable 'j' could be declared final 93
Local variable 'sent' could be declared final 94
Local variable 'parts' could be declared final 96
Local variable 'lemma' could be declared final 97
Local variable 'terms' could be declared final 98
Local variable 'term' could be declared final 106
Local variable 'precisionRecall' could be declared final 146

pikes-resources - eu/fbk/dkm/pikes/resources/boxer/CorpusSplitter.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1792
Avoid unused private fields such as 'LOGGER'. 19
Parameter 'index' is not assigned and could be declared final 23
Parameter 'list' is not assigned and could be declared final 23
Parameter 'folder' is not assigned and could be declared final 23
Local variable 'buffer' could be declared final 25
Local variable 'line' could be declared final 26
Avoid appending characters as strings in StringBuffer.append. 28
Local variable 'text' could be declared final 31
Local variable 'nafFileName' could be declared final 32
Local variable 'nafFile' could be declared final 33
Local variable 'documentURI' could be declared final 34
Parameter 'args' is not assigned and could be declared final 48
Consider using varargs for methods or constructors which take an array the last parameter. 48
Local variable 'reader' could be declared final 66
Avoid instantiating new objects inside loops 78
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 81

pikes-resources - eu/fbk/dkm/pikes/resources/conllAIDA/ConvertDocs.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 18106
When instantiating a SimpleDateFormat object, specify a Locale 20
Consider using varargs for methods or constructors which take an array the last parameter. 23
Parameter 'args' is not assigned and could be declared final 23
Local variable 'conllfolder' could be declared final 39
Local variable 'outputfile' could be declared final 40
Local variable 'parser' could be declared final 50
Local variable 'obj' could be declared final 53
Local variable 'jsonObject' could be declared final 54
Local variable 'ID' could be declared final 55
Local variable 'text' could be declared final 56
Local variable 'outputFile' could be declared final 59
Local variable 'document' could be declared final 64
Local variable 'fileDesc' could be declared final 69
Local variable 'thisDate' could be declared final 72
Static DateFormatter objects should be accessed in a synchronized manner 74
Local variable 'URL_str' could be declared final 75
Local variable 'aPublic' could be declared final 83

pikes-resources - eu/fbk/dkm/pikes/resources/conllAIDA/ConvertDocsFromGS.java

Violation Line
Avoid unused imports such as 'org.json.simple.JSONObject' 6
Avoid unused imports such as 'org.json.simple.parser.JSONParser' 7
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 24135
When instantiating a SimpleDateFormat object, specify a Locale 26
Parameter 'args' is not assigned and could be declared final 29
Consider using varargs for methods or constructors which take an array the last parameter. 29
Avoid really long methods. 29133
Local variable 'conllfolder' could be declared final 44
Local variable 'outputfile' could be declared final 45
Local variable 'conll_list' could be declared final 47
Local variable 'line' could be declared final 88
Avoid instantiating new objects inside loops 93
Local variable 'outputFile' could be declared final 93
Local variable 'document' could be declared final 97
Avoid instantiating new objects inside loops 97
Local variable 'fileDesc' could be declared final 103
Local variable 'thisDate' could be declared final 106
Avoid instantiating new objects inside loops 106
Static DateFormatter objects should be accessed in a synchronized manner 108
Local variable 'URL_str' could be declared final 109
Local variable 'aPublic' could be declared final 117
Prefer StringBuffer over += for concatenating strings 126
Avoid using if...else statements without curly braces 126
Local variable 'conll_item' could be declared final 128
Prefer StringBuffer over += for concatenating strings 129

pikes-resources - eu/fbk/dkm/pikes/resources/conllAIDA/DistillEntities.java

Violation Line
The class 'DistillEntities' has a Modified Cyclomatic Complexity of 24 (Highest = 23). 21211
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 21211
The class 'DistillEntities' has a Cyclomatic Complexity of 24 (Highest = 23). 21211
The class 'DistillEntities' has a Standard Cyclomatic Complexity of 24 (Highest = 23). 21211
Avoid unused private fields such as 'LOGGER'. 23
Avoid unused private fields such as 'sdf'. 24
When instantiating a SimpleDateFormat object, specify a Locale 24
The method main() has an NPath complexity of 539 31210
Avoid really long methods. 31210
Consider using varargs for methods or constructors which take an array the last parameter. 31
The method 'main' has a Modified Cyclomatic Complexity of 23. 31210
The method 'main' has a Standard Cyclomatic Complexity of 23. 31210
The method 'main' has a Cyclomatic Complexity of 23. 31210
Parameter 'args' is not assigned and could be declared final 31
Local variable 'inputFolder' could be declared final 42
Local variable 'outputFolder' could be declared final 43
Local variable 'modality' could be declared final 44
Local variable 'inputfilenamelocal' could be declared final 60
Local variable 'outputfilenamelocal' could be declared final