server/pkg/pgp/util.go

Summary

Maintainability
A
1 hr
Test Coverage
D
68%

Function VerifyPGPSignatures has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func VerifyPGPSignatures(pgpSignatures []string, signedReaderFunc func() (io.Reader, error), pgpKeys []string, requiredNumberOfVerifiedSignatures int, logger hclog.Logger) ([]string, int, error) {
Severity: Minor
Found in server/pkg/pgp/util.go - About 35 mins to fix

    Function VerifyPGPSignatures has 5 return statements (exceeds 4 allowed).
    Open

    func VerifyPGPSignatures(pgpSignatures []string, signedReaderFunc func() (io.Reader, error), pgpKeys []string, requiredNumberOfVerifiedSignatures int, logger hclog.Logger) ([]string, int, error) {
        if requiredNumberOfVerifiedSignatures == 0 {
            return pgpKeys, 0, nil
        }
    
    
    Severity: Major
    Found in server/pkg/pgp/util.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status