refactor: Separate ontology helpers accessing cache and triplestore #3270
7 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 5
- Added 7
Clones added
============
- webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyCacheHelpers.scala 3
- webapi/src/main/scala/org/knora/webapi/responders/v2/OntologyResponderV2.scala 4
Clones removed
==============
+ webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyHelpers.scala -3
See the complete overview on Codacy
Annotations
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyCacheHelpers.scala#L127
Method is longer than 50 lines.
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyCacheHelpers.scala#L159
Usage of get on optional type.
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyCacheHelpers.scala#L194
Usage of get on optional type.
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyCacheHelpers.scala#L333
Usage of get on optional type.
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyTriplestoreHelpers.scala#L94
Method is longer than 50 lines.
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyTriplestoreHelpers.scala#L161
Consider using case matching instead of else if blocks
codacy-production / Codacy Static Code Analysis
webapi/src/main/scala/org/knora/webapi/responders/v2/ontology/OntologyTriplestoreHelpers.scala#L178
Consider using case matching instead of else if blocks