Preparing report...

Report for github.com/caos/zitadel

(v1.83.3)

A+    Excellent!    Found 65 issues across 1586 files

Tweet

go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gofmt99%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo96%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • internal/command/org_features.go
    • Line 107: warning: cyclomatic complexity 30 of function (*Commands).ensureOrgSettingsToFeatures() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 19 of function (*Commands).setAllowedLoginPolicy() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 18 of function (*Commands).setDefaultAuthFactorsInCustomLoginPolicy() is high (> 15) (gocyclo)
    • internal/query/custom_text.go
    • Line 271: warning: cyclomatic complexity 38 of function CustomTextsToLoginDomain() is high (> 15) (gocyclo)
    • Line 909: warning: cyclomatic complexity 19 of function registrationUserKeyToDomain() is high (> 15) (gocyclo)
    • Line 966: warning: cyclomatic complexity 16 of function registrationOrgKeyToDomain() is high (> 15) (gocyclo)
    • internal/command/custom_login_text.go
    • Line 767: warning: cyclomatic complexity 19 of function (*Commands).createRegistrationUserEvents() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 17 of function (*Commands).createExternalRegistrationUserOverviewEvents() is high (> 15) (gocyclo)
    • Line 913: warning: cyclomatic complexity 16 of function (*Commands).createRegistrationOrgEvents() is high (> 15) (gocyclo)
    • internal/command/custom_login_text_model.go
    • Line 296: warning: cyclomatic complexity 78 of function (*CustomLoginTextReadModel).Reduce() is high (> 15) (gocyclo)
    • Line 1904: warning: cyclomatic complexity 19 of function (*CustomLoginTextReadModel).handleRegistrationUserScreenSetEvent() is high (> 15) (gocyclo)
    • Line 2046: warning: cyclomatic complexity 19 of function (*CustomLoginTextReadModel).handleRegistrationUserScreenRemoveEvent() is high (> 15) (gocyclo)
    • Line 2121: warning: cyclomatic complexity 17 of function (*CustomLoginTextReadModel).handleExternalRegistrationUserOverviewScreenRemoveEvent() is high (> 15) (gocyclo)
    • Line 1979: warning: cyclomatic complexity 17 of function (*CustomLoginTextReadModel).handleExternalRegistrationUserOverviewScreenSetEvent() is high (> 15) (gocyclo)
    • Line 2188: warning: cyclomatic complexity 16 of function (*CustomLoginTextReadModel).handleRegistrationOrgScreenSetEvent() is high (> 15) (gocyclo)
    • Line 2251: warning: cyclomatic complexity 16 of function (*CustomLoginTextReadModel).handleRegistrationOrgScreenRemoveEvent() is high (> 15) (gocyclo)
    • internal/iam/repository/view/model/custom_text.go
    • Line 76: warning: cyclomatic complexity 37 of function CustomTextViewsToLoginDomain() is high (> 15) (gocyclo)
    • Line 710: warning: cyclomatic complexity 19 of function registrationUserKeyToDomain() is high (> 15) (gocyclo)
    • Line 767: warning: cyclomatic complexity 16 of function registrationOrgKeyToDomain() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!