Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

under-reported gocyclo? #422

Open
miparnisari opened this issue Apr 19, 2024 · 0 comments
Open

under-reported gocyclo? #422

miparnisari opened this issue Apr 19, 2024 · 0 comments

Comments

@miparnisari
Copy link

Compare

https://goreportcard.com/report/github.com/openfga/openfga

image

versus

[19/04/24 2:06:48] ~/GitHub/openfga (main) $ golangci-lint run -E gocyclo
pkg/server/errors/encoded_errors.go:129:1: cyclomatic complexity 35 of func `getCustomizedErrorCode` is high (> 30) (gocyclo)
func getCustomizedErrorCode(field string, reason string) int32 {
^
internal/graph/graph.go:204:1: cyclomatic complexity 38 of func `(*RelationshipGraph).getRelationshipEdgesWithTargetRewrite` is high (> 30) (gocyclo)
func (g *RelationshipGraph) getRelationshipEdgesWithTargetRewrite(
^
internal/server/config/config.go:252:1: cyclomatic complexity 34 of func `(*Config).Verify` is high (> 30) (gocyclo)
func (cfg *Config) Verify() error {
^
pkg/typesystem/typesystem.go:549:1: cyclomatic complexity 37 of func `hasEntrypoints` is high (> 30) (gocyclo)
func hasEntrypoints(
^
cmd/run/run.go:277:1: cyclomatic complexity 58 of func `(*ServerContext).Run` is high (> 30) (gocyclo)
func (s *ServerContext) Run(ctx context.Context, config *serverconfig.Config) error {
^
[19/04/24 2:06:50] ~/GitHub/openfga (main) $ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant