The following document contains the results of PMD 5.3.2.

Files

pikes-depparse-annotation - eu/fbk/dkm/pikes/depparseannotation/DepParseInfo.java

Violation Line
Parameter 'width' is not assigned and could be declared final 19
Local variable 'b' could be declared final 20
Parameter 'curr' is not assigned and could be declared final 28
Parameter 'used' is not assigned and could be declared final 28
Parameter 'offset' is not assigned and could be declared final 28
Parameter 'sb' is not assigned and could be declared final 28
Parameter 'depLabels' is not assigned and could be declared final 29
Parameter 'depParents' is not assigned and could be declared final 29
Parameter 'dependencies' is not assigned and could be declared final 29
Local variable 'edges' could be declared final 31
Local variable 'edge' could be declared final 33
Local variable 'target' could be declared final 34
Parameter 'depParents' is not assigned and could be declared final 48
Parameter 'depLabels' is not assigned and could be declared final 49
Parameter 'dependencies' is not assigned and could be declared final 54
Local variable 'rootNodes' could be declared final 55
Local variable 'sb' could be declared final 61
Local variable 'used' could be declared final 62
Local variable 'root' could be declared final 63
Local variable 'nodes' could be declared final 70
Local variable 'node' could be declared final 73
Avoid appending characters as strings in StringBuffer.append. 74

pikes-depparse-annotation - eu/fbk/dkm/pikes/depparseannotation/StanfordToConllDepsAnnotator.java

Violation Line
Avoid unused constructor parameters such as 'annotatorName'. 24
Parameter 'annotatorName' is not assigned and could be declared final 24
Document empty constructor 24–26
Avoid unused constructor parameters such as 'props'. 24
Parameter 'props' is not assigned and could be declared final 24
Parameter 'annotation' is not assigned and could be declared final 29
Local variable 'sentence' could be declared final 32
Local variable 'dependencies' could be declared final 33–34
Avoid instantiating new objects inside loops 35
Local variable 'info' could be declared final 35
Local variable 'tokens' could be declared final 36
Local variable 'token' could be declared final 39
Local variable 'j' could be declared final 40
Local variable 'label' could be declared final 42

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

Violation Line
Possible God class (WMC=66, ATFD=18, TCC=0.02) 1–344
The class 'Corpus' has a Cyclomatic Complexity of 3 (Highest = 10). 30–344
The user-supplied array 'files' is stored directly. 81
The method 'get' has a Cyclomatic Complexity of 10. 131–172
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). 17–113
The class 'CorpusStatistics' has a Cyclomatic Complexity of 16 (Highest = 15). 17–113
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. 17–113
The class 'CorpusStatistics' has a Standard Cyclomatic Complexity of 12 (Highest = 11). 17–113
When instantiating a SimpleDateFormat object, specify a Locale 20
The method 'main' has a Standard Cyclomatic Complexity of 11. 22–112
The method main() has an NPath complexity of 202 22–112
The method 'main' has a Modified Cyclomatic Complexity of 11. 22–112
Consider using varargs for methods or constructors which take an array the last parameter. 22
The method 'main' has a Cyclomatic Complexity of 15. 22–112
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 87–89

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. 20–55
Parameter 'args' is not assigned and could be declared final 24
Consider using varargs for methods or constructors which take an array the last parameter. 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) 1–748
The class 'NafRenderUtils' has a Modified Cyclomatic Complexity of 8 (Highest = 16). 27–748
The class 'NafRenderUtils' has a Cyclomatic Complexity of 9 (Highest = 19). 27–748
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. 27–748
The class 'NafRenderUtils' has a Standard Cyclomatic Complexity of 8 (Highest = 16). 27–748
The method 'renderText' has a Standard Cyclomatic Complexity of 16. 29–110
The method renderText() has an NPath complexity of 3912 29–110
The method 'renderText' has a Cyclomatic Complexity of 17. 29–110
The method 'renderText' has a Modified Cyclomatic Complexity of 16. 29–110
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
The method 'emitTermTooltip' has a Modified Cyclomatic Complexity of 15. 118–192
The method 'emitTermTooltip' has a Standard Cyclomatic Complexity of 15. 118–192
The method emitTermTooltip() has an NPath complexity of 3360 118–192
The method 'emitTermTooltip' has a Cyclomatic Complexity of 19. 118–192
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). 225–674
The class 'ParsingRenderer' has a Modified Cyclomatic Complexity of 10 (Highest = 24). 225–674
The class 'ParsingRenderer' has a Cyclomatic Complexity of 10 (Highest = 26). 225–674
The method 'renderDependencies' has a Modified Cyclomatic Complexity of 19. 271–368
The method 'renderDependencies' has a Standard Cyclomatic Complexity of 19. 271–368
The method renderDependencies() has an NPath complexity of 3570078 271–368
The method 'renderDependencies' has a Cyclomatic Complexity of 19. 271–368
Avoid instantiating new objects inside loops 298
The method 'computeDependencyRows' has a Cyclomatic Complexity of 10. 410–468
The method 'renderSRL' has a Modified Cyclomatic Complexity of 24. 503–631
The method 'renderSRL' has a Standard Cyclomatic Complexity of 24. 503–631
The method renderSRL() has an NPath complexity of 243458 503–631
The method 'renderSRL' has a Cyclomatic Complexity of 26. 503–631
Avoid really long methods. 503–631
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) 1–426
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. 114–115
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 116–117
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). 259–424
The method 'add' has a Cyclomatic Complexity of 10. 292–348
Use block level rather than method level synchronization 292–348
Use block level rather than method level synchronization 378–389
Use block level rather than method level synchronization 391–404
Use block level rather than method level synchronization 406–422

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

Violation Line
The class 'TxtToNaf' has a Cyclomatic Complexity of 14 (Highest = 13). 16–117
The class 'TxtToNaf' has a Standard Cyclomatic Complexity of 13 (Highest = 12). 16–117
The class 'TxtToNaf' has a Modified Cyclomatic Complexity of 12 (Highest = 11). 16–117
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. 16–117
Parameter 'args' is not assigned and could be declared final 24
The method main() has an NPath complexity of 389 24–116
The method 'main' has a Modified Cyclomatic Complexity of 11. 24–116
The method 'main' has a Standard Cyclomatic Complexity of 12. 24–116
Consider using varargs for methods or constructors which take an array the last parameter. 24
The method 'main' has a Cyclomatic Complexity of 13. 24–116
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 83–85
Avoid instantiating new objects inside loops 83–85
Switch statements should have a default label 89–97
A switch with less than three branches is inefficient, use a if statement instead. 89–97
Local variable 'parts' could be declared final 94
Avoid instantiating new objects inside loops 99
Local variable 'document' could be declared final 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=213, ATFD=85, TCC=0.056692242114237) 1–1128
Too many fields 11–1128
The class 'AnnotationContainer' has a Modified Cyclomatic Complexity of 2 (Highest = 34). 11–1128
The class 'AnnotationContainer' has a Cyclomatic Complexity of 2 (Highest = 34). 11–1128
The class 'AnnotationContainer' has a Standard Cyclomatic Complexity of 2 (Highest = 34). 11–1128
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 'annotation' is not assigned and could be declared final 225
Parameter 'sent' is not assigned and could be declared final 225
Parameter 'index' is not assigned and could be declared final 225
Parameter 'mark' 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 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 'tid' is not assigned and could be declared final 433
Parameter 'source' is not assigned and could be declared final 433
Parameter 'mark' is not assigned and could be declared final 433
Parameter 'term' is not assigned and could be declared final 446
Parameter 'index' is not assigned and could be declared final 450
Parameter 'term' 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 'source' is not assigned and could be declared final 464
Parameter 'mark' 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 'constituencyString' is not assigned and could be declared final 700
Parameter 'sent' is not assigned and could be declared final 700
Parameter 'layer' is not assigned and could be declared final 707
Parameter 'term' is not assigned and could be declared final 714
Parameter 'sent' 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 'term' is not assigned and could be declared final 786
Parameter 'source' 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 809–810
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
The method 'removeLayer' has a Standard Cyclomatic Complexity of 13. 951–992
Parameter 'layer' is not assigned and could be declared final 951
The method 'removeLayer' has a Cyclomatic Complexity of 13. 951–992
Avoid really long methods. 995–1104
The method 'removeAnnotation' has a Standard Cyclomatic Complexity of 34. 995–1104
The method removeAnnotation() has an NCSS line count of 100 995–1104
The method 'removeAnnotation' has a Modified Cyclomatic Complexity of 34. 995–1104
Parameter 'annotation' is not assigned and could be declared final 995
The method 'removeAnnotation' has a Cyclomatic Complexity of 34. 995–1104
Local variable 'term' could be declared final 997
Local variable 'wf' could be declared final 999
Local variable 'dep' could be declared final 1009
Local variable 'entity' could be declared final 1023
Local variable 'term' could be declared final 1025
Local variable 'timex3' could be declared final 1035
Local variable 'wf' could be declared final 1038
Local variable 'coref' could be declared final 1045
Local variable 'span' could be declared final 1047
Local variable 'term' could be declared final 1048
Local variable 'factuality' could be declared final 1054
Local variable 'wf' could be declared final 1057
Local variable 'entity' could be declared final 1063
Local variable 'wf' could be declared final 1066
Local variable 'sst' could be declared final 1072
Local variable 't' could be declared final 1075
Local variable 'predicate' could be declared final 1090
Local variable 'term' could be declared final 1092
Parameter 'hashId' is not assigned and could be declared final 1106
Parameter 'index' is not assigned and could be declared final 1106
Parameter 'annotation' is not assigned and could be declared final 1106
Local variable 'list' could be declared final 1107
Parameter 'annotation' is not assigned and could be declared final 1116
Parameter 'index' is not assigned and could be declared final 1116
Parameter 'sent' is not assigned and could be declared final 1116
Local variable 'list' could be declared final 1118

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 'cid' is not assigned and could be declared final 24
Parameter 'span' 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 'isHead' is not assigned and could be declared final 105
Parameter 'term' 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
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
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. 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 'isHead' is not assigned and could be declared final 119
Parameter 'term' 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 'from' is not assigned and could be declared final 22
Parameter 'rfunc' 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 'references' is not assigned and could be declared final 37
Parameter 'eid' 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 'terms' is not assigned and could be declared final 50
Parameter 'entity' 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
Avoid instantiating new objects inside loops 59
Local variable 'copiedTargets' could be declared final 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 'resource' is not assigned and could be declared final 14
Parameter 'reference' 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 'prediction' is not assigned and could be declared final 66
Parameter 'confidence' 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 'lemma' is not assigned and could be declared final 22
Parameter 'references' 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 'feature' is not assigned and could be declared final 35
Parameter 'terms' 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 12–70
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 'termId' is not assigned and could be declared final 59
Parameter 'id' 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) 1–2161
The class 'KAFDocument' has a Cyclomatic Complexity of 2 (Highest = 14). 19–2161
The class 'KAFDocument' has a Standard Cyclomatic Complexity of 2 (Highest = 14). 19–2161
The class 'KAFDocument' has a Modified Cyclomatic Complexity of 2 (Highest = 14). 19–2161
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
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. 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 'layer' is not assigned and could be declared final 165
Parameter 'linguisticProcessor' 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 'version' is not assigned and could be declared final 207
Parameter 'name' is not assigned and could be declared final 207
Parameter 'layer' 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 'form' is not assigned and could be declared final 281
Parameter 'id' is not assigned and could be declared final 281
Parameter 'sent' 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 'form' is not assigned and could be declared final 311
Parameter 'offset' is not assigned and could be declared final 311
Parameter 'sent' 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 'id' is not assigned and could be declared final 346
Parameter 'span' 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 'terms' is not assigned and could be declared final 386
Parameter 'lemma' 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 'span' is not assigned and could be declared final 412
Parameter 'id' 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 'id' is not assigned and could be declared final 449
Parameter 'phrase' 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 'id' is not assigned and could be declared final 509
Parameter 'mentions' 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 'id' is not assigned and could be declared final 536
Parameter 'type' is not assigned and could be declared final 536
Parameter 'mentions' 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 'type' is not assigned and could be declared final 563
Parameter 'id' 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 'id' is not assigned and could be declared final 581
Parameter 'from' is not assigned and could be declared final 581
Parameter 'to' is not assigned and could be declared final 581
Parameter 'relType' 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 'relType' is not assigned and could be declared final 588
Parameter 'to' 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 'from' is not assigned and could be declared final 595
Parameter 'id' 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 'label' is not assigned and could be declared final 661
Parameter 'span' is not assigned and could be declared final 661
Parameter 'type' 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 'label' is not assigned and could be declared final 683
Parameter 'probability' 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 'lemma' is not assigned and could be declared final 700
Parameter 'references' 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 'lemma' is not assigned and could be declared final 714
Parameter 'references' 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 'id' is not assigned and could be declared final 729
Parameter 'lemma' is not assigned and could be declared final 729
Parameter 'references' is not assigned and could be declared final 729
Local variable 'newCategory' could be declared final 731
Parameter 'references' is not assigned and could be declared final 743
Parameter 'lemma' 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 'from' is not assigned and could be declared final 796
Parameter 'to' is not assigned and could be declared final 796
Local variable 'newRelation' could be declared final 798
Parameter 'span' is not assigned and could be declared final 810
Parameter 'id' 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 'semRole' is not assigned and could be declared final 839
Parameter 'predicate' is not assigned and could be declared final 839
Parameter 'span' is not assigned and could be declared final 839
Parameter 'id' 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 'span' is not assigned and could be declared final 853
Parameter 'semRole' is not assigned and could be declared final 853
Parameter 'predicate' 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 'sentence' is not assigned and could be declared final 874
Parameter 'root' 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 'parseOut' is not assigned and could be declared final 888
Parameter 'sentence' is not assigned and could be declared final 888
Parameter 'id' is not assigned and could be declared final 892
Parameter 'label' 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 'span' is not assigned and could be declared final 907
Parameter 'id' 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 'targets' is not assigned and could be declared final 930
Parameter 'head' is not assigned and could be declared final 930
Parameter 'targets' is not assigned and could be declared final 938
Parameter 'head' is not assigned and could be declared final 942
Parameter 'targets' 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
Avoid long parameter lists. 1169–1182
Parameter 'kaf' is not assigned and could be declared final 1169
The method 'copyAnnotationsToKAF' has a Modified Cyclomatic Complexity of 11. 1169–1254
The method 'copyAnnotationsToKAF' has a Cyclomatic Complexity of 11. 1169–1254
The method 'copyAnnotationsToKAF' has a Standard Cyclomatic Complexity of 11. 1169–1254
The method copyAnnotationsToKAF() has an NPath complexity of 1024 1169–1254
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
Local variable 'wfCopy' could be declared final 1189
Avoid instantiating new objects inside loops 1189
Local variable 'term' could be declared final 1194
Avoid instantiating new objects inside loops 1195
Local variable 'termCopy' could be declared final 1195
Local variable 'dep' could be declared final 1200
Avoid instantiating new objects inside loops 1201
Local variable 'depCopy' could be declared final 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
Local variable 'entityCopy' could be declared final 1211
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 1227
Local variable 'propertyCopy' could be declared final 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
Avoid instantiating new objects inside loops 1244
Local variable 'relationCopy' could be declared final 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 Standard Cyclomatic Complexity of 14. 1291–1367
The method join() has an NPath complexity of 4096 1291–1367
Parameter 'doc' is not assigned and could be declared final 1291
The method 'join' has a Modified Cyclomatic Complexity of 14. 1291–1367
The method 'join' has a Cyclomatic Complexity of 14. 1291–1367
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
Avoid instantiating new objects inside loops 1315
Local variable 'termCopy' could be declared final 1315
Local variable 'dep' could be declared final 1320
Avoid instantiating new objects inside loops 1321
Local variable 'depCopy' could be declared final 1321
Local variable 'chunk' could be declared final 1325
Avoid instantiating new objects inside loops 1326
Local variable 'chunkCopy' could be declared final 1326
Local variable 'entity' could be declared final 1330
Local variable 'entityCopy' could be declared final 1331
Avoid instantiating new objects inside loops 1331
Local variable 'coref' could be declared final 1336
Avoid instantiating new objects inside loops 1337
Local variable 'corefCopy' could be declared final 1337
Local variable 'property' could be declared final 1346
Avoid instantiating new objects inside loops 1347
Local variable 'propertyCopy' could be declared final 1347
Local variable 'category' could be declared final 1352
Local variable 'categoryCopy' could be declared final 1353
Avoid instantiating new objects inside loops 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 'version' is not assigned and could be declared final 1480
Parameter 'layer' 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 'timestamp' 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
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 'form' is not assigned and could be declared final 1527
Parameter 'offset' 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 'type' 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
Local variable 'term' could be declared final 1535
Parameter 'pos' is not assigned and could be declared final 1545
Parameter 'type' is not assigned and could be declared final 1545
Parameter 'span' 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 'lemma' 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 'type' is not assigned and could be declared final 1556
Parameter 'pos' is not assigned and could be declared final 1556
Local variable 'newTerm' could be declared final 1557
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 1567
Parameter 'lemma' is not assigned and could be declared final 1567
Parameter 'lemma' is not assigned and could be declared final 1574
Parameter 'wfs' is not assigned and could be declared final 1574
Parameter 'type' is not assigned and could be declared final 1574
Parameter 'pos' is not assigned and could be declared final 1574
Parameter 'pos' is not assigned and could be declared final 1581
Parameter 'type' 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 'lemma' is not assigned and could be declared final 1581
Parameter 'to' is not assigned and could be declared final 1630
Parameter 'from' is not assigned and could be declared final 1630
Parameter 'rfunc' is not assigned and could be declared final 1630
Parameter 'terms' is not assigned and could be declared final 1637
Parameter 'phrase' is not assigned and could be declared final 1637
Parameter 'id' is not assigned and could be declared final 1637
Parameter 'head' is not assigned and could be declared final 1637
Parameter 'phrase' is not assigned and could be declared final 1644
Parameter 'head' is not assigned and could be declared final 1644
Parameter 'terms' is not assigned and could be declared final 1644
Parameter 'id' is not assigned and could be declared final 1651
Parameter 'references' is not assigned and could be declared final 1651
Parameter 'type' 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 'references' is not assigned and could be declared final 1664
Parameter 'type' 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 'lemma' is not assigned and could be declared final 1721
Parameter 'references' is not assigned and could be declared final 1721
Parameter 'id' 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 'lemma' is not assigned and could be declared final 1732
Parameter 'references' 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 'from' is not assigned and could be declared final 1757
Parameter 'to' is not assigned and could be declared final 1757
Parameter 'id' is not assigned and could be declared final 1764
Parameter 'to' is not assigned and could be declared final 1764
Parameter 'from' 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 Modified Cyclomatic Complexity of 10. 1921–1959
Parameter 'pattern' is not assigned and could be declared final 1921
The method 'getDepPathRegex' has a Cyclomatic Complexity of 11. 1921–1959
The method 'getDepPathRegex' has a Standard Cyclomatic Complexity of 10. 1921–1959
Local variable 'pattern2' could be declared final 1930
These nested if statements could be combined 2051–2053
Parameter 'descendents' is not assigned and could be declared final 2073
These nested if statements could be combined 2085–2087
Parameter 'descendents' is not assigned and could be declared final 2094
Parameter 'pattern' 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
When instantiating a SimpleDateFormat object, specify a Locale 37
Local variable 'sdf' could be declared final 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 'mentions' is not assigned and could be declared final 39
Parameter 'linkedEntityId' is not assigned and could be declared final 39
Parameter 'WFs' is not assigned and could be declared final 47
Avoid unused constructor parameters such as 'WFs'. 47
Parameter 'linkedEntity' is not assigned and could be declared final 47
Local variable 'id' could be declared final 53
Avoid unused local variables such as 'id'. 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 'id' is not assigned and could be declared final 38
Parameter 'span' 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 'id' is not assigned and could be declared final 17
Parameter 'label' 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) 1–652
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) 1–274
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 'id' is not assigned and could be declared final 17
Parameter 'span' 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
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 135
Private field 'roles' could be made final; it is only initialized in the declaration or constructor. 135
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. 136
Private field 'flags' could be made final; it is only initialized in the declaration or constructor. 137
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 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) 1–2255
The class 'ReadWriteManager' has a Standard Cyclomatic Complexity of 21 (Highest = 202). 20–2255
The type has an NCSS line count of 1718 20–2255
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. 20–2255
The class 'ReadWriteManager' has a Cyclomatic Complexity of 21 (Highest = 204). 20–2255
The class 'ReadWriteManager' has a Modified Cyclomatic Complexity of 21 (Highest = 202). 20–2255
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 unused local variables such as 'rootElem'. 28
Avoid declaring a variable if it is unreferenced before a possible exit point. 28
Local variable 'rootElem' could be declared final 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
Avoid unused local variables such as 'rootElem'. 38
Avoid declaring a variable if it is unreferenced before a possible exit point. 38
Local variable 'rootElem' could be declared final 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
Avoid really long methods. 90–989
The method 'DOMToKAF' has a Standard Cyclomatic Complexity of 202. 90–989
The method 'DOMToKAF' has a Modified Cyclomatic Complexity of 202. 90–989
The method DOMToKAF() has an NPath complexity of 628339 90–989
Parameter 'dom' is not assigned and could be declared final 90
The method 'DOMToKAF' has a Cyclomatic Complexity of 204. 90–989
The method DOMToKAF() has an NCSS line count of 730 90–989
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
Avoid declaring a variable if it is unreferenced before a possible exit point. 215
Local variable 'sid' could be declared final 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
Local variable 'isHead' could be declared final 300
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Local variable 'entId' could be declared final 324
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Local variable 'span' could be declared final 336
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Local variable 'coId' could be declared final 372
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 381
Local variable 'span' could be declared final 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 422–424
Local variable 'timex3EndPointId' could be declared final 428
Local variable 'endPoint' could be declared final 430
Avoid empty if statements 431–433
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
Local variable 'tempFunc' could be declared final 451
Position literals first in String comparisons 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 500–501
Local variable 'to' could be declared final 502–503
Position literals first in String comparisons 502
Avoid unused local variables such as 'tLink'. 504
Local variable 'tLink' could be declared final 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 522
Local variable 'categoriesElem' could be declared final 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 569
Local variable 'cid' could be declared final 569
Local variable 'lemma' could be declared final 570
Avoid declaring a variable if it is unreferenced before a possible exit point. 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 622–624
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
Local variable 'isHead' could be declared final 642
Avoid declaring a variable if it is unreferenced before a possible exit point. 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 689–690
Local variable 'sentimentProductFeature' could be declared final 691–692
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
Avoid declaring a variable if it is unreferenced before a possible exit point. 737
Local variable 'toId' could be declared final 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 768
Local variable 'isHead' could be declared final 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 823–824
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
Local variable 'id' could be declared final 845
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Useless parentheses. 869
Local variable 'isHead' could be declared final 869
Avoid declaring a variable if it is unreferenced before a possible exit point. 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 879–880
Local variable 'areRoot' could be declared final 890
Local variable 'rootNode' could be declared final 892
Avoid empty catch blocks 897–899
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
Local variable 'id' could be declared final 918
Avoid declaring a variable if it is unreferenced before a possible exit point. 918
Avoid declaring a variable if it is unreferenced before a possible exit point. 919
Local variable 'span' could be declared final 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 956
Local variable 'id' could be declared final 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
The method 'DOMToTerm' has a Standard Cyclomatic Complexity of 25. 991–1098
Parameter 'termElem' is not assigned and could be declared final 991
The method DOMToTerm() has an NPath complexity of 4737024 991–1098
The method 'DOMToTerm' has a Modified Cyclomatic Complexity of 25. 991–1098
Parameter 'wfIndex' is not assigned and could be declared final 991
Parameter 'kaf' is not assigned and could be declared final 991
Parameter 'isComponent' is not assigned and could be declared final 991
The method 'DOMToTerm' has a Cyclomatic Complexity of 25. 991–1098
Avoid really long methods. 991–1098
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
Avoid unused local variables such as 'tHead'. 1043
Local variable 'tHead' could be declared final 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 'spanElem' is not assigned and could be declared final 1100
Parameter 'objId' 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
Local variable 'isHead' could be declared final 1109
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Avoid instantiating new objects inside loops 1122
Local variable 'targetElem' could be declared final 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 'kaf' is not assigned and could be declared final 1143
Parameter 'externalRefElem' 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 1151–1152
Local variable 'source' could be declared final 1155
Avoid empty catch blocks 1157–1158
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 'elem' is not assigned and could be declared final 1169
Parameter 'attName' is not assigned and could be declared final 1169
Local variable 'value' could be declared final 1170
Parameter 'attName' is not assigned and could be declared final 1177
Parameter 'elem' is not assigned and could be declared final 1177
Parameter 'nmspace' 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
Avoid unnecessary if..then..else statements when returning booleans 1198–1200
Position literals first in String comparisons 1198
Parameter 'to' is not assigned and could be declared final 1211
Parameter 'from' is not assigned and could be declared final 1211
The method 'KAFToDOM' has a Standard Cyclomatic Complexity of 175. 1224–2101
The method KAFToDOM() has an NCSS line count of 680 1224–2101
The method 'KAFToDOM' has a Modified Cyclomatic Complexity of 175. 1224–2101
The method 'KAFToDOM' has a Cyclomatic Complexity of 175. 1224–2101
Parameter 'kaf' is not assigned and could be declared final 1224
Avoid really long methods. 1224–2101
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
Avoid instantiating new objects inside loops 1349
Local variable 'markElem' could be declared final 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
Avoid instantiating new objects inside loops 1369
Local variable 'targetElem' could be declared final 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
Avoid instantiating new objects inside loops 1412
Local variable 'chunkElem' could be declared final 1412
Local variable 'spanElem' could be declared final 1421
Avoid instantiating new objects inside loops 1421
Local variable 'target' could be declared final 1422
Avoid instantiating new objects inside loops 1423
Local variable 'targetElem' could be declared final 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
Local variable 'targetElem' could be declared final 1451
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 1484
Local variable 'spanComment' could be declared final 1484
Avoid instantiating new objects inside loops 1486
Local variable 'spanElem' could be declared final 1486
Local variable 'target' could be declared final 1487
Local variable 'targetElem' could be declared final 1488
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 1511
Local variable 'timex3Elem' could be declared final 1511
Local variable 'tempFun' could be declared final 1530
Local variable 'span' could be declared final 1549
Avoid instantiating new objects inside loops 1550
Local variable 'spanComment' could be declared final 1550
Avoid instantiating new objects inside loops 1552
Local variable 'spanElem' could be declared final 1552
Local variable 'target' could be declared final 1553
Avoid instantiating new objects inside loops 1554
Local variable 'targetElem' could be declared final 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
Avoid instantiating new objects inside loops 1595
Local variable 'factPartial' could be declared final 1595
Avoid empty catch blocks 1602–1604
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
Local variable 'spanComment' could be declared final 1620
Avoid instantiating new objects inside loops 1620
Avoid instantiating new objects inside loops 1622
Local variable 'spanElem' could be declared final 1622
Local variable 'target' could be declared final 1623
Avoid instantiating new objects inside loops 1624
Local variable 'targetElem' could be declared final 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
Local variable 'typeElement' could be declared final 1634
Avoid instantiating new objects inside loops 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
Local variable 'spanComment' could be declared final 1657
Avoid instantiating new objects inside loops 1657
Local variable 'spanElem' could be declared final 1659
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 1689
Local variable 'propertyElem' could be declared final 1689
Local variable 'references' could be declared final 1692
Avoid instantiating new objects inside loops 1693
Local variable 'referencesElem' could be declared final 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
Local variable 'referencesElem' could be declared final 1721
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 1771
Local variable 'targetElem' could be declared final 1771
Local variable 'opTarget' could be declared final 1784
Avoid instantiating new objects inside loops 1786
Local variable 'opinionTargetElem' could be declared final 1786
Local variable 'comment' could be declared final 1790
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 1814
Local variable 'comment' could be declared final 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
Avoid instantiating new objects inside loops 1864
Local variable 'relationElem' could be declared final 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
Local variable 'predicateElem' could be declared final 1882
Avoid instantiating new objects inside loops 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
Local variable 'spanComment' could be declared final 1904
Avoid instantiating new objects inside loops 1904
Local variable 'spanElem' could be declared final 1905
Avoid instantiating new objects inside loops 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
Local variable 'roleElem' could be declared final 1923
Avoid instantiating new objects inside loops 1923
Avoid instantiating new objects inside loops 1927
Local variable 'builder' could be declared final 1927
Local variable 'flag' could be declared final 1929
Local variable 'roleSpan' could be declared final 1935
Avoid instantiating new objects inside loops 1937
Local variable 'spanComment' could be declared final 1937
Avoid instantiating new objects inside loops 1938
Local variable 'spanElem' could be declared final 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
Local variable 'treeElem' could be declared final 1979
Avoid instantiating new objects inside loops 1979
Avoid empty catch blocks 1982–1984
Avoid instantiating new objects inside loops 1986
Local variable 'nonTerminals' could be declared final 1986
Avoid instantiating new objects inside loops 1987
Local variable 'terminals' could be declared final 1987
Local variable 'edges' could be declared final 1988
Avoid instantiating new objects inside loops 1988
Local variable 'rootNode' could be declared final 1989
Avoid instantiating new objects inside loops 1991–2002
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 2003–2014
Parameter 't1' is not assigned and could be declared final 2005
Parameter 't2' is not assigned and could be declared final 2005
Local variable 'ntCom' could be declared final 2015
Avoid instantiating new objects inside loops 2015
Local variable 'node' could be declared final 2017
Local variable 'nodeElem' could be declared final 2018
Avoid instantiating new objects inside loops 2018
Avoid instantiating new objects inside loops 2023
Local variable 'tCom' could be declared final 2023
Local variable 'node' could be declared final 2025
Local variable 'nodeElem' could be declared final 2026
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 2056–2057
Local variable 'tLinkComment' could be declared final 2056–2057
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 a Modified Cyclomatic Complexity of 26. 2103–2193
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 Cyclomatic Complexity of 26. 2103–2193
The method 'termToDOM' has a Standard Cyclomatic Complexity of 26. 2103–2193
Parameter 'term' is not assigned and could be declared final 2103
The method termToDOM() has an NPath complexity of 15790080 2103–2193
Local variable 'morphofeat' could be declared final 2104
Avoid unused local variables such as 'morphofeat'. 2104
Avoid unused local variables such as 'head'. 2105
Local variable 'head' could be declared final 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
Local variable 'tag' could be declared final 2109
Useless parentheses. 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 'terminals' is not assigned and could be declared final 2195
Parameter 'nonTerminals' is not assigned and could be declared final 2195
Parameter 'node' 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 'to' is not assigned and could be declared final 21
Parameter 'id' is not assigned and could be declared final 21
Parameter 'from' is not assigned and could be declared final 21
Parameter 'relation' is not assigned and could be declared final 28
Parameter 'relational' 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 14–15
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 'isHead' is not assigned and could be declared final 102
Parameter 'target' 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 'relType' is not assigned and could be declared final 17
Parameter 'to' is not assigned and could be declared final 17
Parameter 'from' 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 'term' is not assigned and could be declared final 10
Parameter 'head' 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) 1–588
Too many fields 8–588
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
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. 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
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 65
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. 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 165–166
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 'term' is not assigned and could be declared final 290
Parameter 'wfs' is not assigned and could be declared final 290
Local variable 'newComponents' could be declared final 303–304
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 'component' is not assigned and could be declared final 484
Parameter 'isHead' is not assigned and could be declared final 484
Parameter 'wf' is not assigned and could be declared final 499
Parameter 'wf' is not assigned and could be declared final 503
Parameter 'isHead' 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 'id' is not assigned and could be declared final 11
Parameter 'span' 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) 1–279
The class 'Tree' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 7–279
The class 'Tree' has a Cyclomatic Complexity of 5 (Highest = 21). 7–279
The class 'Tree' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 7–279
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 'kaf' is not assigned and could be declared final 37
Parameter 'parOut' is not assigned and could be declared final 37
Parameter 'sentence' is not assigned and could be declared final 45
Parameter 'kaf' is not assigned and could be declared final 45
Parameter 'parOut' is not assigned and could be declared final 45
Local variable 'tokens' could be declared final 46
Avoid declaring a variable if it is unreferenced before a possible exit point. 48
Local variable 'parMatching' could be declared final 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 String objects; this is usually unnecessary. 75
Avoid instantiating new objects inside loops 75
Avoid instantiating new objects inside loops 76
Avoid instantiating String objects; this is usually unnecessary. 76
Avoid instantiating new objects inside loops 82
Avoid instantiating String objects; this is usually unnecessary. 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 String objects; this is usually unnecessary. 88
Avoid instantiating new objects inside loops 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
Parameter 'tokens' is not assigned and could be declared final 114
The method 'matchTerms' has a Cyclomatic Complexity of 21. 114–174
The method 'matchTerms' has a Standard Cyclomatic Complexity of 16. 114–174
The method 'matchTerms' has a Modified Cyclomatic Complexity of 16. 114–174
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 119–170
Position literals first in String comparisons 126
Avoid instantiating String objects; this is usually unnecessary. 127
Avoid instantiating new objects inside loops 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 String objects; this is usually unnecessary. 133
Avoid instantiating new objects inside loops 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 new objects inside loops 142
Avoid instantiating String objects; this is usually unnecessary. 142
Useless parentheses. 150
Useless parentheses. 158
Parameter 'termMap' is not assigned and could be declared final 176
Parameter 'end' is not assigned and could be declared final 176
Parameter 'tokens' is not assigned and could be declared final 176
Parameter 'kaf' is not assigned and could be declared final 176
Parameter 'start' is not assigned and could be declared final 176
Parameter 'parenthesesMap' 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
Parameter 'token' is not assigned and could be declared final 206
Parameter 'kaf' is not assigned and could be declared final 206
Avoid unused method parameters such as 'token'. 206
Parameter 'term' is not assigned and could be declared final 206
Local variable 'span' could be declared final 207
Consider using varargs for methods or constructors which take an array the last parameter. 212
The method 'check' has a Cyclomatic Complexity of 17. 212–248
Parameter 'tokens' is not assigned and could be declared final 212
The method 'check' has a Standard Cyclomatic Complexity of 12. 212–248
The method 'check' has a Modified Cyclomatic Complexity of 12. 212–248
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
Position literals first in String comparisons 251
Useless parentheses. 251
Position literals first in String comparisons 251
Parameter 'tokens' is not assigned and could be declared final 254
Parameter 'ind' 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 'sent' is not assigned and could be declared final 36
Parameter 'annotationContainer' is not assigned and could be declared final 36
Parameter 'form' is not assigned and could be declared final 36
Parameter 'wid' 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 'first' is not assigned and could be declared final 162
Parameter 'second' 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) 1–545
The class 'Analyzer' has a Cyclomatic Complexity of 6 (Highest = 29). 47–545
The class 'Analyzer' has a Modified Cyclomatic Complexity of 5 (Highest = 26). 47–545
The class 'Analyzer' has a Standard Cyclomatic Complexity of 5 (Highest = 26). 47–545
Use block level rather than method level synchronization 163–231
The method 'doAdd' has a Cyclomatic Complexity of 10. 163–231
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
The method 'renderOpinions' has a Standard Cyclomatic Complexity of 26. 274–397
The method 'renderOpinions' has a Cyclomatic Complexity of 29. 274–397
Avoid really long methods. 274–397
The method 'renderOpinions' has a Modified Cyclomatic Complexity of 26. 274–397
The method main() has an NPath complexity of 751 443–543
Avoid really long methods. 443–543
Avoid declaring a variable if it is unreferenced before a possible exit point. 486–487
Avoid declaring a variable if it is unreferenced before a possible exit point. 488–489
Avoid declaring a variable if it is unreferenced before a possible exit point. 490–491
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) 1–894
The class 'CreateTrainingForExpression' has a Modified Cyclomatic Complexity of 32 (Highest = 91). 23–894
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. 23–894
The class 'CreateTrainingForExpression' has a Cyclomatic Complexity of 38 (Highest = 105). 23–894
Too many fields 23–894
The class 'CreateTrainingForExpression' has a Standard Cyclomatic Complexity of 33 (Highest = 91). 23–894
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
Parameter 'hypernyms' is not assigned and could be declared final 101
Parameter 'labels' is not assigned and could be declared final 101
The method extractFeats() has an NPath complexity of 600906662 101–461
Parameter 'skipEmpty' is not assigned and could be declared final 101
The method 'extractFeats' has a Modified Cyclomatic Complexity of 91. 101–461
Parameter 'document' is not assigned and could be declared final 101
Avoid really long methods. 101–461
The method 'extractFeats' has a Standard Cyclomatic Complexity of 91. 101–461
The method extractFeats() has an NCSS line count of 241 101–461
The method 'extractFeats' has a Cyclomatic Complexity of 105. 101–461
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 186–192
These nested if statements could be combined 186–192
Position literals first in String comparisons 188
These nested if statements could be combined 199–201
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
Avoid instantiating new objects inside loops 223
Local variable 'sentence' could be declared final 223
Local variable 'sent' could be declared final 224
Local variable 'term' could be declared final 226
Avoid instantiating new objects inside loops 227
Local variable 'feats' could be declared final 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 332–334
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 352–354
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 375–378
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
Parameter 'args' is not assigned and could be declared final 463
The method main() has an NPath complexity of 8064001 463–696
The method 'main' has a Cyclomatic Complexity of 38. 463–696
The method 'main' has a Modified Cyclomatic Complexity of 32. 463–696
Avoid really long methods. 463–696
The method main() has an NCSS line count of 124 463–696
Consider using varargs for methods or constructors which take an array the last parameter. 463
The method 'main' has a Standard Cyclomatic Complexity of 32. 463–696
Avoid declaring a variable if it is unreferenced before a possible exit point. 485
Local variable 'mainFolder' could be declared final 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 494
Local variable 'skipEmptyTrain' could be declared final 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
Local variable 'slotSize' could be declared final 514
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
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. 648
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. 649
Avoid appending characters as strings in StringBuffer.append. 649
Avoid appending characters as strings in StringBuffer.append. 650
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. 654
Avoid appending characters as strings in StringBuffer.append. 655
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. 656
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. 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
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. 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
Avoid appending characters as strings in StringBuffer.append. 676
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. 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 'fileList' is not assigned and could be declared final 714
Parameter 'replaceExtension' is not assigned and could be declared final 714
Local variable 'ret' could be declared final 716
Local variable 'file' could be declared final 735
Avoid instantiating new objects inside loops 735
The method 'writeFeats' has a Modified Cyclomatic Complexity of 22. 753–893
Parameter 'document' is not assigned and could be declared final 753
The method writeFeats() has an NPath complexity of 15040 753–893
Avoid really long methods. 753–893
Parameter 'hypernyms' is not assigned and could be declared final 753
Parameter 'writer' is not assigned and could be declared final 753
Parameter 'skipEmptySentences' is not assigned and could be declared final 753
The method 'writeFeats' has a Standard Cyclomatic Complexity of 27. 753–893
Parameter 'slotSize' is not assigned and could be declared final 753
Parameter 'labels' is not assigned and could be declared final 753
Parameter 'type' is not assigned and could be declared final 753
The method 'writeFeats' has a Cyclomatic Complexity of 30. 753–893
Switch statements should have a default label 761–780
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
Local variable 'buffer' could be declared final 800
Avoid instantiating new objects inside loops 800
Local variable 'token' could be declared final 803
Local variable 'classification' could be declared final 804
Switch statements should have a default label 810–878
A switch with less than three branches is inefficient, use a if statement instead. 810–878
A high ratio of statements to labels in a switch statement. Consider refactoring. 810–878
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. 23–235
The class 'EvaluateOnStanford' has a Modified Cyclomatic Complexity of 7 (Highest = 23). 23–235
The class 'EvaluateOnStanford' has a Standard Cyclomatic Complexity of 7 (Highest = 23). 23–235
The class 'EvaluateOnStanford' has a Cyclomatic Complexity of 9 (Highest = 29). 23–235
Avoid unused private fields such as 'STANFORD_LABEL'. 26
Parameter 'unsortedMap' is not assigned and could be declared final 37
Parameter 'desc' is not assigned and could be declared final 37
Local variable 'sortedMap' could be declared final 38
Parameter 'map' is not assigned and could be declared final 43
Parameter 'opinion' is not assigned and could be declared final 43
Avoid unused private methods such as 'addOpinionToMap(Map,Opinion)'. 43
Avoid really long methods. 47–199
The method main() has an NPath complexity of 7513 47–199
Consider using varargs for methods or constructors which take an array the last parameter. 47
Parameter 'args' is not assigned and could be declared final 47
The method 'main' has a Standard Cyclomatic Complexity of 23. 47–199
The method 'main' has a Cyclomatic Complexity of 29. 47–199
The method 'main' has a Modified Cyclomatic Complexity of 23. 47–199
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
Local variable 'mpqaOpinions' could be declared final 100
Avoid instantiating new objects inside loops 100
Avoid instantiating new objects inside loops 101
Local variable 'stanfordOpinions' could be declared final 101
Local variable 'opinion' could be declared final 103
These nested if statements could be combined 105–108
Local variable 'entry' could be declared final 119
Local variable 'opinion' could be declared final 120
Local variable 'terms' could be declared final 121
Avoid instantiating new objects inside loops 121
Local variable 'checkEntry' could be declared final 123
Local variable 'checkOpinion' could be declared final 124
Local variable 'checkTerms' could be declared final 126
Avoid instantiating new objects inside loops 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
Local variable 'p' could be declared final 202
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 202
The method 'isValidOpinion' has a Cyclomatic Complexity of 11. 215–233
Avoid unnecessary if..then..else statements when returning booleans 227–229

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

Violation Line
The class 'Evaluation' has a Modified Cyclomatic Complexity of 14 (Highest = 13). 18–169
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. 18–169
The class 'Evaluation' has a Standard Cyclomatic Complexity of 14 (Highest = 13). 18–169
The class 'Evaluation' has a Cyclomatic Complexity of 14 (Highest = 13). 18–169
The method main() has an NPath complexity of 326 22–168
Consider using varargs for methods or constructors which take an array the last parameter. 22
Avoid really long methods. 22–168
The method 'main' has a Modified Cyclomatic Complexity of 13. 22–168
The method 'main' has a Standard Cyclomatic Complexity of 13. 22–168
The method 'main' has a Cyclomatic Complexity of 13. 22–168
Parameter 'args' is not assigned and could be declared final 22
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
Avoid instantiating new objects inside loops 73
Local variable 'allGold' could be declared final 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)'. 89–90
Avoid unused private methods such as 'refine(KAFDocument,Iterable,String,EnumSet)'. 115–116
New exception is thrown in catch block, original stack trace may be lost 233–234
Avoid really long methods. 242–344
The method main() has an NPath complexity of 601 242–344

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 'o1' is not assigned and could be declared final 52
Parameter 'o2' 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) 1–227
The class 'Opinions' has a Standard Cyclomatic Complexity of 5 (Highest = 10). 21–227
The class 'Opinions' has a Modified Cyclomatic Complexity of 5 (Highest = 10). 21–227
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. 21–227
The class 'Opinions' has a Cyclomatic Complexity of 6 (Highest = 14). 21–227
The method 'split' has a Cyclomatic Complexity of 10. 75–132
The method 'split' has a Standard Cyclomatic Complexity of 10. 75–132
The method 'split' has a Modified Cyclomatic Complexity of 10. 75–132
The method retain() has an NPath complexity of 257 134–179
The method 'retain' has a Modified Cyclomatic Complexity of 10. 134–179
The method 'retain' has a Cyclomatic Complexity of 14. 134–179
The method 'retain' has a Standard Cyclomatic Complexity of 10. 134–179
The method 'create' has a Cyclomatic Complexity of 12. 181–225

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

Violation Line
The class 'SenticSubjlexTraining' has a Modified Cyclomatic Complexity of 19 (Highest = 18). 28–212
The class 'SenticSubjlexTraining' has a Standard Cyclomatic Complexity of 19 (Highest = 18). 28–212
The class 'SenticSubjlexTraining' has a Cyclomatic Complexity of 20 (Highest = 19). 28–212
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. 28–212
The method 'main' has a Modified Cyclomatic Complexity of 18. 33–211
Parameter 'args' is not assigned and could be declared final 33
The method 'main' has a Cyclomatic Complexity of 19. 33–211
The method 'main' has a Standard Cyclomatic Complexity of 18. 33–211
Consider using varargs for methods or constructors which take an array the last parameter. 33
Avoid really long methods. 33–211
The method main() has an NPath complexity of 13473 33–211
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
Local variable 'opinionTerms' could be declared final 107
Avoid instantiating new objects inside loops 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. 14–61
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). 43–301
The method 'doAdd' has a Cyclomatic Complexity of 10. 114–161
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. 199–300

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. 25–399
The class 'UpdateNafsWithResults' has a Cyclomatic Complexity of 29 (Highest = 28). 25–399
The class 'UpdateNafsWithResults' has a Standard Cyclomatic Complexity of 25 (Highest = 24). 25–399
The class 'UpdateNafsWithResults' has a Modified Cyclomatic Complexity of 25 (Highest = 24). 25–399
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 a Cyclomatic Complexity of 28. 38–397
The method 'main' has a Modified Cyclomatic Complexity of 24. 38–397
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 an NCSS line count of 102 38–397
Avoid really long methods. 38–397
The method 'main' has a Standard Cyclomatic Complexity of 24. 38–397
The method main() has an NPath complexity of 191881 38–397
Avoid declaring a variable if it is unreferenced before a possible exit point. 60
Local variable 'mainFolder' could be declared final 60
Avoid declaring a variable if it is unreferenced before a possible exit point. 61
Local variable 'outputFolder' could be declared final 61
Local variable 'resultsFile' could be declared final 63
Avoid declaring a variable if it is unreferenced before a possible exit point. 63
Avoid declaring a variable if it is unreferenced before a possible exit point. 64
Local variable 'label' could be declared final 64
Avoid declaring a variable if it is unreferenced before a possible exit point. 65
Local variable 'split' could be declared final 65
Local variable 'seed' could be declared final 66
Avoid declaring a variable if it is unreferenced before a possible exit point. 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
Avoid declaring a variable if it is unreferenced before a possible exit point. 83
Local variable 'posLimit' could be declared final 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 149–151
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 267–269
Deeply nested if..then statements are hard to read 270–272

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

Violation Line
Possible God class (WMC=68, ATFD=68, TCC=0.0) 1–436
The class 'APIManager' has a Standard Cyclomatic Complexity of 10 (Highest = 35). 19–436
The class 'APIManager' has a Modified Cyclomatic Complexity of 10 (Highest = 35). 19–436
The class 'APIManager' has a Cyclomatic Complexity of 12 (Highest = 41). 19–436
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 a Cyclomatic Complexity of 27. 51–198
The method 'evaluateSentence' has a Modified Cyclomatic Complexity of 22. 51–198
The method 'evaluateSentence' has a Standard Cyclomatic Complexity of 22. 51–198
Avoid really long methods. 51–198
Parameter 'text' is not assigned and could be declared final 51
The method evaluateSentence() has an NPath complexity of 132678 51–198
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
Local variable 'stemmer' could be declared final 75
Avoid instantiating new objects inside loops 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 112–114
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 'startNodeId' is not assigned and could be declared final 205
Parameter 'sentence' is not assigned and could be declared final 205
Parameter 'blockedNodes' 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 211–431
Parameter 'blockedNodes' is not assigned and could be declared final 211
The method evaluateSentence() has an NCSS line count of 131 211–431
Parameter 'startNodeId' is not assigned and could be declared final 211
Avoid really long methods. 211–431
The method 'evaluateSentence' has a Cyclomatic Complexity of 41. 211–431
The method 'evaluateSentence' has a Modified Cyclomatic Complexity of 35. 211–431
Parameter 'dependenciesList' is not assigned and could be declared final 211
The method 'evaluateSentence' has a Standard Cyclomatic Complexity of 35. 211–431
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
String.indexOf(char) is faster than String.indexOf(String). 229
String.indexOf(char) is faster than String.indexOf(String). 229
Local variable 'rel' could be declared final 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
Local variable 'token' could be declared final 281
Avoid instantiating new objects inside loops 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
Avoid instantiating new objects inside loops 308
Local variable 'stemmer' could be declared final 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 345–347
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 160–162
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
Local variable 'model' could be declared final 193
Avoid declaring a variable if it is unreferenced before a possible exit point. 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 'prp' is not assigned and could be declared final 22
Parameter 'wnl' is not assigned and could be declared final 22
Parameter 'id' is not assigned and could be declared final 38
Parameter 'originalText' 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 'filename' is not assigned and could be declared final 125
Parameter 'datasetName' 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 23–24
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
Local variable 'dt' could be declared final 59
Avoid instantiating new objects inside loops 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 'prp' is not assigned and could be declared final 22
Parameter 'wnl' is not assigned and could be declared final 22
Return an empty array rather than null. 32–37
Parameter 'datasetName' is not assigned and could be declared final 32
Local variable 'positiveReviews' could be declared final 33
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
Avoid unused local variables such as 'positiveReviews'. 33
Avoid declaring a variable if it is unreferenced before a possible exit point. 34
Local variable 'negativeReviews' could be declared final 34
Avoid unused local variables such as 'negativeReviews'. 34
Local variable 'allReviews' could be declared final 35
Avoid declaring a variable if it is unreferenced before a possible exit point. 35
Avoid unused local variables such as 'allReviews'. 35
Avoid really long methods. 44–169
Parameter 'filename' is not assigned and could be declared final 44
Local variable 'wnlex' could be declared final 46
Local variable 'ssrList' could be declared final 47
Avoid unused local variables such as 'treeParser'. 48
Avoid declaring a variable if it is unreferenced before a possible exit point. 48
Local variable 'treeParser' could be declared final 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
Local variable 'task' could be declared final 55
Avoid unused local variables such as 'task'. 55
Avoid declaring a variable if it is unreferenced before a possible exit point. 55
Local variable 'iter' could be declared final 59
Local variable 'stmtID' could be declared final 62
Avoid declaring a variable if it is unreferenced before a possible exit point. 62
Avoid unused local variables such as 'stmtID'. 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
Avoid unused local variables such as 'predicate'. 68
Local variable 'predicate' could be declared final 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 'datasetName' is not assigned and could be declared final 177
Parameter 'filename' 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
The class 'WordNetLexicalizer' has a Standard Cyclomatic Complexity of 5 (Highest = 17). 5–390
The class 'WordNetLexicalizer' has a Cyclomatic Complexity of 6 (Highest = 20). 5–390
The class 'WordNetLexicalizer' has a Modified Cyclomatic Complexity of 5 (Highest = 17). 5–390
Too many fields 5–390
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
Consider using varargs for methods or constructors which take an array the last parameter. 35
The user-supplied array 'exceptions' is stored directly. 35
Parameter 'exceptions' is not assigned and could be declared final 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
Parameter 'allTerms' is not assigned and could be declared final 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
Parameter 't' is not assigned and could be declared final 62
Parameter 'word' is not assigned and could be declared final 67
Parameter 'word' is not assigned and could be declared final 80
Parameter 'posTag' 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 127–134
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 159–166
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 192–199
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 224–231
Avoid instantiating new objects inside loops 225
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 226
The method 'getLexicalization' has a Modified Cyclomatic Complexity of 17. 244–351
Avoid really long methods. 244–351
The method getLexicalization() has an NPath complexity of 344 244–351
The method 'getLexicalization' has a Cyclomatic Complexity of 20. 244–351
The method 'getLexicalization' has a Standard Cyclomatic Complexity of 17. 244–351
Avoid instantiating String objects; this is usually unnecessary. 247
These nested if statements could be combined 262–277
Avoid instantiating new objects inside loops 266–268
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 270
These nested if statements could be combined 291–309
Avoid instantiating new objects inside loops 296–298
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 301
These nested if statements could be combined 323–342
Avoid instantiating new objects inside loops 329–331
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
Avoid using if statements without curly braces 377
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 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
The class 'WordNetLoader' has a Standard Cyclomatic Complexity of 2 (Highest = 15). 12–365
Too many fields 12–365
The class 'WordNetLoader' has a Modified Cyclomatic Complexity of 2 (Highest = 15). 12–365
The class 'WordNetLoader' has a Cyclomatic Complexity of 2 (Highest = 15). 12–365
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
Avoid really long methods. 105–220
The method 'loadWordNetRawData' has a Standard Cyclomatic Complexity of 15. 105–220
The method 'loadWordNetRawData' has a Cyclomatic Complexity of 15. 105–220
The method 'loadWordNetRawData' has a Modified Cyclomatic Complexity of 15. 105–220
The method loadWordNetRawData() has an NPath complexity of 1081 105–220
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
Local variable 'wnr' could be declared final 160–161
Avoid instantiating new objects inside loops 160–161
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
Parameter 'allExceptions' is not assigned and could be declared final 311
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 '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 'w' is not assigned and could be declared final 9
Parameter 'r' is not assigned and could be declared final 9
Parameter 't' 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) 1–519
The class 'LinkLabeller' has a Modified Cyclomatic Complexity of 5 (Highest = 16). 44–519
The class 'LinkLabeller' has a Cyclomatic Complexity of 5 (Highest = 22). 44–519
The class 'LinkLabeller' has a Standard Cyclomatic Complexity of 5 (Highest = 16). 44–519
The method 'candidates' has a Cyclomatic Complexity of 22. 139–197
The method 'candidates' has a Modified Cyclomatic Complexity of 14. 139–197
The method 'candidates' has a Standard Cyclomatic Complexity of 14. 139–197
The method candidates() has an NPath complexity of 3800 139–197
This call to Collection.toArray() may be optimizable 180
Avoid really long methods. 212–329
The method features() has an NPath complexity of 668250 212–329
The method 'features' has a Modified Cyclomatic Complexity of 16. 212–329
The method 'features' has a Cyclomatic Complexity of 18. 212–329
The method 'features' has a Standard Cyclomatic Complexity of 16. 212–329
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) 1–299
The class 'PipelineExtractor' has a Cyclomatic Complexity of 6 (Highest = 25). 37–299
The class 'PipelineExtractor' has a Modified Cyclomatic Complexity of 5 (Highest = 21). 37–299
The class 'PipelineExtractor' has a Standard Cyclomatic Complexity of 5 (Highest = 21). 37–299
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 Modified Cyclomatic Complexity of 21. 207–292
The method 'findArguments' has a Standard Cyclomatic Complexity of 21. 207–292
The method findArguments() has an NPath complexity of 167400 207–292
Avoid unused method parameters such as 'sentence'. 207
The method 'findArguments' has a Cyclomatic Complexity of 25. 207–292
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). 30–220
Use block level rather than method level synchronization 97–101
Consider using varargs for methods or constructors which take an array the last parameter. 98
The method 'doTrain' has a Cyclomatic Complexity of 10. 104–147
Use block level rather than method level synchronization 104–147
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) 1–549
The class 'SpanLabeller' has a Standard Cyclomatic Complexity of 4 (Highest = 13). 40–549
The class 'SpanLabeller' has a Modified Cyclomatic Complexity of 4 (Highest = 13). 40–549
The class 'SpanLabeller' has a Cyclomatic Complexity of 4 (Highest = 14). 40–549
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. 64–111
Deeply nested if..then statements are hard to read 94–101
Position literals first in String comparisons 96
The method 'expandRecursive' has a Modified Cyclomatic Complexity of 13. 136–195
The method 'expandRecursive' has a Cyclomatic Complexity of 13. 136–195
The method 'expandRecursive' has a Standard Cyclomatic Complexity of 13. 136–195
The method features() has an NPath complexity of 320 215–360
Avoid really long methods. 215–360
Prefer StringBuffer over += for concatenating strings 233
Prefer StringBuffer over += for concatenating strings 234
Avoid empty if statements 336–338
Avoid empty if statements 341–347
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. 26–67
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 56–57

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 'sentenceID' is not assigned and could be declared final 23
Parameter 'opinion' 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
Perhaps 'filter' could be replaced by a local variable. 41
Avoid unused private fields such as 'filter'. 41
Parameter 'opinions' is not assigned and could be declared final 68
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
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 'polarity' is not assigned and could be declared final 32
Parameter 'id' is not assigned and could be declared final 32
Parameter 'features' 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 'nodeId' 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 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) 1–946
The class 'DomainGraph' has a Cyclomatic Complexity of 5 (Highest = 22). 11–946
The class 'DomainGraph' has a Standard Cyclomatic Complexity of 4 (Highest = 19). 11–946
Too many fields 11–946
The class 'DomainGraph' has a Modified Cyclomatic Complexity of 4 (Highest = 19). 11–946
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 'prp' is not assigned and could be declared final 40
Parameter 'd' 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 'id' is not assigned and could be declared final 40
Parameter 'c' is not assigned and could be declared final 40
Parameter 'p' 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
Local variable 'fm' could be declared final 114
Avoid instantiating new objects inside loops 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 Modified Cyclomatic Complexity of 17. 155–284
Avoid really long methods. 155–284
Parameter 'datasets' is not assigned and could be declared final 155
Parameter 'currentDomain' is not assigned and could be declared final 155
Parameter 'allInstances' is not assigned and could be declared final 155
The method 'domainInitialization' has a Cyclomatic Complexity of 18. 155–284
The method domainInitialization() has an NPath complexity of 533 155–284
The method 'domainInitialization' has a Standard Cyclomatic Complexity of 17. 155–284
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
Local variable 'fm' could be declared final 279
Avoid instantiating new objects inside loops 279
The method 'polaritiesPropagation' has a Modified Cyclomatic Complexity of 19. 298–412
The method 'polaritiesPropagation' has a Standard Cyclomatic Complexity of 19. 298–412
Avoid really long methods. 298–412
The method polaritiesPropagation() has an NPath complexity of 10368 298–412
The method 'polaritiesPropagation' has a Cyclomatic Complexity of 20. 298–412
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
The method 'polarityTest' has a Cyclomatic Complexity of 22. 421–494
Parameter 'instances' is not assigned and could be declared final 421
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
Useless parentheses. 469
Avoid empty if statements 469–471
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 unused local variables such as 'judged'. 508
Local variable 'judged' could be declared final 508
Avoid declaring a variable if it is unreferenced before a possible exit point. 508
Local variable 'precision' could be declared final 509
Avoid declaring a variable if it is unreferenced before a possible exit point. 509
Avoid unused local variables such as 'precision'. 509
Avoid unused local variables such as 'recall'. 510
Avoid declaring a variable if it is unreferenced before a possible exit point. 510
Local variable 'recall' could be declared final 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
Avoid instantiating new objects inside loops 570
Local variable 'domainValues' could be declared final 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 'currentFeature' is not assigned and could be declared final 611
Parameter 'g' 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 656–662
Use block level rather than method level synchronization 664–666
Parameter 'fm' is not assigned and could be declared final 664
Parameter 'nodeId' is not assigned and could be declared final 664
Avoid unnecessary return statements 665
Use block level rather than method level synchronization 673–676
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 688–705
Avoid unnecessary return statements 704
Local variable 'numberOfNodes' could be declared final 711
Avoid unused local variables such as 'numberOfNodes'. 711
Local variable 'numberOfEdges' could be declared final 712
Avoid unused local variables such as 'numberOfEdges'. 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 'threadId' is not assigned and could be declared final 768
Parameter 'dg' 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 824–825
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 872–873
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 'c' is not assigned and could be declared final 14
Parameter 'd' is not assigned and could be declared final 14
Parameter 'b' is not assigned and could be declared final 14
Parameter 'a' 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
Local variable 'yCoeffR1' could be declared final 71
Avoid unused local variables such as 'yCoeffR1'. 71
Local variable 'cCoeffR1' could be declared final 72
Local variable 'xCoeffR2' could be declared final 73
Local variable 'yCoeffR2' could be declared final 74
Avoid unused local variables such as 'yCoeffR2'. 74
Local variable 'cCoeffR2' could be declared final 75
Local variable 'x' could be declared final 76
Local variable 'num' could be declared final 88
Useless parentheses. 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 '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
Parameter 'target' 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 'newEdge' is not assigned and could be declared final 130
Parameter 'nodeId' 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
Local variable 'de1' could be declared final 185
Avoid instantiating new objects inside loops 185
Avoid instantiating new objects inside loops 188
Local variable 'de2' could be declared final 188

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

Violation Line
Possible God class (WMC=74, ATFD=10, TCC=0.0) 1–330
The class 'SentenceStructuredRepresentation' has a Modified Cyclomatic Complexity of 4 (Highest = 15). 14–330
The class 'SentenceStructuredRepresentation' has a Cyclomatic Complexity of 4 (Highest = 19). 14–330
The class 'SentenceStructuredRepresentation' has a Standard Cyclomatic Complexity of 4 (Highest = 15). 14–330
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
Perhaps 'prp' could be replaced by a local variable. 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
Parameter 'wnlex' is not assigned and could be declared final 82
The method 'createLexicalizedRepresentation' has a Cyclomatic Complexity of 16. 82–120
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
String.indexOf(char) is faster than String.indexOf(String). 93
Local variable 'tag' could be declared final 93
String.indexOf(char) is faster than String.indexOf(String). 106
Document empty method body 123–125
The method 'extractSemanticConcepts' has a Standard Cyclomatic Complexity of 14. 131–190
Parameter 'wnlex' is not assigned and could be declared final 131
The method 'extractSemanticConcepts' has a Cyclomatic Complexity of 18. 131–190
The method 'extractSemanticConcepts' has a Modified Cyclomatic Complexity of 14. 131–190
Parameter 'wnl' is not assigned and could be declared final 131
The method extractSemanticConcepts() has an NPath complexity of 240 131–190
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 170–185
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 an NPath complexity of 220 196–262
The method 'extractAspects' has a Modified Cyclomatic Complexity of 15. 196–262
The method 'extractAspects' has a Standard Cyclomatic Complexity of 15. 196–262
Parameter 'wnl' is not assigned and could be declared final 196
The method 'extractAspects' has a Cyclomatic Complexity of 19. 196–262
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
Avoid reassigning parameters such as 'marker' 295
Parameter 'featureSentence' is not assigned and could be declared final 295
Avoid reassigning parameters such as 'marker' 295
The method 'extractRelatedFeatures' has a Cyclomatic Complexity of 10. 295–327
Parameter 't' is not assigned and could be declared final 295
Local variable 'child' could be declared final 312
Avoid instantiating new objects inside loops 313
Local variable 'temp' could be declared final 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
Avoid unused local variables such as 'currentFeature'. 318
Local variable 'currentFeature' could be declared final 318

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

Violation Line
Too many fields 8–180
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) 1–538
The class 'TreeGraphStatisticalModel' has a Modified Cyclomatic Complexity of 9 (Highest = 26). 11–538
The class 'TreeGraphStatisticalModel' has a Standard Cyclomatic Complexity of 9 (Highest = 26). 11–538
The class 'TreeGraphStatisticalModel' has a Cyclomatic Complexity of 10 (Highest = 28). 11–538
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 15
Perhaps 'prp' could be replaced by a local variable. 15
Avoid unused private fields such as 'prp'. 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. 58–300
The method 'buildModel' has a Standard Cyclomatic Complexity of 26. 58–300
Avoid really long methods. 58–300
The method buildModel() has an NCSS line count of 170 58–300
The method 'buildModel' has a Cyclomatic Complexity of 26. 58–300
The method buildModel() has an NPath complexity of 393330 58–300
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
Prefer StringBuffer over += for concatenating strings 140
String.indexOf(char) is faster than String.indexOf(String). 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
The method computeResults() has an NPath complexity of 15055 308–426
Parameter 'flagEvaluateDoubleDomain' is not assigned and could be declared final 308
Avoid really long methods. 308–426
The method 'computeResults' has a Cyclomatic Complexity of 28. 308–426
Parameter 'flagEvaluateDomain' is not assigned and could be declared final 308
The method 'computeResults' has a Modified Cyclomatic Complexity of 22. 308–426
The method 'computeResults' has a Standard Cyclomatic Complexity of 22. 308–426
Parameter 'fineGranedPolarity' is not assigned and could be declared final 308
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
Avoid instantiating new objects inside loops 358
Local variable 'domainMembership' could be declared final 358
Local variable 'd' could be declared final 362
Local variable 'currentDomainCounter' could be declared final 368
Avoid instantiating String objects; this is usually unnecessary. 401
Avoid instantiating new objects inside loops 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 String objects; this is usually unnecessary. 412
Avoid instantiating new objects inside loops 412
These nested if statements could be combined 416–419
Avoid instantiating String objects; this is usually unnecessary. 417
Avoid instantiating new objects inside loops 417
Parameter 'di' is not assigned and could be declared final 431
Parameter 'h' is not assigned and could be declared final 431
The method computeMembershipCoefficient() has an NPath complexity of 327 431–490
Parameter 'normCounter' is not assigned and could be declared final 431
The method 'computeMembershipCoefficient' has a Modified Cyclomatic Complexity of 10. 431–490
The method 'computeMembershipCoefficient' has a Standard Cyclomatic Complexity of 10. 431–490
The method 'computeMembershipCoefficient' has a Cyclomatic Complexity of 14. 431–490
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
Local variable 'rdg' could be declared final 449
Avoid instantiating new objects inside loops 449
Avoid instantiating new objects inside loops 450
Local variable 'gd' could be declared final 450
Local variable 'dg' could be declared final 451
Avoid instantiating new objects inside loops 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. 466–467
Useless parentheses. 470–471
Useless parentheses. 477–478
Useless parentheses. 481–482
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 Modified Cyclomatic Complexity of 5 (Highest = 11). 24–171
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. 24–171
The class 'Main' has a Standard Cyclomatic Complexity of 5 (Highest = 11). 24–171
The class 'Main' has a Cyclomatic Complexity of 5 (Highest = 11). 24–171
The method 'main' has a Standard Cyclomatic Complexity of 11. 34–109
The method 'main' has a Modified Cyclomatic Complexity of 11. 34–109
The method main() has an NPath complexity of 672 34–109
The method 'main' has a Cyclomatic Complexity of 11. 34–109
Avoid empty catch blocks 38–40
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 68–70
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) 1–2025
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). 292–448
The class 'Runner' has a Modified Cyclomatic Complexity of 6 (Highest = 16). 292–448
The class 'Runner' has a Cyclomatic Complexity of 6 (Highest = 16). 292–448
The method 'run' has a Modified Cyclomatic Complexity of 16. 326–447
The method run() has an NPath complexity of 612 326–447
The method 'run' has a Standard Cyclomatic Complexity of 16. 326–447
Avoid really long methods. 326–447
The method 'run' has a Cyclomatic Complexity of 16. 326–447
Avoid declaring a variable if it is unreferenced before a possible exit point. 330–332
Avoid instantiating new objects inside loops 357–432
The class 'Extractor' has a Standard Cyclomatic Complexity of 12 (Highest = 60). 450–2004
The class 'Extractor' has a Cyclomatic Complexity of 15 (Highest = 74). 450–2004
The class 'Extractor' has a Modified Cyclomatic Complexity of 12 (Highest = 60). 450–2004
The user-supplied array 'sentenceIDs' is stored directly. 471
Consider using varargs for methods or constructors which take an array the last parameter. 471
Avoid appending characters as strings in StringBuffer.append. 488
The method 'run' has a Modified Cyclomatic Complexity of 60. 498–721
Avoid really long methods. 498–721
The method run() has an NCSS line count of 138 498–721
The method 'run' has a Cyclomatic Complexity of 74. 498–721
The method run() has an NPath complexity of 1698693120 498–721
The method 'run' has a Standard Cyclomatic Complexity of 60. 498–721
Ensure that resources like this Statement object are closed after use 717
The method 'processMetadata' has a Modified Cyclomatic Complexity of 12. 723–800
The method 'processMetadata' has a Cyclomatic Complexity of 12. 723–800
The method 'processMetadata' has a Standard Cyclomatic Complexity of 12. 723–800
The method 'processTimex' has a Cyclomatic Complexity of 11. 802–874
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 Cyclomatic Complexity of 20. 876–974
The method processEntity() has an NPath complexity of 651000 876–974
The method 'processEntity' has a Standard Cyclomatic Complexity of 16. 876–974
The method 'processEntity' has a Modified Cyclomatic Complexity of 16. 876–974
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 969–971
Avoid really long methods. 976–1078
The method 'processPredicate' has a Modified Cyclomatic Complexity of 18. 976–1078
The method processPredicate() has an NPath complexity of 69120 976–1078
The method 'processPredicate' has a Cyclomatic Complexity of 19. 976–1078
The method 'processPredicate' has a Standard Cyclomatic Complexity of 18. 976–1078
Avoid declaring a variable if it is unreferenced before a possible exit point. 980
The method 'processModifier' has a Cyclomatic Complexity of 10. 1101–1146
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
The method 'processCoref' has a Cyclomatic Complexity of 18. 1148–1255
Avoid really long methods. 1148–1255
The method 'processCoref' has a Modified Cyclomatic Complexity of 18. 1148–1255
The method 'processCoref' has a Standard Cyclomatic Complexity of 18. 1148–1255
The method processCoref() has an NPath complexity of 8512 1148–1255
Avoid instantiating new objects inside loops 1203
Avoid instantiating new objects inside loops 1222
The method 'processRole' has a Standard Cyclomatic Complexity of 27. 1257–1385
Avoid really long methods. 1257–1385
The method processRole() has an NPath complexity of 191520000 1257–1385
The method 'processRole' has a Modified Cyclomatic Complexity of 27. 1257–1385
The method 'processRole' has a Cyclomatic Complexity of 38. 1257–1385
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 1387–1430
The method emitOpinionArgument() has an NPath complexity of 407 1432–1459
The method 'emitOpinionArgument' has a Standard Cyclomatic Complexity of 11. 1432–1459
The method 'emitOpinionArgument' has a Modified Cyclomatic Complexity of 11. 1432–1459
The method 'emitOpinionArgument' has a Cyclomatic Complexity of 14. 1432–1459
The method 'emitCommonAttributes' has a Cyclomatic Complexity of 13. 1461–1510
The method emitCommonAttributes() has an NPath complexity of 576 1461–1510
Position literals first in String comparisons 1493
Position literals first in String comparisons 1493
The method emitEntityAttributes() has an NPath complexity of 200 1512–1572
The method 'emitEntityAttributes' has a Standard Cyclomatic Complexity of 18. 1512–1572
The method 'emitEntityAttributes' has a Cyclomatic Complexity of 20. 1512–1572
The method 'emitEntityAttributes' has a Modified Cyclomatic Complexity of 18. 1512–1572
Prefer StringBuffer over += for concatenating strings 1518
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1518
Avoid empty catch blocks 1527–1529
Avoid appending characters as strings in StringBuffer.append. 1599
The method 'emitTerm' has a Standard Cyclomatic Complexity of 11. 1662–1720
The method 'emitTerm' has a Modified Cyclomatic Complexity of 11. 1662–1720
The method 'emitTerm' has a Cyclomatic Complexity of 11. 1662–1720
The method emitTerm() has an NPath complexity of 1080 1662–1720
The method 'extractPath' has a Cyclomatic Complexity of 13. 1723–1763
The method extractPath() has an NPath complexity of 384 1723–1763
Position literals first in String comparisons 1756
Position literals first in String comparisons for EqualsIgnoreCase 1756
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1804
Avoid empty if statements 1839–1842
The method 'merge' has a Cyclomatic Complexity of 28. 1848–1951
The method 'merge' has a Modified Cyclomatic Complexity of 23. 1848–1951
The method 'merge' has a Standard Cyclomatic Complexity of 23. 1848–1951
Avoid really long methods. 1848–1951
The method merge() has an NPath complexity of 5160 1848–1951
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 1874–1876
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) 1–857
The class 'Renderer' has a Standard Cyclomatic Complexity of 5 (Highest = 10). 71–857
The class 'Renderer' has a Modified Cyclomatic Complexity of 5 (Highest = 10). 71–857
The class 'Renderer' has a Cyclomatic Complexity of 5 (Highest = 11). 71–857
The method 'loadTemplate' has a Modified Cyclomatic Complexity of 10. 112–144
The method loadTemplate() has an NPath complexity of 661 112–144
The method 'loadTemplate' has a Cyclomatic Complexity of 10. 112–144
The method 'loadTemplate' has a Standard Cyclomatic Complexity of 10. 112–144
Avoid empty catch blocks 124–126
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
Private field 'template' could be made final; it is only initialized in the declaration or constructor. 160
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 160
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 162
Private field 'templateParameters' could be made final; it is only initialized in the declaration or constructor. 162
The constructor 'Renderer' has a Modified Cyclomatic Complexity of 10. 164–199
The constructor 'Renderer' has a Standard Cyclomatic Complexity of 10. 164–199
The constructor 'Renderer' has a Cyclomatic Complexity of 10. 164–199
Avoid instantiation through private constructors from outside of the constructors class. 213
Avoid instantiating new objects inside loops 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 a Cyclomatic Complexity of 10. 287–336
The method renderPropertiesHelper() has an NPath complexity of 242 287–336
Ensure that resources like this Statement object are closed after use 352
The method 'renderMentionsTable' has a Cyclomatic Complexity of 11. 378–430
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 492–493
Avoid instantiation through private constructors from outside of the constructors class. 628
The class 'Renderable' has a Modified Cyclomatic Complexity of 7 (Highest = 12). 649–737
The class 'Renderable' has a Standard Cyclomatic Complexity of 7 (Highest = 12). 649–737
The class 'Renderable' has a Cyclomatic Complexity of 7 (Highest = 12). 649–737
The user-supplied array 'times' is stored directly. 679
The method 'call' has a Standard Cyclomatic Complexity of 12. 688–735
The method 'call' has a Modified Cyclomatic Complexity of 12. 688–735
The method 'call' has a Cyclomatic Complexity of 12. 688–735
Avoid instantiating new objects inside loops 770–771
Avoid declaring a variable if it is unreferenced before a possible exit point. 782
Prefer StringBuffer over += for concatenating strings 784
Prefer StringBuffer over += for concatenating strings 784
This call to String.startsWith can be rewritten using String.charAt(0) 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 10–21

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

Violation Line
Avoid modifiers which are implied by the context 18–29
Avoid modifiers which are implied by the context 31–44

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

Violation Line
Possible God class (WMC=128, ATFD=183, TCC=0.0) 1–715
The class 'Extraction' has a Standard Cyclomatic Complexity of 9 (Highest = 18). 53–681
The class 'Extraction' has a Cyclomatic Complexity of 11 (Highest = 19). 53–681
The class 'Extraction' has a Modified Cyclomatic Complexity of 9 (Highest = 18). 53–681
Avoid appending characters as strings in StringBuffer.append. 78
The method run() has an NPath complexity of 3240 93–167
The method 'run' has a Cyclomatic Complexity of 19. 93–167
The method 'run' has a Standard Cyclomatic Complexity of 18. 93–167
The method 'run' has a Modified Cyclomatic Complexity of 18. 93–167
The method 'processMetadata' has a Modified Cyclomatic Complexity of 12. 169–247
The method 'processMetadata' has a Standard Cyclomatic Complexity of 12. 169–247
The method 'processMetadata' has a Cyclomatic Complexity of 12. 169–247
The method 'processTimex' has a Standard Cyclomatic Complexity of 10. 249–294
The method 'processTimex' has a Cyclomatic Complexity of 11. 249–294
The method 'processTimex' has a Modified Cyclomatic Complexity of 10. 249–294
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 338–340
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. 388–389
The method 'processCoref' has a Standard Cyclomatic Complexity of 12. 430–473
The method 'processCoref' has a Cyclomatic Complexity of 13. 430–473
The method 'processCoref' has a Modified Cyclomatic Complexity of 12. 430–473
The method 'processRole' has a Cyclomatic Complexity of 14. 475–532
The method 'processRole' has a Standard Cyclomatic Complexity of 11. 475–532
The method 'processRole' has a Modified Cyclomatic Complexity of 11. 475–532
The method processRole() has an NPath complexity of 864 475–532
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 495
The method 'emitInstanceMention' has a Modified Cyclomatic Complexity of 15. 535–621
The method emitInstanceMention() has an NPath complexity of 3360 535–621
The method 'emitInstanceMention' has a Cyclomatic Complexity of 19. 535–621
The method 'emitInstanceMention' has a Standard Cyclomatic Complexity of 15. 535–621
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). 21–196
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. 21–196
The class 'ModelUtil' has a Standard Cyclomatic Complexity of 5 (Highest = 12). 21–196
The class 'ModelUtil' has a Cyclomatic Complexity of 10 (Highest = 26). 21–196
Avoid instantiating new objects inside loops 31
The method 'getSubModel' has a Cyclomatic Complexity of 13. 59–111
The method 'getSubModel' has a Standard Cyclomatic Complexity of 12. 59–111
The method 'getSubModel' has a Modified Cyclomatic Complexity of 12. 59–111
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 102–104
The method 'cleanIRI' has a Cyclomatic Complexity of 26. 157–194

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

Violation Line
Possible God class (WMC=180, ATFD=133, TCC=0.0026455026455026454) 1–741
The class 'Interval' has a Cyclomatic Complexity of 5 (Highest = 40). 48–293
The class 'Interval' has a Standard Cyclomatic Complexity of 4 (Highest = 28). 48–293
The class 'Interval' has a Modified Cyclomatic Complexity of 4 (Highest = 28). 48–293
The method 'parseTimex' has a Standard Cyclomatic Complexity of 28. 82–225
Avoid really long methods. 82–225
The method 'parseTimex' has a Cyclomatic Complexity of 40. 82–225
The method parseTimex() has an NCSS line count of 102 82–225
The method 'parseTimex' has a Modified Cyclomatic Complexity of 28. 82–225
The method parseTimex() has an NPath complexity of 1269675 82–225
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
Avoid empty if statements 110–112
Position literals first in String comparisons 110
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
Avoid empty if statements 148–150
Position literals first in String comparisons 148
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 Standard Cyclomatic Complexity of 3 (Highest = 15). 295–516
The class 'DateTime' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 295–516
The class 'DateTime' has a Cyclomatic Complexity of 4 (Highest = 15). 295–516
Avoid reassigning parameters such as 'week' 325
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. 325–364
The method 'toRDF' has a Standard Cyclomatic Complexity of 15. 418–476
The method 'toRDF' has a Cyclomatic Complexity of 15. 418–476
The method toRDF() has an NPath complexity of 1024 418–476
The method 'toRDF' has a Modified Cyclomatic Complexity of 15. 418–476
The method 'toString' has a Cyclomatic Complexity of 14. 484–514
The class 'Duration' has a Cyclomatic Complexity of 3 (Highest = 18). 518–739
The class 'Duration' has a Standard Cyclomatic Complexity of 3 (Highest = 15). 518–739
The class 'Duration' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 518–739
The method 'parseTimex' has a Modified Cyclomatic Complexity of 15. 562–625
The method 'parseTimex' has a Cyclomatic Complexity of 18. 562–625
The method 'parseTimex' has a Standard Cyclomatic Complexity of 15. 562–625
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 710–737
The method 'toString' has a Cyclomatic Complexity of 11. 710–737

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

Violation Line
Possible God class (WMC=47, ATFD=52, TCC=0.0) 1–266
The class 'ProcessorASNorm' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 28–266
The class 'ProcessorASNorm' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 28–266
The class 'ProcessorASNorm' has a Cyclomatic Complexity of 4 (Highest = 10). 28–266
The method 'hash' has a Modified Cyclomatic Complexity of 10. 89–118
The method 'hash' has a Standard Cyclomatic Complexity of 10. 89–118
The method 'hash' has a Cyclomatic Complexity of 10. 89–118
Ensure that resources like this Statement object are closed after use 91
Avoid instantiating new objects inside loops 92–93
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) 1–437
The class 'RDFGraphvizRenderer' has a Cyclomatic Complexity of 7 (Highest = 21). 23–437
The class 'RDFGraphvizRenderer' has a Standard Cyclomatic Complexity of 6 (Highest = 17). 23–437
The class 'RDFGraphvizRenderer' has a Modified Cyclomatic Complexity of 6 (Highest = 17). 23–437
The constructor 'RDFGraphvizRenderer' has a Standard Cyclomatic Complexity of 10. 47–62
The constructor 'RDFGraphvizRenderer' has a Cyclomatic Complexity of 10. 47–62
The constructor 'RDFGraphvizRenderer' has a Modified Cyclomatic Complexity of 10. 47–62
The method 'emitSVG' has a Modified Cyclomatic Complexity of 10. 64–131
The method 'emitSVG' has a Cyclomatic Complexity of 11. 64–131
The method 'emitSVG' has a Standard Cyclomatic Complexity of 10. 64–131
The method 'emitDot' has a Cyclomatic Complexity of 21. 133–233
The method 'emitDot' has a Standard Cyclomatic Complexity of 17. 133–233
Avoid really long methods. 133–233
The method emitDot() has an NPath complexity of 10875 133–233
The method 'emitDot' has a Modified Cyclomatic Complexity of 17. 133–233
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) 1–331
The class 'FrameBase' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 36–331
The class 'FrameBase' has a Cyclomatic Complexity of 4 (Highest = 19). 36–331
The class 'FrameBase' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 36–331
The method 'main' has a Modified Cyclomatic Complexity of 16. 181–278
The method 'main' has a Cyclomatic Complexity of 19. 181–278
The method 'main' has a Standard Cyclomatic Complexity of 16. 181–278
The method 'handleStatement' has a Cyclomatic Complexity of 12. 212–244
These nested if statements could be combined 239–241
Avoid reassigning parameters such as 'tag' 303
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 304
Avoid reassigning parameters such as 'tag' 316
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 317

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

Violation Line
The class 'FrameNet' has a Modified Cyclomatic Complexity of 15 (Highest = 15). 17–186
The class 'FrameNet' has a Cyclomatic Complexity of 16 (Highest = 15). 17–186
The class 'FrameNet' has a Standard Cyclomatic Complexity of 15 (Highest = 15). 17–186
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. 17–186
The method 'main' has a Modified Cyclomatic Complexity of 15. 79–154
The method 'main' has a Standard Cyclomatic Complexity of 15. 79–154
The method 'main' has a Cyclomatic Complexity of 15. 79–154
Consider using varargs for methods or constructors which take an array the last parameter. 79
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. 18–120
Avoid using redundant field initializer for 'instance' 22
Use block level rather than method level synchronization 24–26
Use block level rather than method level synchronization 28–40
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) 1–517
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 Standard Cyclomatic Complexity of 4 (Highest = 17). 173–411
The class 'Lexeme' has a Modified Cyclomatic Complexity of 4 (Highest = 17). 173–411
The class 'Lexeme' has a Cyclomatic Complexity of 4 (Highest = 17). 173–411
The method 'create' has a Modified Cyclomatic Complexity of 11. 187–234
The method 'create' has a Standard Cyclomatic Complexity of 11. 187–234
The method create() has an NPath complexity of 380 187–234
The method 'create' has a Cyclomatic Complexity of 15. 187–234
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. 192–193
Deeply nested if..then statements are hard to read 206–208
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. 295–363
The method 'matchRecursive' has a Standard Cyclomatic Complexity of 17. 295–363
The method 'matchRecursive' has a Modified Cyclomatic Complexity of 17. 295–363
The method matchRecursive() has an NPath complexity of 1218 295–363
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 443–453
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=393, ATFD=345, TCC=0.0) 1–2195
The class 'NAFFilter' has a Standard Cyclomatic Complexity of 11 (Highest = 24). 71–2195
Too many fields 71–2195
The class 'NAFFilter' has a Modified Cyclomatic Complexity of 11 (Highest = 24). 71–2195
The class 'NAFFilter' has a Cyclomatic Complexity of 14 (Highest = 32). 71–2195
Do not add empty strings 86
The method 'filter' has a Modified Cyclomatic Complexity of 20. 238–318
The method filter() has an NPath complexity of 524288 238–318
The method 'filter' has a Standard Cyclomatic Complexity of 20. 238–318
The method 'filter' has a Cyclomatic Complexity of 20. 238–318
The method 'applyTermSenseCompletion' has a Standard Cyclomatic Complexity of 20. 333–441
Avoid really long methods. 333–441
The method 'applyTermSenseCompletion' has a Cyclomatic Complexity of 29. 333–441
The method applyTermSenseCompletion() has an NPath complexity of 63181 333–441
The method 'applyTermSenseCompletion' has a Modified Cyclomatic Complexity of 20. 333–441
Deeply nested if..then statements are hard to read 365–370
Deeply nested if..then statements are hard to read 377–383
Deeply nested if..then statements are hard to read 389–394
The method 'applyEntityRemoveOverlaps' has a Cyclomatic Complexity of 10. 480–512
The method 'applyEntityAddition' has a Cyclomatic Complexity of 13. 514–565
The method 'applyEntityValueNormalization' has a Modified Cyclomatic Complexity of 12. 567–607
The method applyEntityValueNormalization() has an NPath complexity of 231 567–607
The method 'applyEntityValueNormalization' has a Cyclomatic Complexity of 16. 567–607
The method 'applyEntityValueNormalization' has a Standard Cyclomatic Complexity of 12. 567–607
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 571
Prefer StringBuffer over += for concatenating strings 571
The method applyLinkingCompletion() has an NPath complexity of 4393 609–680
The method 'applyLinkingCompletion' has a Standard Cyclomatic Complexity of 17. 609–680
The method 'applyLinkingCompletion' has a Modified Cyclomatic Complexity of 17. 609–680
The method 'applyLinkingCompletion' has a Cyclomatic Complexity of 19. 609–680
Avoid instantiating new objects inside loops 643
These nested if statements could be combined 670–676
Avoid really long methods. 714–820
The method 'applyCorefSpanFixing' has a Modified Cyclomatic Complexity of 24. 714–820
The method applyCorefSpanFixing() has an NPath complexity of 3025 714–820
The method 'applyCorefSpanFixing' has a Standard Cyclomatic Complexity of 24. 714–820
The method 'applyCorefSpanFixing' has a Cyclomatic Complexity of 28. 714–820
Avoid instantiating new objects inside loops 753
The method 'applyCorefForRoleDependencies' has a Cyclomatic Complexity of 32. 822–909
The method applyCorefForRoleDependencies() has an NPath complexity of 48388 822–909
The method 'applyCorefForRoleDependencies' has a Modified Cyclomatic Complexity of 19. 822–909
The method 'applyCorefForRoleDependencies' has a Standard Cyclomatic Complexity of 19. 822–909
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. 911–1033
The method 'applySRLPreprocess' has a Standard Cyclomatic Complexity of 20. 911–1033
The method applySRLPreprocess() has an NPath complexity of 11352 911–1033
The method 'applySRLPreprocess' has a Modified Cyclomatic Complexity of 20. 911–1033
Avoid really long methods. 911–1033
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 an NPath complexity of 721 1035–1087
The method 'applySRLRemoveWrongRefs' has a Modified Cyclomatic Complexity of 12. 1035–1087
The method 'applySRLRemoveWrongRefs' has a Cyclomatic Complexity of 17. 1035–1087
The method 'applySRLRemoveWrongRefs' has a Standard Cyclomatic Complexity of 12. 1035–1087
The method 'applySRLPredicateAddition' has a Cyclomatic Complexity of 18. 1115–1170
The method applySRLPredicateAddition() has an NPath complexity of 1009 1115–1170
The method 'applySRLPredicateAddition' has a Modified Cyclomatic Complexity of 11. 1115–1170
The method 'applySRLPredicateAddition' has a Standard Cyclomatic Complexity of 11. 1115–1170
The method 'applySRLSelfArgFixing' has a Standard Cyclomatic Complexity of 12. 1172–1234
The method 'applySRLSelfArgFixing' has a Cyclomatic Complexity of 13. 1172–1234
The method applySRLSelfArgFixing() has an NPath complexity of 561 1172–1234
The method 'applySRLSelfArgFixing' has a Modified Cyclomatic Complexity of 12. 1172–1234
The method 'applySRLSenseMapping' has a Modified Cyclomatic Complexity of 24. 1236–1332
The method 'applySRLSenseMapping' has a Standard Cyclomatic Complexity of 24. 1236–1332
The method 'applySRLSenseMapping' has a Cyclomatic Complexity of 25. 1236–1332
The method applySRLSenseMapping() has an NPath complexity of 3014155 1236–1332
Avoid instantiating new objects inside loops 1290–1291
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1291
The method 'applySRLFrameBaseMapping' has a Modified Cyclomatic Complexity of 12. 1334–1382
The method 'applySRLFrameBaseMapping' has a Cyclomatic Complexity of 12. 1334–1382
The method 'applySRLFrameBaseMapping' has a Standard Cyclomatic Complexity of 12. 1334–1382
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. 1447–1530
The method linkEntitiesTimexPredicates() has an NPath complexity of 44952 1447–1530
The method 'linkEntitiesTimexPredicates' has a Cyclomatic Complexity of 23. 1447–1530
The method 'linkEntitiesTimexPredicates' has a Standard Cyclomatic Complexity of 23. 1447–1530
Avoid instantiating new objects inside loops 1559
Unnecessary final modifier in final class 1574–1576
Unnecessary final modifier in final class 1587–1604
The class 'Builder' has a Standard Cyclomatic Complexity of 2 (Highest = 29). 1732–2193
The class 'Builder' has a Cyclomatic Complexity of 2 (Highest = 31). 1732–2193
Too many fields 1732–2193
The class 'Builder' has a Modified Cyclomatic Complexity of 2 (Highest = 29). 1732–2193
Document empty constructor 1803–1804
The method 'withProperties' has a Standard Cyclomatic Complexity of 29. 1815–1878
The method 'withProperties' has a Modified Cyclomatic Complexity of 29. 1815–1878
The method withProperties() has an NPath complexity of 261 1815–1878
The method 'withProperties' has a Cyclomatic Complexity of 31. 1815–1878
Avoid instantiation through private constructors from outside of the constructors class. 2190

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

Violation Line
Possible God class (WMC=241, ATFD=157, TCC=0.0) 1–973
The class 'NAFUtils' has a Standard Cyclomatic Complexity of 5 (Highest = 19). 49–973
The class 'NAFUtils' has a Cyclomatic Complexity of 6 (Highest = 24). 49–973
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. 49–973
The class 'NAFUtils' has a Modified Cyclomatic Complexity of 5 (Highest = 19). 49–973
The method 'normalize' has a Cyclomatic Complexity of 11. 100–135
The method 'extractHeadsHelper' has a Cyclomatic Complexity of 10. 213–239
This call to String.startsWith can be rewritten using String.charAt(0) 217
The method 'getNominalSpan' has a Modified Cyclomatic Complexity of 11. 266–314
The method 'getNominalSpan' has a Cyclomatic Complexity of 11. 266–314
The method 'getNominalSpan' has a Standard Cyclomatic Complexity of 11. 266–314
The method getNominalSpan() has an NPath complexity of 468 266–314
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 Cyclomatic Complexity of 12. 442–475
The method 'toString' has a Modified Cyclomatic Complexity of 12. 442–475
The method 'toString' has a Standard Cyclomatic Complexity of 12. 442–475
The method 'trimSpan' has a Cyclomatic Complexity of 10. 575–602
The method normalizeSpan() has an NPath complexity of 64800 606–703
The method 'normalizeSpan' has a Modified Cyclomatic Complexity of 19. 606–703
The method 'normalizeSpan' has a Standard Cyclomatic Complexity of 19. 606–703
The method 'normalizeSpan' has a Cyclomatic Complexity of 24. 606–703
The method 'mergeSpans' has a Cyclomatic Complexity of 11. 705–760
The method 'mergeSpans' has a Modified Cyclomatic Complexity of 11. 705–760
The method 'mergeSpans' has a Standard Cyclomatic Complexity of 11. 705–760
The method 'splitSpans' has a Cyclomatic Complexity of 10. 762–805
Unnecessary final modifier in final class 762–805
Unnecessary final modifier in final class 807–823
The method 'extendedPos' has a Cyclomatic Complexity of 11. 875–887
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) 1–479
The class 'NomBank' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 20–479
The class 'NomBank' has a Cyclomatic Complexity of 4 (Highest = 10). 20–479
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. 20–479
The class 'NomBank' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 20–479
Avoid instantiating new objects inside loops 49
Avoid instantiating new objects inside loops 68–69
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 Modified Cyclomatic Complexity of 10. 206–254
The method 'getPredicateRoles' has a Standard Cyclomatic Complexity of 10. 206–254
The method 'getPredicateRoles' has a Cyclomatic Complexity of 10. 206–254
Deeply nested if..then statements are hard to read 241–243
The class 'Parser' has a Standard Cyclomatic Complexity of 14 (Highest = 26). 256–379
The class 'Parser' has a Cyclomatic Complexity of 15 (Highest = 28). 256–379
The class 'Parser' has a Modified Cyclomatic Complexity of 14 (Highest = 26). 256–379
The method parse() has an NPath complexity of 112322 265–378
The method 'parse' has a Standard Cyclomatic Complexity of 26. 265–378
The method 'parse' has a Modified Cyclomatic Complexity of 26. 265–378
The method 'parse' has a Cyclomatic Complexity of 28. 265–378
Avoid really long methods. 265–378
Avoid instantiating new objects inside loops 282
Avoid instantiating new objects inside loops 283
Avoid empty catch blocks 295–297
The user-supplied array 'argDescr' is stored directly. 407
The user-supplied array 'argPBNums' 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) 1–433
The class 'NumberSpeller' has a Standard Cyclomatic Complexity of 12 (Highest = 30). 16–433
The class 'NumberSpeller' has a Modified Cyclomatic Complexity of 11 (Highest = 26). 16–433
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. 16–433
The class 'NumberSpeller' has a Cyclomatic Complexity of 15 (Highest = 40). 16–433
The method parseCardinal() has an NCSS line count of 104 85–245
The method 'parseCardinal' has a Standard Cyclomatic Complexity of 30. 85–245
Avoid really long methods. 85–245
The method parseCardinal() has an NPath complexity of 8725 85–245
The method 'parseCardinal' has a Cyclomatic Complexity of 40. 85–245
The method 'parseCardinal' has a Modified Cyclomatic Complexity of 26. 85–245
A high ratio of statements to labels in a switch statement. Consider refactoring. 121–219
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
Avoid really long methods. 259–359
The method 'spellCardinal' has a Modified Cyclomatic Complexity of 16. 259–359
The method spellCardinal() has an NPath complexity of 1845 259–359
The method 'spellCardinal' has a Cyclomatic Complexity of 19. 259–359
The method 'spellCardinal' has a Standard Cyclomatic Complexity of 18. 259–359
A switch with less than three branches is inefficient, use a if statement instead. 296–306
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 an NPath complexity of 495 397–431
The method 'parse' has a Cyclomatic Complexity of 16. 397–431
The method 'parse' has a Standard Cyclomatic Complexity of 10. 397–431
The method 'parse' has a Modified Cyclomatic Complexity of 10. 397–431
Avoid empty catch blocks 417–419

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) 1–294
The class 'PredicateMatrix' has a Modified Cyclomatic Complexity of 5 (Highest = 41). 8–294
The class 'PredicateMatrix' has a Cyclomatic Complexity of 5 (Highest = 42). 8–294
The class 'PredicateMatrix' has a Standard Cyclomatic Complexity of 5 (Highest = 41). 8–294
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. 25–187
Parameter 'modelFile' is not assigned and could be declared final 25
The constructor 'PredicateMatrix' has a Modified Cyclomatic Complexity of 41. 25–187
The constructor 'PredicateMatrix' has a Cyclomatic Complexity of 42. 25–187
Local variable 'pmReader' could be declared final 27
Avoid instantiating new objects inside loops 39
Deeply nested if..then statements are hard to read 40–42
Deeply nested if..then statements are hard to read 43–45
Avoid instantiating new objects inside loops 49
Deeply nested if..then statements are hard to read 50–52
Deeply nested if..then statements are hard to read 53–55
Deeply nested if..then statements are hard to read 58–60
Avoid instantiating new objects inside loops 59
Deeply nested if..then statements are hard to read 61–66
Avoid instantiating new objects inside loops 69
Deeply nested if..then statements are hard to read 70–72
Deeply nested if..then statements are hard to read 73–75
Avoid instantiating new objects inside loops 79
Deeply nested if..then statements are hard to read 80–82
Deeply nested if..then statements are hard to read 83–85
Avoid instantiating new objects inside loops 89
Deeply nested if..then statements are hard to read 90–92
Deeply nested if..then statements are hard to read 93–95
Avoid instantiating new objects inside loops 99
Deeply nested if..then statements are hard to read 100–102
Deeply nested if..then statements are hard to read 103–105
Avoid instantiating new objects inside loops 109
Deeply nested if..then statements are hard to read 110–112
Deeply nested if..then statements are hard to read 113–115
Deeply nested if..then statements are hard to read 119–132
Avoid instantiating new objects inside loops 120
Deeply nested if..then statements are hard to read 133–146
Avoid instantiating new objects inside loops 134
Deeply nested if..then statements are hard to read 147–160
Avoid instantiating new objects inside loops 148
Deeply nested if..then statements are hard to read 161–174
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) 1–502
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. 21–502
Avoid instantiating new objects inside loops 35–36
Avoid instantiating new objects inside loops 80–81
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 Standard Cyclomatic Complexity of 6 (Highest = 11). 156–259
The class 'Matrix' has a Cyclomatic Complexity of 6 (Highest = 13). 156–259
The class 'Matrix' has a Modified Cyclomatic Complexity of 6 (Highest = 11). 156–259
The method parseMatrix() has an NPath complexity of 1442 179–238
The method 'parseMatrix' has a Standard Cyclomatic Complexity of 11. 179–238
The method 'parseMatrix' has a Cyclomatic Complexity of 13. 179–238
The method 'parseMatrix' has a Modified Cyclomatic Complexity of 11. 179–238
Avoid reassigning parameters such as 'string' 241
Avoid empty catch blocks 333–335
Avoid long parameter lists. 387–392

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. 17–95
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 29–54
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 60–62
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 Modified Cyclomatic Complexity of 4 (Highest = 16). 28–315
The class 'SenticNet' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 28–315
The class 'SenticNet' has a Cyclomatic Complexity of 4 (Highest = 16). 28–315
Avoid using redundant field initializer for 'instance' 55
Use block level rather than method level synchronization 57–59
Use block level rather than method level synchronization 61–72
The method 'index' has a Standard Cyclomatic Complexity of 16. 94–159
The method 'index' has a Modified Cyclomatic Complexity of 16. 94–159
The method 'index' has a Cyclomatic Complexity of 16. 94–159
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. 11–75
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 Modified Cyclomatic Complexity of 6 (Highest = 21). 20–198
The class 'SubjectivityLexicon' has a Cyclomatic Complexity of 6 (Highest = 24). 20–198
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. 20–198
The class 'SubjectivityLexicon' has a Standard Cyclomatic Complexity of 6 (Highest = 21). 20–198
Avoid using redundant field initializer for 'instance' 24
Use block level rather than method level synchronization 26–28
Use block level rather than method level synchronization 30–42
The method index() has an NPath complexity of 90685 44–118
The method 'index' has a Cyclomatic Complexity of 24. 44–118
The method 'index' has a Standard Cyclomatic Complexity of 21. 44–118
The method 'index' has a Modified Cyclomatic Complexity of 21. 44–118
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. 27–210
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 83–84
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 105
The user-supplied array 'parents' is stored directly. 201
Consider using varargs for methods or constructors which take an array the last parameter. 201
The user-supplied array 'children' is stored directly. 201
The user-supplied array 'synsets' is stored directly. 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. 14–73
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 48–51
Local variable 'outputFile' could be declared final 48–51
Local variable 'document' could be declared final 54
Avoid instantiating new objects inside loops 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. 8–24

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

Violation Line
Possible God class (WMC=64, ATFD=51, TCC=0.021052631578947368) 1–413
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. 19–413
Parameter 'pos' is not assigned and could be declared final 156
Parameter 'lemma' 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 376–377

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

Violation Line
The class 'YagoTaxonomy' has a Standard Cyclomatic Complexity of 7 (Highest = 10). 41–319
The class 'YagoTaxonomy' has a Modified Cyclomatic Complexity of 7 (Highest = 10). 41–319
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. 41–319
The class 'YagoTaxonomy' has a Cyclomatic Complexity of 8 (Highest = 14). 41–319
Avoid empty catch blocks 69–71
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 Modified Cyclomatic Complexity of 10. 228–301
The method 'main' has a Cyclomatic Complexity of 14. 228–301
The method 'main' has a Standard Cyclomatic Complexity of 10. 228–301
The user-supplied array 'parents' is stored directly. 311
The user-supplied array 'children' is stored directly. 311
Consider using varargs for methods or constructors which take an array the last parameter. 311

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

Violation Line
The class 'CorpusEvaluator' has a Standard Cyclomatic Complexity of 20 (Highest = 19). 23–153
The class 'CorpusEvaluator' has a Cyclomatic Complexity of 20 (Highest = 19). 23–153
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. 23–153
The class 'CorpusEvaluator' has a Modified Cyclomatic Complexity of 20 (Highest = 19). 23–153
Avoid really long methods. 27–152
The method 'main' has a Modified Cyclomatic Complexity of 19. 27–152
Parameter 'args' is not assigned and could be declared final 27
The method 'main' has a Cyclomatic Complexity of 19. 27–152
Consider using varargs for methods or constructors which take an array the last parameter. 27
The method 'main' has a Standard Cyclomatic Complexity of 19. 27–152
The method main() has an NPath complexity of 7207 27–152
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
Local variable 'fnTerms' could be declared final 64
Avoid instantiating new objects inside loops 64
Local variable 'predicate' could be declared final 65
Local variable 'frameNets' could be declared final 66
Avoid instantiating new objects inside loops 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. 17–92
Avoid unused private fields such as 'LOGGER'. 19
Parameter 'folder' is not assigned and could be declared final 23
Parameter 'list' is not assigned and could be declared final 23
Parameter 'index' 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
Consider using varargs for methods or constructors which take an array the last parameter. 48
Parameter 'args' is not assigned and could be declared final 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/darmstadt/ConvertNafDocumentsToXml.java

Violation Line
The class 'ConvertNafDocumentsToXml' has a Modified Cyclomatic Complexity of 10 (Highest = 15). 35–214
The class 'ConvertNafDocumentsToXml' has a Cyclomatic Complexity of 10 (Highest = 17). 35–214
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. 35–214
The class 'ConvertNafDocumentsToXml' has a Standard Cyclomatic Complexity of 10 (Highest = 15). 35–214
The method main() has an NPath complexity of 4333 39–201
Avoid really long methods. 39–201
Consider using varargs for methods or constructors which take an array the last parameter. 39
The method 'main' has a Cyclomatic Complexity of 17. 39–201
Parameter 'args' is not assigned and could be declared final 39
The method main() has an NCSS line count of 107 39–201
The method 'main' has a Modified Cyclomatic Complexity of 15. 39–201
The method 'main' has a Standard Cyclomatic Complexity of 15. 39–201
Local variable 'inputFolder' could be declared final 52
Local variable 'outputFile' could be declared final 53
Local variable 'labels' could be declared final 54
Local variable 'list' could be declared final 56
Local variable 'useNumeric' could be declared final 58
Local variable 'docFactory' could be declared final 60
Local variable 'docBuilder' could be declared final 61
Local variable 'doc' could be declared final 63
Local variable 'rootElement' could be declared final 64
Local variable 'files' could be declared final 73
Local variable 'fileList' could be declared final 74
Local variable 'documentFileName' could be declared final 80
Avoid instantiating new objects inside loops 81
Local variable 'document' could be declared final 87
Local variable 'sentenceElement' could be declared final 90
Do not add empty strings 93
Avoid instantiating new objects inside loops 96
Local variable 'uri' could be declared final 96
Local variable 'textElement' could be declared final 101
Local variable 'opinion' could be declared final 105
Local variable 'l' could be declared final 108
Local variable 'indexes' could be declared final 123
Avoid instantiating new objects inside loops 123
Local variable 'frameElement' could be declared final 156
Local variable 'holderElement' could be declared final 158
Local variable 'topicElement' could be declared final 163
Local variable 'opinionElement' could be declared final 168
Local variable 'polarityElement' could be declared final 172
Local variable 'transformerFactory' could be declared final 185
Local variable 'transformer' could be declared final 186
Local variable 'source' could be declared final 191
Local variable 'result' could be declared final 193
Parameter 'polarity' is not assigned and could be declared final 203
Local variable 'p' could be declared final 204
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 204

pikes-resources - eu/fbk/dkm/pikes/resources/darmstadt/CorpusAnnotator.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. 33–252
The class 'CorpusAnnotator' has a Modified Cyclomatic Complexity of 9 (Highest = 26). 33–252
The class 'CorpusAnnotator' has a Standard Cyclomatic Complexity of 9 (Highest = 26). 33–252
The class 'CorpusAnnotator' has a Cyclomatic Complexity of 10 (Highest = 29). 33–252
Avoid unused private fields such as 'TERM_PREFIX'. 37
Parameter 'pFile' is not assigned and could be declared final 39
Parameter 'folders' is not assigned and could be declared final 39
Local variable 'file' could be declared final 40
Parameter 'span' is not assigned and could be declared final 48
Local variable 'matcher' could be declared final 49
Local variable 'id' could be declared final 51
Parameter 'span' is not assigned and could be declared final 58
Parameter 'document' is not assigned and could be declared final 58
Local variable 'parts' could be declared final 59
Local variable 'termSpan' could be declared final 60
Local variable 'id' could be declared final 63
Local variable 'id1' could be declared final 67
Local variable 'id2' could be declared final 68
The method 'main' has a Modified Cyclomatic Complexity of 26. 77–250
Parameter 'args' is not assigned and could be declared final 77
The method main() has an NCSS line count of 113 77–250
Avoid really long methods. 77–250
The method 'main' has a Standard Cyclomatic Complexity of 26. 77–250
Consider using varargs for methods or constructors which take an array the last parameter. 77
The method main() has an NPath complexity of 167145 77–250
The method 'main' has a Cyclomatic Complexity of 29. 77–250
Local variable 'forceOpinion' could be declared final 88
Local variable 'dbFactory' could be declared final 90
Local variable 'folders' could be declared final 100
Local variable 'okFolders' could be declared final 103
Local variable 'folder' could be declared final 105
Local variable 'pattern' could be declared final 106
Avoid instantiating new objects inside loops 107
Local variable 'newFolder' could be declared final 107
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 108
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 109
Local variable 'folder' could be declared final 120
Local variable 'markableDir' could be declared final 123
Local variable 'basedataDir' could be declared final 124
Avoid instantiating new objects inside loops 125
Local variable 'nafDir' could be declared final 125
Avoid instantiating new objects inside loops 128
Local variable 'file' could be declared final 130
Local variable 'fileBaseName' could be declared final 131
Local variable 'annotatedFile' could be declared final 134
Avoid instantiating new objects inside loops 134
Local variable 'basedataFile' could be declared final 140
Avoid instantiating new objects inside loops 140
Local variable 'document' could be declared final 146
Local variable 'opinion' could be declared final 149
Avoid instantiating new objects inside loops 164
Local variable 'origWordCount' could be declared final 166
Local variable 'nafWordCount' could be declared final 167
Local variable 'markables' could be declared final 173
Avoid instantiating new objects inside loops 173
Avoid instantiating new objects inside loops 177
Local variable 'nList' could be declared final 178
Local variable 'nNode' could be declared final 180
Local variable 'attributes' could be declared final 181
Local variable 'thisMarkable' could be declared final 183
Avoid instantiating new objects inside loops 183
Local variable 'markable' could be declared final 194
Local variable 'holderString' could be declared final 197
Local variable 'targetString' could be declared final 198
Local variable 'opinion' could be declared final 218
Local variable 'expression' could be declared final 220
Local variable 'terms' could be declared final 229
Local variable 'terms' could be declared final 233

pikes-resources - eu/fbk/dkm/pikes/resources/darmstadt/CorpusLoader.java

Violation Line
The class 'CorpusLoader' has a Modified Cyclomatic Complexity of 7 (Highest = 10). 26–143
The class 'CorpusLoader' has a Standard Cyclomatic Complexity of 7 (Highest = 10). 26–143
The class 'CorpusLoader' has a Cyclomatic Complexity of 7 (Highest = 10). 26–143
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. 26–143
Parameter 'pFile' is not assigned and could be declared final 33
Parameter 'folders' is not assigned and could be declared final 33
Local variable 'file' could be declared final 34
Consider using varargs for methods or constructors which take an array the last parameter. 42
Parameter 'args' is not assigned and could be declared final 42
Avoid really long methods. 42–142
The method 'main' has a Modified Cyclomatic Complexity of 10. 42–142
The method 'main' has a Standard Cyclomatic Complexity of 10. 42–142
The method 'main' has a Cyclomatic Complexity of 10. 42–142
Local variable 'dbFactory' could be declared final 59
Local variable 'folders' could be declared final 67
Local variable 'okFolders' could be declared final 70
Local variable 'folder' could be declared final 72
Local variable 'pattern' could be declared final 73
Avoid instantiating new objects inside loops 74
Local variable 'newFolder' could be declared final 74
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 75
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 76
Local variable 'folder' could be declared final 87
Local variable 'baseDataDir' could be declared final 90
Avoid instantiating new objects inside loops 91
Local variable 'nafDir' could be declared final 91
Avoid instantiating new objects inside loops 101
Avoid instantiating new objects inside loops 101
Local variable 'file' could be declared final 103
Avoid instantiating new objects inside loops 104
Local variable 'stringBuffer' could be declared final 104
Local variable 'dBuilder' could be declared final 113
Local variable 'doc' could be declared final 114
Avoid instantiating new objects inside loops 114
Local variable 'nList' could be declared final 115
Local variable 'nNode' could be declared final 117
Avoid appending characters as strings in StringBuffer.append. 119
Local variable 'nafFileName' could be declared final 122
Local variable 'nafFile' could be declared final 123
Avoid instantiating new objects inside loops 123
Local variable 'text' could be declared final 124
Local variable 'documentURI' could be declared final 125
Avoid instantiating new objects inside loops 127
Avoid instantiating new objects inside loops 130

pikes-resources - eu/fbk/dkm/pikes/resources/darmstadt/IdentifyDocuments.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. 23–133
Avoid unused private fields such as 'LOGGER'. 25
Parameter 'a' is not assigned and could be declared final 27
Parameter 'b' is not assigned and could be declared final 27
Parameter 'c' is not assigned and could be declared final 27
Parameter 'str2' is not assigned and could be declared final 31
Parameter 'str1' is not assigned and could be declared final 31
Parameter 'args' is not assigned and could be declared final 53
Consider using varargs for methods or constructors which take an array the last parameter. 53
Local variable 'inputFolder' could be declared final 64
Local variable 'datasetFile' could be declared final 65
Local variable 'outputFile' could be declared final 66
Local variable 'textToFile' could be declared final 68
Local variable 'corpus' could be declared final 70
Local variable 'file' could be declared final 71
Local variable 'document' could be declared final 77
Local variable 'buffer' could be declared final 83
Local variable 'dbFactory' could be declared final 85
Local variable 'dBuilder' could be declared final 86
Local variable 'doc' could be declared final 87
Local variable 'nList' could be declared final 88
Local variable 'nNode' could be declared final 90
Avoid appending characters as strings in StringBuffer.append. 100
Local variable 'key' could be declared final 107
Local variable 'distance' could be declared final 108
Local variable 'ratio' could be declared final 109
Avoid appending characters as strings in StringBuffer.append. 117

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ClusteringEvaluation.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. 11–128
Parameter 's2' is not assigned and could be declared final 17
Parameter 's1' is not assigned and could be declared final 17
Parameter 'o' is not assigned and could be declared final 22
Local variable 'pair' could be declared final 30
Useless parentheses. 32
Useless parentheses. 33
Parameter 'classifiedS' is not assigned and could be declared final 50
Parameter 'goldS' is not assigned and could be declared final 50
Local variable 'gold' could be declared final 52
Local variable 'classified' could be declared final 53
Local variable 'set' could be declared final 55
Avoid instantiating new objects inside loops 56
Local variable 'set' could be declared final 58
Avoid instantiating new objects inside loops 59
Local variable 'goldPairs' could be declared final 62
Local variable 'classifiedPairs' could be declared final 63
Local variable 'objects' could be declared final 65
Avoid instantiating new objects inside loops 68
Local variable 'objects' could be declared final 72
Avoid instantiating new objects inside loops 75
Local variable 'intersection' could be declared final 80
Local variable 'commons' could be declared final 83
Local variable 'goldPairCount' could be declared final 84
Local variable 'classifiedPairCount' could be declared final 85
Local variable 'p' could be declared final 87
Local variable 'r' could be declared final 88
Local variable 'ret' could be declared final 90
Parameter 'args' is not assigned and could be declared final 98
Consider using varargs for methods or constructors which take an array the last parameter. 98
Local variable 'm' could be declared final 100
Local variable 'm1' could be declared final 101
Local variable 'm2' could be declared final 105
Local variable 'c' could be declared final 112
Local variable 'c1' could be declared final 113
Local variable 'c2' could be declared final 116
Local variable 'c3' could be declared final 120

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ConvertECBPlus.java

Violation Line
The class 'ConvertECBPlus' has a Standard Cyclomatic Complexity of 16 (Highest = 15). 27–138
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. 27–138
The class 'ConvertECBPlus' has a Cyclomatic Complexity of 17 (Highest = 16). 27–138
The class 'ConvertECBPlus' has a Modified Cyclomatic Complexity of 16 (Highest = 15). 27–138
Parameter 'args' is not assigned and could be declared final 32
The method 'main' has a Cyclomatic Complexity of 16. 32–137
Consider using varargs for methods or constructors which take an array the last parameter. 32
Avoid really long methods. 32–137
The method 'main' has a Standard Cyclomatic Complexity of 15. 32–137
The method main() has an NPath complexity of 1318 32–137
The method 'main' has a Modified Cyclomatic Complexity of 15. 32–137
Local variable 'opMkDirs' could be declared final 46
Local variable 'files' could be declared final 51
Local variable 'file' could be declared final 52
Local variable 'thisFolderFiles' could be declared final 57
Local variable 'nafFile' could be declared final 58
Local variable 'document' could be declared final 72
Avoid instantiating new objects inside loops 72
Local variable 'dbFactory' could be declared final 74
Local variable 'dBuilder' could be declared final 75
Local variable 'xPathfactory' could be declared final 76
Local variable 'xpath' could be declared final 77
Local variable 'doc' could be declared final 82
Avoid instantiating new objects inside loops 89
Avoid instantiating new objects inside loops 90
Local variable 'text' could be declared final 90
Local variable 'item' could be declared final 93
Local variable 'element' could be declared final 94
Local variable 'sentence' could be declared final 96
Avoid appending characters as strings in StringBuffer.append. 102
Avoid instantiating new objects inside loops 104
Avoid appending characters as strings in StringBuffer.append. 108
Avoid appending characters as strings in StringBuffer.append. 111
Local variable 'aPublic' could be declared final 115
Local variable 'fileDesc' could be declared final 118
Local variable 'matcher' could be declared final 121
Local variable 'folderID' could be declared final 123
Avoid instantiating new objects inside loops 124
Local variable 'newFolder' could be declared final 124
Local variable 'outputFile' could be declared final 128
Avoid instantiating new objects inside loops 128

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBPlusEvaluator.java

Violation Line
Possible God class (WMC=76, ATFD=56, TCC=0.0) 1–424
The class 'ECBPlusEvaluator' has a Standard Cyclomatic Complexity of 31 (Highest = 60). 23–424
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. 23–424
The class 'ECBPlusEvaluator' has a Modified Cyclomatic Complexity of 31 (Highest = 60). 23–424
The class 'ECBPlusEvaluator' has a Cyclomatic Complexity of 38 (Highest = 75). 23–424
Avoid using redundant field initializer for 'FOLDER' 31
Parameter 'writer' is not assigned and could be declared final 33
Parameter 'token' is not assigned and could be declared final 33
Parameter 'last' is not assigned and could be declared final 33
Parameter 'i' is not assigned and could be declared final 33
The method main() has an NPath complexity of 1991586881 55–422
The method 'main' has a Modified Cyclomatic Complexity of 60. 55–422
The method 'main' has a Cyclomatic Complexity of 75. 55–422
Avoid really long methods. 55–422
Parameter 'args' is not assigned and could be declared final 55
The method 'main' has a Standard Cyclomatic Complexity of 60. 55–422
The method main() has an NCSS line count of 218 55–422
Consider using varargs for methods or constructors which take an array the last parameter. 55
Local variable 'inputCsv' could be declared final 81
Local variable 'inputNaf' could be declared final 82
Local variable 'inputLemmas' could be declared final 83
Local variable 'inputAllLemmas' could be declared final 84
Local variable 'outputGold' could be declared final 86
Local variable 'outputBaseline' could be declared final 87
Local variable 'output' could be declared final 88
Local variable 'checkGold' could be declared final 91
Local variable 'addSingleClusters' could be declared final 92
Local variable 'record' could be declared final 105
Local variable 'record' could be declared final 118
Local variable 'goldWriter' could be declared final 134
Local variable 'baselineWriter' could be declared final 135
Local variable 'writer' could be declared final 136
Local variable 'goldTmpClusters' could be declared final 138
Local variable 'goldClusters' could be declared final 139
Local variable 'okEvents' could be declared final 140
Local variable 'theBaseline' could be declared final 142
Avoid unused local variables such as 'path'. 152
Local variable 'path' could be declared final 152
Local variable 'relativeFilePath' could be declared final 153–154
Local variable 'matcher' could be declared final 156
Local variable 'document' could be declared final 173
Local variable 'coref' could be declared final 175
Local variable 'cluster' could be declared final 183
Local variable 'idCluster' could be declared final 184
Local variable 'termSpan' could be declared final 186
Local variable 'term' could be declared final 187
Local variable 'lemma' could be declared final 188
Local variable 'text' could be declared final 199
Local variable 'numSentences' could be declared final 210
Avoid instantiating new objects inside loops 214
Local variable 'goldBuilder' could be declared final 214
Local variable 'baselineBuilder' could be declared final 215
Avoid instantiating new objects inside loops 215
Local variable 'sentenceTerms' could be declared final 217
Local variable 'token' could be declared final 219
Local variable 'id' could be declared final 220
Local variable 'lemma' could be declared final 232
These nested if statements could be combined 234–236
These nested if statements could be combined 239–241
Position literals first in String comparisons 243
Avoid appending characters as strings in StringBuffer.append. 249
Avoid appending characters as strings in StringBuffer.append. 250
Local variable 'clusterIndexes' could be declared final 278
Local variable 'theClusters' could be declared final 279
Local variable 'record' could be declared final 280
Local variable 'index1' could be declared final 297
Local variable 'index2' could be declared final 298
These nested if statements could be combined 306–309
These nested if statements could be combined 312–315
These nested if statements could be combined 319–324
These nested if statements could be combined 320–323
These nested if statements could be combined 327–332
These nested if statements could be combined 328–331
These nested if statements could be combined 335–341
These nested if statements could be combined 336–340
Local variable 'relativeFilePath' could be declared final 358–359
Local variable 'matcher' could be declared final 361
Local variable 'document' could be declared final 376
Local variable 'numSentences' could be declared final 383
Local variable 'outBuilder' could be declared final 387
Avoid instantiating new objects inside loops 387
Local variable 'sentenceTerms' could be declared final 389
Local variable 'token' could be declared final 391
Local variable 'id' could be declared final 392
Position literals first in String comparisons 400
These nested if statements could be combined 401–403
Avoid appending characters as strings in StringBuffer.append. 408

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBPlusEvaluatorLemma.java

Violation Line
Possible God class (WMC=76, ATFD=56, TCC=0.0) 1–424
The class 'ECBPlusEvaluatorLemma' has a Cyclomatic Complexity of 38 (Highest = 75). 23–424
The class 'ECBPlusEvaluatorLemma' has a Modified Cyclomatic Complexity of 31 (Highest = 60). 23–424
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. 23–424
The class 'ECBPlusEvaluatorLemma' has a Standard Cyclomatic Complexity of 31 (Highest = 60). 23–424
Avoid using redundant field initializer for 'FOLDER' 31
Parameter 'writer' is not assigned and could be declared final 33
Parameter 'token' is not assigned and could be declared final 33
Parameter 'i' is not assigned and could be declared final 33
Parameter 'last' is not assigned and could be declared final 33
The method main() has an NPath complexity of 1991586881 55–422
Avoid really long methods. 55–422
The method 'main' has a Modified Cyclomatic Complexity of 60. 55–422
Consider using varargs for methods or constructors which take an array the last parameter. 55
Parameter 'args' is not assigned and could be declared final 55
The method 'main' has a Cyclomatic Complexity of 75. 55–422
The method main() has an NCSS line count of 218 55–422
The method 'main' has a Standard Cyclomatic Complexity of 60. 55–422
Local variable 'inputCsv' could be declared final 81
Local variable 'inputNaf' could be declared final 82
Local variable 'inputLemmas' could be declared final 83
Local variable 'inputAllLemmas' could be declared final 84
Local variable 'outputGold' could be declared final 86
Local variable 'outputBaseline' could be declared final 87
Local variable 'output' could be declared final 88
Local variable 'checkGold' could be declared final 91
Local variable 'addSingleClusters' could be declared final 92
Local variable 'record' could be declared final 105
Local variable 'record' could be declared final 118
Local variable 'goldWriter' could be declared final 134
Local variable 'baselineWriter' could be declared final 135
Local variable 'writer' could be declared final 136
Local variable 'goldTmpClusters' could be declared final 138
Local variable 'goldClusters' could be declared final 139
Local variable 'okEvents' could be declared final 140
Local variable 'theBaseline' could be declared final 142
Avoid unused local variables such as 'path'. 152
Local variable 'path' could be declared final 152
Local variable 'relativeFilePath' could be declared final 153–154
Local variable 'matcher' could be declared final 156
Local variable 'document' could be declared final 173
Local variable 'coref' could be declared final 175
Local variable 'cluster' could be declared final 183
Local variable 'idCluster' could be declared final 184
Local variable 'termSpan' could be declared final 186
Local variable 'term' could be declared final 187
Local variable 'lemma' could be declared final 188
Local variable 'text' could be declared final 199
Local variable 'numSentences' could be declared final 210
Avoid instantiating new objects inside loops 214
Local variable 'goldBuilder' could be declared final 214
Avoid instantiating new objects inside loops 215
Local variable 'baselineBuilder' could be declared final 215
Local variable 'sentenceTerms' could be declared final 217
Local variable 'token' could be declared final 219
Local variable 'id' could be declared final 220
Local variable 'lemma' could be declared final 232
These nested if statements could be combined 234–236
These nested if statements could be combined 239–241
Position literals first in String comparisons 243
Avoid appending characters as strings in StringBuffer.append. 249
Avoid appending characters as strings in StringBuffer.append. 250
Local variable 'clusterIndexes' could be declared final 278
Local variable 'theClusters' could be declared final 279
Local variable 'record' could be declared final 280
Local variable 'index1' could be declared final 297
Local variable 'index2' could be declared final 298
These nested if statements could be combined 306–309
These nested if statements could be combined 312–315
These nested if statements could be combined 319–324
These nested if statements could be combined 320–323
These nested if statements could be combined 327–332
These nested if statements could be combined 328–331
These nested if statements could be combined 335–341
These nested if statements could be combined 336–340
Local variable 'relativeFilePath' could be declared final 358–359
Local variable 'matcher' could be declared final 361
Local variable 'document' could be declared final 376
Local variable 'numSentences' could be declared final 383
Local variable 'outBuilder' could be declared final 387
Avoid instantiating new objects inside loops 387
Local variable 'sentenceTerms' could be declared final 389
Local variable 'token' could be declared final 391
Local variable 'id' could be declared final 392
Position literals first in String comparisons 400
These nested if statements could be combined 401–403
Avoid appending characters as strings in StringBuffer.append. 408

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBPlusSplitter.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. 19–78
Avoid unused private fields such as 'LOGGER'. 21
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 'inputFile' could be declared final 36
Local variable 'outputFolder' could be declared final 37
Local variable 'res' could be declared final 39
Local variable 'reader' could be declared final 41
Local variable 'matcher' could be declared final 45
Avoid instantiating new objects inside loops 53
Local variable 'key' could be declared final 61
Local variable 'thisFileString' could be declared final 62
Avoid instantiating new objects inside loops 63
Local variable 'thisFile' could be declared final 63
Local variable 'writer' could be declared final 65
Avoid instantiating new objects inside loops 65
Local variable 'thisLine' could be declared final 66

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBevaluator.java

Violation Line
Possible God class (WMC=60, ATFD=50, TCC=0.0) 1–348
The class 'ECBevaluator' has a Modified Cyclomatic Complexity of 24 (Highest = 46). 26–348
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. 26–348
The class 'ECBevaluator' has a Cyclomatic Complexity of 30 (Highest = 59). 26–348
The class 'ECBevaluator' has a Standard Cyclomatic Complexity of 24 (Highest = 46). 26–348
Avoid using redundant field initializer for 'FOLDER' 32
Parameter 'token' is not assigned and could be declared final 34
Parameter 'i' is not assigned and could be declared final 34
Parameter 'writer' is not assigned and could be declared final 34
Parameter 'last' is not assigned and could be declared final 34
The method 'main' has a Modified Cyclomatic Complexity of 46. 56–346
The method main() has an NCSS line count of 178 56–346
The method 'main' has a Standard Cyclomatic Complexity of 46. 56–346
Avoid really long methods. 56–346
The method 'main' has a Cyclomatic Complexity of 59. 56–346
The method main() has an NPath complexity of 1981298469 56–346
Parameter 'args' is not assigned and could be declared final 56
Consider using varargs for methods or constructors which take an array the last parameter. 56
Local variable 'inputCsv' could be declared final 80
Local variable 'inputNaf' could be declared final 81
Local variable 'inputLemmas' could be declared final 82
Local variable 'outputGold' could be declared final 84
Local variable 'outputBaseline' could be declared final 85
Local variable 'output' could be declared final 86
Local variable 'checkGold' could be declared final 89
Local variable 'addSingleClusters' could be declared final 90
Local variable 'record' could be declared final 101
Local variable 'goldWriter' could be declared final 112
Local variable 'baselineWriter' could be declared final 113
Local variable 'writer' could be declared final 114
Local variable 'goldTmpClusters' could be declared final 116
Local variable 'goldClusters' could be declared final 117
Local variable 'okEvents' could be declared final 118
Local variable 'path' could be declared final 128
String.indexOf(char) is faster than String.indexOf(String). 129
Local variable 'folder' could be declared final 129
Local variable 'fileNum' could be declared final 130
Local variable 'document' could be declared final 137
Local variable 'coref' could be declared final 139
Local variable 'cluster' could be declared final 147
Local variable 'idCluster' could be declared final 148
Local variable 'termSpan' could be declared final 150
Local variable 'term' could be declared final 151
Local variable 'lemma' could be declared final 152
Local variable 'text' could be declared final 154
Local variable 'numSentences' could be declared final 165
Avoid instantiating new objects inside loops 169
Local variable 'goldBuilder' could be declared final 169
Avoid instantiating new objects inside loops 170
Local variable 'baselineBuilder' could be declared final 170
Local variable 'sentenceTerms' could be declared final 172
Local variable 'token' could be declared final 174
Local variable 'id' could be declared final 175
Local variable 'lemma' could be declared final 187
Avoid appending characters as strings in StringBuffer.append. 194
Avoid appending characters as strings in StringBuffer.append. 195
Local variable 'clusterIndexes' could be declared final 222
Local variable 'tmpClusters' could be declared final 223
Local variable 'record' could be declared final 224
Local variable 'index1' could be declared final 238
Local variable 'index2' could be declared final 239
These nested if statements could be combined 244–247
Deeply nested if..then statements are hard to read 244–247
These nested if statements could be combined 250–253
Deeply nested if..then statements are hard to read 250–253
These nested if statements could be combined 257–262
These nested if statements could be combined 258–261
Deeply nested if..then statements are hard to read 258–261
These nested if statements could be combined 265–270
These nested if statements could be combined 266–269
Deeply nested if..then statements are hard to read 266–269
These nested if statements could be combined 273–279
These nested if statements could be combined 274–278
Deeply nested if..then statements are hard to read 274–278
Local variable 'path' could be declared final 294
String.indexOf(char) is faster than String.indexOf(String). 295
Local variable 'folder' could be declared final 295
Local variable 'fileNum' could be declared final 296
Local variable 'document' could be declared final 299
Local variable 'numSentences' could be declared final 306
Local variable 'outBuilder' could be declared final 310
Avoid instantiating new objects inside loops 310
Local variable 'sentenceTerms' could be declared final 312
Local variable 'token' could be declared final 314
Local variable 'id' could be declared final 315
Avoid appending characters as strings in StringBuffer.append. 332

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBevaluator2.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. 29–209
The class 'ECBevaluator2' has a Cyclomatic Complexity of 37 (Highest = 36). 29–209
The class 'ECBevaluator2' has a Modified Cyclomatic Complexity of 30 (Highest = 29). 29–209
The class 'ECBevaluator2' has a Standard Cyclomatic Complexity of 30 (Highest = 29). 29–209
The method main() has an NCSS line count of 108 36–207
Consider using varargs for methods or constructors which take an array the last parameter. 36
The method main() has an NPath complexity of 6787393 36–207
The method 'main' has a Modified Cyclomatic Complexity of 29. 36–207
The method 'main' has a Cyclomatic Complexity of 36. 36–207
Avoid really long methods. 36–207
The method 'main' has a Standard Cyclomatic Complexity of 29. 36–207
Parameter 'args' is not assigned and could be declared final 36
Local variable 'inputCsv' could be declared final 52
Local variable 'inputNaf' could be declared final 53
Local variable 'inputLemmas' could be declared final 54
Local variable 'removeAloneClusters' could be declared final 56
Local variable 'record' could be declared final 66
Local variable 'goldTmpClusters' could be declared final 75
Local variable 'okEvents' could be declared final 76
Local variable 'path' could be declared final 86
String.indexOf(char) is faster than String.indexOf(String). 87
Local variable 'folder' could be declared final 87
Local variable 'fileNum' could be declared final 88
Local variable 'document' could be declared final 91
Local variable 'coref' could be declared final 92
Local variable 'cluster' could be declared final 100
Local variable 'idCluster' could be declared final 101
Local variable 'termSpan' could be declared final 103
Local variable 'term' could be declared final 104
Local variable 'lemma' could be declared final 105
Local variable 'text' could be declared final 107
Local variable 'goldClusters' could be declared final 115
Local variable 'key' could be declared final 116
Local variable 'cluster' could be declared final 117
Local variable 'clusterIndexes' could be declared final 130
Local variable 'tmpClusters' could be declared final 131
Local variable 'record' could be declared final 132
Local variable 'index1' could be declared final 146
Local variable 'index2' could be declared final 147
These nested if statements could be combined 161–164
These nested if statements could be combined 167–170
These nested if statements could be combined 173–177
Local variable 'clusters' could be declared final 183
Local variable 'key' could be declared final 184
Local variable 'cluster' could be declared final 185
Local variable 'precisionRecall' could be declared final 195–196

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBextractor.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. 20–89
The class 'ECBextractor' has a Modified Cyclomatic Complexity of 10 (Highest = 9). 20–89
The class 'ECBextractor' has a Standard Cyclomatic Complexity of 10 (Highest = 9). 20–89
The class 'ECBextractor' has a Cyclomatic Complexity of 10 (Highest = 9). 20–89
Avoid unused private fields such as 'tokenPattern'. 23
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
Local variable 'inputNaf' could be declared final 40
Local variable 'outputFile' could be declared final 41
Local variable 'writer' could be declared final 43
Local variable 'path' could be declared final 53
String.indexOf(char) is faster than String.indexOf(String). 54
Local variable 'folder' could be declared final 54
Avoid unused local variables such as 'fileNum'. 55
Local variable 'fileNum' could be declared final 55
Local variable 'document' could be declared final 58
Local variable 'uri' could be declared final 59
Local variable 'coref' could be declared final 61
Local variable 'cluster' could be declared final 69
Avoid unused local variables such as 'idCluster'. 70
Local variable 'idCluster' could be declared final 70
Local variable 'termSpan' could be declared final 72
Local variable 'term' could be declared final 73
Local variable 'thisURI' could be declared final 75–76

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBmerger.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. 25–151
The class 'ECBmerger' has a Standard Cyclomatic Complexity of 14 (Highest = 13). 25–151
The class 'ECBmerger' has a Cyclomatic Complexity of 14 (Highest = 13). 25–151
The class 'ECBmerger' has a Modified Cyclomatic Complexity of 14 (Highest = 13). 25–151
The method 'main' has a Modified Cyclomatic Complexity of 13. 31–149
Parameter 'args' is not assigned and could be declared final 31
The method 'main' has a Standard Cyclomatic Complexity of 13. 31–149
Avoid really long methods. 31–149
The method main() has an NPath complexity of 259 31–149
The method 'main' has a Cyclomatic Complexity of 13. 31–149
Consider using varargs for methods or constructors which take an array the last parameter. 31
Local variable 'inputFolder' could be declared final 45
Local variable 'nafFolder' could be declared final 46
Local variable 'outputFolder' could be declared final 47
Local variable 'dbFactory' could be declared final 53
Avoid unused local variables such as 'dBuilder'. 54
Local variable 'dBuilder' could be declared final 54
Local variable 'tags' could be declared final 59
Avoid unused local variables such as 'tags'. 59
Avoid unused local variables such as 'i'. 61
Local variable 'i' could be declared final 61
Local variable 'path' could be declared final 70
String.indexOf(char) is faster than String.indexOf(String). 71
Local variable 'folder' could be declared final 71
Local variable 'local_name' could be declared final 72
Avoid unused local variables such as 'local_name'. 72
Local variable 'naf' could be declared final 74–75
Avoid instantiating new objects inside loops 77
Local variable 'bais' could be declared final 77
Local variable 'gzis' could be declared final 78
Avoid instantiating new objects inside loops 78
Local variable 'reader' could be declared final 79
Avoid instantiating new objects inside loops 79
Avoid instantiating new objects inside loops 80
Local variable 'in' could be declared final 80
Local variable 'nafDocument' could be declared final 82
Local variable 'termsHashMap' could be declared final 91
Avoid instantiating new objects inside loops 91
Local variable 'term' could be declared final 92
Local variable 'clusterOffsets' could be declared final 96
Local variable 'content' could be declared final 98
Local variable 'matcher' could be declared final 100
Local variable 'chainMatcher' could be declared final 106
Local variable 'chain' could be declared final 112
Local variable 'clusterId' could be declared final 118
Local variable 'terms' could be declared final 119
Local variable 'termsList' could be declared final 120
Avoid instantiating new objects inside loops 120
Local variable 'termOffset' could be declared final 121
Local variable 'term' could be declared final 122
Local variable 'termSpan' could be declared final 127
Local variable 'coref' could be declared final 131
Local variable 'outputFile' could be declared final 136–139
Avoid instantiating new objects inside loops 136–139

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/ECBparser.java

Violation Line
Avoid unused imports such as 'org.w3c.dom.Document' 9
Avoid unused imports such as 'java.util.regex.Matcher' 14
Avoid unused imports such as 'java.util.regex.Pattern' 15
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. 20–115
Avoid unused private fields such as 'LOGGER'. 24
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
Local variable 'inputFolder' could be declared final 41
Local variable 'outputFolder' could be declared final 42
Local variable 'prefix' could be declared final 43
Local variable 'dbFactory' could be declared final 49
Local variable 'dBuilder' could be declared final 50
Avoid unused local variables such as 'dBuilder'. 50
Local variable 'tags' could be declared final 55
Avoid unused local variables such as 'tags'. 55
Local variable 'i' could be declared final 57
Local variable 'path' could be declared final 66
Local variable 'folder' could be declared final 67
String.indexOf(char) is faster than String.indexOf(String). 67
Local variable 'local_name' could be declared final 68
Local variable 'url' could be declared final 72
Do not add empty strings 73
Local variable 'id' could be declared final 73
Local variable 'title' could be declared final 74
Local variable 'outputFile' could be declared final 84–87
Avoid instantiating new objects inside loops 84–87
Avoid instantiating new objects inside loops 90
Local variable 'document' could be declared final 90
Local variable 'documentPublic' could be declared final 92
Local variable 'documentFileDesc' could be declared final 96
Local variable 'finalContent' could be declared final 100
Avoid instantiating new objects inside loops 100
Avoid unused local variables such as 'finalContent'. 100

pikes-resources - eu/fbk/dkm/pikes/resources/ecb/MergeECBPlus.java

Violation Line
The class 'MergeECBPlus' has a Modified Cyclomatic Complexity of 22 (Highest = 21). 35–199
The class 'MergeECBPlus' has a Standard Cyclomatic Complexity of 22 (Highest = 21). 35–199
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. 35–199
The class 'MergeECBPlus' has a Cyclomatic Complexity of 23 (Highest = 22). 35–199
The method main() has an NPath complexity of 26887 39–198
Parameter 'args' is not assigned and could be declared final 39
Consider using varargs for methods or constructors which take an array the last parameter. 39
The method main() has an NCSS line count of 104 39–198
The method 'main' has a Standard Cyclomatic Complexity of 21. 39–198
Avoid really long methods. 39–198
The method 'main' has a Cyclomatic Complexity of 22. 39–198
The method 'main' has a Modified Cyclomatic Complexity of 21. 39–198
Local variable 'inputFolder' could be declared final 53
Local variable 'nafFolder' could be declared final 54
Local variable 'outputFolder' could be declared final 55
Local variable 'files' could be declared final 61
Local variable 'file' could be declared final 62
Local variable 'thisFolderFiles' could be declared final 67
Local variable 'ecbFile' could be declared final 68
Local variable 'naf' could be declared final 81
Avoid instantiating new objects inside loops 82
Local variable 'nafFile' could be declared final 82
Local variable 'dbFactory' could be declared final 84
Local variable 'dBuilder' could be declared final 85
Local variable 'xPathfactory' could be declared final 86
Local variable 'xpath' could be declared final 87
Local variable 'doc' could be declared final 92
Local variable 'offsets' could be declared final 95
Avoid instantiating new objects inside loops 95
Local variable 'clusterOffsets' could be declared final 97
Avoid instantiating new objects inside loops 103
Avoid instantiating new objects inside loops 104
Local variable 'text' could be declared final 104
Local variable 'item' could be declared final 108
Local variable 'element' could be declared final 109
Local variable 'token' could be declared final 110
Local variable 't_id' could be declared final 112
Local variable 'sentence' could be declared final 115
Avoid appending characters as strings in StringBuffer.append. 121
Avoid instantiating new objects inside loops 123
Avoid appending characters as strings in StringBuffer.append. 127
Avoid appending characters as strings in StringBuffer.append. 131
Local variable 'item' could be declared final 137
Local variable 'element' could be declared final 138
Local variable 'clusterID' could be declared final 140
Local variable 'elements' could be declared final 142
Local variable 'item2' could be declared final 144
Local variable 'element2' could be declared final 145
Local variable 't_id' could be declared final 147
Avoid using a branching statement as the last in a loop. 149
Avoid instantiating new objects inside loops 154
Local variable 'bais' could be declared final 154
Local variable 'gzis' could be declared final 155
Avoid instantiating new objects inside loops 155
Avoid instantiating new objects inside loops 156
Local variable 'reader' could be declared final 156
Local variable 'in' could be declared final 157
Avoid instantiating new objects inside loops 157
Local variable 'nafDocument' could be declared final 159
Local variable 'termsHashMap' could be declared final 161
Avoid instantiating new objects inside loops 161
Local variable 'term' could be declared final 162
Local variable 'clusterId' could be declared final 166
Local variable 'terms' could be declared final 167
Avoid instantiating new objects inside loops 168
Local variable 'termsList' could be declared final 168
Local variable 'termOffset' could be declared final 169
Local variable 'term' could be declared final 170
Local variable 'termSpan' could be declared final 175
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 180
Local variable 'coref' could be declared final 184
Local variable 'outFileName' could be declared final 189
Avoid instantiating new objects inside loops 190
Local variable 'outputFile' could be declared final 190

pikes-resources - eu/fbk/dkm/pikes/resources/goodbadfor/CorpusAnalyzer.java

Violation Line
The class 'CorpusAnalyzer' has a Modified Cyclomatic Complexity of 8 (Highest = 13). 22–110
The class 'CorpusAnalyzer' has a Cyclomatic Complexity of 8 (Highest = 14). 22–110
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. 22–110
The class 'CorpusAnalyzer' has a Standard Cyclomatic Complexity of 8 (Highest = 13). 22–110
Parameter 'span' is not assigned and could be declared final 26
Local variable 'stringBuffer' could be declared final 27
Local variable 'term' could be declared final 28
Avoid appending characters as strings in StringBuffer.append. 30
Consider using varargs for methods or constructors which take an array the last parameter. 35
Parameter 'args' is not assigned and could be declared final 35
The method 'main' has a Cyclomatic Complexity of 14. 35–109
The method 'main' has a Standard Cyclomatic Complexity of 13. 35–109
The method 'main' has a Modified Cyclomatic Complexity of 13. 35–109
Local variable 'nafFolder' could be declared final 47
Local variable 'testFile' could be declared final 48
Local variable 'influenceRet' could be declared final 57
Local variable 'influenceRev' could be declared final 58
Local variable 'goodFor' could be declared final 60
Local variable 'badFor' could be declared final 61
Local variable 'file' could be declared final 64
Local variable 'fileBaseName' could be declared final 65
Local variable 'document' could be declared final 73
Local variable 'opinionList' could be declared final 74
Local variable 'opinion' could be declared final 75
Local variable 'expression' could be declared final 77
Local variable 'expression' could be declared final 87

pikes-resources - eu/fbk/dkm/pikes/resources/goodbadfor/CorpusAnnotator.java

Violation Line
The class 'CorpusAnnotator' has a Standard Cyclomatic Complexity of 28 (Highest = 27). 27–227
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. 27–227
The class 'CorpusAnnotator' has a Cyclomatic Complexity of 32 (Highest = 31). 27–227
The class 'CorpusAnnotator' has a Modified Cyclomatic Complexity of 28 (Highest = 27). 27–227
Avoid really long methods. 31–224
Consider using varargs for methods or constructors which take an array the last parameter. 31
The method 'main' has a Modified Cyclomatic Complexity of 27. 31–224
The method main() has an NPath complexity of 1025873 31–224
The method main() has an NCSS line count of 105 31–224
The method 'main' has a Cyclomatic Complexity of 31. 31–224
The method 'main' has a Standard Cyclomatic Complexity of 27. 31–224
Local variable 'annotationsFolder' could be declared final 45
Local variable 'nafFolder' could be declared final 46
Local variable 'testFile' could be declared final 59
Local variable 'file' could be declared final 76
Local variable 'fileBaseName' could be declared final 77
Local variable 'mpqaFile' could be declared final 83
Avoid instantiating new objects inside loops 83
Local variable 'document' could be declared final 96
Local variable 'terms' could be declared final 99
Local variable 'opinions' could be declared final 102
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 103
Avoid instantiating new objects inside loops 110
Local variable 'index' could be declared final 110
Local variable 'record' could be declared final 112
Local variable 'span1OnlyLetters' could be declared final 124
Local variable 'span2OnlyLetters' could be declared final 125
Local variable 'id' could be declared final 134
Local variable 'record' could be declared final 148
Local variable 'type' could be declared final 149
Position literals first in String comparisons 153
Position literals first in String comparisons 153
Local variable 'label' could be declared final 155
Position literals first in String comparisons 157
Local variable 'agent' could be declared final 164
Local variable 'target' could be declared final 165
Local variable 'attitudeSpan' could be declared final 167
Avoid instantiating new objects inside loops 167
Local variable 'targetSpan' could be declared final 168
Avoid instantiating new objects inside loops 168
Avoid instantiating new objects inside loops 169
Local variable 'sourceSpan' could be declared final 169
Local variable 'opinion' could be declared final 173
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 178
Deeply nested if..then statements are hard to read 178–184
Local variable 'opinionHolder' could be declared final 179
Local variable 'attitude' could be declared final 180
Deeply nested if..then statements are hard to read 189–195
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 189
Local variable 'opinionTarget' could be declared final 190
Local variable 'attitude' could be declared final 191
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 199

pikes-resources - eu/fbk/dkm/pikes/resources/goodbadfor/CorpusLoader.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. 32–261
The class 'CorpusLoader' has a Modified Cyclomatic Complexity of 7 (Highest = 19). 32–261
The class 'CorpusLoader' has a Standard Cyclomatic Complexity of 7 (Highest = 19). 32–261
The class 'CorpusLoader' has a Cyclomatic Complexity of 8 (Highest = 23). 32–261
Parameter 'expectedLength' is not assigned and could be declared final 40
Parameter 'text' is not assigned and could be declared final 40
Parameter 'record' is not assigned and could be declared final 40
Parameter 'span1' is not assigned and could be declared final 40
Avoid reassigning parameters such as 'span1' 44
Parameter 'expectedLength' is not assigned and could be declared final 44
Parameter 'trim' is not assigned and could be declared final 44
Parameter 'text' is not assigned and could be declared final 44
Parameter 'record' is not assigned and could be declared final 44
Local variable 'maxTo' could be declared final 45
Local variable 'start' could be declared final 47
Parameter 'file' is not assigned and could be declared final 67
Local variable 'dbFactory' could be declared final 68
Local variable 'dBuilder' could be declared final 69
Local variable 'doc' could be declared final 70
Local variable 'nList' could be declared final 71
Local variable 'nNode' could be declared final 74
Avoid using a branching statement as the last in a loop. 75
Consider using varargs for methods or constructors which take an array the last parameter. 81
The method main() has an NPath complexity of 49169 81–258
The method 'main' has a Standard Cyclomatic Complexity of 19. 81–258
The method 'main' has a Cyclomatic Complexity of 23. 81–258
Avoid really long methods. 81–258
The method 'main' has a Modified Cyclomatic Complexity of 19. 81–258
Local variable 'documentsFolder' could be declared final 94
Local variable 'annotationsFolder' could be declared final 95
Local variable 'nafFolder' could be declared final 96
Local variable 'testFile' could be declared final 103
Local variable 'file' could be declared final 125
Local variable 'fileBaseName' could be declared final 126
Local variable 'nafFileName' could be declared final 131
Avoid instantiating new objects inside loops 132
Local variable 'nafFile' could be declared final 132
Local variable 'mpqaFile' could be declared final 133
Avoid instantiating new objects inside loops 133
Local variable 'documentURI' could be declared final 146
Local variable 'originalTextLength' could be declared final 151
Avoid instantiating new objects inside loops 155
Local variable 'records' could be declared final 155
Local variable 'record' could be declared final 156
Local variable 'record' could be declared final 160
Local variable 'span2' could be declared final 162
Local variable 'expectedLength' could be declared final 171
Local variable 'span1OnlyLetters' could be declared final 173
Local variable 'span2OnlyLetters' could be declared final 174
Deeply nested if..then statements are hard to read 181–186
Local variable 'offset' could be declared final 182
Avoid instantiating new objects inside loops 183
Local variable 'offset' could be declared final 207
Avoid instantiating new objects inside loops 209
Local variable 'diff' could be declared final 219
Avoid instantiating new objects inside loops 226
Avoid instantiating new objects inside loops 229

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/CorpusAnnotator.java

Violation Line
The class 'CorpusAnnotator' has a Cyclomatic Complexity of 12 (Highest = 35). 25–280
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. 25–280
The class 'CorpusAnnotator' has a Modified Cyclomatic Complexity of 10 (Highest = 32). 25–280
The class 'CorpusAnnotator' has a Standard Cyclomatic Complexity of 10 (Highest = 32). 25–280
Parameter 'terms' is not assigned and could be declared final 41
Parameter 'interval' is not assigned and could be declared final 41
Local variable 'start' could be declared final 46
Local variable 'end' could be declared final 47
Parameter 'terms' is not assigned and could be declared final 53
Parameter 'interval' is not assigned and could be declared final 53
Local variable 'matcher' could be declared final 58
Local variable 'start' could be declared final 63
Local variable 'end' could be declared final 64
Parameter 'terms' is not assigned and could be declared final 70
Parameter 'start' is not assigned and could be declared final 70
Parameter 'end' is not assigned and could be declared final 70
Local variable 'ret' could be declared final 71
Local variable 't' could be declared final 73
Local variable 'tStart' could be declared final 74
Local variable 'tEnd' could be declared final 75
Useless parentheses. 76
Useless parentheses. 76
The method 'main' has a Modified Cyclomatic Complexity of 32. 87–279
The method main() has an NPath complexity of 68224256 87–279
The method main() has an NCSS line count of 111 87–279
Consider using varargs for methods or constructors which take an array the last parameter. 87
Avoid really long methods. 87–279
The method 'main' has a Cyclomatic Complexity of 35. 87–279
Parameter 'args' is not assigned and could be declared final 87
The method 'main' has a Standard Cyclomatic Complexity of 32. 87–279
Local variable 'mainFolder' could be declared final 128
Local variable 'testFile' could be declared final 129
Local variable 'opinionsByDocument' could be declared final 149
Local variable 'reader' could be declared final 160
Local variable 'parts' could be declared final 163
Local variable 'properties' could be declared final 168
Avoid instantiating new objects inside loops 168
Local variable 's' could be declared final 169
Local variable 'matcher' could be declared final 170
Local variable 'document' could be declared final 176
Avoid instantiating new objects inside loops 183
Local variable 'fileIterator' could be declared final 190
Local variable 'file' could be declared final 193
Local variable 'fileBaseName' could be declared final 195
Local variable 'document' could be declared final 201
Local variable 'opinions' could be declared final 204
Local variable 'opinion' could be declared final 206
Local variable 'terms' could be declared final 217
Local variable 'documentID' could be declared final 219
Local variable 'map' could be declared final 220
Local variable 'properties' could be declared final 225
Avoid instantiating new objects inside loops 228
Local variable 'sourceSpan' could be declared final 228
Local variable 'sourceLocal' could be declared final 229
Local variable 'parts' could be declared final 235
Local variable 'part' could be declared final 236
Avoid instantiating new objects inside loops 242
Local variable 'targetSpan' could be declared final 242
Local variable 'attitudeSpan' could be declared final 246
Avoid instantiating new objects inside loops 246
Local variable 'opinion' could be declared final 249
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 253
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 256
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 259

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/CorpusPreprocessor.java

Violation Line
Possible God class (WMC=117, ATFD=106, TCC=0.009523809523809525) 1–721
The class 'CorpusPreprocessor' has a Standard Cyclomatic Complexity of 7 (Highest = 46). 26–721
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. 26–721
The class 'CorpusPreprocessor' has a Cyclomatic Complexity of 7 (Highest = 47). 26–721
The class 'CorpusPreprocessor' has a Modified Cyclomatic Complexity of 7 (Highest = 46). 26–721
Avoid unused private fields such as 'MULTI_FIELDS'. 46
Consider using varargs for methods or constructors which take an array the last parameter. 48
Local variable 'checkOneDoc' could be declared final 91
The method emitAnnotations() has an NPath complexity of 47866415 204–485
The method 'emitAnnotations' has a Modified Cyclomatic Complexity of 46. 204–485
The method 'emitAnnotations' has a Cyclomatic Complexity of 47. 204–485
Avoid really long methods. 204–485
The method 'emitAnnotations' has a Standard Cyclomatic Complexity of 46. 204–485
The method emitAnnotations() has an NCSS line count of 180 204–485
Local variable 'agentRecords' could be declared final 209
Local variable 'lastRecords' could be declared final 210
Local variable 'sourceString' could be declared final 213
Local variable 'sources' could be declared final 215
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 216
Local variable 'last' could be declared final 217
Local variable 'id' could be declared final 222
Local variable 'id' could be declared final 236
Local variable 'sentenceSpan' could be declared final 259
Local variable 'value' could be declared final 292
Local variable 'expression' could be declared final 309
Avoid instantiating new objects inside loops 311
Local variable 'span' could be declared final 311
Local variable 'id' could be declared final 367
Local variable 'sentenceSpan' could be declared final 376
Local variable 'sources' could be declared final 382
Local variable 'expression' could be declared final 391
Avoid instantiating new objects inside loops 393
Local variable 'span' could be declared final 393
Local variable 'id' could be declared final 403
Local variable 'sentenceSpan' could be declared final 412
Local variable 'value' could be declared final 418
Local variable 'sources' could be declared final 425
Local variable 'expression' could be declared final 434
Avoid instantiating new objects inside loops 436
Local variable 'span' could be declared final 436
Local variable 'id' could be declared final 447
Local variable 'sentenceSpan' could be declared final 456
Local variable 'value' could be declared final 462
Local variable 'sources' could be declared final 469
Local variable 'expression' could be declared final 478
Local variable 'span' could be declared final 480
Avoid instantiating new objects inside loops 480
Parameter 'text' is not assigned and could be declared final 487
Parameter 'fields' is not assigned and could be declared final 487
Parameter 'record' is not assigned and could be declared final 487
Parameter 'sentences' is not assigned and could be declared final 487
Parameter 'documentURI' is not assigned and could be declared final 487
Local variable 'okSpan' could be declared final 490
Parameter 'nestedSource' is not assigned and could be declared final 512
Parameter 'agentRecords' is not assigned and could be declared final 512
Parameter 'lastRecords' is not assigned and could be declared final 513
Parameter 'sentenceSpan' is not assigned and could be declared final 513
Parameter 'documentURI' is not assigned and could be declared final 514
Parameter 'fields' is not assigned and could be declared final 514
Parameter 'text' is not assigned and could be declared final 514
Parameter 'nestedSource' is not assigned and could be declared final 518
Parameter 'agentRecords' is not assigned and could be declared final 518
Parameter 'lastRecords' is not assigned and could be declared final 519
Parameter 'sentenceSpan' is not assigned and could be declared final 519
Parameter 'fields' is not assigned and could be declared final 520
Parameter 'documentURI' is not assigned and could be declared final 520
Parameter 'text' is not assigned and could be declared final 520
Parameter 'highlights' is not assigned and could be declared final 521
Parameter 'otherSources' is not assigned and could be declared final 522
Local variable 'sources' could be declared final 524
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 526
Local variable 'last' could be declared final 527
Local variable 'record' could be declared final 530
Parameter 'record' is not assigned and could be declared final 538
Parameter 'sentenceSpan' is not assigned and could be declared final 538
Avoid unused private methods such as 'addSourceFromRecord(Record,Span,Multimap,String,String)'. 538–539
Parameter 'fields' is not assigned and could be declared final 538
Parameter 'documentURI' is not assigned and could be declared final 539
Parameter 'text' is not assigned and could be declared final 539
Parameter 'fields' is not assigned and could be declared final 543
Parameter 'sentenceSpan' is not assigned and could be declared final 543
Parameter 'record' is not assigned and could be declared final 543
Parameter 'documentURI' is not assigned and could be declared final 544
Parameter 'text' is not assigned and could be declared final 544
Parameter 'highlights' is not assigned and could be declared final 545
Parameter 'otherSources' is not assigned and could be declared final 546
Parameter 'sourceString' is not assigned and could be declared final 577
Local variable 'ret' could be declared final 578
Local variable 'parts' could be declared final 580
Parameter 'documentURI' is not assigned and could be declared final 591
Parameter 'fields' is not assigned and could be declared final 591
Local variable 'ret' could be declared final 592
Avoid appending characters as strings in StringBuffer.append. 603
Avoid appending characters as strings in StringBuffer.append. 603
Avoid appending characters as strings in StringBuffer.append. 607
Avoid reassigning parameters such as 'text' 632
The method 'fixText' has a Cyclomatic Complexity of 21. 632–711
Avoid reassigning parameters such as 'text' 632
The method 'fixText' has a Modified Cyclomatic Complexity of 18. 632–711
Avoid reassigning parameters such as 'text' 632
The method 'fixText' has a Standard Cyclomatic Complexity of 18. 632–711
Avoid reassigning parameters such as 'text' 632
The method fixText() has an NPath complexity of 5856 632–711
Avoid reassigning parameters such as 'text' 632

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/JohanssonAnnotator.java

Violation Line
Possible God class (WMC=61, ATFD=77, TCC=0.0) 1–407
The class 'JohanssonAnnotator' has a Standard Cyclomatic Complexity of 20 (Highest = 51). 23–407
The class 'JohanssonAnnotator' has a Modified Cyclomatic Complexity of 20 (Highest = 51). 23–407
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. 23–407
The class 'JohanssonAnnotator' has a Cyclomatic Complexity of 21 (Highest = 54). 23–407
Parameter 'entity' is not assigned and could be declared final 39
Parameter 'document' is not assigned and could be declared final 39
Local variable 'returnSpan' could be declared final 41
Local variable 'referredEntity' could be declared final 44
Local variable 'termID' could be declared final 45
Local variable 'term' could be declared final 46
Parameter 'termSpan' is not assigned and could be declared final 55
Local variable 'sentences' could be declared final 56
Local variable 'term' could be declared final 57
Local variable 'sentence' could be declared final 65
Avoid using a branching statement as the last in a loop. 66
The method 'main' has a Modified Cyclomatic Complexity of 51. 72–406
The method 'main' has a Standard Cyclomatic Complexity of 51. 72–406
Parameter 'args' is not assigned and could be declared final 72
Avoid really long methods. 72–406
The method 'main' has a Cyclomatic Complexity of 54. 72–406
Consider using varargs for methods or constructors which take an array the last parameter. 72
The method main() has an NPath complexity of 33203834 72–406
The method main() has an NCSS line count of 205 72–406
Local variable 'lkFolder' could be declared final 88
Local variable 'outputFolder' could be declared final 89
Local variable 'r' could be declared final 91
Local variable 'annotatedText' could be declared final 93
Local variable 'agentsLayer' could be declared final 94
Local variable 'fileName' could be declared final 95
Avoid instantiating new objects inside loops 96
Local variable 'nafFile' could be declared final 96
Local variable 'document' could be declared final 104
Local variable 'hiddenAgents' could be declared final 106
Avoid instantiating new objects inside loops 106
Local variable 'agents' could be declared final 108
Local variable 'entity' could be declared final 109
Local variable 'expressionNode' could be declared final 110
Local variable 'implicit' could be declared final 112
Local variable 'writer' could be declared final 118
Local variable 'agentSpan' could be declared final 124
Local variable 'ns' could be declared final 133
Local variable 'ids' could be declared final 135
Local variable 'last' could be declared final 136
Local variable 'targetsLayer' could be declared final 141
Local variable 'targets' could be declared final 142
Avoid instantiating new objects inside loops 142
Local variable 'entity' could be declared final 143
Local variable 'agentSpan' could be declared final 144
Local variable 'attLayer' could be declared final 162
Local variable 'attitudes' could be declared final 163
Avoid instantiating new objects inside loops 163
Local variable 'entity' could be declared final 164
Local variable 'thisAttitude' could be declared final 165
Avoid instantiating new objects inside loops 165
Local variable 'expressionNode' could be declared final 166
Local variable 'expressionSpan' could be declared final 167
Local variable 'targetSpan' could be declared final 175
Local variable 'dseLayer' could be declared final 184
Local variable 'entity' could be declared final 185
Local variable 'expressionSpan' could be declared final 187
Local variable 'sentence' could be declared final 196
Local variable 'opinion' could be declared final 202
Local variable 'opinionExpression' could be declared final 205
Local variable 'expressionNode' could be declared final 206
Local variable 'holderString' could be declared final 210
Local variable 'parts' could be declared final 212
Local variable 'agentID' could be declared final 216
Local variable 'spans' could be declared final 223
Local variable 'termSpan' could be declared final 224
Local variable 'agentSentence' could be declared final 225
Avoid using a branching statement as the last in a loop. 236
Avoid unused local variables such as 'opinionHolder'. 242
Local variable 'opinionHolder' could be declared final 242
Local variable 'target' could be declared final 249
Local variable 'attitude' could be declared final 251
Local variable 'type' could be declared final 252
Local variable 'attitudeExpression' could be declared final 254
Deeply nested if..then statements are hard to read 259–261
Local variable 'opinionHolder' could be declared final 260
Avoid unused local variables such as 'opinionHolder'. 260
Deeply nested if..then statements are hard to read 263–265
Avoid unused local variables such as 'opinionTarget'. 264
Local variable 'opinionTarget' could be declared final 264
Local variable 'eseLayer' could be declared final 271
Local variable 'entity' could be declared final 272
Local variable 'expressionSpan' could be declared final 274
Local variable 'sentence' could be declared final 282
Local variable 'opinion' could be declared final 288
Local variable 'opinionExpression' could be declared final 291
Local variable 'expressionNode' could be declared final 292
Local variable 'holderString' could be declared final 296
Local variable 'parts' could be declared final 298
Local variable 'agentID' could be declared final 302
Local variable 'spans' could be declared final 309
Local variable 'termSpan' could be declared final 310
Local variable 'agentSentence' could be declared final 311
Avoid using a branching statement as the last in a loop. 322
Local variable 'opinionHolder' could be declared final 328
Avoid unused local variables such as 'opinionHolder'. 328
Local variable 'oseLayer' could be declared final 332
Local variable 'entity' could be declared final 333
Local variable 'expressionSpan' could be declared final 335
Local variable 'sentence' could be declared final 343
Local variable 'opinion' could be declared final 349
Local variable 'opinionExpression' could be declared final 352
Local variable 'expressionNode' could be declared final 353
Local variable 'holderString' could be declared final 355
Local variable 'parts' could be declared final 357
Local variable 'agentID' could be declared final 361
Local variable 'spans' could be declared final 368
Local variable 'termSpan' could be declared final 369
Local variable 'agentSentence' could be declared final 370
Avoid using a branching statement as the last in a loop. 381
Local variable 'opinionHolder' could be declared final 387
Avoid unused local variables such as 'opinionHolder'. 387

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/JohanssonPreprocessor.java

Violation Line
The class 'JohanssonPreprocessor' has a Cyclomatic Complexity of 18 (Highest = 17). 25–210
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. 25–210
The class 'JohanssonPreprocessor' has a Standard Cyclomatic Complexity of 17 (Highest = 16). 25–210
The class 'JohanssonPreprocessor' has a Modified Cyclomatic Complexity of 17 (Highest = 16). 25–210
Private field 'end' could be made final; it is only initialized in the declaration or constructor. 31
Private field 'id' could be made final; it is only initialized in the declaration or constructor. 31
Private field 'start' could be made final; it is only initialized in the declaration or constructor. 31
Private field 'value' could be made final; it is only initialized in the declaration or constructor. 32
Parameter 'id' is not assigned and could be declared final 34
Parameter 'end' is not assigned and could be declared final 34
Parameter 'value' is not assigned and could be declared final 34
Parameter 'start' is not assigned and could be declared final 34
Avoid really long methods. 68–208
The method 'main' has a Modified Cyclomatic Complexity of 16. 68–208
The method 'main' has a Cyclomatic Complexity of 17. 68–208
Consider using varargs for methods or constructors which take an array the last parameter. 68
The method main() has an NPath complexity of 2189 68–208
The method 'main' has a Standard Cyclomatic Complexity of 16. 68–208
Local variable 'checkOneDoc' could be declared final 98
Local variable 'dbFactory' could be declared final 100
Local variable 'dBuilder' could be declared final 101
Local variable 'f' could be declared final 103
Local variable 'doc' could be declared final 117
Local variable 'nList' could be declared final 119
Avoid instantiating new objects inside loops 121
Local variable 'spans' could be declared final 121
Local variable 'nNode' could be declared final 124
Local variable 'eElement' could be declared final 129
Local variable 'provides' could be declared final 131
Avoid instantiating new objects inside loops 133
Local variable 'eS' could be declared final 136
Local variable 'span' could be declared final 138
Local variable 'eSpan' could be declared final 143
Local variable 'id' could be declared final 145
Local variable 'start' could be declared final 146
Local variable 'end' could be declared final 147
Local variable 'value' could be declared final 148
Avoid instantiating new objects inside loops 150
Local variable 's' could be declared final 150
Local variable 'buffer' could be declared final 155
Avoid instantiating new objects inside loops 155
Local variable 'span' could be declared final 158
Avoid appending characters as strings in StringBuffer.append. 166
Avoid appending characters as strings in StringBuffer.append. 168
Avoid appending characters as strings in StringBuffer.append. 175
Avoid appending characters as strings in StringBuffer.append. 178
Local variable 'text' could be declared final 181
Local variable 'nafFile' could be declared final 183
Avoid instantiating new objects inside loops 183
Avoid instantiating new objects inside loops 185
Avoid instantiating new objects inside loops 190

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/Record.java

Violation Line
The class 'Record' has a Modified Cyclomatic Complexity of 3 (Highest = 13). 21–158
The class 'Record' has a Cyclomatic Complexity of 3 (Highest = 16). 21–158
The class 'Record' has a Standard Cyclomatic Complexity of 3 (Highest = 13). 21–158
Avoid unused private fields such as 'LOGGER'. 35
The constructor 'Record' has a Modified Cyclomatic Complexity of 13. 37–88
The constructor 'Record' has a Standard Cyclomatic Complexity of 13. 37–88
The constructor 'Record' has a Cyclomatic Complexity of 16. 37–88
String.indexOf(char) is faster than String.indexOf(String). 78

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/RecordSet.java

Violation Line
Avoid unused private fields such as 'LOGGER'. 23
This call to String.startsWith can be rewritten using String.charAt(0) 31
Avoid instantiating new objects inside loops 32
Consider using varargs for methods or constructors which take an array the last parameter. 90
Parameter 'args' is not assigned and could be declared final 90
Local variable 'record' could be declared final 101
Local variable 'attr' could be declared final 104

pikes-resources - eu/fbk/dkm/pikes/resources/mpqa/Span.java

Violation Line
The class 'Span' has a Standard Cyclomatic Complexity of 3 (Highest = 11). 14–174
The class 'Span' has a Cyclomatic Complexity of 3 (Highest = 11). 14–174
The class 'Span' has a Modified Cyclomatic Complexity of 3 (Highest = 11). 14–174
Parameter 'escapeHTML' is not assigned and could be declared final 38
The method 'align' has a Cyclomatic Complexity of 10. 47–67
The method align() has an NPath complexity of 486 47–67
The method 'split' has a Cyclomatic Complexity of 11. 93–141
The method 'split' has a Standard Cyclomatic Complexity of 11. 93–141
The method 'split' has a Modified Cyclomatic Complexity of 11. 93–141
Avoid instantiating new objects inside loops 106
Avoid instantiating new objects inside loops 110
Avoid instantiating new objects inside loops 111
Avoid instantiating new objects inside loops 114
Avoid instantiating new objects inside loops 132

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/OntoNotesLoader.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. 24–58
Parameter 'file' is not assigned and could be declared final 26
Parameter 'thisClass' is not assigned and could be declared final 26
Local variable 'jaxbContext' could be declared final 27
Local variable 'spf' could be declared final 29
Local variable 'xmlReader' could be declared final 35
Local variable 'inputSource' could be declared final 36
Local variable 'source' could be declared final 37
Local variable 'jaxbUnmarshaller' could be declared final 39
Parameter 'args' is not assigned and could be declared final 44
Consider using varargs for methods or constructors which take an array the last parameter. 44
Local variable 'file' could be declared final 45
Local variable 'frameset' could be declared final 47
Local variable 'noteOrPredicate' could be declared final 48
Local variable 'note' could be declared final 50

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/VerbNetStatisticsExtractor.java

Violation Line
Possible God class (WMC=49, ATFD=23, TCC=0.10714285714285714) 1–253
The class 'VerbNetStatisticsExtractor' has a Cyclomatic Complexity of 7 (Highest = 35). 28–253
The class 'VerbNetStatisticsExtractor' has a Modified Cyclomatic Complexity of 7 (Highest = 31). 28–253
The class 'VerbNetStatisticsExtractor' has a Standard Cyclomatic Complexity of 7 (Highest = 31). 28–253
Avoid using redundant field initializer for 'senseDir' 30
Avoid using redundant field initializer for 'ontonotesDir' 30
Document empty constructor 34–36
Parameter 'args' is not assigned and could be declared final 38
Consider using varargs for methods or constructors which take an array the last parameter. 38
Local variable 'statisticsExtractor' could be declared final 52
Local variable 'writer' could be declared final 60
Local variable 'key' could be declared final 61
Local variable 'key' could be declared final 64
Parameter 'onDir' is not assigned and could be declared final 74
Parameter 'fileName' is not assigned and could be declared final 87
Local variable 'lines' could be declared final 91
This call to String.startsWith can be rewritten using String.charAt(0) 97
Local variable 'parts' could be declared final 101
The method 'loadFrequencies' has a Standard Cyclomatic Complexity of 31. 116–251
The method 'loadFrequencies' has a Cyclomatic Complexity of 35. 116–251
Avoid really long methods. 116–251
The method 'loadFrequencies' has a Modified Cyclomatic Complexity of 31. 116–251
The method loadFrequencies() has an NPath complexity of 1995840 116–251
Local variable 'vnMappings' could be declared final 122
Local variable 'fnMappings' could be declared final 123
Local variable 'handler' could be declared final 127–189
Avoid using redundant field initializer for 'senseID' 129
Avoid using redundant field initializer for 'lemma' 130
Avoid using redundant field initializer for 'inVn' 131
Avoid using redundant field initializer for 'inFn' 132
Parameter 'attributes' is not assigned and could be declared final 134
Parameter 'uri' is not assigned and could be declared final 134
Parameter 'qName' is not assigned and could be declared final 134
Parameter 'localName' is not assigned and could be declared final 134
Position literals first in String comparisons 135
Position literals first in String comparisons 138
Position literals first in String comparisons 141
Position literals first in String comparisons 144
Parameter 'localName' is not assigned and could be declared final 149
Parameter 'uri' is not assigned and could be declared final 149
Parameter 'qName' is not assigned and could be declared final 149
Position literals first in String comparisons 150
Position literals first in String comparisons 153
Parameter 'start' is not assigned and could be declared final 158
Parameter 'length' is not assigned and could be declared final 158
Parameter 'ch' is not assigned and could be declared final 158
The method 'characters' has a Cyclomatic Complexity of 11. 158–187
String.trim().length()==0 is an inefficient way to validate an empty String. 162
Position literals first in String comparisons 163
Position literals first in String comparisons 164
Deeply nested if..then statements are hard to read 172–177
Deeply nested if..then statements are hard to read 178–183
Local variable 'spf' could be declared final 191
Local variable 'f' could be declared final 197
Local variable 'xml' could be declared final 205
Local variable 'saxParser' could be declared final 207
Local variable 'is' could be declared final 209
Avoid instantiating new objects inside loops 209
Local variable 'f' could be declared final 218
Local variable 'lines' could be declared final 227
Local variable 'parts' could be declared final 234
Local variable 'lemma' could be declared final 235
Local variable 'sense' could be declared final 236
Local variable 'key' could be declared final 238
Local variable 'vn' could be declared final 240
Local variable 'fn' could be declared final 245

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Arg.java

Violation Line
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 'value' is not assigned and could be declared final 55
Parameter 'value' is not assigned and could be declared final 79
Parameter 'value' is not assigned and could be declared final 103

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Example.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 66
Parameter 'value' is not assigned and could be declared final 90
Parameter 'value' is not assigned and could be declared final 114

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Inflection.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 26
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 29
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 32
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 35
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 38
Parameter 'value' is not assigned and could be declared final 64
Parameter 'value' is not assigned and could be declared final 92
Parameter 'value' is not assigned and could be declared final 120
Parameter 'value' is not assigned and could be declared final 148
Parameter 'value' is not assigned and could be declared final 176

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Note.java

Violation Line
Parameter 'value' is not assigned and could be declared final 47

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Predicate.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Parameter 'value' is not assigned and could be declared final 57

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Rel.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
Parameter 'value' is not assigned and could be declared final 52
Parameter 'value' is not assigned and could be declared final 76

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Role.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 39
Parameter 'value' is not assigned and could be declared final 62
Parameter 'value' is not assigned and could be declared final 86
Parameter 'value' is not assigned and could be declared final 110
Parameter 'value' is not assigned and could be declared final 134

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Roleset.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 32
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 35
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 38
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 41
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 44
Parameter 'value' is not assigned and could be declared final 72
Parameter 'value' is not assigned and could be declared final 96
Parameter 'value' is not assigned and could be declared final 120
Parameter 'value' is not assigned and could be declared final 144
Parameter 'value' is not assigned and could be declared final 168

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Text.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
Parameter 'value' is not assigned and could be declared final 52
Parameter 'value' is not assigned and could be declared final 76

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/frames/Vnrole.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 27
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Parameter 'value' is not assigned and could be declared final 52
Parameter 'value' is not assigned and could be declared final 76

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/Inventory.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 32
Parameter 'value' is not assigned and could be declared final 59
Parameter 'value' is not assigned and could be declared final 83
Parameter 'value' is not assigned and could be declared final 136

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/Mappings.java

Violation Line
Parameter 'value' is not assigned and could be declared final 62
Parameter 'value' is not assigned and could be declared final 115
Parameter 'value' is not assigned and could be declared final 139
Parameter 'value' is not assigned and could be declared final 163
Parameter 'value' is not assigned and could be declared final 187

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/SENSEMETA.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 26
Parameter 'value' is not assigned and could be declared final 48

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/Sense.java

Violation Line
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. 34
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 37
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 40
Parameter 'value' is not assigned and could be declared final 69
Parameter 'value' is not assigned and could be declared final 93
Parameter 'value' is not assigned and could be declared final 117
Parameter 'value' is not assigned and could be declared final 141
Parameter 'value' is not assigned and could be declared final 165
Parameter 'value' is not assigned and could be declared final 189
Parameter 'value' is not assigned and could be declared final 213
Parameter 'value' is not assigned and could be declared final 237

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/WORDMETA.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 26
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 29
Parameter 'value' is not assigned and could be declared final 51
Parameter 'value' is not assigned and could be declared final 75

pikes-resources - eu/fbk/dkm/pikes/resources/ontonotes/senses/Wn.java

Violation Line
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 'value' is not assigned and could be declared final 55
Parameter 'value' is not assigned and could be declared final 79
Parameter 'value' is not assigned and could be declared final 103

pikes-resources - eu/fbk/dkm/pikes/resources/reader/DataElementNode.java

Violation Line
Parameter 'name' is not assigned and could be declared final 15
Position literals first in String comparisons 20
Local variable 'out' could be declared final 25
Local variable 'n' could be declared final 27
Parameter 'key' is not assigned and could be declared final 36
Position literals first in String comparisons 37
Local variable 'n' could be declared final 43
Parameter 'key' is not assigned and could be declared final 51
Position literals first in String comparisons 52
Local variable 'n' could be declared final 58

pikes-resources - eu/fbk/dkm/pikes/resources/reader/DataNode.java

Violation Line
No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 6–7
This abstract class does not have any abstract methods 6–7

pikes-resources - eu/fbk/dkm/pikes/resources/reader/DataTextNode.java

Violation Line
Parameter 'text' is not assigned and could be declared final 8

pikes-resources - eu/fbk/dkm/pikes/resources/reader/LKAnnotatedText.java

Violation Line
Parameter 'provides' is not assigned and could be declared final 13
Avoid using for statements without curly braces 14–16
Local variable 'l' could be declared final 14
Avoid using if statements without curly braces 15–16

pikes-resources - eu/fbk/dkm/pikes/resources/reader/LKAnnotationEntity.java

Violation Line
Avoid using redundant field initializer for 'data' 16

pikes-resources - eu/fbk/dkm/pikes/resources/reader/LKAnnotationLayer.java

Violation Line
Avoid using redundant field initializer for 'provides' 11
Avoid using redundant field initializer for 'scopeFile' 12
Avoid using redundant field initializer for 'onFiles' 13

pikes-resources - eu/fbk/dkm/pikes/resources/reader/LKCollectionReader.java

Violation Line
Possible God class (WMC=144, ATFD=64, TCC=0.0457516339869281) 2–789
The class 'LKCollectionReader' has a Cyclomatic Complexity of 5 (Highest = 17). 17–789
The class 'LKCollectionReader' has a Modified Cyclomatic Complexity of 5 (Highest = 15). 17–789
The class 'LKCollectionReader' has a Standard Cyclomatic Complexity of 5 (Highest = 15). 17–789
Private field 'textFiles' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'annFileNames' could be made final; it is only initialized in the declaration or constructor. 22
Avoid using redundant field initializer for 'workDir' 29
Avoid unused private fields such as 'usedAnnotations'. 31
Parameter 'dir' is not assigned and could be declared final 33
Parameter 'dir' is not assigned and could be declared final 37
Parameter 'fileList' is not assigned and could be declared final 37
Parameter 'dir' is not assigned and could be declared final 41
Parameter 'usedAnnotations' is not assigned and could be declared final 41
Parameter 'fileList' is not assigned and could be declared final 42
Parameter 'dir' is not assigned and could be declared final 62
The method 'makeFileList' has a Cyclomatic Complexity of 10. 62–110
Local variable 'df' could be declared final 63
Local variable 'list' could be declared final 68
Local variable 'f' could be declared final 69
Local variable 'br' could be declared final 72
Local variable 'm' could be declared final 88
Avoid instantiating new objects inside loops 94
The method makeFileList() has an NPath complexity of 570 112–180
Parameter 'dir' is not assigned and could be declared final 112
The method 'makeFileList' has a Cyclomatic Complexity of 17. 112–180
The method 'makeFileList' has a Modified Cyclomatic Complexity of 15. 112–180
Parameter 'listedFiles' is not assigned and could be declared final 112
The method 'makeFileList' has a Standard Cyclomatic Complexity of 15. 112–180
Avoid declaring a variable if it is unreferenced before a possible exit point. 113
Local variable 'copy' could be declared final 113
Local variable 'df' could be declared final 114
Local variable 'iter' could be declared final 119
Prefer StringBuffer over += for concatenating strings 126
Avoid instantiating new objects inside loops 128
Avoid instantiating new objects inside loops 131
Local variable 'fn2' could be declared final 134
Avoid instantiating new objects inside loops 135
Local variable 'list' could be declared final 146
Local variable 'f' could be declared final 147
Avoid instantiating new objects inside loops 148
Local variable 'sc' could be declared final 148
Local variable 'line' could be declared final 151
Local variable 'line2' could be declared final 160
Local variable 'm' could be declared final 161
Deeply nested if..then statements are hard to read 166–169
Avoid instantiating new objects inside loops 167
Useless parentheses. 183
Local variable 'file' could be declared final 194
Local variable 'reader' could be declared final 200
Local variable 'is' could be declared final 204
Local variable 'text' could be declared final 208
Local variable 'layers' could be declared final 213–215
Local variable 'out' could be declared final 219
Parameter 'ls' is not assigned and could be declared final 231
Parameter 'provides' is not assigned and could be declared final 231
Local variable 'l' could be declared final 232
Local variable 'saxParserFactory' could be declared final 245–246
Avoid using redundant field initializer for 'insideText' 259
Private field 'sb' could be made final; it is only initialized in the declaration or constructor. 260
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 260
Avoid using redundant field initializer for 'insideTag' 263
Avoid using redundant field initializer for 'tag' 264
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 264
Avoid using redundant field initializer for 'currentTagName' 265
Parameter 'localname' is not assigned and could be declared final 267
Parameter 'namespace' is not assigned and could be declared final 267
Parameter 'attributes' is not assigned and could be declared final 268
Parameter 'type' is not assigned and could be declared final 268
Position literals first in String comparisons 269
Local variable 'name' could be declared final 270
Position literals first in String comparisons 278
Avoid empty if statements 282–284
Parameter 'namespace' is not assigned and could be declared final 291
Parameter 'localname' is not assigned and could be declared final 291
Parameter 'type' is not assigned and could be declared final 292
Position literals first in String comparisons 293
Position literals first in String comparisons 296
Parameter 'start' is not assigned and could be declared final 302
Parameter 'ch' is not assigned and could be declared final 302
Parameter 'len' is not assigned and could be declared final 302
Local variable 's' could be declared final 304
Local variable 's' could be declared final 308
Parameter 'baseText' is not assigned and could be declared final 323
Parameter 'files' is not assigned and could be declared final 323
Local variable 'layerMap' could be declared final 328
Local variable 'sorted' could be declared final 330
Local variable 'out' could be declared final 332
Local variable 'file' could be declared final 338
Local variable 'reader' could be declared final 341
Local variable 'acb' could be declared final 342–343
Avoid instantiating new objects inside loops 343
Local variable 'fullFileName' could be declared final 345
Avoid instantiating new objects inside loops 346
Local variable 'is' could be declared final 346
The class 'LKAnnotationParserCallback' has a Standard Cyclomatic Complexity of 8 (Highest = 36). 360–639
The class 'LKAnnotationParserCallback' has a Modified Cyclomatic Complexity of 8 (Highest = 36). 360–639
The class 'LKAnnotationParserCallback' has a Cyclomatic Complexity of 9 (Highest = 40). 360–639
Private field 'baseTextFile' could be made final; it is only initialized in the declaration or constructor. 363
Private field 'layerMap' could be made final; it is only initialized in the declaration or constructor. 365
Avoid using redundant field initializer for 'onTextFile' 369
Avoid using redundant field initializer for 'currentScope' 371
Avoid using redundant field initializer for 'insideTag' 373
Avoid using redundant field initializer for 'insideEntity' 374
Avoid using redundant field initializer for 'tag' 375
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 375
Avoid using redundant field initializer for 'currentTagName' 376
Parameter 'baseTextFile' is not assigned and could be declared final 382
Parameter 'layerMap' is not assigned and could be declared final 383
The method 'startElement' has a Standard Cyclomatic Complexity of 36. 388–555
The method startElement() has an NCSS line count of 120 388–555
The method startElement() has an NPath complexity of 95488 388–555
Parameter 'localname' is not assigned and could be declared final 388
Avoid really long methods. 388–555
The method 'startElement' has a Cyclomatic Complexity of 40. 388–555
Parameter 'namespace' is not assigned and could be declared final 388
The method 'startElement' has a Modified Cyclomatic Complexity of 36. 388–555
Parameter 'type' is not assigned and could be declared final 389
Parameter 'attributes' is not assigned and could be declared final 389
Local variable 'parent' could be declared final 392
Local variable 'n' could be declared final 393
Local variable 'k' could be declared final 395
Local variable 'v' could be declared final 396
Position literals first in String comparisons 402
Local variable 'e' could be declared final 403
Avoid declaring a variable if it is unreferenced before a possible exit point. 403
Local variable 'on' could be declared final 405
Local variable 'start' could be declared final 406
Local variable 'end' could be declared final 407
Local variable 'from' could be declared final 408
Local variable 'to' could be declared final 409
This call to String.startsWith can be rewritten using String.charAt(0) 450
This call to String.startsWith can be rewritten using String.charAt(0) 453
Local variable 'l1' could be declared final 460
Local variable 'ix1' could be declared final 461
Avoid declaring a variable if it is unreferenced before a possible exit point. 461
Local variable 'l2' could be declared final 462
Local variable 'ix2' could be declared final 463
Avoid declaring a variable if it is unreferenced before a possible exit point. 463
Local variable 'set' could be declared final 473
Local variable 'l' could be declared final 475
Local variable 's' could be declared final 476
Local variable 'ix' could be declared final 477
Local variable 'l' could be declared final 482
Local variable 'ix1' could be declared final 483
Local variable 'ix2' could be declared final 485
Local variable 'id' could be declared final 489
Local variable 'n' could be declared final 506
Position literals first in String comparisons 511
Local variable 'name' could be declared final 512
Position literals first in String comparisons 520
Local variable 'scopeFile' could be declared final 522
Avoid declaring a variable if it is unreferenced before a possible exit point. 522
Local variable 'onFiles' could be declared final 523
Avoid empty if statements 549–551
Avoid reassigning parameters such as 'ref' 557
Consider using varargs for methods or constructors which take an array the last parameter. 557
Local variable 'ix' could be declared final 562
Avoid unused local variables such as 'l'. 563
Avoid declaring a variable if it is unreferenced before a possible exit point. 563
Local variable 'l' could be declared final 563
Local variable 'll' could be declared final 588
Local variable 'llIx' could be declared final 589
Parameter 'namespace' is not assigned and could be declared final 598
Parameter 'localname' is not assigned and could be declared final 598
Parameter 'type' is not assigned and could be declared final 599
Position literals first in String comparisons 610
Position literals first in String comparisons 614
Parameter 'ch' is not assigned and could be declared final 619
Parameter 'start' is not assigned and could be declared final 619
Parameter 'len' is not assigned and could be declared final 619
Local variable 's' could be declared final 621
Local variable 'n' could be declared final 622
Local variable 's' could be declared final 626
Parameter 'files' is not assigned and could be declared final 641
Local variable 'dg' could be declared final 643
Local variable 'out' could be declared final 645
The method 'tsort' has a Cyclomatic Complexity of 10. 650–695
The method 'tsort' has a Modified Cyclomatic Complexity of 10. 650–695
Parameter 'depGraph' is not assigned and could be declared final 650
The method 'tsort' has a Standard Cyclomatic Complexity of 10. 650–695
Local variable 'starts' could be declared final 652
Local variable 'k' could be declared final 653
Local variable 'k' could be declared final 657
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 661
Local variable 'q' could be declared final 665
Local variable 'out' could be declared final 666
Local variable 't' could be declared final 669
Local variable 'sl' could be declared final 671
Local variable 's' could be declared final 675
Local variable 'sl2' could be declared final 676
Local variable 'seen' could be declared final 684
Local variable 'it' could be declared final 685
Local variable 't' could be declared final 686
Avoid unused private methods such as 'tsort_orig(ListMap)'. 697
Parameter 'depGraph' is not assigned and could be declared final 697
Local variable 'starts' could be declared final 698
Local variable 'k' could be declared final 699
Local variable 'k' could be declared final 703
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 707
Local variable 'q' could be declared final 711
Local variable 'out' could be declared final 712
Local variable 't' could be declared final 715
Local variable 'sl' could be declared final 717
Local variable 'seen' could be declared final 723
Local variable 'it' could be declared final 724
Local variable 't' could be declared final 725
Parameter 'files' is not assigned and could be declared final 737
Local variable 'out' could be declared final 738
Local variable 'fn' could be declared final 739
Local variable 'full' could be declared final 740
Avoid instantiating new objects inside loops 741
Local variable 'br' could be declared final 741
Local variable 'm1' could be declared final 746
Local variable 'ref' could be declared final 748
Local variable 'm2' could be declared final 752
Consider using varargs for methods or constructors which take an array the last parameter. 766
Parameter 'argv' is not assigned and could be declared final 766
Local variable 'r' could be declared final 768
Avoid unused local variables such as 'i'. 769
Local variable 'annotatedText' could be declared final 772
Local variable 'layer' could be declared final 773
Local variable 'entity' could be declared final 776
Avoid using a branching statement as the last in a loop. 779

pikes-resources - eu/fbk/dkm/pikes/resources/signalmedia/JsonToNaf.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. 18–103
Avoid unused private fields such as 'LOGGER'. 20
Parameter 'args' is not assigned and could be declared final 23
Consider using varargs for methods or constructors which take an array the last parameter. 23
Local variable 'inputFile' could be declared final 38
Local variable 'outputFolder' could be declared final 39
Local variable 'prefix' could be declared final 40
Local variable 'skipTitle' could be declared final 42
Local variable 'fileStream' could be declared final 48
Local variable 'gzipStream' could be declared final 49
Local variable 'decoder' could be declared final 50
Local variable 'reader' could be declared final 51
Avoid instantiating new objects inside loops 55
Local variable 'mapper' could be declared final 55
Local variable 'rootNode' could be declared final 56
Local variable 'id' could be declared final 58
Local variable 'title' could be declared final 60
Local variable 'mediaType' could be declared final 61
Local variable 'source' could be declared final 62
Local variable 'published' could be declared final 63
Prefer StringBuffer over += for concatenating strings 66
Local variable 'simpleID' could be declared final 72
Local variable 'subFolder' could be declared final 73
Local variable 'subFolderFile' could be declared final 74
Avoid instantiating new objects inside loops 74
Local variable 'url' could be declared final 77
Local variable 'outputFile' could be declared final 78
Local variable 'document' could be declared final 80
Avoid instantiating new objects inside loops 80
Local variable 'documentPublic' could be declared final 82
Local variable 'documentFileDesc' could be declared final 86

pikes-resources - eu/fbk/dkm/pikes/resources/tempeval/TMLtoNAF.java

Violation Line
The class 'TMLtoNAF' has a Standard Cyclomatic Complexity of 16 (Highest = 15). 21–135
The class 'TMLtoNAF' has a Modified Cyclomatic Complexity of 16 (Highest = 15). 21–135
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. 21–135
The class 'TMLtoNAF' has a Cyclomatic Complexity of 16 (Highest = 15). 21–135
The method 'main' has a Modified Cyclomatic Complexity of 15. 26–134
Avoid really long methods. 26–134
Parameter 'args' is not assigned and could be declared final 26
Consider using varargs for methods or constructors which take an array the last parameter. 26
The method main() has an NPath complexity of 2563 26–134
The method 'main' has a Standard Cyclomatic Complexity of 15. 26–134
The method 'main' has a Cyclomatic Complexity of 15. 26–134
Local variable 'inputFolder' could be declared final 40
Local variable 'outputFolder' could be declared final 41
Local variable 'prefix' could be declared final 42
Local variable 'dbFactory' could be declared final 48
Local variable 'dBuilder' could be declared final 49
Local variable 'i' could be declared final 51
Avoid unused local variables such as 'i'. 51
Local variable 'doc' could be declared final 60
Local variable 'docidElements' could be declared final 64
Local variable 'docidElement' could be declared final 65
Local variable 'url' could be declared final 74
Local variable 'docTimeElements' could be declared final 77
Local variable 'docTimeElement' could be declared final 79
Local variable 'function' could be declared final 80
Position literals first in String comparisons 84
Local variable 'textElements' could be declared final 97
Local variable 'textElement' could be declared final 99
Prefer StringBuffer over += for concatenating strings 111
Local variable 'outputFile' could be declared final 113
Avoid instantiating new objects inside loops 113
Local variable 'document' could be declared final 116
Avoid instantiating new objects inside loops 116
Local variable 'documentPublic' could be declared final 118
Local variable 'documentFileDesc' could be declared final 122

pikes-resources - eu/fbk/dkm/pikes/resources/trec/CR.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. 32–172
When instantiating a SimpleDateFormat object, specify a Locale 36
Parameter 'args' is not assigned and could be declared final 38
Consider using varargs for methods or constructors which take an array the last parameter. 38
Local variable 'inputDir' could be declared final 54
Local variable 'outputDir' could be declared final 61
Avoid instantiating new objects inside loops 75
Local variable 'newFolder' could be declared final 75
Prefer StringBuffer over += for concatenating strings 78
Parameter 'outputFilePattern' is not assigned and could be declared final 86
Parameter 'inputFile' is not assigned and could be declared final 86
Parameter 'urlTemplate' is not assigned and could be declared final 86
Local variable 'stringBuffer' could be declared final 91
StringBuffer constructor is initialized with size 16, but has at least 19 characters appended. 91
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 92
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 93
Local variable 'is' could be declared final 96
Local variable 'dbFactory' could be declared final 97
Local variable 'dBuilder' could be declared final 98
Local variable 'doc' could be declared final 99
Local variable 'element' could be declared final 104
Local variable 'docnoElement' could be declared final 105
Local variable 'dateElement' could be declared final 106
Local variable 'headlineElement' could be declared final 107
Avoid instantiating new objects inside loops 111
Local variable 'outputFile' could be declared final 111
Position literals first in String comparisons 134
Local variable 'url' could be declared final 138
Local variable 'builder' could be declared final 143
Avoid instantiating new objects inside loops 143
Local variable 'calendar' could be declared final 150
Prefer StringBuffer over += for concatenating strings 152
Avoid instantiating new objects inside loops 159
Local variable 'document' could be declared final 159
Local variable 'fileDesc' could be declared final 162
Static DateFormatter objects should be accessed in a synchronized manner 164
Local variable 'aPublic' could be declared final 165

pikes-resources - eu/fbk/dkm/pikes/resources/trec/FBIS.java

Violation Line
Avoid unused imports such as 'java.util.Calendar' 23
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. 36–229
The class 'FBIS' has a Cyclomatic Complexity of 9 (Highest = 10). 36–229
The class 'FBIS' has a Standard Cyclomatic Complexity of 9 (Highest = 10). 36–229
The class 'FBIS' has a Modified Cyclomatic Complexity of 9 (Highest = 10). 36–229
When instantiating a SimpleDateFormat object, specify a Locale 40
Parameter 'args' is not assigned and could be declared final 43
Consider using varargs for methods or constructors which take an array the last parameter. 43
Local variable 'inputDir' could be declared final 59
Local variable 'outputDir' could be declared final 66
Avoid instantiating new objects inside loops 80
Local variable 'newFolder' could be declared final 80
Prefer StringBuffer over += for concatenating strings 83
Avoid really long methods. 91–228
The method 'saveFile' has a Standard Cyclomatic Complexity of 10. 91–228
The method 'saveFile' has a Cyclomatic Complexity of 10. 91–228
Parameter 'outputFilePattern' is not assigned and could be declared final 91
The method saveFile() has an NCSS line count of 101 91–228
Parameter 'urlTemplate' is not assigned and could be declared final 91
The method saveFile() has an NPath complexity of 257 91–228
The method 'saveFile' has a Modified Cyclomatic Complexity of 10. 91–228
Parameter 'inputFile' is not assigned and could be declared final 91
Local variable 'stringBuffer' could be declared final 96
StringBuffer constructor is initialized with size 16, but has at least 955 characters appended. 96
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 97–98
StringBuffer (or StringBuilder).append is called 45 consecutive times with literal Strings. Use a single append with a single combined String. 97–98
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 99
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 100
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 101
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 102
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 103
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 104
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 105
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 106
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 107
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 108
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 109
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 110
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 111
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 112
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 113
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 114
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 115
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 116
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 117
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 118
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 119
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 120
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 121
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 122
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 123
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 124
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 125
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 126
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 127
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 128
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 129
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 130
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 131
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 132
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 133
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 134
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 135
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 136
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 137
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 138
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 139
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 140
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 141
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 142
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 143–147
Local variable 'is' could be declared final 150
Local variable 'dbFactory' could be declared final 151
Local variable 'dBuilder' could be declared final 152
Local variable 'doc' could be declared final 153
Local variable 'element' could be declared final 158
Local variable 'docnoElement' could be declared final 159
Local variable 'dateElement' could be declared final 160
Local variable 'headlineElement' could be declared final 161
Local variable 'textElement' could be declared final 162
Local variable 'outputFile' could be declared final 166
Avoid instantiating new objects inside loops 166
Position literals first in String comparisons 194
Local variable 'url' could be declared final 198
Static DateFormatter objects should be accessed in a synchronized manner 207
Avoid empty catch blocks 208–210
Prefer StringBuffer over += for concatenating strings 212
Avoid instantiating new objects inside loops 214
Local variable 'document' could be declared final 214
Local variable 'fileDesc' could be declared final 217
Static DateFormatter objects should be accessed in a synchronized manner 220
Local variable 'aPublic' could be declared final 222

pikes-resources - eu/fbk/dkm/pikes/resources/trec/FR94.java

Violation Line
Avoid unused imports such as 'java.text.SimpleDateFormat' 21
Avoid unused imports such as 'java.util.Calendar' 22
Avoid unused imports such as 'java.util.regex.Matcher' 23
Avoid unused imports such as 'java.util.regex.Pattern' 24
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. 35–204
Parameter 'args' is not assigned and could be declared final 40
Consider using varargs for methods or constructors which take an array the last parameter. 40
Local variable 'inputDir' could be declared final 56
Local variable 'outputDir' could be declared final 63
Avoid instantiating new objects inside loops 77
Local variable 'newFolder' could be declared final 77
Prefer StringBuffer over += for concatenating strings 80
Parameter 'outputFilePattern' is not assigned and could be declared final 88
Avoid really long methods. 88–203
Parameter 'urlTemplate' is not assigned and could be declared final 88
Parameter 'inputFile' is not assigned and could be declared final 88
StringBuffer constructor is initialized with size 16, but has at least 1309 characters appended. 93
Local variable 'stringBuffer' could be declared final 93
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 94–95
StringBuffer (or StringBuilder).append is called 57 consecutive times with literal Strings. Use a single append with a single combined String. 94–95
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 96
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 97
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 98
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 99
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 100
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 101
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 102
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 103
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 104
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 105
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 106
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 107
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 108
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 109
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 110
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 111
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 112
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 113
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 114
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 115
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 116
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 117
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 118
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 119
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 120
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 121
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 122
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 123
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 124
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 125
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 126
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 127
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 128
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 129
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 130
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 131
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 132
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 133
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 134
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 135
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 136
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 137
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 138
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 139
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 140
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 141
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 142
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 143
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 144
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 145
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 146
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 147
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 148
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 149
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 150
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 151
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 152
Local variable 'is' could be declared final 155
Local variable 'dbFactory' could be declared final 156
Local variable 'dBuilder' could be declared final 157
Local variable 'doc' could be declared final 158
Local variable 'element' could be declared final 163
Local variable 'docnoElement' could be declared final 164
Local variable 'textElement' could be declared final 165
Local variable 'outputFile' could be declared final 169
Avoid instantiating new objects inside loops 169
Position literals first in String comparisons 183
Local variable 'url' could be declared final 187
Local variable 'document' could be declared final 192
Avoid instantiating new objects inside loops 192
Local variable 'fileDesc' could be declared final 195
Local variable 'aPublic' could be declared final 197

pikes-resources - eu/fbk/dkm/pikes/resources/trec/FT.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. 30–173
When instantiating a SimpleDateFormat object, specify a Locale 34
Parameter 'args' is not assigned and could be declared final 38
Consider using varargs for methods or constructors which take an array the last parameter. 38
Local variable 'inputDir' could be declared final 54
Local variable 'outputDir' could be declared final 61
Avoid instantiating new objects inside loops 72
Local variable 'newFolder' could be declared final 72
Prefer StringBuffer over += for concatenating strings 75
Parameter 'urlTemplate' is not assigned and could be declared final 83
Parameter 'inputFile' is not assigned and could be declared final 83
Parameter 'outputFilePattern' is not assigned and could be declared final 83
Local variable 'stringBuffer' could be declared final 88
StringBuffer constructor is initialized with size 16, but has at least 19 characters appended. 88
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 89
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 90
Local variable 'is' could be declared final 93
Local variable 'dbFactory' could be declared final 94
Local variable 'dBuilder' could be declared final 95
Local variable 'doc' could be declared final 96
Local variable 'element' could be declared final 101
Local variable 'docnoElement' could be declared final 102
Local variable 'dateElement' could be declared final 103
Local variable 'headlineElement' could be declared final 104
Local variable 'textElement' could be declared final 105
Avoid instantiating new objects inside loops 109
Local variable 'outputFile' could be declared final 109
Position literals first in String comparisons 133
Local variable 'url' could be declared final 137
Local variable 'matcher' could be declared final 144
Avoid instantiating new objects inside loops 149
Local variable 'builder' could be declared final 149
Local variable 'calendar' could be declared final 156
Prefer StringBuffer over += for concatenating strings 158
Local variable 'document' could be declared final 160
Avoid instantiating new objects inside loops 160
Local variable 'fileDesc' could be declared final 163
Static DateFormatter objects should be accessed in a synchronized manner 165
Local variable 'aPublic' could be declared final 166

pikes-resources - eu/fbk/dkm/pikes/resources/trec/LATIMES.java

Violation Line
The class 'LATIMES' has a Cyclomatic Complexity of 13 (Highest = 18). 34–202
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. 34–202
The class 'LATIMES' has a Modified Cyclomatic Complexity of 12 (Highest = 16). 34–202
The class 'LATIMES' has a Standard Cyclomatic Complexity of 12 (Highest = 16). 34–202
When instantiating a SimpleDateFormat object, specify a Locale 38
Consider using varargs for methods or constructors which take an array the last parameter. 42
Parameter 'args' is not assigned and could be declared final 42
Local variable 'inputDir' could be declared final 58
Local variable 'outputDir' could be declared final 65
Avoid instantiating new objects inside loops 79
Local variable 'newFolder' could be declared final 79
Prefer StringBuffer over += for concatenating strings 82
The method 'saveFile' has a Standard Cyclomatic Complexity of 16. 90–201
Parameter 'outputFilePattern' is not assigned and could be declared final 90
Parameter 'urlTemplate' is not assigned and could be declared final 90
Parameter 'inputFile' is not assigned and could be declared final 90
Avoid really long methods. 90–201
The method saveFile() has an NPath complexity of 11521 90–201
The method 'saveFile' has a Cyclomatic Complexity of 18. 90–201
The method 'saveFile' has a Modified Cyclomatic Complexity of 16. 90–201
StringBuffer constructor is initialized with size 16, but has at least 19 characters appended. 95
Local variable 'stringBuffer' could be declared final 95
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 96
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 97
Local variable 'is' could be declared final 100
Local variable 'dbFactory' could be declared final 101
Local variable 'dBuilder' could be declared final 102
Local variable 'doc' could be declared final 103
Local variable 'element' could be declared final 108
Local variable 'docnoElement' could be declared final 109
Local variable 'dateElement' could be declared final 110
Local variable 'correctionDateElement' could be declared final 111
Local variable 'headlineElement' could be declared final 112
Local variable 'textElement' could be declared final 114
Local variable 'graphicElement' could be declared final 115
Local variable 'correctionElement' could be declared final 116
Local variable 'outputFile' could be declared final 120
Avoid instantiating new objects inside loops 120
Prefer StringBuffer over += for concatenating strings 124
Prefer StringBuffer over += for concatenating strings 127
Prefer StringBuffer over += for concatenating strings 130
Position literals first in String comparisons 155
Local variable 'url' could be declared final 159
Static DateFormatter objects should be accessed in a synchronized manner 168
Avoid empty catch blocks 169–171
Static DateFormatter objects should be accessed in a synchronized manner 178
Avoid empty catch blocks 179–181
Prefer StringBuffer over += for concatenating strings 185
Local variable 'document' could be declared final 187
Avoid instantiating new objects inside loops 187
Local variable 'fileDesc' could be declared final 190
Static DateFormatter objects should be accessed in a synchronized manner 193
Local variable 'aPublic' could be declared final 195

pikes-resources - eu/fbk/dkm/pikes/resources/trec/Qrels.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. 20–86
Parameter 'args' is not assigned and could be declared final 26
Consider using varargs for methods or constructors which take an array the last parameter. 26
Local variable 'inputFolder' could be declared final 40
Local variable 'outputFile' could be declared final 41
Local variable 'qrels' could be declared final 43
Local variable 'fileIterator' could be declared final 45
Local variable 'file' could be declared final 47
Local variable 'lines' could be declared final 51
Local variable 'parts' could be declared final 55
Local variable 'qID' could be declared final 57
Local variable 'docID' could be declared final 58
Local variable 'relevance' could be declared final 59
Position literals first in String comparisons 61
Local variable 'writer' could be declared final 69
Local variable 'key' could be declared final 70
Avoid instantiating new objects inside loops 72
Local variable 'stringBuffer' could be declared final 72
Local variable 'value' could be declared final 73
Avoid appending characters as strings in StringBuffer.append. 74

pikes-resources - eu/fbk/dkm/pikes/resources/trec/Queries.java

Violation Line
Avoid unused imports such as 'com.google.common.io.Files' 4
Avoid unused imports such as 'java.nio.file.Path' 19
Avoid unused imports such as 'java.nio.file.Paths' 20
Avoid unused imports such as 'java.util.Date' 23
Avoid unused imports such as 'java.util.Iterator' 24
Avoid unused imports such as 'java.util.regex.Matcher' 26
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. 32–128
When instantiating a SimpleDateFormat object, specify a Locale 37
Avoid unused private fields such as 'sdf'. 37
Avoid unused private fields such as 'format'. 38
Avoid unused private fields such as 'datePattern'. 39
Parameter 'args' is not assigned and could be declared final 41
Consider using varargs for methods or constructors which take an array the last parameter. 41
Local variable 'inputfile' could be declared final 57
Local variable 'outputFolder' could be declared final 58
Local variable 'dbFactory' could be declared final 65
Local variable 'dBuilder' could be declared final 66
Local variable 'content' could be declared final 70
StringBuffer constructor is initialized with size 16, but has at least 17 characters appended. 72
Local variable 'newContent' could be declared final 72
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 73
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 74–80
Local variable 'doc' could be declared final 83
Local variable 'element' could be declared final 84
Local variable 'numElement' could be declared final 85
Local variable 'titleElement' could be declared final 86
Local variable 'descElement' could be declared final 87
Local variable 'number' could be declared final 89
Local variable 'title' could be declared final 90
Local variable 'desc' could be declared final 91
Parameter 'id' is not assigned and could be declared final 105
Parameter 'url_template' is not assigned and could be declared final 105
Parameter 'outputFilename' is not assigned and could be declared final 105
Parameter 'raw' is not assigned and could be declared final 105
Local variable 'file' could be declared final 108
Local variable 'outputFile' could be declared final 111
Local variable 'document' could be declared final 113
Local variable 'fileDesc' could be declared final 116
Local variable 'aPublic' could be declared final 119

pikes-resources - eu/fbk/dkm/pikes/resources/trec/QueriesTSV.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. 24–93
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 'inputFolder' could be declared final 44
Local variable 'outputFile' could be declared final 45
Local variable 'dbFactory' could be declared final 47
Local variable 'dBuilder' could be declared final 48
Local variable 'writer' could be declared final 50
Local variable 'fileIterator' could be declared final 52
Local variable 'file' could be declared final 54
Local variable 'content' could be declared final 58
Local variable 'newContent' could be declared final 60
StringBuffer constructor is initialized with size 16, but has at least 17 characters appended. 60
Avoid instantiating new objects inside loops 60
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 61
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 62–68
Local variable 'doc' could be declared final 71
Avoid instantiating new objects inside loops 71
Local variable 'element' could be declared final 72
Local variable 'numElement' could be declared final 73
Local variable 'titleElement' could be declared final 74
Local variable 'descElement' could be declared final 75
Local variable 'number' could be declared final 77
Local variable 'title' could be declared final 78
Local variable 'desc' could be declared final 79

pikes-resources - eu/fbk/dkm/pikes/resources/treccani/TAOL.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. 21–151
The class 'TAOL' has a Cyclomatic Complexity of 18 (Highest = 17). 21–151
The class 'TAOL' has a Standard Cyclomatic Complexity of 16 (Highest = 15). 21–151
The class 'TAOL' has a Modified Cyclomatic Complexity of 16 (Highest = 15). 21–151
Avoid unused private fields such as 'LOGGER'. 23
The method 'main' has a Cyclomatic Complexity of 17. 26–150
Avoid really long methods. 26–150
Consider using varargs for methods or constructors which take an array the last parameter. 26
The method 'main' has a Modified Cyclomatic Complexity of 15. 26–150
The method main() has an NPath complexity of 731 26–150
Parameter 'args' is not assigned and could be declared final 26
The method 'main' has a Standard Cyclomatic Complexity of 15. 26–150
Local variable 'inputFolder' could be declared final 40
Local variable 'outputFolder' could be declared final 41
Local variable 'prefix' could be declared final 42
Local variable 'dbFactory' could be declared final 48
Local variable 'dBuilder' could be declared final 49
Local variable 'doc' could be declared final 60
Local variable 'element' could be declared final 64
Local variable 'articolo' could be declared final 69
Local variable 'language' could be declared final 70
Local variable 'thisPrefix' could be declared final 71
Do not add empty strings 74
Local variable 'cidaElement' could be declared final 77
Local variable 'cida' could be declared final 79
Local variable 'ctitElement' could be declared final 84
Local variable 'contentElement' could be declared final 89
Local variable 'outputFile' could be declared final 91–94
Avoid instantiating new objects inside loops 91–94
Avoid instantiating new objects inside loops 97
Local variable 'document' could be declared final 97
Local variable 'documentPublic' could be declared final 99
Local variable 'documentFileDesc' could be declared final 103
Local variable 'finalContent' could be declared final 112
Avoid instantiating new objects inside loops 112
Local variable 'lines' could be declared final 114
Prefer StringBuffer over += for concatenating strings 118
Avoid appending characters as strings in StringBuffer.append. 124
Local variable 'text' could be declared final 127

pikes-resources - eu/fbk/dkm/pikes/resources/util/corpus/Corpus.java

Violation Line
The class 'Corpus' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 18–122
The class 'Corpus' has a Cyclomatic Complexity of 2 (Highest = 10). 18–122
The class 'Corpus' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 18–122
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
Parameter 'sentences' is not assigned and could be declared final 26
Document empty constructor 30–31
Parameter 'sentence' is not assigned and could be declared final 33
Parameter 'sourceName' is not assigned and could be declared final 37
Parameter 'fileName' is not assigned and could be declared final 37
The method 'readDocumentFromFile' has a Standard Cyclomatic Complexity of 10. 41–107
The method 'readDocumentFromFile' has a Modified Cyclomatic Complexity of 10. 41–107
Parameter 'sourceName' is not assigned and could be declared final 41
The method 'readDocumentFromFile' has a Cyclomatic Complexity of 10. 41–107
Parameter 'file' is not assigned and could be declared final 41
Local variable 'corpus' could be declared final 43
Local variable 'lines' could be declared final 46
String.trim().length()==0 is an inefficient way to validate an empty String. 58
Local variable 'parts' could be declared final 59
Local variable 'word' could be declared final 60
Local variable 'row' could be declared final 72
Avoid instantiating new objects inside loops 77
Local variable 'srl' could be declared final 77
Local variable 'roleIndex' could be declared final 78
Local variable 'row_role' could be declared final 81
Avoid instantiating new objects inside loops 86
Local variable 'role' could be declared final 86
Avoid instantiating new objects inside loops 96
Avoid instantiating new objects inside loops 97
Consider using varargs for methods or constructors which take an array the last parameter. 109
Parameter 'args' is not assigned and could be declared final 109
Local variable 'fileName' could be declared final 110

pikes-resources - eu/fbk/dkm/pikes/resources/util/corpus/Role.java

Violation Line
Private field 'label' could be made final; it is only initialized in the declaration or constructor. 14
Parameter 'span' is not assigned and could be declared final 16
Parameter 'label' is not assigned and could be declared final 16
Parameter 'word' is not assigned and could be declared final 21
Parameter 'label' is not assigned and could be declared final 21

pikes-resources - eu/fbk/dkm/pikes/resources/util/corpus/Sentence.java

Violation Line
Private field 'srls' could be made final; it is only initialized in the declaration or constructor. 16
Parameter 'text' is not assigned and could be declared final 23
Parameter 'words' is not assigned and could be declared final 27
Parameter 'word' is not assigned and could be declared final 31
Parameter 'srl' is not assigned and could be declared final 35
Avoid reassigning parameters such as 'i' 45
Local variable 'ret' could be declared final 46
Parameter 'i' is not assigned and could be declared final 67
Local variable 'ret' could be declared final 68
Local variable 'children' could be declared final 70
Local variable 'word' could be declared final 71
Local variable 'noLoop' could be declared final 77
Parameter 'noLoop' is not assigned and could be declared final 83
Parameter 'parent' is not assigned and could be declared final 83
Parameter 'ret' is not assigned and could be declared final 83
Parameter 'map' is not assigned and could be declared final 83
Local variable 'children' could be declared final 89
Local variable 'child' could be declared final 91
Parameter 'span' is not assigned and could be declared final 97
Local variable 'integer' could be declared final 100
Parameter 'ancestorLists' is not assigned and could be declared final 107
Avoid instantiating new objects inside loops 115
Local variable 'integers' could be declared final 115
Local variable 'integer' could be declared final 124
Document empty constructor 134–135
Local variable 'srlMap' could be declared final 147
Local variable 'srl' could be declared final 148
Local variable 'word' could be declared final 149
Local variable 'additionalColumnsNo' could be declared final 153
Local variable 'key' could be declared final 162
Local variable 'srl' could be declared final 163
Local variable 'role' could be declared final 168
Local variable 'roleKey' could be declared final 169
StringBuffer constructor is initialized with size 16, but has at least 30 characters appended. 176
Local variable 'builder' could be declared final 176
Local variable 'word' could be declared final 179
Avoid appending characters as strings in StringBuffer.append. 180
Avoid appending characters as strings in StringBuffer.append. 181
Avoid appending characters as strings in StringBuffer.append. 182
Avoid appending characters as strings in StringBuffer.append. 183
Avoid appending characters as strings in StringBuffer.append. 184
Avoid appending characters as strings in StringBuffer.append. 185
StringBuffer (or StringBuilder).append is called 5 consecutive times with literal Strings. Use a single append with a single combined String. 185
Avoid appending characters as strings in StringBuffer.append. 186
Avoid appending characters as strings in StringBuffer.append. 186
Avoid appending characters as strings in StringBuffer.append. 187
Avoid appending characters as strings in StringBuffer.append. 187
Avoid appending characters as strings in StringBuffer.append. 188
Avoid appending characters as strings in StringBuffer.append. 189
Avoid appending characters as strings in StringBuffer.append. 190
Local variable 'col' could be declared final 192
Avoid appending characters as strings in StringBuffer.append. 193
Avoid appending characters as strings in StringBuffer.append. 195
Avoid appending characters as strings in StringBuffer.append. 199
StringBuffer constructor is initialized with size 16, but has at least 47 characters appended. 205
Local variable 'builder' could be declared final 205
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 207
Avoid appending characters as strings in StringBuffer.append. 207
StringBuffer (or StringBuilder).append is called 4 consecutive times with literal Strings. Use a single append with a single combined String. 207
Avoid appending characters as strings in StringBuffer.append. 208
Local variable 'word' could be declared final 209
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 210
Avoid appending characters as strings in StringBuffer.append. 210
Avoid appending characters as strings in StringBuffer.append. 212
StringBuffer (or StringBuilder).append is called 4 consecutive times with literal Strings. Use a single append with a single combined String. 212
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 212
Avoid appending characters as strings in StringBuffer.append. 213
Local variable 'srl' could be declared final 214
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 215
Avoid appending characters as strings in StringBuffer.append. 215
Avoid appending characters as strings in StringBuffer.append. 217
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 217

pikes-resources - eu/fbk/dkm/pikes/resources/util/corpus/Srl.java

Violation Line
Private field 'roles' could be made final; it is only initialized in the declaration or constructor. 14
Private field 'label' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'source' could be made final; it is only initialized in the declaration or constructor. 16
Parameter 'label' is not assigned and could be declared final 18
Parameter 'source' is not assigned and could be declared final 18
Parameter 'target' is not assigned and could be declared final 18
Parameter 'target' is not assigned and could be declared final 24
Parameter 'label' is not assigned and could be declared final 24
Parameter 'source' is not assigned and could be declared final 24
Parameter 'role' is not assigned and could be declared final 30

pikes-resources - eu/fbk/dkm/pikes/resources/util/corpus/Word.java

Violation Line
Avoid unused imports such as 'java.util.HashMap' 4
Private field 'id' could be made final; it is only initialized in the declaration or constructor. 12
Consider using varargs for methods or constructors which take an array the last parameter. 23
Parameter 'parts' is not assigned and could be declared final 23
Parameter 'lemma' is not assigned and could be declared final 44
Parameter 'id' is not assigned and could be declared final 44
Parameter 'pos' is not assigned and could be declared final 44
Parameter 'form' is not assigned and could be declared final 44
Parameter 'form' is not assigned and could be declared final 51
Parameter 'depParent' is not assigned and could be declared final 51
Parameter 'pos' is not assigned and could be declared final 51
Parameter 'lemma' is not assigned and could be declared final 51
Parameter 'depLabel' is not assigned and could be declared final 51
Parameter 'id' is not assigned and could be declared final 51
Parameter 'form' is not assigned and could be declared final 64
Parameter 'lemma' is not assigned and could be declared final 72
Parameter 'pos' is not assigned and could be declared final 80
Parameter 'depParent' is not assigned and could be declared final 88
Parameter 'depLabel' is not assigned and could be declared final 96
Parameter 'begin' is not assigned and could be declared final 108
Parameter 'end' is not assigned and could be declared final 116
Ensure you override both equals() and hashCode() 131
Parameter 'obj' is not assigned and could be declared final 131

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/AnnoSetType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 53

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/AnnotationSetType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 124
Parameter 'value' is not assigned and could be declared final 148
Parameter 'value' is not assigned and could be declared final 172
Parameter 'value' is not assigned and could be declared final 196
Parameter 'value' is not assigned and could be declared final 220
Parameter 'value' is not assigned and could be declared final 244
Parameter 'value' is not assigned and could be declared final 268
Parameter 'value' is not assigned and could be declared final 292
Parameter 'value' is not assigned and could be declared final 316

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/CoreType.java

Violation Line
Parameter 'v' is not assigned and could be declared final 47
Parameter 'v' is not assigned and could be declared final 55
Local variable 'c' could be declared final 56

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/CorpDocType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 106
Parameter 'value' is not assigned and could be declared final 130
Parameter 'value' is not assigned and could be declared final 154
Parameter 'value' is not assigned and could be declared final 201
Parameter 'value' is not assigned and could be declared final 225
Parameter 'value' is not assigned and could be declared final 249

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/FEGroupRealizationType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 137
Parameter 'value' is not assigned and could be declared final 247

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/FERealizationType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 87
Parameter 'value' is not assigned and could be declared final 132
Parameter 'value' is not assigned and could be declared final 192
Parameter 'value' is not assigned and could be declared final 237

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/FEValenceType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 61

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/GovernorType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 103
Parameter 'value' is not assigned and could be declared final 127

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/HeaderType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 121
Parameter 'value' is not assigned and could be declared final 252
Parameter 'value' is not assigned and could be declared final 276
Parameter 'value' is not assigned and could be declared final 300
Parameter 'value' is not assigned and could be declared final 324
Parameter 'value' is not assigned and could be declared final 348

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/LabelType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 92
Parameter 'value' is not assigned and could be declared final 116
Parameter 'value' is not assigned and could be declared final 140
Parameter 'value' is not assigned and could be declared final 164
Parameter 'value' is not assigned and could be declared final 188
Parameter 'value' is not assigned and could be declared final 212
Parameter 'value' is not assigned and could be declared final 236
Parameter 'value' is not assigned and could be declared final 260

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/LayerType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 101
Parameter 'value' is not assigned and could be declared final 125

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/LexUnit.java

Violation Line
Parameter 'value' is not assigned and could be declared final 106
Parameter 'value' is not assigned and could be declared final 130
Parameter 'value' is not assigned and could be declared final 212
Parameter 'value' is not assigned and could be declared final 265
Parameter 'value' is not assigned and could be declared final 289
Parameter 'value' is not assigned and could be declared final 313
Parameter 'value' is not assigned and could be declared final 329
Parameter 'value' is not assigned and could be declared final 353
Parameter 'value' is not assigned and could be declared final 377
Parameter 'value' is not assigned and could be declared final 401
Parameter 'value' is not assigned and could be declared final 425

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/LexemeType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 73
Parameter 'value' is not assigned and could be declared final 97
Parameter 'value' is not assigned and could be declared final 121
Parameter 'value' is not assigned and could be declared final 145
Parameter 'value' is not assigned and could be declared final 169

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/POSType.java

Violation Line
Parameter 'v' is not assigned and could be declared final 63

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/SemTypeRefType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 56
Parameter 'value' is not assigned and could be declared final 80

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/SentenceType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 92
Parameter 'value' is not assigned and could be declared final 145
Parameter 'value' is not assigned and could be declared final 169
Parameter 'value' is not assigned and could be declared final 193
Parameter 'value' is not assigned and could be declared final 217
Parameter 'value' is not assigned and could be declared final 241
Parameter 'value' is not assigned and could be declared final 265
Parameter 'value' is not assigned and could be declared final 289

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/SubCorpusType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 98

pikes-resources - eu/fbk/dkm/pikes/resources/util/fnlu/ValenceUnitType.java

Violation Line
Parameter 'value' is not assigned and could be declared final 67
Parameter 'value' is not assigned and could be declared final 91
Parameter 'value' is not assigned and could be declared final 115

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/Inventory.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 37
Parameter 'value' is not assigned and could be declared final 64
Parameter 'value' is not assigned and could be declared final 88
Parameter 'value' is not assigned and could be declared final 141

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/Mappings.java

Violation Line
Parameter 'value' is not assigned and could be declared final 66
Parameter 'value' is not assigned and could be declared final 119
Parameter 'value' is not assigned and could be declared final 143
Parameter 'value' is not assigned and could be declared final 167
Parameter 'value' is not assigned and could be declared final 191

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/SENSEMETA.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Parameter 'value' is not assigned and could be declared final 52

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/Sense.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 39
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 42
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 45
Parameter 'value' is not assigned and could be declared final 74
Parameter 'value' is not assigned and could be declared final 98
Parameter 'value' is not assigned and could be declared final 122
Parameter 'value' is not assigned and could be declared final 146
Parameter 'value' is not assigned and could be declared final 170
Parameter 'value' is not assigned and could be declared final 194
Parameter 'value' is not assigned and could be declared final 218
Parameter 'value' is not assigned and could be declared final 242

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/WORDMETA.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 30
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Parameter 'value' is not assigned and could be declared final 55
Parameter 'value' is not assigned and could be declared final 79

pikes-resources - eu/fbk/dkm/pikes/resources/util/onsenses/Wn.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 108

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Arg.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 21
Parameter 'value' is not assigned and could be declared final 40
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 80

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Example.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
Parameter 'value' is not assigned and could be declared final 47
Parameter 'value' is not assigned and could be declared final 67
Parameter 'value' is not assigned and could be declared final 87

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Inflection.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 19
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 21
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Parameter 'value' is not assigned and could be declared final 45
Parameter 'value' is not assigned and could be declared final 69
Parameter 'value' is not assigned and could be declared final 93
Parameter 'value' is not assigned and could be declared final 117
Parameter 'value' is not assigned and could be declared final 141

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Note.java

Violation Line
Parameter 'value' is not assigned and could be declared final 36

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/ObjectFactory.java

Violation Line
Document empty constructor 30–31

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Predicate.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Parameter 'value' is not assigned and could be declared final 42

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Rel.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Parameter 'value' is not assigned and could be declared final 39
Parameter 'value' is not assigned and could be declared final 59

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Role.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Parameter 'value' is not assigned and could be declared final 44
Parameter 'value' is not assigned and could be declared final 64
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 104

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Roleset.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 24
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. 26
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 27
Parameter 'value' is not assigned and could be declared final 48
Parameter 'value' is not assigned and could be declared final 68
Parameter 'value' is not assigned and could be declared final 88
Parameter 'value' is not assigned and could be declared final 108
Parameter 'value' is not assigned and could be declared final 128

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Text.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Parameter 'value' is not assigned and could be declared final 39
Parameter 'value' is not assigned and could be declared final 59

pikes-resources - eu/fbk/dkm/pikes/resources/util/propbank/Vnrole.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 21
Parameter 'value' is not assigned and could be declared final 39
Parameter 'value' is not assigned and could be declared final 59

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfn/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfn/SemLinkRoot.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 35
Parameter 'value' is not assigned and could be declared final 59

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfn/Vncls.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 39
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 42
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 45
Parameter 'value' is not assigned and could be declared final 69
Parameter 'value' is not assigned and could be declared final 93
Parameter 'value' is not assigned and could be declared final 117
Parameter 'value' is not assigned and could be declared final 141
Parameter 'value' is not assigned and could be declared final 169
Parameter 'value' is not assigned and could be declared final 193

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfnroles/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfnroles/Role.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 108

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfnroles/SemLinkRolesRoot.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 35
Parameter 'value' is not assigned and could be declared final 59

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnfnroles/Vncls.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 108

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnpb/Argmap.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 35
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 38
Parameter 'value' is not assigned and could be declared final 62
Parameter 'value' is not assigned and could be declared final 86

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnpb/ObjectFactory.java

Violation Line
Document empty constructor 36–37

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnpb/Predicate.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Parameter 'value' is not assigned and could be declared final 57
Parameter 'value' is not assigned and could be declared final 81

pikes-resources - eu/fbk/dkm/pikes/resources/util/semlink/vnpb/Role.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 33
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 36
Parameter 'value' is not assigned and could be declared final 60
Parameter 'value' is not assigned and could be declared final 84
Parameter 'value' is not assigned and could be declared final 108

pikes-resources - eu/fbk/dkm/pikes/resources/vuaopinion/CorpusAnnotator.java

Violation Line
The class 'CorpusAnnotator' has a Modified Cyclomatic Complexity of 20 (Highest = 19). 20–138
The class 'CorpusAnnotator' has a Cyclomatic Complexity of 21 (Highest = 20). 20–138
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. 20–138
The class 'CorpusAnnotator' has a Standard Cyclomatic Complexity of 20 (Highest = 19). 20–138
Avoid really long methods. 24–137
The method main() has an NPath complexity of 5769 24–137
The method 'main' has a Standard Cyclomatic Complexity of 19. 24–137
Consider using varargs for methods or constructors which take an array the last parameter. 24
The method 'main' has a Modified Cyclomatic Complexity of 19. 24–137
Parameter 'args' is not assigned and could be declared final 24
The method 'main' has a Cyclomatic Complexity of 20. 24–137
Avoid declaring a variable if it is unreferenced before a possible exit point. 37
Local variable 'forceOpinion' could be declared final 37
Local variable 'kafPath' could be declared final 44
Local variable 'nafPath' could be declared final 48
Local variable 'file' could be declared final 57
Local variable 'fileBaseName' could be declared final 58
Local variable 'document' could be declared final 59
Local variable 'nafFile' could be declared final 61
Avoid instantiating new objects inside loops 61
Local variable 'nafDoc' could be declared final 66
Local variable 'nafTerms' could be declared final 67
Avoid instantiating new objects inside loops 67
Local variable 'term' could be declared final 68
Avoid instantiating new objects inside loops 72
Local variable 'idConverter' could be declared final 72
Local variable 'wf' could be declared final 74
Local variable 'opinion' could be declared final 81
Local variable 'opinion' could be declared final 92
Local variable 'newOpinion' could be declared final 93
Local variable 'term' could be declared final 101
Local variable 'expression' could be declared final 104
Local variable 'term' could be declared final 111
Local variable 'term' could be declared final 120

pikes-resources - eu/fbk/dkm/pikes/resources/vuaopinion/CorpusPreprocessor.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. 22–105
Parameter 'text' is not assigned and could be declared final 26
Local variable 'doc' could be declared final 27
Local variable 'p' could be declared final 37
Local variable 'd' could be declared final 41
Consider using varargs for methods or constructors which take an array the last parameter. 50
Parameter 'args' is not assigned and could be declared final 50
Local variable 'kafPath' could be declared final 68
Local variable 'nafPath' could be declared final 72
Local variable 'file' could be declared final 82
Local variable 'fileBaseName' could be declared final 83
Local variable 'document' could be declared final 84
Avoid instantiating new objects inside loops 86
Local variable 'buffer' could be declared final 86
Local variable 'wFs' could be declared final 87
Local variable 'wf' could be declared final 88
Avoid appending characters as strings in StringBuffer.append. 90
Local variable 'text' could be declared final 92
Local variable 'doc' could be declared final 94
Local variable 'nafFile' could be declared final 95
Avoid instantiating new objects inside loops 95

pikes-resources - eu/fbk/dkm/pikes/resources/wes/ConvertForSolr.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. 25–98
Avoid unused private fields such as 'LOGGER'. 27
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 'nafFolder' could be declared final 32
Local variable 'xmlFolder' could be declared final 33
Local variable 'extensions' could be declared final 34
Local variable 'nafFolderFile' could be declared final 36
Local variable 'htmlFolderFile' could be declared final 37
Local variable 'fileIterator' could be declared final 40
Local variable 'docFactory' could be declared final 46
Local variable 'docBuilder' could be declared final 47
Local variable 'transformerFactory' could be declared final 48
Local variable 'transformer' could be declared final 49
Local variable 'outputXml' could be declared final 52
Local variable 'm' could be declared final 56
Local variable 'document' could be declared final 58
Local variable 'title' could be declared final 59
Local variable 'text' could be declared final 60
Local variable 'id' could be declared final 61
Local variable 'doc' could be declared final 63
Local variable 'moreRootElement' could be declared final 64
Local variable 'rootElement' could be declared final 65
Local variable 'idEl' could be declared final 69
Local variable 'titleEl' could be declared final 74
Local variable 'textEl' could be declared final 79
Local variable 'source' could be declared final 84
Local variable 'result' could be declared final 85

pikes-resources - eu/fbk/dkm/pikes/resources/wes/Naf2Html.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 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. 18–87
Avoid unused private fields such as 'LOGGER'. 20
Parameter 'args' is not assigned and could be declared final 22
Consider using varargs for methods or constructors which take an array the last parameter. 22
Local variable 'nafFolder' could be declared final 24
Local variable 'htmlFolder' could be declared final 25
Local variable 'extensions' could be declared final 26
Local variable 'nafFolderFile' could be declared final 28
Local variable 'htmlFolderFile' could be declared final 29
Local variable 'fileIterator' could be declared final 32
Local variable 'indexFile' could be declared final 38
Local variable 'writer' could be declared final 39
Local variable 'outputHtml' could be declared final 47
Local variable 'document' could be declared final 50
Local variable 'title' could be declared final 51
Local variable 'text' could be declared final 52
Local variable 'insideWriter' could be declared final 54

pikes-resources - eu/fbk/dkm/pikes/resources/wes/QueryGoogle.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. 24–157
Parameter 'googleCx' is not assigned and could be declared final 36
Parameter 'listWithLinks' is not assigned and could be declared final 36
Parameter 'googleKey' is not assigned and could be declared final 36
Parameter 'query' is not assigned and could be declared final 36
Parameter 'agent' is not assigned and could be declared final 37
Parameter 'query' is not assigned and could be declared final 41
Parameter 'googleKey' is not assigned and could be declared final 41
Parameter 'googleCx' is not assigned and could be declared final 41
Parameter 'listWithLinks' is not assigned and could be declared final 41
Parameter 'start' is not assigned and could be declared final 42
Parameter 'agent' is not assigned and could be declared final 42
StringBuffer constructor is initialized with size 16, but has at least 54 characters appended. 44
Local variable 'url' could be declared final 44
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 45
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 46
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 47
Local variable 'obj' could be declared final 53
Local variable 'con' could be declared final 54
Local variable 'responseCode' could be declared final 62
Local variable 'in' could be declared final 65–66
Local variable 'response' could be declared final 68
Local variable 'mapper' could be declared final 75
Local variable 'root' could be declared final 76
Local variable 'items' could be declared final 77
Local variable 'item' could be declared final 79
Local variable 'link' could be declared final 80
Local variable 'queries' could be declared final 86
Local variable 'nextPageArray' could be declared final 88
Local variable 'nextPage' could be declared final 89
Local variable 'nextStart' could be declared final 90
Parameter 'args' is not assigned and could be declared final 95
Consider using varargs for methods or constructors which take an array the last parameter. 95
Local variable 'outputFile' could be declared final 111
Local variable 'nafQueriesFile' could be declared final 112
Local variable 'userAgent' could be declared final 113
Local variable 'googleKey' could be declared final 115
Local variable 'googleCx' could be declared final 116
Local variable 'writer' could be declared final 118
Local variable 'lines' could be declared final 120
This call to String.startsWith can be rewritten using String.charAt(0) 127
Local variable 'parts' could be declared final 131
Local variable 'id' could be declared final 132
Local variable 'query' could be declared final 133
Avoid instantiating new objects inside loops 135
Local variable 'links' could be declared final 135
Local variable 'link' could be declared final 139
Local variable 'matcher' could be declared final 140

pikes-resources - eu/fbk/dkm/pikes/resources/wes/QuerySolr.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. 22–127
Parameter 'query' is not assigned and could be declared final 32
Parameter 'agent' is not assigned and could be declared final 32
Local variable 'obj' could be declared final 33
Local variable 'con' could be declared final 34
Local variable 'ret' could be declared final 35
Local variable 'responseCode' could be declared final 43
Local variable 'in' could be declared final 46–47
Local variable 'response' could be declared final 49
Local variable 'mapper' could be declared final 56
Local variable 'root' could be declared final 57
Local variable 'response2' could be declared final 58
Local variable 'docs' could be declared final 59
Local variable 'item' could be declared final 61
Local variable 'id' could be declared final 62
Parameter 'args' is not assigned and could be declared final 70
Consider using varargs for methods or constructors which take an array the last parameter. 70
Local variable 'outputFile' could be declared final 87
Local variable 'nafQueriesFile' could be declared final 88
Local variable 'userAgent' could be declared final 89
Local variable 'queryPattern' could be declared final 90
Local variable 'writer' could be declared final 92
Local variable 'lines' could be declared final 94
This call to String.startsWith can be rewritten using String.charAt(0) 101
Local variable 'parts' could be declared final 105
Local variable 'id' could be declared final 106
Local variable 'ids' could be declared final 112
Local variable 's' could be declared final 115

pikes-tintop-client - eu/fbk/dkm/pikes/tintopclient/TintopClient.java

Violation Line
Avoid using redundant field initializer for 'fake' 40
Parameter 'fake' is not assigned and could be declared final 42
Parameter 'serverUrl' is not assigned and could be declared final 46
Local variable 'url' could be declared final 47
Parameter 'server' is not assigned and could be declared final 51
Parameter 'server' is not assigned and could be declared final 55
Parameter 'timeout' is not assigned and could be declared final 55
Parameter 'text' is not assigned and could be declared final 60
Local variable 'defaultRequestConfig' could be declared final 62–66
Local variable 'httpclient' could be declared final 68
Local variable 'uri' could be declared final 69–74
Local variable 'httpPost' could be declared final 78
Local variable 'nameValuePairs' could be declared final 80
Local variable 'form' could be declared final 82
Local variable 'statusCode' could be declared final 86
Local variable 'entity' could be declared final 95
Parameter 'args' is not assigned and could be declared final 108
Consider using varargs for methods or constructors which take an array the last parameter. 108
Local variable 'serverUrl' could be declared final 122
Local variable 'inputFile' could be declared final 123
Local variable 'timeout' could be declared final 124
Local variable 'url' could be declared final 126
Local variable 'server' could be declared final 127
Local variable 'client' could be declared final 128
Local variable 'whole' could be declared final 130

pikes-tintop-client - eu/fbk/dkm/pikes/tintopclient/TintopOrchestrator.java

Violation Line
The class 'TintopOrchestrator' has a Modified Cyclomatic Complexity of 3 (Highest = 11). 27–360
The class 'TintopOrchestrator' has a Cyclomatic Complexity of 3 (Highest = 14). 27–360
The class 'TintopOrchestrator' has a Standard Cyclomatic Complexity of 3 (Highest = 11). 27–360
Private field 'servers' could be made final; it is only initialized in the declaration or constructor. 34
Private field 'fake' could be made final; it is only initialized in the declaration or constructor. 35
Avoid using redundant field initializer for 'fileCache' 36
Avoid using redundant field initializer for 'skipped' 39
Private field 'fileOnError' could be made final; it is only initialized in the declaration or constructor. 41
Parameter 'session' is not assigned and could be declared final 52
Parameter 'server' is not assigned and could be declared final 52
Parameter 'fake' is not assigned and could be declared final 56
Parameter 'server' is not assigned and could be declared final 56
Parameter 'session' is not assigned and could be declared final 56
Local variable 'file' could be declared final 75
Avoid instantiating new objects inside loops 75
Avoid instantiating new objects inside loops 83
Avoid instantiating new objects inside loops 88
Local variable 'reader' could be declared final 88
Local variable 'whole' could be declared final 89
Local variable 'naf' could be declared final 92
Parameter 'fake' is not assigned and could be declared final 118
Parameter 'servers' is not assigned and could be declared final 118
Parameter 'maxErrOnFile' is not assigned and could be declared final 127
Parameter 'maxSize' is not assigned and could be declared final 135
Parameter 'timeout' is not assigned and could be declared final 143
Parameter 'sleepingTime' is not assigned and could be declared final 151
Parameter 'session' is not assigned and could be declared final 155
Parameter 'inputFile' is not assigned and could be declared final 155
Local variable 'outputFile' could be declared final 156–157
Parameter 'filename' is not assigned and could be declared final 161
Use block level rather than method level synchronization 161–169
The method 'getNextFile' has a Modified Cyclomatic Complexity of 11. 171–237
Use block level rather than method level synchronization 171–237
Parameter 'session' is not assigned and could be declared final 171
The method 'getNextFile' has a Cyclomatic Complexity of 14. 171–237
The method getNextFile() has an NPath complexity of 254 171–237
The method 'getNextFile' has a Standard Cyclomatic Complexity of 11. 171–237
Avoid instantiating new objects inside loops 178
Avoid instantiating new objects inside loops 187
Local variable 'p' could be declared final 196
Local variable 'document' could be declared final 212
Avoid using a branching statement as the last in a loop. 233
Parameter 'session' is not assigned and could be declared final 239
Local variable 'server' could be declared final 245
Avoid instantiating new objects inside loops 246
Parameter 'args' 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 method 'main' has a Standard Cyclomatic Complexity of 10. 261–359
The method 'main' has a Modified Cyclomatic Complexity of 10. 261–359
The method 'main' has a Cyclomatic Complexity of 11. 261–359
Local variable 'input' could be declared final 291
Local variable 'output' could be declared final 292
Local variable 'serverList' could be declared final 293
Local variable 'skip' could be declared final 294
Local variable 'maxFail' could be declared final 296
Local variable 'maxSize' could be declared final 297
Local variable 'timeout' could be declared final 298
Local variable 'sleepingTime' could be declared final 299
Local variable 'fake' could be declared final 301
Local variable 'skipPatterns' could be declared final 303
Local variable 'reader' could be declared final 305
These nested if statements could be combined 320–323
Local variable 'tintopServers' could be declared final 326
Local variable 'reader' could be declared final 327
This call to String.startsWith can be rewritten using String.charAt(0) 331
Local variable 'c' could be declared final 335
Avoid instantiating new objects inside loops 335
Avoid empty catch blocks 337–339
Local variable 'extensions' could be declared final 342
Local variable 'fileIterator' could be declared final 343
Local variable 'orchestrator' could be declared final 345
Local variable 'session' could be declared final 351

pikes-tintop-client - eu/fbk/dkm/pikes/tintopclient/TintopServer.java

Violation Line
Parameter 'url' is not assigned and could be declared final 23
Parameter 'url' is not assigned and could be declared final 27
Parameter 'id' is not assigned and could be declared final 27
Parameter 'line' is not assigned and could be declared final 35
Local variable 'parts' could be declared final 36
Parameter 'protocol' is not assigned and could be declared final 46
Parameter 'host' is not assigned and could be declared final 46
Parameter 'port' is not assigned and could be declared final 46
Parameter 'path' is not assigned and could be declared final 46
Parameter 'id' is not assigned and could be declared final 57
Parameter 'protocol' is not assigned and could be declared final 65
Parameter 'host' is not assigned and could be declared final 73
Parameter 'path' is not assigned and could be declared final 81
Parameter 'port' is not assigned and could be declared final 89

pikes-tintop-client - eu/fbk/dkm/pikes/tintopclient/TintopSession.java

Violation Line
Parameter 'output' is not assigned and could be declared final 37
Parameter 'fileIterator' is not assigned and could be declared final 37
Parameter 'input' is not assigned and could be declared final 37
Parameter 'output' is not assigned and could be declared final 41
Parameter 'fileIterator' is not assigned and could be declared final 41
Parameter 'input' is not assigned and could be declared final 41
Parameter 'skipPatterns' is not assigned and could be declared final 41

pikes-tintop - eu/fbk/dkm/pikes/tintop/AnnotationPipeline.java

Violation Line
Possible God class (WMC=157, ATFD=197, TCC=0.027777777777777776) 1–989
The class 'AnnotationPipeline' has a Standard Cyclomatic Complexity of 11 (Highest = 116). 47–989
The class 'AnnotationPipeline' has a Modified Cyclomatic Complexity of 11 (Highest = 112). 47–989
The class 'AnnotationPipeline' has a Cyclomatic Complexity of 12 (Highest = 124). 47–989
Avoid using redundant field initializer for 'statisticsExtractor' 56
Private field 'defaultConfig' could be made final; it is only initialized in the declaration or constructor. 58
Private field 'nerMap' could be made final; it is only initialized in the declaration or constructor. 60
Parameter 'additionalProperties' is not assigned and could be declared final 62
Parameter 'configFile' is not assigned and could be declared final 62
Local variable 'input' could be declared final 65
Local variable 'model' could be declared final 75
Parameter 'value' is not assigned and could be declared final 80
Parameter 'key' is not assigned and could be declared final 80
Parameter 'key' is not assigned and could be declared final 84
Parameter 'node' is not assigned and could be declared final 92
Parameter 'node' is not assigned and could be declared final 96
Avoid reassigning parameters such as 'headFinder' 96
Parameter 'parent' is not assigned and could be declared final 96
Local variable 'head' could be declared final 105
Local variable 'child' could be declared final 110
Parameter 'properties' is not assigned and could be declared final 120
Local variable 'enablePM' could be declared final 122
Local variable 'enableNafFilter' could be declared final 123
Local variable 'enableOntoNotesFilter' could be declared final 124
Local variable 'stanfordFromConfig' could be declared final 128
Local variable 'stanfordPipeline' could be declared final 129
Avoid unused local variables such as 'stanfordPipeline'. 129
The method annotateStanford() has an NCSS line count of 440 160–918
Parameter 'document' is not assigned and could be declared final 160
Parameter 'properties' is not assigned and could be declared final 160
The method 'annotateStanford' has a Cyclomatic Complexity of 124. 160–918
Avoid really long methods. 160–918
Parameter 'NAFdocument' is not assigned and could be declared final 160
The method annotateStanford() has an NPath complexity of 1919403904 160–918
The method 'annotateStanford' has a Modified Cyclomatic Complexity of 112. 160–918
The method 'annotateStanford' has a Standard Cyclomatic Complexity of 116. 160–918
Local variable 'enablePM' could be declared final 163
Local variable 'enableNafFilter' could be declared final 164
Local variable 'enableOntoNotesFilter' could be declared final 165
Local variable 'enableEntityAssignment' could be declared final 166
Local variable 'coreferenceGraph' could be declared final 168
Local variable 'tmx0' could be declared final 172
Local variable 'sentIndexes' could be declared final 179
Local variable 'allTerms' could be declared final 181
Local variable 'tokenFromStart' could be declared final 183
Local variable 'tokenFromEnd' could be declared final 184
Local variable 'allTokens' could be declared final 186
Local variable 'keywords' could be declared final 187
Local variable 'e' could be declared final 190
Local variable 'start' could be declared final 191
Avoid instantiating new objects inside loops 193
Local variable 'get' could be declared final 201
Local variable 'stanfordSentence' could be declared final 203
Local variable 'tokens' could be declared final 204
Local variable 'terms' could be declared final 206
Avoid instantiating new objects inside loops 206
Local variable 'ners' could be declared final 207
Avoid instantiating new objects inside loops 207
Local variable 'children' could be declared final 212
Avoid instantiating new objects inside loops 212
Local variable 'entities' could be declared final 215
Avoid instantiating new objects inside loops 215
Local variable 'stanfordToken' could be declared final 218
Avoid instantiating new objects inside loops 229
Local variable 'thisWF' could be declared final 232
Local variable 'tokenID' could be declared final 235
Local variable 'thisWFSpan' could be declared final 242
Local variable 'thisTerm' could be declared final 244
Local variable 'wnSense' could be declared final 248
Local variable 'normVal' could be declared final 267
Position literals first in String comparisons 269
Avoid instantiating new objects inside loops 283
Local variable 'newEntity' could be declared final 283
Local variable 'stanfordToken' could be declared final 296
Local variable 'depRel' could be declared final 305
Local variable 'from' could be declared final 307
Local variable 'to' could be declared final 308
Local variable 'word' could be declared final 312
Local variable 'toRoot' could be declared final 314
Local variable 'w' could be declared final 315
Local variable 'id' could be declared final 316
Local variable 'entity' could be declared final 388
Local variable 'startIndex' could be declared final 390
Local variable 'endIndex' could be declared final 391–394
Do not add empty strings 396
Local variable 'thisTermSpan' could be declared final 400
Local variable 'thisWFSpan' could be declared final 401
Avoid instantiating new objects inside loops 408
Local variable 'thisTermList' could be declared final 408
Local variable 'thisWFList' could be declared final 409
Avoid instantiating new objects inside loops 409
A switch statement does not contain a break 417–481
Local variable 'possibleEntities' could be declared final 434
Local variable 'loopEntity' could be declared final 436
Local variable 'end' could be declared final 437
Local variable 'ext' could be declared final 448
Local variable 'stanfordToken' could be declared final 485
Local variable 'predicate' could be declared final 487
Local variable 'thisTermSpan' could be declared final 489
Local variable 'thisTerm' could be declared final 490
Local variable 'tmpSense' could be declared final 491
Local variable 'newPred' could be declared final 495
Local variable 'roleset' could be declared final 514
Avoid instantiating new objects inside loops 522
Avoid instantiating new objects inside loops 523
These nested if statements could be combined 526–668
Avoid instantiating new objects inside loops 528
Local variable 'vnToAdd' could be declared final 528
Local variable 'vnClass1' could be declared final 535
Local variable 'vnClass' could be declared final 542
Avoid instantiating new objects inside loops 552
Local variable 'vnSubClasses' could be declared final 560
Local variable 'vnSubClass1' could be declared final 562
Local variable 'vnClass' could be declared final 563
These nested if statements could be combined 572–574
Local variable 'vnClass1' could be declared final 580
Local variable 'vnClass' could be declared final 581
Avoid instantiating new objects inside loops 589
Local variable 'possibleFrames' could be declared final 589
Local variable 'vnClass' could be declared final 590
Local variable 'fnFrame1' could be declared final 603
Local variable 'fnFrame' could be declared final 604
Local variable 'fnFrame' could be declared final 611
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 613
Avoid instantiating new objects inside loops 622
Local variable 'fnFrame' could be declared final 625
Local variable 'pbPredicates' could be declared final 633
Local variable 'pbPredicate1' could be declared final 635
Local variable 'pbPredicate' could be declared final 636
Local variable 'esoClasses' could be declared final 642
Local variable 'esoClass1' could be declared final 644
Local variable 'esoClass' could be declared final 645
Local variable 'eventTypes' could be declared final 651
Local variable 'eventType1' could be declared final 653
Local variable 'eventType' could be declared final 654
Local variable 'wnSenses' could be declared final 660
Local variable 'wnSense1' could be declared final 662
Local variable 'wnSense' could be declared final 663
Local variable 'w' could be declared final 671
Local variable 'thisTermSpanForRole' could be declared final 672
Local variable 'k' could be declared final 673
Local variable 'argument' could be declared final 678
Local variable 'newRole' could be declared final 679
Local variable 'vnThematicRoles' could be declared final 684
Local variable 'vnThematicRole1' could be declared final 686
Local variable 'vnThematicRole' could be declared final 688–689
Local variable 'parts' could be declared final 692
Local variable 'vnThematicRole' could be declared final 694–695
Local variable 'fnFrameElements' could be declared final 703
Local variable 'fnFrameElement1' could be declared final 705
Local variable 'fnFrameElement' could be declared final 707–708
Local variable 'parts' could be declared final 711
Local variable 'fnFrameElement' could be declared final 713–714
Local variable 'pbArguments' could be declared final 722
Local variable 'pbArgument1' could be declared final 724
Local variable 'pbArgument' could be declared final 725
Local variable 'esoRoles' could be declared final 731
Local variable 'esoRole1' could be declared final 733
Local variable 'esoRole' could be declared final 734
Local variable 'semaforParseResult' could be declared final 747
Avoid instantiating new objects inside loops 748
Local variable 'mapper' could be declared final 748
Local variable 'semaforResponse' could be declared final 749–750
Local variable 'semaforFrame' could be declared final 751
Local variable 'semaforTarget' could be declared final 752
Local variable 'frameName' could be declared final 756
Local variable 'semaforSpan' could be declared final 765
Local variable 'semaforAnnotation' could be declared final 766
Local variable 'termSpan' could be declared final 768
Local variable 'predicate' could be declared final 777
Local variable 'frameAnnotation' could be declared final 783
Local variable 'roleSpan' could be declared final 784
Local variable 'roleName' could be declared final 785
Local variable 'roleTermSpan' could be declared final 787
Local variable 'role' could be declared final 796
Local variable 'tree' could be declared final 813
Local variable 'startIndex' could be declared final 830
Local variable 'e' could be declared final 831
Local variable 'end' could be declared final 832
Local variable 'startToken' could be declared final 833
Local variable 'endToken' could be declared final 834
Local variable 'span' could be declared final 835
Local variable 'linkedEntity' could be declared final 842
Local variable 'c' could be declared final 859
Local variable 'chain' could be declared final 861
Local variable 'mentionMap' could be declared final 862
Avoid instantiating new objects inside loops 869
Local variable 'mentions' could be declared final 869
Local variable 'p' could be declared final 872
Local variable 'm' could be declared final 875
Local variable 'sentenceStartTokenIndex' could be declared final 877
Local variable 'start' could be declared final 878
Local variable 'thisTermSpan' could be declared final 880
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 896
Local variable 'linguisticProcessor' could be declared final 905
Parameter 'NAFdocument' is not assigned and could be declared final 920
Parameter 'NAFdocument' is not assigned and could be declared final 924
Parameter 'merge' is not assigned and could be declared final 924
Local variable 'properties' could be declared final 929
Local variable 'maxTextLen' could be declared final 932
Local variable 'limit' could be declared final 933
Local variable 'stanfordConfig' could be declared final 939
Local variable 'thisSessionProps' could be declared final 942
Local variable 'thisPipeline' could be declared final 943
Local variable 'linguisticProcessor' could be declared final 947
Local variable 'document' could be declared final 949
Avoid reassigning parameters such as 'NAFdocument' 962
Parameter 'textInNafFormat' is not assigned and could be declared final 969
Local variable 'is' could be declared final 972
Local variable 'br' could be declared final 973

pikes-tintop - eu/fbk/dkm/pikes/tintop/CommandLineWithLogger.java

Violation Line
The class 'CommandLineWithLogger' has a Standard Cyclomatic Complexity of 2 (Highest = 10). 9–123
The class 'CommandLineWithLogger' has a Modified Cyclomatic Complexity of 2 (Highest = 10). 9–123
The class 'CommandLineWithLogger' has a Cyclomatic Complexity of 2 (Highest = 11). 9–123
Private field 'options' could be made final; it is only initialized in the declaration or constructor. 11
Parameter 'option' is not assigned and could be declared final 31
Parameter 'version' is not assigned and could be declared final 39
Parameter 'logConfig' is not assigned and could be declared final 55
Local variable 'formatter' could be declared final 60
The method 'getCommandLine' has a Standard Cyclomatic Complexity of 10. 68–122
Parameter 'args' is not assigned and could be declared final 68
The method 'getCommandLine' has a Cyclomatic Complexity of 11. 68–122
The method 'getCommandLine' has a Modified Cyclomatic Complexity of 10. 68–122
Consider using varargs for methods or constructors which take an array the last parameter. 68
Local variable 'parser' could be declared final 69
Local variable 'message' could be declared final 113

pikes-tintop - eu/fbk/dkm/pikes/tintop/FolderOrchestrator.java

Violation Line
The class 'FolderOrchestrator' has a Standard Cyclomatic Complexity of 3 (Highest = 11). 30–349
The class 'FolderOrchestrator' has a Modified Cyclomatic Complexity of 3 (Highest = 11). 30–349
The class 'FolderOrchestrator' has a Cyclomatic Complexity of 4 (Highest = 14). 30–349
Private field 'fileOnError' could be made final; it is only initialized in the declaration or constructor. 40
Avoid using redundant field initializer for 'fileCache' 41
Avoid using redundant field initializer for 'skipped' 42
Document empty constructor 45–46
Parameter 'maxErrOnFile' is not assigned and could be declared final 52
Parameter 'maxSize' is not assigned and could be declared final 60
Parameter 'filename' is not assigned and could be declared final 64
Use block level rather than method level synchronization 64–72
Parameter 'pipeline' is not assigned and could be declared final 79
Parameter 'session' is not assigned and could be declared final 79
Avoid instantiating new objects inside loops 94
Local variable 'file' could be declared final 94
Avoid instantiating new objects inside loops 102
Avoid instantiating new objects inside loops 107
Local variable 'reader' could be declared final 107
Local variable 'whole' could be declared final 108
Parameter 'inputFile' is not assigned and could be declared final 147
Parameter 'session' is not assigned and could be declared final 147
Local variable 'outputFile' could be declared final 148–149
The method 'getNextFile' has a Modified Cyclomatic Complexity of 11. 153–219
The method 'getNextFile' has a Cyclomatic Complexity of 14. 153–219
Parameter 'session' is not assigned and could be declared final 153
Use block level rather than method level synchronization 153–219
The method 'getNextFile' has a Standard Cyclomatic Complexity of 11. 153–219
The method getNextFile() has an NPath complexity of 254 153–219
Avoid instantiating new objects inside loops 160
Avoid instantiating new objects inside loops 169
Local variable 'p' could be declared final 178
Local variable 'document' could be declared final 194
Avoid using a branching statement as the last in a loop. 215
Parameter 'session' is not assigned and could be declared final 221
Parameter 'size' is not assigned and could be declared final 221
Parameter 'pipeline' is not assigned and could be declared final 221
Avoid instantiating new objects inside loops 228
Parameter 'args' is not assigned and could be declared final 243
The method 'main' has a Standard Cyclomatic Complexity of 10. 243–348
Avoid really long methods. 243–348
The method 'main' has a Modified Cyclomatic Complexity of 10. 243–348
Consider using varargs for methods or constructors which take an array the last parameter. 243
The method 'main' has a Cyclomatic Complexity of 10. 243–348
Local variable 'input' could be declared final 270
Local variable 'output' could be declared final 271
Local variable 'skip' could be declared final 272
Local variable 'configFile' could be declared final 273
Local variable 'maxFail' could be declared final 275
Local variable 'maxSize' could be declared final 276
Local variable 'size' could be declared final 277
Local variable 'addProperties' could be declared final 279
Local variable 'additionalProps' could be declared final 280
Local variable 'property' could be declared final 281
Avoid instantiating new objects inside loops 283
Local variable 'skipPatterns' could be declared final 289
Local variable 'reader' could be declared final 291
These nested if statements could be combined 306–309
Local variable 'orchestrator' could be declared final 322
Local variable 'extensions' could be declared final 326
Local variable 'fileIterator' could be declared final 327
Local variable 'session' could be declared final 329

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/AnnaParseAnnotator.java

Violation Line
Private field 'parser' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'maxLen' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'language' could be made final; it is only initialized in the declaration or constructor. 25
Parameter 'props' is not assigned and could be declared final 27
Parameter 'annotatorName' is not assigned and could be declared final 27
Local variable 'posModel' could be declared final 28
Parameter 'annotation' is not assigned and could be declared final 35
Local variable 'stanfordSentence' could be declared final 37
Local variable 'tokens' could be declared final 38
Avoid instantiating new objects inside loops 43
Local variable 'forms' could be declared final 43
Avoid instantiating new objects inside loops 44
Local variable 'poss' could be declared final 44
Avoid instantiating new objects inside loops 45
Local variable 'lemmas' could be declared final 45
Local variable 'token' could be declared final 51
Position literals first in String comparisons 54
Position literals first in String comparisons 55
These nested if statements could be combined 55–58
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 57
Local variable 'localSentenceData091' could be declared final 71
Avoid instantiating new objects inside loops 71
Avoid instantiating new objects inside loops 72
Avoid instantiating new objects inside loops 73
Local variable 'token' could be declared final 81

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/AnnaPosAnnotator.java

Violation Line
Private field 'tagger' could be made final; it is only initialized in the declaration or constructor. 24
Parameter 'props' is not assigned and could be declared final 26
Parameter 'annotatorName' is not assigned and could be declared final 26
Local variable 'posModel' could be declared final 27
Parameter 'annotation' is not assigned and could be declared final 32
Local variable 'sentence' could be declared final 34
Local variable 'tokens' could be declared final 35
Avoid instantiating new objects inside loops 37
Local variable 'sz' could be declared final 40
Local variable 'thisToken' could be declared final 41
Local variable 'instance' could be declared final 45
Avoid instantiating new objects inside loops 45
Local variable 'sz' could be declared final 49
Local variable 'thisToken' could be declared final 50
Local variable 'pos' could be declared final 51

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/AnnotatorUtils.java

Violation Line
Avoid unused imports such as 'java.util.Map' 5
Avoid unused imports such as 'java.util.Properties' 6
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. 12–46
Parameter 'input' is not assigned and could be declared final 17
Parameter 'input' is not assigned and could be declared final 28
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 31
Using equalsIgnoreCase() is cleaner than using toUpperCase/toLowerCase().equals(). 31
Parameter 'pos' is not assigned and could be declared final 39
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 40

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/Defaults.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. 11–119
Parameter 'value' is not assigned and could be declared final 16
Parameter 'defaultValue' is not assigned and could be declared final 16
Parameter 'defaultValue' is not assigned and could be declared final 24
Parameter 'value' is not assigned and could be declared final 24
Local variable 's' could be declared final 26
Local variable 's' could be declared final 31
Parameter 'defaultValue' is not assigned and could be declared final 44
Parameter 'value' is not assigned and could be declared final 44
Local variable 'ret' could be declared final 53
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 78
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 79
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 80
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 81
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 82
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 84
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 85
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 86
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 87
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 88
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 90
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 92
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 94
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 96
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 97
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 99
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 100
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 101
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 102
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 103
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 105
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 106
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 108
Parameter 'config' is not assigned and could be declared final 110

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/FakeAnnaParserAnnotator.java

Violation Line
Parameter 'props' is not assigned and could be declared final 26
Avoid unused constructor parameters such as 'props'. 26
Avoid unused constructor parameters such as 'annotatorName'. 26
Parameter 'annotatorName' is not assigned and could be declared final 26
Document empty constructor 26–28
Parameter 'annotation' is not assigned and could be declared final 31
Local variable 'sentence' could be declared final 33
Local variable 'dependencies' could be declared final 34–35
Local variable 'info' could be declared final 36
Avoid instantiating new objects inside loops 36
Local variable 'tokens' could be declared final 39
Local variable 'token' could be declared final 41

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/FakeLemmaAnnotator.java

Violation Line
Avoid unused imports such as 'eu.fbk.dkm.pikes.tintop.annotators.models.AnnaPosModel' 8
Avoid unused imports such as 'is2.data.SentenceData09' 9
Avoid unused imports such as 'is2.tag.Tagger' 10
Avoid unused imports such as 'java.io.File' 12
Avoid unused constructor parameters such as 'annotatorName'. 24
Parameter 'props' is not assigned and could be declared final 24
Document empty constructor 24–25
Parameter 'annotatorName' is not assigned and could be declared final 24
Avoid unused constructor parameters such as 'props'. 24
Parameter 'annotation' is not assigned and could be declared final 28
Avoid unused local variables such as 'tk'. 30
Local variable 'tk' could be declared final 30
Avoid declaring a variable if it is unreferenced before a possible exit point. 30
Local variable 'sentence' could be declared final 33
Local variable 'tokens' could be declared final 34
Local variable 'sz' could be declared final 36
Local variable 'thisToken' could be declared final 37

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/FakeMstParserAnnotator.java

Violation Line
Parameter 'annotatorName' is not assigned and could be declared final 22
Avoid unused constructor parameters such as 'annotatorName'. 22
Parameter 'props' is not assigned and could be declared final 22
Document empty constructor 22–24
Avoid unused constructor parameters such as 'props'. 22
Parameter 'annotation' is not assigned and could be declared final 27
Local variable 'sentence' could be declared final 29
Local variable 'dependencies' could be declared final 30–31
Avoid instantiating new objects inside loops 33
Local variable 'info' could be declared final 33

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/FakePosAnnotator.java

Violation Line
Parameter 'annotatorName' is not assigned and could be declared final 22
Parameter 'props' is not assigned and could be declared final 22
Parameter 'annotation' is not assigned and could be declared final 27
Local variable 'sentence' could be declared final 32
Local variable 'tokens' could be declared final 33
Local variable 'sz' could be declared final 35
Local variable 'thisToken' could be declared final 36

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/MateSrlAnnotator.java

Violation Line
The class 'MateSrlAnnotator' has a Standard Cyclomatic Complexity of 4 (Highest = 13). 26–154
The class 'MateSrlAnnotator' has a Modified Cyclomatic Complexity of 4 (Highest = 13). 26–154
The class 'MateSrlAnnotator' has a Cyclomatic Complexity of 4 (Highest = 13). 26–154
Private field 'labeler' could be made final; it is only initialized in the declaration or constructor. 28
Avoid using redundant field initializer for 'labelerBe' 29
Parameter 'props' is not assigned and could be declared final 32
Parameter 'annotatorName' is not assigned and could be declared final 32
Local variable 'model' could be declared final 34
Local variable 'modelBe' could be declared final 36
Parameter 'stanfordSentence' is not assigned and could be declared final 45
Local variable 'get' could be declared final 48
Local variable 'size' could be declared final 49
Local variable 'token' could be declared final 64
The method 'annotate' has a Standard Cyclomatic Complexity of 13. 82–143
The method 'annotate' has a Modified Cyclomatic Complexity of 13. 82–143
Parameter 'annotation' is not assigned and could be declared final 82
The method 'annotate' has a Cyclomatic Complexity of 13. 82–143
Local variable 'stanfordSentence' could be declared final 84
Local variable 'word' could be declared final 96
Local variable 'tokenID' could be declared final 97
Local variable 'predicate' could be declared final 110
Local variable 'tokenID' could be declared final 111
Local variable 'sentenceBe' could be declared final 121
Local variable 'predicate' could be declared final 124
Local variable 'tokenID' could be declared final 125
Local variable 'lemma' could be declared final 126–127
Position literals first in String comparisons 128

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/MstServerParserAnnotator.java

Violation Line
Parameter 'props' is not assigned and could be declared final 23
Parameter 'annotatorName' is not assigned and could be declared final 23
Local variable 'server' could be declared final 24
Local variable 'port' could be declared final 25
Parameter 'annotation' is not assigned and could be declared final 33
Local variable 'sentence' could be declared final 35
Local variable 'tokens' could be declared final 36
Avoid instantiating new objects inside loops 41
Local variable 'forms' could be declared final 41
Local variable 'poss' could be declared final 42
Avoid instantiating new objects inside loops 42
Local variable 'stanfordToken' could be declared final 43
Local variable 'form' could be declared final 44
Local variable 'pos' could be declared final 45
Local variable 'depParseInfo' could be declared final 51

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/NERCustomAnnotator.java

Violation Line
The class 'NERCustomAnnotator' has a Cyclomatic Complexity of 3 (Highest = 18). 30–203
The class 'NERCustomAnnotator' has a Modified Cyclomatic Complexity of 3 (Highest = 17). 30–203
The class 'NERCustomAnnotator' has a Standard Cyclomatic Complexity of 3 (Highest = 17). 30–203
Parameter 'verbose' is not assigned and could be declared final 44
Parameter 'classifiers' is not assigned and could be declared final 50
Parameter 'verbose' is not assigned and could be declared final 50
Parameter 'ner' is not assigned and could be declared final 56
Parameter 'verbose' is not assigned and could be declared final 56
Parameter 'nThreads' is not assigned and could be declared final 60
Parameter 'maxTime' is not assigned and could be declared final 60
Parameter 'verbose' is not assigned and could be declared final 60
Parameter 'ner' is not assigned and could be declared final 60
Parameter 'nThreads' is not assigned and could be declared final 64
Parameter 'ner' is not assigned and could be declared final 64
Parameter 'verbose' is not assigned and could be declared final 64
Parameter 'maxTime' is not assigned and could be declared final 64
Parameter 'maxSentenceLength' is not assigned and could be declared final 65
Parameter 'properties' is not assigned and could be declared final 73
Parameter 'name' is not assigned and could be declared final 73
Parameter 'annotation' is not assigned and could be declared final 91
Parameter 'annotation' is not assigned and could be declared final 105
Parameter 'sentence' is not assigned and could be declared final 105
The method 'doOneSentence' has a Modified Cyclomatic Complexity of 17. 105–176
The method 'doOneSentence' has a Standard Cyclomatic Complexity of 17. 105–176
The method doOneSentence() has an NPath complexity of 1600 105–176
The method 'doOneSentence' has a Cyclomatic Complexity of 18. 105–176
Local variable 'tokens' could be declared final 106
Local variable 'token' could be declared final 110
Local variable 'w' could be declared final 128
Local variable 'w' could be declared final 137
Local variable 'neTag' could be declared final 150
Local variable 'normNeTag' could be declared final 151
Avoid using if statements without curly braces 153
Local variable 'w' could be declared final 160
Local variable 'token' could be declared final 171
Parameter 'annotation' is not assigned and could be declared final 179
Parameter 'sentence' is not assigned and could be declared final 179
Local variable 'tokens' could be declared final 180
Local variable 'token' could be declared final 181

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/PikesAnnotations.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 19
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 22
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 23
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. 26
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. 29
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. 32

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/SemaforAnnotator.java

Violation Line
Private field 'parser' could be made final; it is only initialized in the declaration or constructor. 24
Parameter 'annotatorName' is not assigned and could be declared final 27
Parameter 'props' is not assigned and could be declared final 27
Local variable 'semaforModelDir' could be declared final 28
Parameter 'annotation' is not assigned and could be declared final 34
Local variable 'stanfordSentence' could be declared final 37
Local variable 'tokens' could be declared final 39
Local variable 'sentenceTokens' could be declared final 44
Avoid instantiating new objects inside loops 44
Local variable 'depParseInfo' could be declared final 46
Local variable 'token' could be declared final 52
Local variable 'form' could be declared final 53
Local variable 'pos' could be declared final 54
Local variable 'lemma' could be declared final 55
Local variable 'head' could be declared final 57
Local variable 'rel' could be declared final 58
Avoid instantiating new objects inside loops 60
Local variable 'fnToken' could be declared final 60
Avoid instantiating new objects inside loops 65
Local variable 'sentence' could be declared final 65
Local variable 'results' could be declared final 68

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/SimplePosAnnotator.java

Violation Line
Document empty constructor 20–21
Parameter 'annotatorName' is not assigned and could be declared final 20
Avoid unused constructor parameters such as 'props'. 20
Avoid unused constructor parameters such as 'annotatorName'. 20
Parameter 'props' is not assigned and could be declared final 20
Parameter 'annotation' is not assigned and could be declared final 24
Local variable 'sentence' could be declared final 26
Local variable 'tokens' could be declared final 27
Local variable 'token' could be declared final 29
Local variable 'pos' could be declared final 30

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/TreeTaggerPosAnnotator.java

Violation Line
Private field 'tt' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'annotatorName' is not assigned and could be declared final 23
Parameter 'props' is not assigned and could be declared final 23
Parameter 'lemma' is not assigned and could be declared final 28
Avoid reassigning parameters such as 'pos' 28
Avoid reassigning parameters such as 'pos' 28
Parameter 'token' is not assigned and could be declared final 28
Parameter 'annotation' is not assigned and could be declared final 40
Local variable 'sentence' could be declared final 42
Local variable 'tokens' could be declared final 43
Avoid instantiating new objects inside loops 47
Avoid instantiating new objects inside loops 48
Local variable 'stringTokens' could be declared final 48
Local variable 'sz' could be declared final 49
Local variable 'sz' could be declared final 53
Local variable 'thisToken' could be declared final 54
Local variable 'pos' could be declared final 55

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/UKBAnnotator.java

Violation Line
Parameter 'annotatorName' is not assigned and could be declared final 25
Parameter 'props' is not assigned and could be declared final 25
Local variable 'newProps' could be declared final 26
Parameter 'annotation' is not assigned and could be declared final 36
Local variable 'sentence' could be declared final 38
Local variable 'tokens' could be declared final 39
Avoid instantiating new objects inside loops 44
Local variable 'terms' could be declared final 44
Local variable 'token' could be declared final 45
Avoid instantiating new objects inside loops 46
Local variable 'term' could be declared final 46
Local variable 'sz' could be declared final 60
Local variable 'thisToken' could be declared final 61
Local variable 'wn' could be declared final 62

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/UKBResourcePool.java

Violation Line
Private field 'dict' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'model' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'baseDir' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'model' is not assigned and could be declared final 22
Parameter 'numResources' is not assigned and could be declared final 22
Parameter 'dict' is not assigned and could be declared final 22
Parameter 'baseDir' is not assigned and could be declared final 22
Local variable 'command' could be declared final 30
Local variable 'pb' could be declared final 31
Local variable 'process' could be declared final 36
Local variable 'brCleanUp' could be declared final 37
Avoid unused local variables such as 'line'. 38
Local variable 'line' could be declared final 38

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/models/AnnaParseModel.java

Violation Line
A class which only has private constructors should be final 14–38
Private field 'parser' could be made final; it is only initialized in the declaration or constructor. 17
Parameter 'posModel' is not assigned and could be declared final 20
Local variable 'arrayOfString' could be declared final 22
Local variable 'localOptions' could be declared final 23
Parameter 'posModel' is not assigned and could be declared final 27
Singleton is not thread safe 28–30

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/models/AnnaPosModel.java

Violation Line
A class which only has private constructors should be final 14–36
Private field 'tagger' could be made final; it is only initialized in the declaration or constructor. 17
Parameter 'posModel' is not assigned and could be declared final 20
Parameter 'posModel' is not assigned and could be declared final 25
Singleton is not thread safe 26–28

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/models/MateSrlBeModel.java

Violation Line
A class which only has private constructors should be final 16–48
Parameter 'mateModel' is not assigned and could be declared final 22
Parameter 'posModel' is not assigned and could be declared final 37
Singleton is not thread safe 38–40

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/models/MateSrlModel.java

Violation Line
A class which only has private constructors should be final 16–48
Parameter 'mateModel' is not assigned and could be declared final 22
Parameter 'posModel' is not assigned and could be declared final 37
Singleton is not thread safe 38–40

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/models/SemaforModel.java

Violation Line
A class which only has private constructors should be final 11–37
Parameter 'modelDir' is not assigned and could be declared final 17
Parameter 'modelDir' is not assigned and could be declared final 26
Singleton is not thread safe 27–29

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/models/UKBModel.java

Violation Line
Avoid unused imports such as 'eu.fbk.dkm.pikes.tintop.annotators.raw.UKB' 3
Avoid unused imports such as 'java.util.Map' 9
A class which only has private constructors should be final 16–39
Private field 'tagger' could be made final; it is only initialized in the declaration or constructor. 19
Parameter 'properties' is not assigned and could be declared final 22
Parameter 'properties' is not assigned and could be declared final 26
Singleton is not thread safe 27–30

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/raw/MstServerParser.java

Violation Line
Private field 'port' could be made final; it is only initialized in the declaration or constructor. 25
Private field 'server' could be made final; it is only initialized in the declaration or constructor. 26
Parameter 'port' is not assigned and could be declared final 28
Parameter 'server' is not assigned and could be declared final 28
Parameter 'poss' is not assigned and could be declared final 33
Parameter 'tokens' is not assigned and could be declared final 33
Local variable 'sb' could be declared final 39
Local variable 'token' could be declared final 42
Local variable 'pos' could be declared final 43
Avoid appending characters as strings in StringBuffer.append. 46
Avoid appending characters as strings in StringBuffer.append. 48
Use block level rather than method level synchronization 54–91
Parameter 'text' is not assigned and could be declared final 54
Local variable 'clientSocket' could be declared final 58
Local variable 'writer' could be declared final 59
Local variable 'inFromServer' could be declared final 60
Local variable 'depParents' could be declared final 64
Local variable 'depLabels' could be declared final 65
Local variable 'parts' could be declared final 75
Local variable 'id' could be declared final 78
Parameter 'args' is not assigned and could be declared final 93
Consider using varargs for methods or constructors which take an array the last parameter. 93
Local variable 'mstParser' could be declared final 95
Local variable 'text' could be declared final 97
Local variable 'tag' could be declared final 99

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/raw/Semafor.java

Violation Line
Avoid unused imports such as 'java.util.Properties' 14
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 141
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 142
Private field 'port' could be made final; it is only initialized in the declaration or constructor. 142
Private field 'server' could be made final; it is only initialized in the declaration or constructor. 143
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 143
Parameter 'port' is not assigned and could be declared final 145
Parameter 'server' is not assigned and could be declared final 145
Parameter 'text' is not assigned and could be declared final 150
Local variable 'mapper' could be declared final 153
Local variable 'clientSocket' could be declared final 162
Local variable 'outToServer' could be declared final 164
Local variable 'inFromServer' could be declared final 165
Local variable 'response' could be declared final 170
Parameter 'args' is not assigned and could be declared final 177
Consider using varargs for methods or constructors which take an array the last parameter. 177
Local variable 'semafor' could be declared final 179
Local variable 'text' could be declared final 181
Useless parentheses. 181
Local variable 'tag' could be declared final 183

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/raw/UKB.java

Violation Line
The class 'UKB' has a Modified Cyclomatic Complexity of 4 (Highest = 11). 20–168
The class 'UKB' has a Cyclomatic Complexity of 5 (Highest = 15). 20–168
The class 'UKB' has a Standard Cyclomatic Complexity of 5 (Highest = 15). 20–168
Avoid using redundant field initializer for 'stdin' 24
Perhaps 'stdout' could be replaced by a local variable. 25
Avoid using redundant field initializer for 'stdout' 25
Perhaps 'process' could be replaced by a local variable. 26
Perhaps 'pb' could be replaced by a local variable. 28
Private field 'config' could be made final; it is only initialized in the declaration or constructor. 30
Avoid using redundant field initializer for 'numOfRestarts' 31
This final field could be made static 32
Parameter 'properties' is not assigned and could be declared final 34
Prefer StringBuffer over += for concatenating strings 42
Local variable 'model' could be declared final 45
Local variable 'dict' could be declared final 46
Local variable 'command' could be declared final 47
Avoid unused local variables such as 'line'. 61
Local variable 'line' could be declared final 61
Parameter 'sb' is not assigned and could be declared final 64
Parameter 'pos' is not assigned and could be declared final 64
Parameter 'term' is not assigned and could be declared final 64
Parameter 'index' is not assigned and could be declared final 64
Parameter 'backupTerms' is not assigned and could be declared final 65
Local variable 'thisID' could be declared final 66
Avoid appending characters as strings in StringBuffer.append. 68
Avoid appending characters as strings in StringBuffer.append. 70
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 72
Avoid appending characters as strings in StringBuffer.append. 73
The method 'run' has a Standard Cyclomatic Complexity of 15. 77–167
Parameter 'terms' is not assigned and could be declared final 77
The method 'run' has a Modified Cyclomatic Complexity of 11. 77–167
The method run() has an NPath complexity of 546 77–167
Use block level rather than method level synchronization 77–167
The method 'run' has a Cyclomatic Complexity of 15. 77–167
Local variable 'backupTerms' could be declared final 79
Local variable 'sb' could be declared final 81
StringBuffer constructor is initialized with size 16, but has at least 37 characters appended. 81
Local variable 'sbTokens' could be declared final 84
Local variable 't' could be declared final 86
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 112
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 114
Avoid appending characters as strings in StringBuffer.append. 114
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 114
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 114
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 117
Local variable 'transformedStr' could be declared final 120
Local variable 'parts' could be declared final 141
Local variable 'context' could be declared final 142
Position literals first in String comparisons 143
Local variable 'tokenID' could be declared final 147
Local variable 'thisTerm' could be declared final 148
Local variable 'scores' could be declared final 154
Local variable 'wn' could be declared final 158
Avoid using a branching statement as the last in a loop. 162

pikes-tintop - eu/fbk/dkm/pikes/tintop/annotators/raw/UKB_MT.java

Violation Line
The class 'UKB_MT' has a Standard Cyclomatic Complexity of 6 (Highest = 19). 21–181
The class 'UKB_MT' has a Modified Cyclomatic Complexity of 5 (Highest = 15). 21–181
The class 'UKB_MT' has a Cyclomatic Complexity of 6 (Highest = 20). 21–181
Avoid using redundant field initializer for 'resourcePool' 25
Private field 'config' could be made final; it is only initialized in the declaration or constructor. 26
Avoid using redundant field initializer for 'numOfRestarts' 28
Parameter 'properties' is not assigned and could be declared final 31
Prefer StringBuffer over += for concatenating strings 39
Local variable 'model' could be declared final 42
Local variable 'dict' could be declared final 43
Local variable 'numResources' could be declared final 44
Parameter 'sb' is not assigned and could be declared final 51
Parameter 'pos' is not assigned and could be declared final 51
Parameter 'index' is not assigned and could be declared final 51
Parameter 'term' is not assigned and could be declared final 51
Parameter 'backupTerms' is not assigned and could be declared final 52
Local variable 'thisID' could be declared final 53
Avoid appending characters as strings in StringBuffer.append. 55
Avoid appending characters as strings in StringBuffer.append. 57
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 59
Avoid appending characters as strings in StringBuffer.append. 60
Parameter 'terms' is not assigned and could be declared final 64
The method 'run' has a Modified Cyclomatic Complexity of 15. 64–180
The method run() has an NPath complexity of 1862 64–180
Avoid really long methods. 64–180
The method 'run' has a Cyclomatic Complexity of 20. 64–180
The method 'run' has a Standard Cyclomatic Complexity of 19. 64–180
Local variable 'backupTerms' could be declared final 66
StringBuffer constructor is initialized with size 16, but has at least 37 characters appended. 68
Local variable 'sb' could be declared final 68
Local variable 'sbTokens' could be declared final 71
Local variable 't' could be declared final 73
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 99
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 101
Avoid appending characters as strings in StringBuffer.append. 101
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 101
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 101
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 104
Local variable 'transformedStr' could be declared final 107
Local variable 'brCleanUp' could be declared final 141
Local variable 'parts' could be declared final 145
Local variable 'context' could be declared final 146
Position literals first in String comparisons 147
Local variable 'tokenID' could be declared final 151
Local variable 'thisTerm' could be declared final 152
Local variable 'scores' could be declared final 158
Local variable 'wn' could be declared final 162
Avoid using a branching statement as the last in a loop. 166

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/AbstractHandler.java

Violation Line
Avoid unused imports such as 'java.util.HashSet' 14
Parameter 'pipeline' is not assigned and could be declared final 38
Parameter 'request' is not assigned and could be declared final 44
Parameter 'response' is not assigned and could be declared final 44
Local variable 'parameterLabel' could be declared final 49
Local variable 'key' could be declared final 60
Parameter 'output' is not assigned and could be declared final 70
Parameter 'contentType' is not assigned and could be declared final 70
Parameter 'response' is not assigned and could be declared final 70
Parameter 'text' is not assigned and could be declared final 76
Parameter 'meta' is not assigned and could be declared final 76
Local variable 'doc' could be declared final 77
Local variable 'format' could be declared final 80
Local variable 'fileDesc' could be declared final 92
Local variable 'aPublic' could be declared final 93

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/EverythingHandler.java

Violation Line
Parameter 'pipeline' is not assigned and could be declared final 29
Parameter 'request' is not assigned and could be declared final 34
Parameter 'response' is not assigned and could be declared final 34
Local variable 'host' could be declared final 38
Local variable 'referer' could be declared final 40
Local variable 'okReferer' could be declared final 41
Local variable 'text' could be declared final 52
Local variable 'demoProperties' could be declared final 67
Local variable 'fusion' could be declared final 77
Local variable 'normalization' could be declared final 78
Local variable 'filter' could be declared final 83
Local variable 'generator' could be declared final 84
Local variable 'renderer' could be declared final 85
Local variable 'writer' could be declared final 89

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/NafGenerateHandler.java

Violation Line
Parameter 'pipeline' is not assigned and could be declared final 18
Parameter 'response' is not assigned and could be declared final 23
Parameter 'request' is not assigned and could be declared final 23
Local variable 'text' could be declared final 27
Local variable 'doc' could be declared final 28

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/NafHandler.java

Violation Line
Avoid unused imports such as 'java.io.File' 9
Parameter 'pipeline' is not assigned and could be declared final 23
Parameter 'response' is not assigned and could be declared final 28
Parameter 'request' is not assigned and could be declared final 28
Local variable 'naf' could be declared final 33

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/NafVisualizeHandler.java

Violation Line
Parameter 'pipeline' is not assigned and could be declared final 25
Parameter 'request' is not assigned and could be declared final 30
Parameter 'response' is not assigned and could be declared final 30
Local variable 'naf' could be declared final 34
Local variable 'document' could be declared final 35
Local variable 'filter' could be declared final 37
Local variable 'generator' could be declared final 38
Local variable 'renderer' could be declared final 39
Local variable 'writer' could be declared final 43
Local variable 'res' could be declared final 45

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/PipelineServer.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. 25–133
Do not hard code the IP address 29
Parameter 'port' is not assigned and could be declared final 32
Parameter 'host' is not assigned and could be declared final 32
Parameter 'port' is not assigned and could be declared final 36
Parameter 'host' is not assigned and could be declared final 36
Parameter 'configFile' is not assigned and could be declared final 36
Parameter 'port' is not assigned and could be declared final 40
Parameter 'host' is not assigned and could be declared final 40
Parameter 'configFile' is not assigned and could be declared final 40
Parameter 'additionalProperties' is not assigned and could be declared final 41
Local variable 'nl' could be declared final 66
Parameter 'args' is not assigned and could be declared final 94
Consider using varargs for methods or constructors which take an array the last parameter. 94
Local variable 'host' could be declared final 111
Local variable 'port' could be declared final 112
Local variable 'configFile' could be declared final 113
Local variable 'addProperties' could be declared final 115
Local variable 'additionalProps' could be declared final 117
Local variable 'property' could be declared final 118
Avoid instantiating new objects inside loops 120
Avoid unused local variables such as 'pipelineServer'. 126
Local variable 'pipelineServer' could be declared final 126

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/ResourcePool.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 17
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 19
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 20
Avoid reassigning parameters such as 'numResources' 26
Parameter 'maxWaitMillis' is not assigned and could be declared final 33
Local variable 'res' could be declared final 39
Parameter 'res' is not assigned and could be declared final 54

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/Text2NafHandler.java

Violation Line
Parameter 'pipeline' is not assigned and could be declared final 18
Parameter 'response' is not assigned and could be declared final 23
Parameter 'request' is not assigned and could be declared final 23
Local variable 'text' could be declared final 27

pikes-tintop - eu/fbk/dkm/pikes/tintop/server/TriplesHandler.java

Violation Line
Parameter 'pipeline' is not assigned and could be declared final 36
Parameter 'request' is not assigned and could be declared final 41
Parameter 'response' is not assigned and could be declared final 41
Local variable 'host' could be declared final 45
Local variable 'referer' could be declared final 47
Local variable 'okReferer' could be declared final 48
Local variable 'text' could be declared final 55
Local variable 'demoProperties' could be declared final 69
Local variable 'fusion' could be declared final 79
Local variable 'normalization' could be declared final 80
Local variable 'filter' could be declared final 85
Local variable 'generator' could be declared final 86
Local variable 'writer' could be declared final 89
Local variable 'rdfWriter' could be declared final 90
Local variable 'statementList' could be declared final 92
Local variable 'rdfSource' could be declared final 95

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/GenericCommandLine.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. 16–44
Parameter 'baseDir' is not assigned and could be declared final 20
Parameter 'command' is not assigned and could be declared final 20
Local variable 'ret' could be declared final 23
Local variable 'pb' could be declared final 25
Local variable 'bri' could be declared final 31–32

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/NerEntity.java

Violation Line
Avoid using redundant field initializer for 'normalizedValue' 20
Parameter 'label' is not assigned and could be declared final 22
Parameter 'startToken' is not assigned and could be declared final 22
Parameter 'normalizedValue' is not assigned and could be declared final 28
Parameter 'label' is not assigned and could be declared final 28
Parameter 'startToken' is not assigned and could be declared final 28
Parameter 'label' is not assigned and could be declared final 39
Parameter 'startToken' is not assigned and could be declared final 47
Parameter 'endToken' is not assigned and could be declared final 55
Parameter 'normalizedValue' is not assigned and could be declared final 63

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/RemoveLoopsInConll.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. 19–76
Parameter 'sentence' is not assigned and could be declared final 23
Unnecessary use of fully qualified name 'java.util.List' due to existing import 'java.util.List' 24
Local variable 'words' could be declared final 24
Local variable 'ancestors' could be declared final 26
Local variable 'size' could be declared final 27
Parameter 'inputFile' is not assigned and could be declared final 36
Parameter 'outputFile' is not assigned and could be declared final 36
Local variable 'conll2009' could be declared final 37
Local variable 'writer' could be declared final 38
Local variable 'removedSentences' could be declared final 40
Local variable 'totalSentences' could be declared final 41
Local variable 'loopFree' could be declared final 45
Parameter 'args' is not assigned and could be declared final 66
Consider using varargs for methods or constructors which take an array the last parameter. 66
Local variable 'inputFile' could be declared final 67
Local variable 'outputFile' could be declared final 68

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/TextToCat.java

Violation Line
The class 'TextToCat' has a Cyclomatic Complexity of 11 (Highest = 10). 20–93
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. 20–93
The class 'TextToCat' has a Standard Cyclomatic Complexity of 11 (Highest = 10). 20–93
The class 'TextToCat' has a Modified Cyclomatic Complexity of 11 (Highest = 10). 20–93
Parameter 'args' is not assigned and could be declared final 24
The method 'main' has a Standard Cyclomatic Complexity of 10. 24–92
The method 'main' has a Modified Cyclomatic Complexity of 10. 24–92
Consider using varargs for methods or constructors which take an array the last parameter. 24
The method 'main' has a Cyclomatic Complexity of 10. 24–92
Local variable 'inputFolder' could be declared final 25
Local variable 'outputFolder' could be declared final 26
Local variable 'inputFile' could be declared final 28
Local variable 'outputFile' could be declared final 29
Local variable 'properties' could be declared final 51
Local variable 'pipeline' could be declared final 55
Local variable 'file' could be declared final 57
Local variable 'stream' could be declared final 58
Avoid instantiating new objects inside loops 59
Local variable 'reader' could be declared final 59
Local variable 'inputText' could be declared final 60
Avoid instantiating new objects inside loops 60
Local variable 'text' could be declared final 66
Local variable 'document' could be declared final 68
Avoid instantiating new objects inside loops 68
Local variable 'output' could be declared final 71
Avoid instantiating new objects inside loops 71
Local variable 'write' could be declared final 72
Local variable 'writer' could be declared final 73
Avoid instantiating new objects inside loops 73
Local variable 'sentences' could be declared final 75
Local variable 'sentence' could be declared final 76
Local variable 'tokens' could be declared final 77
Local variable 'token' could be declared final 78

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/framenet/MergeMateFramenet.java

Violation Line
Possible God class (WMC=248, ATFD=183, TCC=0.0) 1–1634
The class 'MergeMateFramenet' has a Cyclomatic Complexity of 21 (Highest = 198). 49–1634
The class 'MergeMateFramenet' has a Modified Cyclomatic Complexity of 18 (Highest = 173). 49–1634
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. 49–1634
The class 'MergeMateFramenet' has a Standard Cyclomatic Complexity of 18 (Highest = 174). 49–1634
Parameter 'lemmaFromPredicate' is not assigned and could be declared final 81
Parameter 'collections' is not assigned and could be declared final 96
Avoid unused private methods such as 'getIntersection(boolean,Collection...)'. 107
Parameter 'ignoreEmptySets' is not assigned and could be declared final 107
Parameter 'collections' is not assigned and could be declared final 107
Local variable 'collection' could be declared final 109
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 110
Avoid instantiating new objects inside loops 114
Parameter 'roleset' is not assigned and could be declared final 127
Local variable 'ret' could be declared final 129
Local variable 'source' could be declared final 131
Local variable 'parts' could be declared final 134
Local variable 'part' could be declared final 135
String.trim().length()==0 is an inefficient way to validate an empty String. 136
Local variable 'matcher' could be declared final 140
Parameter 'args' is not assigned and could be declared final 152
The method 'main' has a Modified Cyclomatic Complexity of 173. 152–1461
Consider using varargs for methods or constructors which take an array the last parameter. 152
The method main() has an NCSS line count of 783 152–1461
The method 'main' has a Standard Cyclomatic Complexity of 174. 152–1461
The method 'main' has a Cyclomatic Complexity of 198. 152–1461
Avoid really long methods. 152–1461
Local variable 'pbFolder' could be declared final 187
Local variable 'nbFolder' could be declared final 188
Local variable 'wordnetFolder' could be declared final 189
Local variable 'ontonotesFolder' could be declared final 190
Local variable 'framebaseFile' could be declared final 191
Local variable 'closeMatchFile' could be declared final 192
Local variable 'luFolder' could be declared final 193
Local variable 'luParsedFolder' could be declared final 194
Local variable 'semlinkFolder' could be declared final 195
Local variable 'outputPattern' could be declared final 197
Local variable 'enableSemLinkForPredicates' could be declared final 199
Avoid declaring a variable if it is unreferenced before a possible exit point. 199
Local variable 'saveFiles' could be declared final 200
Local variable 'printPRTable' could be declared final 201
Avoid declaring a variable if it is unreferenced before a possible exit point. 201
Local variable 'ignoreLemmaInFrameBaseMappings' could be declared final 203
Local variable 'max' could be declared final 207
Local variable 'fnContext' could be declared final 212
Local variable 'fnUnmarshaller' could be declared final 213
Local variable 'onContext' could be declared final 215
Local variable 'onUnmarshaller' could be declared final 216
Local variable 'luContext' could be declared final 218
Local variable 'luUnmarshaller' could be declared final 219
Local variable 'semlinkContext' could be declared final 221
Local variable 'semlinkUnmarshaller' could be declared final 222
Local variable 'semlinkRolesContext' could be declared final 224
Local variable 'semlinkRolesUnmarshaller' could be declared final 225
Local variable 'semlinkPbContext' could be declared final 227
Local variable 'semlinkPbUnmarshaller' could be declared final 228
Avoid declaring a variable if it is unreferenced before a possible exit point. 230
Local variable 'predicate' could be declared final 240
Local variable 'matcher' could be declared final 241
Local variable 'fbURI' could be declared final 247
Local variable 'role' could be declared final 268
Local variable 'matcher' could be declared final 269
Local variable 'fbURI' could be declared final 275
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 283
Local variable 'nomBankToProbBankRoles' could be declared final 298
Local variable 'CLOSEMATCH_PATTERN' could be declared final 299
Local variable 'closeMatchLines' could be declared final 300
Local variable 'matcher' could be declared final 303
Local variable 'nbPredicate' could be declared final 309
Avoid instantiating new objects inside loops 312
Local variable 'semLinkPb' could be declared final 327
Local variable 'verbnetToPropbank' could be declared final 329
Local variable 'propbankToVerbnet' could be declared final 330
Local variable 'predicate' could be declared final 332
Avoid unused local variables such as 'lemma'. 333
Local variable 'lemma' could be declared final 333
Local variable 'argmap' could be declared final 334
Local variable 'pbFrame' could be declared final 339
Local variable 'vnClass' could be declared final 340
Local variable 'role' could be declared final 345
Local variable 'pbArg' could be declared final 346
Local variable 'vnTheta' could be declared final 347
Local variable 'semLinkRoles' could be declared final 357
Local variable 'verbnetToFramenet' could be declared final 359
Local variable 'framenetToVerbnet' could be declared final 360
Local variable 'vncls' could be declared final 362
Local variable 'frame' could be declared final 363
Local variable 'vnClass' could be declared final 364
Local variable 'role' could be declared final 373
Local variable 'fnRole' could be declared final 374
Local variable 'vnRole' could be declared final 375
Local variable 'semLink' could be declared final 384
Local variable 'vncls' could be declared final 386
Local variable 'vnClass' could be declared final 387
Local variable 'frame' could be declared final 388
Local variable 'nbFrames' could be declared final 400
Local variable 'nbUnlinked' could be declared final 401
Local variable 'file' could be declared final 402
Local variable 'frameset' could be declared final 414
Local variable 'noteOrPredicate' could be declared final 415
Local variable 'predicate' could be declared final 416
Local variable 'lemma' could be declared final 418
Local variable 'noteOrRoleset' could be declared final 419
Local variable 'roleset' could be declared final 420
Local variable 'predicates' could be declared final 426
Local variable 'matcher' could be declared final 427
Local variable 'pb' could be declared final 428
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 433
Local variable 'existingFramesFile' could be declared final 454
Local variable 'lusFile' could be declared final 455
Local variable 'exampleSentencesFile' could be declared final 456
Local variable 'file' could be declared final 463
Local variable 'lexUnit' could be declared final 478
Local variable 'posType' could be declared final 480
Local variable 'lexeme' could be declared final 481
Prefer StringBuffer over += for concatenating strings 482
Local variable 'pos' could be declared final 490
Local variable 'frame' could be declared final 491
Local variable 'parsedFile' could be declared final 495
Avoid instantiating new objects inside loops 495
Local variable 'subCorpus' could be declared final 503
Local variable 'sentence' could be declared final 504
Local variable 'text' could be declared final 505
Local variable 'conllSentence' could be declared final 508
Avoid instantiating new objects inside loops 511
Local variable 'roles' could be declared final 512
Local variable 'annotationSet' could be declared final 514
Local variable 'layer' could be declared final 515
Local variable 'name' could be declared final 516
Position literals first in String comparisons 517
Local variable 'label' could be declared final 518
Avoid using a branching statement as the last in a loop. 522
Position literals first in String comparisons 525
Local variable 'label' could be declared final 526
Local variable 'span' could be declared final 527
Deeply nested if..then statements are hard to read 528–530
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 538
Local variable 'targetHead' could be declared final 544
Avoid instantiating new objects inside loops 545
Local variable 'srl' could be declared final 545
Local variable 'roleLabel' could be declared final 546
Local variable 'spans' could be declared final 547
Local variable 'span' could be declared final 548
Local variable 'roleHead' could be declared final 549
Local variable 'role' could be declared final 550–551
Avoid instantiating new objects inside loops 550–551
Local variable 'fbFramenetToWordNet' could be declared final 599
Local variable 'lines' could be declared final 601
Local variable 'matcher' could be declared final 608
Local variable 'frame' could be declared final 613
Local variable 'wnSynset' could be declared final 616
Local variable 'key' could be declared final 618
Local variable 'rolesets' could be declared final 631
Local variable 'predicateToLemma' could be declared final 632
Local variable 'file' could be declared final 635
Local variable 'matcher' could be declared final 648
Position literals first in String comparisons 657
Local variable 'senses' could be declared final 663–664
Local variable 'frameset' could be declared final 666
Local variable 'noteOrPredicate' could be declared final 667
Local variable 'predicate' could be declared final 669
Local variable 'lemma' could be declared final 672
Local variable 'synsets' could be declared final 674
Local variable 'luFrames' could be declared final 676
Local variable 'noteOrRoleset' could be declared final 679
Local variable 'roleset' could be declared final 680
Local variable 'rolesetID' could be declared final 682
Avoid instantiating new objects inside loops 685–686
Local variable 'rolesetInfo' could be declared final 685–686
Local variable 'outputMapping' could be declared final 712
Avoid instantiating new objects inside loops 713
Avoid instantiating new objects inside loops 714
Avoid instantiating new objects inside loops 715
Local variable 'frameFile' could be declared final 718
Local variable 'rolesFile' could be declared final 719
Local variable 'addFile' could be declared final 720
Local variable 'rolesetInfo' could be declared final 731
Local variable 'roleset' could be declared final 733
Local variable 'rolesetID' could be declared final 734
Local variable 'senses' could be declared final 735
Local variable 'synsets' could be declared final 736
Local variable 'lemma' could be declared final 737
Local variable 'baseLemma' could be declared final 738
Local variable 'luFrames' could be declared final 739
Local variable 'type' could be declared final 740
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 745
Avoid instantiating new objects inside loops 750
Local variable 'fns' could be declared final 752
Local variable 'fn' could be declared final 753
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 762
Local variable 'parts' could be declared final 766
Local variable 'part' could be declared final 767
Local variable 'frames' could be declared final 768
Avoid instantiating new objects inside loops 770
Avoid instantiating new objects inside loops 776
Avoid instantiating new objects inside loops 777
Local variable 'wnCandidate' could be declared final 796
Local variable 'lemmas' could be declared final 797
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 803
Avoid instantiating new objects inside loops 810
Local variable 'newSynsets' could be declared final 817–818
Local variable 'fnCandidates' could be declared final 822–823
Local variable 'fnCandidatesOnlySemLink' could be declared final 825–826
Local variable 'okFrames' could be declared final 831–833
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 849
Local variable 'fnCandidate' could be declared final 850
Local variable 'okFrame' could be declared final 860
Local variable 'fRolesets' could be declared final 875
Local variable 'nbRoleset' could be declared final 876
Local variable 'nbLemma' could be declared final 879
Local variable 'nbSynsets' could be declared final 881–882
Local variable 'relatedSynsets' could be declared final 884
Avoid instantiating new objects inside loops 884
Local variable 'wnCandidate' could be declared final 885
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 892
Local variable 'luNbFrames' could be declared final 896
Local variable 'fnNbCandidates' could be declared final 897–898
Local variable 'nbCandidates' could be declared final 900
Local variable 'okNbFrames' could be declared final 901–902
Local variable 'okFrame' could be declared final 907
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 916
Local variable 'nbRoleset' could be declared final 923
Local variable 'nbLemma' could be declared final 926
Local variable 'nbSynsets' could be declared final 927
Local variable 'frames' could be declared final 930
Local variable 'frame' could be declared final 932
Avoid empty if statements 938–940
Local variable 'rolesetInfo' could be declared final 944
Local variable 'roleset' could be declared final 945
Local variable 'rolesetID' could be declared final 946
Local variable 'roles' could be declared final 948
Local variable 'role' could be declared final 953
Unnecessary use of fully qualified name 'eu.fbk.dkm.pikes.resources.util.propbank.Role' due to existing import 'eu.fbk.dkm.pikes.resources.util.propbank.*' 954
Local variable 'n' could be declared final 958
Unnecessary use of fully qualified name 'eu.fbk.dkm.pikes.resources.util.propbank.Role' due to existing import 'eu.fbk.dkm.pikes.resources.util.propbank.*' 958
Local variable 'roleStr' could be declared final 959
Avoid instantiating new objects inside loops 961
Local variable 'tempMappingsForRole' could be declared final 961
Unnecessary use of fully qualified name 'eu.fbk.dkm.pikes.resources.util.propbank.Role' due to existing import 'eu.fbk.dkm.pikes.resources.util.propbank.*' 963
Local variable 'vnrole' could be declared final 963
Local variable 'vnClassRole' could be declared final 965
Local variable 'vnThetaRole' could be declared final 966–967
Local variable 'fnFrames' could be declared final 969–970
Local variable 'frameRole' could be declared final 975
Local variable 'frameName' could be declared final 977
Local variable 'fRolesets' could be declared final 991
Local variable 'nbRoleset' could be declared final 992
Local variable 'nbRolesetID' could be declared final 994
Local variable 'mappings' could be declared final 1013
These nested if statements could be combined 1015–1018
Local variable 'nbRoleStr' could be declared final 1021
Local variable 'rolesCountByType' could be declared final 1057
Local variable 'rolesCount' could be declared final 1058
Local variable 'sentence' could be declared final 1061
Local variable 'srlIndex' could be declared final 1062
Avoid instantiating new objects inside loops 1062
Local variable 'srl' could be declared final 1064
Local variable 'target' could be declared final 1065
Avoid instantiating new objects inside loops 1074
Local variable 'word' could be declared final 1079
Local variable 'srlFrameNet' could be declared final 1084
Local variable 'srlMate' could be declared final 1085
Local variable 'framenet' could be declared final 1087
Local variable 'mate' could be declared final 1088
Local variable 'roleWordsMate' could be declared final 1120
Avoid instantiating new objects inside loops 1120
Avoid instantiating new objects inside loops 1121
Local variable 'roleWordsFrameNet' could be declared final 1121
Local variable 'role' could be declared final 1124
Local variable 'roleHead' could be declared final 1125
Local variable 'role' could be declared final 1138
Local variable 'roleHead' could be declared final 1139
Local variable 'roleLabel' could be declared final 1140
Local variable 'key' could be declared final 1144
Local variable 'prefix' could be declared final 1145
Local variable 'mateCompressed' could be declared final 1146–1147
Avoid instantiating new objects inside loops 1151
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1156
Local variable 'fnCompressed' could be declared final 1157
Avoid empty if statements 1176–1178
Local variable 'okThreshold' could be declared final 1198
Local variable 'okMinFreq' could be declared final 1199
Local variable 'outputMappingsForRolesFromExamples' could be declared final 1200
Local variable 'outputMapping' could be declared final 1201
Avoid instantiating new objects inside loops 1202
Avoid instantiating new objects inside loops 1211
Local variable 'outputMappingsForRolesFromExamplesTemp' could be declared final 1211
Local variable 'outputMapping' could be declared final 1212
Avoid instantiating new objects inside loops 1213
Local variable 'key' could be declared final 1216
Local variable 'freq' could be declared final 1219
Local variable 'mate' could be declared final 1227
Local variable 'mapping' could be declared final 1228
This call to String.startsWith can be rewritten using String.charAt(0) 1228
A switch with less than three branches is inefficient, use a if statement instead. 1238–1261
A high ratio of statements to labels in a switch statement. Consider refactoring. 1238–1261
Switch statements should have a default label 1238–1261
Local variable 'tp' could be declared final 1270
Local variable 'fp' could be declared final 1271
Local variable 'fn' could be declared final 1272
Local variable 'precision' could be declared final 1273
Local variable 'recall' could be declared final 1274
Local variable 'f1' could be declared final 1275
Local variable 'outputMapping' could be declared final 1300
Local variable 'key' could be declared final 1301
Local variable 'value' could be declared final 1302
Switch statements should have a default label 1306–1311
A switch with less than three branches is inefficient, use a if statement instead. 1306–1311
Local variable 'outputMapping' could be declared final 1352
Local variable 'key' could be declared final 1353
Local variable 'value' could be declared final 1354
Local variable 'parts' could be declared final 1356
Local variable 'fbURI' could be declared final 1361
Local variable 'outputMapping' could be declared final 1388
Local variable 'key' could be declared final 1389
Local variable 'value' could be declared final 1390
Local variable 'parts' could be declared final 1392
Local variable 'fbURI' could be declared final 1397
Local variable 'outputMapping' could be declared final 1420
Local variable 'key' could be declared final 1421
Local variable 'value' could be declared final 1422
Parameter 'inputFile' is not assigned and could be declared final 1463
Parameter 'o' is not assigned and could be declared final 1480
Parameter 'outputFile' is not assigned and could be declared final 1480
Parameter 'label' is not assigned and could be declared final 1496
Parameter 'text' is not assigned and could be declared final 1496
Local variable 'ret' could be declared final 1497
Avoid declaring a variable if it is unreferenced before a possible exit point. 1497
Local variable 'start' could be declared final 1499
Local variable 'end' could be declared final 1504
Local variable 'target' could be declared final 1507
Local variable 'length' could be declared final 1510
Parameter 'ontonotesFolder' is not assigned and could be declared final 1519
The method getSenses() has an NPath complexity of 3170 1519–1603
The method 'getSenses' has a Modified Cyclomatic Complexity of 19. 1519–1603
The method 'getSenses' has a Cyclomatic Complexity of 20. 1519–1603
Parameter 'fnLemma' is not assigned and could be declared final 1519
Parameter 'name' is not assigned and could be declared final 1519
The method 'getSenses' has a Standard Cyclomatic Complexity of 19. 1519–1603
Parameter 'type' is not assigned and could be declared final 1520
Parameter 'onUnmarshaller' is not assigned and could be declared final 1520
Local variable 'senses' could be declared final 1523
Local variable 'onSense' could be declared final 1526
Local variable 'inventory' could be declared final 1529
Local variable 'sense' could be declared final 1530
Avoid instantiating new objects inside loops 1536
Local variable 'onWn' could be declared final 1536
Avoid instantiating new objects inside loops 1537
Local variable 'onFn' could be declared final 1537
Local variable 'onPb' could be declared final 1538
Avoid instantiating new objects inside loops 1538
Local variable 'pbs' could be declared final 1542
Local variable 'fns' could be declared final 1554
Local variable 'wn' could be declared final 1566
Local variable 'value' could be declared final 1571
Local variable 'ids' could be declared final 1572
Local variable 'synsetID' could be declared final 1578
Avoid empty catch blocks 1582–1584
Local variable 'pb' could be declared final 1586
Avoid instantiating new objects inside loops 1588
Avoid instantiating new objects inside loops 1591
Avoid instantiating new objects inside loops 1594
Parameter 'wnCandidates' is not assigned and could be declared final 1605
Parameter 'fnCandidates' is not assigned and could be declared final 1606
Parameter 'fbFramenetToWordNet' is not assigned and could be declared final 1607
Parameter 'lemma' is not assigned and could be declared final 1607
Parameter 'type' is not assigned and could be declared final 1607
Parameter 'ignoreLemmaInFrameBaseMappings' is not assigned and could be declared final 1608
Local variable 'okFrames' could be declared final 1610
Local variable 'fnCandidate' could be declared final 1611
Local variable 'key' could be declared final 1612
Avoid instantiating new objects inside loops 1613
Local variable 'wnCandidatesForThisFrame' could be declared final 1613
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1615
Parameter 'type' is not assigned and could be declared final 1623
Parameter 'frame' is not assigned and could be declared final 1623
Parameter 'lemma' is not assigned and could be declared final 1623
Parameter 'ignoreLemmaInFrameBaseMappings' is not assigned and could be declared final 1624
Parameter 'ignoreLemmaInFrameBaseMappings' is not assigned and could be declared final 1628
Parameter 'frame' is not assigned and could be declared final 1628
Parameter 'lemma' is not assigned and could be declared final 1628

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/framenet/ParseFrameNetExamplesWithMate.java

Violation Line
The class 'ParseFrameNetExamplesWithMate' has a Standard Cyclomatic Complexity of 10 (Highest = 16). 37–245
The class 'ParseFrameNetExamplesWithMate' has a Modified Cyclomatic Complexity of 10 (Highest = 16). 37–245
The class 'ParseFrameNetExamplesWithMate' has a Cyclomatic Complexity of 10 (Highest = 16). 37–245
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. 37–245
Avoid reassigning parameters such as 'lemmas' 41
Avoid reassigning parameters such as 'lemmas' 41
Parameter 'sentence' is not assigned and could be declared final 41
Local variable 'forms' could be declared final 42
Local variable 'pos' could be declared final 43
Local variable 'feats' could be declared final 44
Avoid really long methods. 69–243
The method main() has an NCSS line count of 102 69–243
The method 'main' has a Cyclomatic Complexity of 16. 69–243
The method 'main' has a Modified Cyclomatic Complexity of 16. 69–243
The method main() has an NPath complexity of 289 69–243
Parameter 'args' is not assigned and could be declared final 69
The method 'main' has a Standard Cyclomatic Complexity of 16. 69–243
Consider using varargs for methods or constructors which take an array the last parameter. 69
Local variable 'fnFolder' could be declared final 91
Local variable 'mateModelParser' could be declared final 92
Local variable 'mateModelSrl' could be declared final 93
Local variable 'outputDir' could be declared final 95
Local variable 'props' could be declared final 104
Avoid declaring a variable if it is unreferenced before a possible exit point. 110
Local variable 'pipeline' could be declared final 110
Local variable 'arrayOfString' could be declared final 113
Local variable 'localOptions' could be declared final 114
Avoid declaring a variable if it is unreferenced before a possible exit point. 115
Local variable 'mateParser' could be declared final 115
Avoid declaring a variable if it is unreferenced before a possible exit point. 120
Local variable 'mateSrl' could be declared final 120
Local variable 'dbFactory' could be declared final 124
Local variable 'dBuilder' could be declared final 125
Avoid declaring a variable if it is unreferenced before a possible exit point. 125
Local variable 'nafFolderFile' could be declared final 127
Local variable 'allSentences' could be declared final 135
Local variable 'begin' could be declared final 138
Local variable 'listOfFiles' could be declared final 140
Local variable 'file' could be declared final 142
Local variable 'stringBuilder' could be declared final 151
Avoid instantiating new objects inside loops 151
Local variable 'doc' could be declared final 153
Local variable 'nNode' could be declared final 159
Local variable 'eElement' could be declared final 161
Local variable 'labelList' could be declared final 165
Local variable 'labelNode' could be declared final 167
Local variable 'labelElement' could be declared final 169
Local variable 'text' could be declared final 170
Avoid instantiating new objects inside loops 176
Local variable 's' could be declared final 176
Local variable 'sents' could be declared final 179
Local variable 'thisSent' could be declared final 180
Local variable 'forms' could be declared final 181
Avoid instantiating new objects inside loops 181
Avoid instantiating new objects inside loops 182
Local variable 'poss' could be declared final 182
Avoid instantiating new objects inside loops 183
Local variable 'lemmas' could be declared final 183
Local variable 'tokens' could be declared final 189–190
Local variable 'token' could be declared final 191
Local variable 'localSentenceData091' could be declared final 205
Avoid instantiating new objects inside loops 205
Avoid instantiating new objects inside loops 206
Avoid instantiating new objects inside loops 207
Local variable 'localSentenceData092' could be declared final 210–211
Local variable 'mateSentence' could be declared final 212–213
Local variable 'outputFile' could be declared final 230–231
Avoid instantiating new objects inside loops 230–231
Local variable 'end' could be declared final 236

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/framenet/ParseFullTextWithStanford.java

Violation Line
Possible God class (WMC=50, ATFD=57, TCC=0.1) 1–376
Avoid unused imports such as 'eu.fbk.dkm.pikes.tintop.annotators.PikesAnnotations' 14
The class 'ParseFullTextWithStanford' has a Modified Cyclomatic Complexity of 15 (Highest = 36). 35–376
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. 35–376
The class 'ParseFullTextWithStanford' has a Cyclomatic Complexity of 16 (Highest = 38). 35–376
The class 'ParseFullTextWithStanford' has a Standard Cyclomatic Complexity of 15 (Highest = 36). 35–376
Parameter 'start' is not assigned and could be declared final 49
Parameter 'label' is not assigned and could be declared final 49
Parameter 'end' is not assigned and could be declared final 49
Parameter 'luName' is not assigned and could be declared final 70
Parameter 'frameName' is not assigned and could be declared final 70
Parameter 'target' is not assigned and could be declared final 75
Parameter 'role' is not assigned and could be declared final 79
The method 'main' has a Modified Cyclomatic Complexity of 36. 104–341
The method main() has an NCSS line count of 165 104–341
The method main() has an NPath complexity of 9191444 104–341
Avoid really long methods. 104–341
The method 'main' has a Cyclomatic Complexity of 38. 104–341
Parameter 'args' is not assigned and could be declared final 104
The method 'main' has a Standard Cyclomatic Complexity of 36. 104–341
Consider using varargs for methods or constructors which take an array the last parameter. 104
Local variable 'fullTextPath' could be declared final 111
Local variable 'outputFile1' could be declared final 112
Local variable 'outputFile2' could be declared final 113
Local variable 'posAnnotator' could be declared final 114
Local variable 'parseAnnotator' could be declared final 115
Local variable 'annotators' could be declared final 117
Local variable 'fullTextFile' could be declared final 123
Local variable 'writerLemmas' could be declared final 124
Local variable 'writerFrames' could be declared final 125
Local variable 'props' could be declared final 127
Local variable 'dbFactory' could be declared final 141
Local variable 'dBuilder' could be declared final 142
Local variable 'doc' could be declared final 158
Local variable 'sentenceElement' could be declared final 160
Local variable 'sentenceID' could be declared final 161
Local variable 'pos' could be declared final 163
Avoid instantiating new objects inside loops 163
Local variable 'textElement' could be declared final 164
Local variable 'text' could be declared final 165
Local variable 'frames' could be declared final 169
Avoid instantiating new objects inside loops 169
Local variable 'annotationSet' could be declared final 171
Local variable 'luName' could be declared final 172
String.trim().length()==0 is an inefficient way to validate an empty String. 173
Local variable 'layer' could be declared final 174
Local variable 'label' could be declared final 176
Local variable 'start' could be declared final 177
Local variable 'thisPos' could be declared final 178
Avoid instantiating new objects inside loops 184–185
Local variable 'frameInformation' could be declared final 184–185
Local variable 'layer' could be declared final 186
Local variable 'label' could be declared final 188
Avoid instantiating new objects inside loops 189–192
Local variable 'label' could be declared final 197
Local variable 'start' could be declared final 198
Local variable 'end' could be declared final 199
Avoid instantiating new objects inside loops 202–205
Avoid instantiating new objects inside loops 216
Local variable 'key' could be declared final 217
Local variable 'value' could be declared final 218
Avoid appending characters as strings in StringBuffer.append. 219
Avoid instantiating new objects inside loops 225
Avoid instantiating new objects inside loops 226
Local variable 'size' could be declared final 234
Avoid instantiating new objects inside loops 236
Avoid instantiating new objects inside loops 237
Avoid instantiating new objects inside loops 238
Avoid instantiating new objects inside loops 239
Avoid instantiating new objects inside loops 240
Avoid instantiating new objects inside loops 242
Local variable 'ids' could be declared final 242
Local variable 'sentence' could be declared final 243
Position literals first in String comparisons 247
Local variable 'dependencies' could be declared final 248–249
Avoid instantiating new objects inside loops 250
Local variable 'tokenID' could be declared final 255
Local variable 'parent' could be declared final 256
Local variable 'tokenID' could be declared final 259
Local variable 'get' could be declared final 263
Unnecessary use of fully qualified name 'java.util.List' due to existing import 'java.util.List' 263
Local variable 'token' could be declared final 265
Local variable 'frame' could be declared final 274
Avoid instantiating new objects inside loops 275
Local variable 'frameBuffer' could be declared final 275
Local variable 'numFrameRoles' could be declared final 278
Avoid appending characters as strings in StringBuffer.append. 280
Avoid appending characters as strings in StringBuffer.append. 281
Local variable 'interval' could be declared final 283
Avoid appending characters as strings in StringBuffer.append. 284
Avoid instantiating new objects inside loops 286
Local variable 'partsBuffer' could be declared final 286
Local variable 'parts' could be declared final 287
Local variable 'stringID' could be declared final 288
Avoid appending characters as strings in StringBuffer.append. 289
Avoid appending characters as strings in StringBuffer.append. 291
Avoid appending characters as strings in StringBuffer.append. 292
Local variable 'role' could be declared final 293
Avoid appending characters as strings in StringBuffer.append. 294
Avoid appending characters as strings in StringBuffer.append. 295
Avoid appending characters as strings in StringBuffer.append. 298
Avoid instantiating new objects inside loops 307
Local variable 'value' could be declared final 309
Avoid appending characters as strings in StringBuffer.append. 310
Local variable 'value' could be declared final 312
Avoid appending characters as strings in StringBuffer.append. 313
Local variable 'value' could be declared final 315
Avoid appending characters as strings in StringBuffer.append. 316
Local variable 'value' could be declared final 318
Avoid appending characters as strings in StringBuffer.append. 319
Avoid appending characters as strings in StringBuffer.append. 322
Avoid appending characters as strings in StringBuffer.append. 322
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 322
Local variable 'value' could be declared final 324
Avoid appending characters as strings in StringBuffer.append. 325
Avoid appending characters as strings in StringBuffer.append. 328
Parameter 'span' is not assigned and could be declared final 344
Parameter 'ids' is not assigned and could be declared final 345
Parameter 'span' is not assigned and could be declared final 350
Parameter 'ids' is not assigned and could be declared final 351
Parameter 'forRole' is not assigned and could be declared final 352
Local variable 'list' could be declared final 354
Local variable 'key' could be declared final 355
Avoid appending characters as strings in StringBuffer.append. 357
This is an inefficient use of StringBuffer.toString; call StringBuffer.length instead. 361
Local variable 'parts' could be declared final 369

pikes-tintop - eu/fbk/dkm/pikes/tintop/util/framenet/RolesetInfo.java

Violation Line
Avoid unused private fields such as 'LOGGER'. 18
Parameter 'origFile' is not assigned and could be declared final 30
Parameter 'label' is not assigned and could be declared final 30
Parameter 'lemma' is not assigned and could be declared final 30
Parameter 'baseLemma' is not assigned and could be declared final 30
Parameter 'type' is not assigned and could be declared final 30
Parameter 'senses' is not assigned and could be declared final 31
Parameter 'luFrames' is not assigned and could be declared final 31
Parameter 'synsets' is not assigned and could be declared final 32
Parameter 'roleset' is not assigned and could be declared final 32
Parameter 'synsets' is not assigned and could be declared final 48
Parameter 'origFile' is not assigned and could be declared final 56
Parameter 'label' is not assigned and could be declared final 64
Parameter 'baseLemma' is not assigned and could be declared final 72
Parameter 'lemma' is not assigned and could be declared final 80
Parameter 'type' is not assigned and could be declared final 88
Parameter 'senses' is not assigned and could be declared final 96
Parameter 'luFrames' is not assigned and could be declared final 104
Parameter 'roleset' is not assigned and could be declared final 112

pikes-twm - eu/fbk/dkm/pikes/twm/DBpediaSpotlightAnnotate.java

Violation Line
Private field 'confidence' could be made final; it is only initialized in the declaration or constructor. 21
Parameter 'properties' is not assigned and could be declared final 25
Parameter 'text' is not assigned and could be declared final 30
Local variable 'ret' could be declared final 32
Local variable 'pars' could be declared final 34
Local variable 'output' could be declared final 39
Local variable 'mapper' could be declared final 41
Local variable 'annotation' could be declared final 44
Avoid instantiating String objects; this is usually unnecessary. 44
Local variable 'keyword' could be declared final 46
Local variable 'originalText' could be declared final 47
Avoid instantiating new objects inside loops 49–56
Local variable 'tag' could be declared final 49–56
Deeply nested if..then statements are hard to read 57–59
Parameter 'args' is not assigned and could be declared final 68
Consider using varargs for methods or constructors which take an array the last parameter. 68
Local variable 'properties' could be declared final 69
Local variable 's' could be declared final 77
Local variable 'text' could be declared final 79
Local variable 'tags' could be declared final 80
Local variable 'tag' could be declared final 81

pikes-twm - eu/fbk/dkm/pikes/twm/DBpediaSpotlightCandidates.java

Violation Line
Private field 'firstAttemptConfidence' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'confidence' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'properties' is not assigned and could be declared final 24
Parameter 'pars' is not assigned and could be declared final 31
Local variable 'ret' could be declared final 32
Local variable 'output' could be declared final 35
Local variable 'mapper' could be declared final 38
Local variable 'annotation' could be declared final 41
Avoid instantiating String objects; this is usually unnecessary. 41
Avoid instantiating String objects; this is usually unnecessary. 44
Local variable 'surfaceFormJson' could be declared final 44
Local variable 'keyword' could be declared final 50
Local variable 'res' could be declared final 51
Local variable 'resources' could be declared final 53
Local variable 'resourceObj' could be declared final 54
Local variable 'resource' could be declared final 55
Local variable 'tag' could be declared final 56
Local variable 'resource' could be declared final 60
Local variable 'tag' could be declared final 61
Parameter 'text' is not assigned and could be declared final 71
Local variable 'ret' could be declared final 73
Local variable 'offsets' could be declared final 74
Local variable 'firstAttempt' could be declared final 81
Local variable 'tag' could be declared final 83
Local variable 'secondAttempt' could be declared final 91
Local variable 'tag' could be declared final 93
Parameter 'resource' is not assigned and could be declared final 105
Parameter 'keyword' is not assigned and could be declared final 105
Local variable 'originalText' could be declared final 106
Local variable 'tag' could be declared final 107–114
Consider using varargs for methods or constructors which take an array the last parameter. 121
Parameter 'args' is not assigned and could be declared final 121
Local variable 'properties' could be declared final 122
Local variable 's' could be declared final 130
Local variable 'text' could be declared final 133
Local variable 'tags' could be declared final 134
Local variable 'tag' could be declared final 135

pikes-twm - eu/fbk/dkm/pikes/twm/Linking.java

Violation Line
Private field 'config' could be made final; it is only initialized in the declaration or constructor. 28
Parameter 'address' is not assigned and could be declared final 31
Parameter 'properties' is not assigned and could be declared final 31
Parameter 'pars' is not assigned and could be declared final 39
Parameter 'customAddress' is not assigned and could be declared final 43
Parameter 'pars' is not assigned and could be declared final 43
Local variable 'key' could be declared final 47
Local variable 'value' could be declared final 48
Prefer StringBuffer over += for concatenating strings 50
Local variable 'useProxy' could be declared final 65
Local variable 'proxy' could be declared final 70–71
Local variable 'sb' could be declared final 79
Local variable 'rd' could be declared final 91
Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). 93

pikes-twm - eu/fbk/dkm/pikes/twm/LinkingAnnotator.java

Violation Line
The class 'LinkingAnnotator' has a Cyclomatic Complexity of 4 (Highest = 13). 19–109
The class 'LinkingAnnotator' has a Modified Cyclomatic Complexity of 4 (Highest = 13). 19–109
The class 'LinkingAnnotator' has a Standard Cyclomatic Complexity of 4 (Highest = 13). 19–109
Parameter 'annotatorName' is not assigned and could be declared final 32
Parameter 'props' is not assigned and could be declared final 32
Local variable 'newProps' could be declared final 33
Local variable 'annotator' could be declared final 35
Local variable 'myClass' could be declared final 36
Local variable 'myConstructor' could be declared final 37
The method 'annotate' has a Cyclomatic Complexity of 13. 42–97
The method 'annotate' has a Modified Cyclomatic Complexity of 13. 42–97
Parameter 'annotation' is not assigned and could be declared final 42
The method annotate() has an NPath complexity of 396 42–97
The method 'annotate' has a Standard Cyclomatic Complexity of 13. 42–97
Local variable 'text' could be declared final 43
Local variable 'annotatedEntities' could be declared final 57
Local variable 'entities' could be declared final 58
Local variable 'index' could be declared final 63
Local variable 'tag' could be declared final 64
Local variable 'end' could be declared final 66
Local variable 'sentence' could be declared final 75
Local variable 'tokens' could be declared final 76
Local variable 'token' could be declared final 78
Local variable 'startEntity' could be declared final 79
Local variable 'endEntity' could be declared final 84

pikes-twm - eu/fbk/dkm/pikes/twm/LinkingTag.java

Violation Line
Parameter 'offset' is not assigned and could be declared final 32
Parameter 'page' is not assigned and could be declared final 32
Parameter 'originalText' is not assigned and could be declared final 32
Parameter 'length' is not assigned and could be declared final 32
Parameter 'score' is not assigned and could be declared final 32
Parameter 'source' is not assigned and could be declared final 32
Parameter 'image' is not assigned and could be declared final 45
Parameter 'originalText' is not assigned and could be declared final 53
Parameter 'length' is not assigned and could be declared final 61
Parameter 'category' is not assigned and could be declared final 65
Parameter 'type' is not assigned and could be declared final 65
Parameter 'classes' is not assigned and could be declared final 72
Local variable 'aClass' could be declared final 73
Local variable 'map' could be declared final 74
Parameter 'types' is not assigned and could be declared final 81
Local variable 'parts' could be declared final 82
Local variable 'typeParts' could be declared final 85
Local variable 'cat' could be declared final 90
Local variable 'type' could be declared final 91
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 93
A switch statement does not contain a break 93–99
Switch statements should have a default label 93–99
A switch with less than three branches is inefficient, use a if statement instead. 93–99
Local variable 'ret' could be declared final 104
Local variable 'category' could be declared final 105
Local variable 'catString' could be declared final 106
Avoid instantiating new objects inside loops 107
Parameter 'types' is not assigned and could be declared final 119
Parameter 'offset' is not assigned and could be declared final 141
Parameter 'page' is not assigned and could be declared final 149
Parameter 'score' is not assigned and could be declared final 157
Parameter 'source' is not assigned and could be declared final 165
Parameter 'spotted' is not assigned and could be declared final 169
Parameter 'obj' is not assigned and could be declared final 223
Ensure you override both equals() and hashCode() 223

pikes-twm - eu/fbk/dkm/pikes/twm/MachineLinking.java

Violation Line
The class 'MachineLinking' has a Cyclomatic Complexity of 4 (Highest = 10). 20–157
Private field 'minWeight' could be made final; it is only initialized in the declaration or constructor. 25
Parameter 'properties' is not assigned and could be declared final 27
Parameter 'text' is not assigned and could be declared final 32
Local variable 'address' could be declared final 35
Local variable 'output' could be declared final 49
Local variable 'mapper' could be declared final 51
Avoid instantiating String objects; this is usually unnecessary. 53
Local variable 'annotation' could be declared final 53
Local variable 'lang' could be declared final 55
Consider simply returning the value vs storing it in local variable 'lang' 56
Parameter 'text' is not assigned and could be declared final 63
The method 'tag' has a Cyclomatic Complexity of 10. 63–135
Local variable 'ret' could be declared final 65
Local variable 'output' could be declared final 83
Local variable 'mapper' could be declared final 85
Avoid instantiating String objects; this is usually unnecessary. 88
Local variable 'annotation' could be declared final 88
Local variable 'lang' could be declared final 90
Useless parentheses. 91
Local variable 'language' could be declared final 91
Local variable 'keywords' could be declared final 92
Avoid instantiating String objects; this is usually unnecessary. 92
Local variable 'keyword' could be declared final 94
Local variable 'sense' could be declared final 95
Local variable 'dbpClass' could be declared final 96
Local variable 'images' could be declared final 97
Local variable 'ngrams' could be declared final 98
Local variable 'ngram' could be declared final 99
Local variable 'originalText' could be declared final 100
Local variable 'span' could be declared final 101
Local variable 'start' could be declared final 103
Local variable 'end' could be declared final 104
Local variable 'tag' could be declared final 106–114
Avoid instantiating new objects inside loops 106–114
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 117
Deeply nested if..then statements are hard to read 117–123
Avoid empty catch blocks 120–122
Deeply nested if..then statements are hard to read 125–127
Parameter 'args' is not assigned and could be declared final 137
Consider using varargs for methods or constructors which take an array the last parameter. 137
Local variable 'properties' could be declared final 138
Local variable 'fileName' could be declared final 143
Local variable 's' could be declared final 145
Local variable 'text' could be declared final 147
Local variable 'tags' could be declared final 148
Local variable 'tag' could be declared final 149

Back to top

Last Published: 2022/02/04.

Reflow Maven skin by Andrius Velykis.

Data and Knowledge Management tools