nuts-foundation/nuts-discovery

View on GitHub

Showing 2 of 24 total issues

Method signCertificate has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    /**
     * Create a certificate, add the email extension with email from the request
     * and sign it with the Nuts intermediate keyPair.
     *
     * Deletes request and stores certificate

    Method downloadCertificate has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        @RequestMapping("/{var}", method = arrayOf(RequestMethod.GET))
        fun downloadCertificate(@PathVariable("var") requestId: String): ResponseEntity<ByteArray> {
            try {
                logger.info("Received certificate download request for: $requestId")
                var x500Name = CordaX500Name.parse(requestId) // for sorting
    Severity: Minor
    Found in src/main/kotlin/nl/nuts/discovery/api/CertificateApi.kt - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language