Preparing report...

Report for github.com/CrisisTextLine/modular

(v0.0.0-20250710152250-a73fa893f51f)

A+    Excellent!    Found 19 issues across 78 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!


gofmt100%

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

No problems detected. Good job!


gocyclo75%

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.

    • feeders/env.go
    • Line 125: warning: cyclomatic complexity 20 of function (*EnvFeeder).processField() is high (> 15) (gocyclo)
    • Line 247: warning: cyclomatic complexity 17 of function (*EnvFeeder).setPointerFieldFromEnv() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 17 of function (*EnvFeeder).setFieldFromEnv() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 17 of function (*EnvFeeder).Feed() is high (> 15) (gocyclo)
    • feeders/json.go
    • Line 314: warning: cyclomatic complexity 39 of function (*JSONFeeder).setMapFromJSON() is high (> 15) (gocyclo)
    • feeders/yaml.go
    • Line 194: warning: cyclomatic complexity 44 of function (*YamlFeeder).processField() is high (> 15) (gocyclo)
    • Line 371: warning: cyclomatic complexity 35 of function (*YamlFeeder).setMapFromYaml() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 19 of function (*YamlFeeder).FeedKey() is high (> 15) (gocyclo)
    • Line 523: warning: cyclomatic complexity 19 of function (*YamlFeeder).setFieldValue() is high (> 15) (gocyclo)
    • config_provider.go
    • Line 201: warning: cyclomatic complexity 42 of function (*Config).Feed() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 22 of function applyInstanceAwareFeeding() is high (> 15) (gocyclo)
    • Line 302: warning: cyclomatic complexity 17 of function loadAppConfig() is high (> 15) (gocyclo)
    • feeders/instance_aware_env.go
    • Line 161: warning: cyclomatic complexity 24 of function (*InstanceAwareEnvFeeder).FeedInstances() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 20 of function (*InstanceAwareEnvFeeder).FeedKey() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 17 of function (*InstanceAwareEnvFeeder).setFieldFromEnvWithPrefix() is high (> 15) (gocyclo)
    • Line 63: warning: cyclomatic complexity 17 of function (*InstanceAwareEnvFeeder).Feed() is high (> 15) (gocyclo)
    • feeders/toml.go
    • Line 274: warning: cyclomatic complexity 39 of function (*TomlFeeder).setMapFromTOML() is high (> 15) (gocyclo)
    • feeders/dot_env.go
    • Line 76: warning: cyclomatic complexity 19 of function (*DotEnvFeeder).parseDotEnvFile() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!