Preparing report...

Report for github.com/rkj-tech/uadmin-with-postgres-ssl-options

(v0.4.0)

A+    Excellent!    Found 46 issues across 161 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!


gofmt96%

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!


gocyclo73%

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.

    • register.go
    • Line 43: warning: cyclomatic complexity 30 of function Register() is high (> 15) (gocyclo)
    • d_api_read.go
    • Line 10: warning: cyclomatic complexity 64 of function dAPIReadHandler() is high (> 15) (gocyclo)
    • d_api.go
    • Line 110: warning: cyclomatic complexity 50 of function dAPIHandler() is high (> 15) (gocyclo)
    • d_api_edit.go
    • Line 10: warning: cyclomatic complexity 43 of function dAPIEditHandler() is high (> 15) (gocyclo)
    • auth.go
    • Line 400: warning: cyclomatic complexity 35 of function requestInNet() is high (> 15) (gocyclo)
    • Line 578: warning: cyclomatic complexity 35 of function getSession() is high (> 15) (gocyclo)
    • db_test.go
    • Line 75: warning: cyclomatic complexity 29 of function (*UAdminTests).TestSave() is high (> 15) (gocyclo)
    • d_api_delete.go
    • Line 10: warning: cyclomatic complexity 25 of function dAPIDeleteHandler() is high (> 15) (gocyclo)
    • openapi.go
    • Line 22: warning: cyclomatic complexity 83 of function GenerateOpenAPISchema() is high (> 15) (gocyclo)
    • main_handler_test.go
    • Line 15: warning: cyclomatic complexity 16 of function (*UAdminTests).TestMainHandler() is high (> 15) (gocyclo)
    • admin.go
    • Line 77: warning: cyclomatic complexity 18 of function isLocal() is high (> 15) (gocyclo)
    • get_list_data.go
    • Line 80: warning: cyclomatic complexity 41 of function evaluateObject() is high (> 15) (gocyclo)
    • helper/striptag.go
    • Line 2621: warning: cyclomatic complexity 26 of function cssEscaper() is high (> 15) (gocyclo)
    • Line 1222: warning: cyclomatic complexity 25 of function (*escaper).escapeText() is high (> 15) (gocyclo)
    • Line 765: warning: cyclomatic complexity 20 of function (*escaper).escapeAction() is high (> 15) (gocyclo)
    • Line 3683: warning: cyclomatic complexity 18 of function urlProcessor() is high (> 15) (gocyclo)
    • Line 2940: warning: cyclomatic complexity 18 of function nextJSCtx() is high (> 15) (gocyclo)
    • Line 3047: warning: cyclomatic complexity 17 of function jsValEscaper() is high (> 15) (gocyclo)
    • send_email.go
    • Line 16: warning: cyclomatic complexity 18 of function SendEmail() is high (> 15) (gocyclo)
    • db.go
    • Line 150: warning: cyclomatic complexity 52 of function GetDB() is high (> 15) (gocyclo)
    • d_api_test.go
    • Line 13: warning: cyclomatic complexity 30 of function (*UAdminTests).TestDAPI() is high (> 15) (gocyclo)
    • d_api_schema.go
    • Line 8: warning: cyclomatic complexity 18 of function dAPISchemaHandler() is high (> 15) (gocyclo)
    • abtest.go
    • Line 108: warning: cyclomatic complexity 16 of function syncABTests() is high (> 15) (gocyclo)
    • setting.go
    • Line 171: warning: cyclomatic complexity 56 of function (*Setting).ApplyValue() is high (> 15) (gocyclo)
    • Line 304: warning: cyclomatic complexity 32 of function syncSystemSettings() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 22 of function (*Setting).GetValue() is high (> 15) (gocyclo)
    • form_handler.go
    • Line 13: warning: cyclomatic complexity 25 of function formHandler() is high (> 15) (gocyclo)
    • form_handler_test.go
    • Line 13: warning: cyclomatic complexity 20 of function (*UAdminTests).TestFormHandler() is high (> 15) (gocyclo)
    • approval.go
    • Line 46: warning: cyclomatic complexity 19 of function (*Approval).Save() is high (> 15) (gocyclo)
    • export.go
    • Line 133: warning: cyclomatic complexity 34 of function exportHandler() is high (> 15) (gocyclo)
    • Line 22: warning: cyclomatic complexity 31 of function getFilter() is high (> 15) (gocyclo)
    • d_api_add.go
    • Line 199: warning: cyclomatic complexity 29 of function getAddFilters() is high (> 15) (gocyclo)
    • Line 14: warning: cyclomatic complexity 29 of function dAPIAddHandler() is high (> 15) (gocyclo)
    • api_handler_test.go
    • Line 18: warning: cyclomatic complexity 26 of function (*UAdminTests).TestAPIHandler() is high (> 15) (gocyclo)
    • d_api_helper.go
    • Line 197: warning: cyclomatic complexity 28 of function getQueryOperator() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 28 of function returnDAPIJSON() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 21 of function getFilters() is high (> 15) (gocyclo)
    • Line 551: warning: cyclomatic complexity 17 of function getQueryM2M() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 17 of function getQueryFields() is high (> 15) (gocyclo)
    • auth_test.go
    • Line 49: warning: cyclomatic complexity 17 of function (*UAdminTests).TestHashPass() is high (> 15) (gocyclo)
    • get_schema.go
    • Line 13: warning: cyclomatic complexity 97 of function getSchema() is high (> 15) (gocyclo)
    • main_handler.go
    • Line 10: warning: cyclomatic complexity 18 of function mainHandler() is high (> 15) (gocyclo)
    • process_form.go
    • Line 15: warning: cyclomatic complexity 128 of function processForm() 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!