Preparing report...

Report for github.com/ibrahimsql/spiderjs

(v0.0.0-20250608170442-2548a71bfc9b)

A+    Excellent!    Found 11 issues across 64 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo84%

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/analyzer/framework/detector.go
    • Line 140: warning: cyclomatic complexity 89 of function (*Detector).DetectFromTarget() is high (> 15) (gocyclo)
    • Line 616: warning: cyclomatic complexity 55 of function (*Detector).detectFromScript() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 54 of function (*Detector).detectFromHTML() is high (> 15) (gocyclo)
    • Line 723: warning: cyclomatic complexity 53 of function (*Detector).detectVersion() is high (> 15) (gocyclo)
    • Line 890: warning: cyclomatic complexity 27 of function (*Detector).detectWithWappalyzer() is high (> 15) (gocyclo)
    • internal/analyzer/analyzer.go
    • Line 183: warning: cyclomatic complexity 48 of function (*AnalyzerImpl).detectFrameworks() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 23 of function (*AnalyzerImpl).Analyze() is high (> 15) (gocyclo)
    • internal/analyzer/api/discoverer.go
    • Line 260: warning: cyclomatic complexity 38 of function (*Discoverer).discoverRESTFromScripts() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 27 of function (*Discoverer).DiscoverFromTarget() is high (> 15) (gocyclo)
    • Line 856: warning: cyclomatic complexity 17 of function (*Discoverer).isValidURL() is high (> 15) (gocyclo)
    • internal/config/config.go
    • Line 149: warning: cyclomatic complexity 29 of function (*Config).SetDefaults() is high (> 15) (gocyclo)
    • Line 106: warning: cyclomatic complexity 23 of function (*Config).Validate() is high (> 15) (gocyclo)
    • internal/scanner/security/scanner.go
    • Line 810: warning: cyclomatic complexity 25 of function (*CORSCheck).Run() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 23 of function (*XSSCheck).Run() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 22 of function (*Scanner).compareVersions() is high (> 15) (gocyclo)
    • Line 1279: warning: cyclomatic complexity 19 of function (*CookieCheck).Run() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 19 of function (*Scanner).isVersionAffected() is high (> 15) (gocyclo)
    • Line 1052: warning: cyclomatic complexity 16 of function (*HeaderCheck).Run() is high (> 15) (gocyclo)
    • internal/analyzer/bundle/analyzer.go
    • Line 424: warning: cyclomatic complexity 40 of function (*Analyzer).extractDependencies() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 26 of function (*Analyzer).detectVersion() is high (> 15) (gocyclo)
    • internal/ml/predictor.go
    • Line 120: warning: cyclomatic complexity 22 of function (*Predictor).ExtractFeatures() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 18 of function (*Predictor).Predict() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words