Showing 26 of 26 total issues
Method ImageRepository.UploadSourceImage
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
func (r *ImageRepository) UploadSourceImage(ctx context.Context, authInfo authorization.Info, imageRef string, srcReader io.Reader, spaceGUID string, tags ...string) (string, error) {
Function NewRoute
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
serverURL url.URL,
routeRepo CFRouteRepository,
domainRepo CFDomainRepository,
appRepo CFAppRepository,
spaceRepo CFSpaceRepository,
Function NewStateCollector
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
appRepo shared.CFAppRepository,
domainRepo shared.CFDomainRepository,
processRepo shared.CFProcessRepository,
routeRepo shared.CFRouteRepository,
serviceInstanceRepo shared.CFServiceInstanceRepository,
Function NewOrg
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
func NewOrg(apiBaseURL url.URL, orgRepo CFOrgRepository, domainRepo CFDomainRepository, requestValidator RequestValidator, userCertificateExpirationWarningDuration time.Duration, defaultDomainName string) *Org {
Function NewApplier
has 6 arguments (exceeds 5 allowed). Consider refactoring. Open
Open
appRepo shared.CFAppRepository,
domainRepo shared.CFDomainRepository,
processRepo shared.CFProcessRepository,
routeRepo shared.CFRouteRepository,
serviceInstanceRepo shared.CFServiceInstanceRepository,
Method Validator.ValidateUpdate
has 9 return statements (exceeds 8 allowed). Open
Open
func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, obj runtime.Object) (admission.Warnings, error) {
route, ok := obj.(*korifiv1alpha1.CFRoute)
if !ok {
return nil, apierrors.NewBadRequest(fmt.Sprintf("expected a CFRoute but got a %T", obj))
}