Skip to content

Don't silently proceed on errors #22

Don't silently proceed on errors

Don't silently proceed on errors #22

Triggered via push May 29, 2024 09:05
Status Success
Total duration 3m 18s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

123 warnings and 6 notices
Redundant 'Collection.addAll()' call: src/main/java/de/gwdg/metadataqa/marc/Utils.java#L43
'addAll()' call can be replaced with parametrized constructor call
Constant values: src/main/java/de/gwdg/metadataqa/marc/MarcFactory.java#L339
Condition `picadf != null` is always `true` when reached
Constant values: src/main/java/de/gwdg/metadataqa/marc/cli/parameters/CommonParameters.java#L386
Condition `this.defaultRecordType == null` is always `false`
Constant values: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToJson.java#L318
Condition `!versionSpecificSubfieldsMap.isEmpty()` is always `true`
Constant values: src/main/java/de/gwdg/metadataqa/marc/utils/MarcCacheWrapper.java#L40
Condition `path != null` is always `true`
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/utils/pica/path/PicaPathParser.java#L83
The call to 'substring' always fails as an argument is out of bounds
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/MarcFieldExtractor.java#L329
Condition `value instanceof List` is redundant and can be replaced with a null check
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/utils/ControlFieldStructureVisualization.java#L49
Method invocation `getLabel` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/utils/ControlFieldStructureVisualization.java#L21
Method invocation `getValue` may produce `NullPointerException`
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/utils/pica/crosswalk/PicaMarcCrosswalkReader.java#L46
Argument `PicaMarcCrosswalkReader.class.getResourceAsStream("/pica/pica-marc.tsv")` might be null
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/utils/EncodedValueFileReader.java#L50
Argument `classLoader.getResourceAsStream(fileName)` might be null
Nullability and data flow problems: src/main/java/de/gwdg/metadataqa/marc/utils/ControlFieldStructureVisualization.java#L77
Method invocation `getValue` may produce `NullPointerException`
Integer multiplication or shift implicitly cast to 'long': src/main/java/de/gwdg/metadataqa/marc/utils/BasicStatistics.java#L45
entry.getKey() \* entry.getValue(): integer multiplication implicitly cast to long
Malformed format string: src/main/java/de/gwdg/metadataqa/marc/utils/CodeGenerator.java#L21
Too many arguments for format string (found: 1, expected: 0)
Malformed format string: src/main/java/de/gwdg/metadataqa/marc/utils/CodeGenerator.java#L35
Too many arguments for format string (found: 1, expected: 0)
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/cli/DataElements.java#L42
Contents of collection `elementCardinality` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/cli/SerialScore.java#L55
Contents of collection `histogram` are queried, but never updated
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/model/kos/KosRegistry.java#L9
Contents of collection `entries` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/cli/DataElements.java#L43
Contents of collection `elementFrequency` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/cli/NetworkAnalysis.java#L37
Contents of collection `orphans` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L474
Contents of collection `subfields` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/definition/TagDefinitionLoader.java#L35
Contents of collection `commonCache` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/cli/DataElements.java#L41
Contents of collection `packageCounter` are updated, but never queried
Mismatched query and update of collection: src/main/java/de/gwdg/metadataqa/marc/definition/general/parser/LinkageParser.java#L51
Contents of collection `invalidChars` are updated, but never queried
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L59
Unnecessary non-capturing group `(?:[_a-z0-9][_a-z0-9]{0,1})`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L32
Unnecessary non-capturing group `(?:(?:(?:\\d+|#)\\-(?:\\d+|#))|(?:\\d+|#))`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L139
Unnecessary non-capturing group `(?:\\\\(?:(?<=\\\\)[!=~\\?]|[^!=~\\?])+)`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L93
Unnecessary non-capturing group `(?:missingValuemissingValue(?:missingValue|missingValue)?missingValuemissingValue)`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L39
Unnecessary non-capturing group `(?:(?:(?<start>\\d+|#)\\-(?<end>\\d+|#))|(?<single>\\d+|#))`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L25
Unnecessary non-capturing group `(?:[0-9\\.]{3}|LDR|LEADER)`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L106
Unnecessary non-capturing group `(?:[0-9a-z]\\-[0-9a-z])`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L39
Unnecessary non-capturing group `(?:(?<start>\\d+|#)\\-(?<end>\\d+|#))`
Unnecessary non-capturing group: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L32
Unnecessary non-capturing group `(?:(?:\\d+|#)\\-(?:\\d+|#))`
Sorted collection with non-comparable elements: src/main/java/de/gwdg/metadataqa/marc/cli/ValidatorCli.java#L681
Construction of sorted collection with non-comparable elements
Suspicious 'Collection.toArray()' call: src/main/java/de/gwdg/metadataqa/marc/CsvUtils.java#L79
Array of type 'java.lang.Object\[\]' expected, 'java.lang.String\[\]' found
'Collection.toArray()' call style: src/main/java/de/gwdg/metadataqa/marc/CsvUtils.java#L71
Call to `toArray()` with pre-sized array argument 'new String\[strings.size()\]'
'Collection.toArray()' call style: src/main/java/de/gwdg/metadataqa/marc/CsvUtils.java#L57
Call to `toArray()` with pre-sized array argument 'new String\[strings.size()\]'
'Collection.toArray()' call style: src/main/java/de/gwdg/metadataqa/marc/CsvUtils.java#L79
Call to `toArray()` with pre-sized array argument 'new String\[quoted.size()\]'
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/path/PicaPath.java#L14
Variable `occurrence` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/definition/CompilanceLevel.java#L12
Variable `label` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/path/PicaPath.java#L13
Variable `xtag` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/reader/PicaNormalizedReader.java#L58
Variable `marc4jRecord` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/OccurrenceRange.java#L4
Variable `unitLength` initializer `0` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/path/PicaPath.java#L12
Variable `tag` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/model/kos/KosType.java#L47
Variable `score` initializer `0` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/model/kos/KosType.java#L50
Variable `url` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/BLClassificationAnalysis.java#L36
Variable `classifier` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/PairGenerator.java#L29
Variable `asBase36` initializer `false` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/reader/xml/PicaXmlParser.java#L50
Variable `reader` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToHtml.java#L91
Variable `tag` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/MarcCacheWrapper.java#L50
Variable `path` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/definition/FRBRFunction.java#L21
Variable `parent` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/reader/xml/PicaXmlHandler.java#L150
The value `"n/a"` assigned to `prevTag` is never used
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/QAMarcReaderFactory.java#L173
Variable `reader` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToMarkdown.java#L25
Variable `tag` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToMarkdown.java#L24
Variable `getInstance` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/reader/xml/PicaXmlHandler.java#L75
Variable `factory` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/path/PicaPath.java#L15
Variable `subfields` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToJson.java#L325
Variable `list` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/parameters/FormatterParameters.java#L22
Variable `withId` initializer `false` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L394
Variable `pos` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToHtml.java#L90
Variable `getInstance` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/MarcCacheWrapper.java#L64
Variable `suffix` initializer `""` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/RecordIterator.java#L53
Variable `status` initializer `"waits"` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToJson.java#L55
Variable `exportSelfDescriptiveCodes` initializer `false` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/Completeness.java#L408
Variable `histogram` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/Position.java#L11
Variable `isNumeric` initializer `true` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/marcspec/MARCspecParser.java#L198
Variable `field` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/definition/TagDefinitionLoader.java#L51
Variable `getInstance` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/Range.java#L14
Variable `validRange` initializer `false` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/definition/TagDefinitionLoader.java#L50
Variable `dataFieldDefinition` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/cli/utils/MappingToJson.java#L54
Variable `exportSubfieldCodes` initializer `false` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/reader/xml/PicaXmlParser.java#L14
Variable `handler` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/QAMarcReaderFactory.java#L142
Variable `reader` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/model/kos/KosType.java#L48
Variable `parent` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/SubfieldParser.java#L13
Variable `j` initializer `0` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/utils/pica/reader/model/PicaLine.java#L126
Variable `parts` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/definition/CompilanceLevel.java#L13
Variable `abbreviation` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/definition/FRBRFunction.java#L22
Variable `label` initializer `null` is redundant
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/analysis/contextual/authority/Marc21AuthorityAnalyzer.java#L70
The value `content.get("organization")` assigned to `organization` is never used
Unused assignment: src/main/java/de/gwdg/metadataqa/marc/model/kos/KosType.java#L49
Variable `label` initializer `null` is redundant
qodana
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.