nuts-foundation/nuts-node

View on GitHub
auth/api/iam/api.go

Summary

Maintainability
C
1 day
Test Coverage
B
81%

File api.go has 732 lines of code (exceeds 500 allowed). Consider refactoring.
Open

/*
 * Copyright (C) 2023 Nuts community
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
Severity: Minor
Found in auth/api/iam/api.go - About 7 hrs to fix

    Wrapper has 31 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type Wrapper struct {
        auth          auth.AuthenticationServices
        policyBackend policy.PDPBackend
        storageEngine storage.Engine
        jsonldManager jsonld.JSONLD
    Severity: Minor
    Found in auth/api/iam/api.go - About 3 hrs to fix

      Function New has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          authInstance auth.AuthenticationServices, vcrInstance vcr.VCR, vdrInstance vdr.VDR, storageEngine storage.Engine,
          policyBackend policy.PDPBackend, jwtSigner nutsCrypto.JWTSigner, jsonldManager jsonld.JSONLD) *Wrapper {
      Severity: Major
      Found in auth/api/iam/api.go - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status