Skip to content

Introduce GroupIri PathVariable and move GroupIri to slice admin package

Codacy Production / Codacy Static Code Analysis required action Dec 28, 2023 in 0s

3 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 2
- Added 3
           

Complexity increasing per file
==============================
- webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/GroupIri.scala  6
- webapi/src/main/scala/org/knora/webapi/slice/common/api/AuthorizationRestService.scala  3
- webapi/src/main/scala/org/knora/webapi/slice/admin/api/service/PermissionsRestService.scala  2
         

Clones removed
==============
+ webapi/src/main/scala/org/knora/webapi/messages/admin/responder/permissionsmessages/PermissionsMessagesADM.scala  -2
         

See the complete overview on Codacy

Annotations

Check warning on line 105 in webapi/src/main/scala/org/knora/webapi/messages/admin/responder/permissionsmessages/PermissionsMessagesADM.scala

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

webapi/src/main/scala/org/knora/webapi/messages/admin/responder/permissionsmessages/PermissionsMessagesADM.scala#L105

Usage of get on optional type.

Check notice on line 20 in webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/GroupIri.scala

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/GroupIri.scala#L20

Consider using case matching instead of else if blocks

Check notice on line 21 in webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/GroupIri.scala

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

webapi/src/main/scala/org/knora/webapi/slice/admin/domain/model/GroupIri.scala#L21

Consider using case matching instead of else if blocks