Preparing report...

Report for github.com/bettercap/bettercap

(v0.0.0-20240809160008-76e136a18ed4)

A+    Excellent!    Found 59 issues across 265 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!


gofmt85%

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!


gocyclo88%

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.

    • main.go
    • Line 20: warning: cyclomatic complexity 19 of function main() is high (> 15) (gocyclo)
    • packets/mdns.go
    • Line 19: warning: cyclomatic complexity 16 of function MDNSGetMeta() is high (> 15) (gocyclo)
    • modules/can/dbc.go
    • Line 98: warning: cyclomatic complexity 31 of function (*compiler).addMetadata() is high (> 15) (gocyclo)
    • modules/wifi/wifi_show.go
    • Line 24: warning: cyclomatic complexity 24 of function (*WiFiModule).getRow() is high (> 15) (gocyclo)
    • Line 174: warning: cyclomatic complexity 19 of function (*WiFiModule).doSelection() is high (> 15) (gocyclo)
    • modules/graph/module.go
    • Line 196: warning: cyclomatic complexity 21 of function (*Module).Configure() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 16 of function (*Module).onEvent() is high (> 15) (gocyclo)
    • packets/dot11.go
    • Line 231: warning: cyclomatic complexity 19 of function Dot11ParseEncryption() is high (> 15) (gocyclo)
    • modules/wifi/wifi.go
    • Line 70: warning: cyclomatic complexity 36 of function NewWiFiModule() is high (> 15) (gocyclo)
    • Line 495: warning: cyclomatic complexity 33 of function (*WiFiModule).Configure() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words

    • network/manuf.go
    • Line 567: warning: "Infomation" is a misspelling of "Information" (misspell)
    • Line 739: warning: "Technolgy" is a misspelling of "Technology" (misspell)
    • Line 984: warning: "Electornics" is a misspelling of "Electronics" (misspell)
    • Line 1515: warning: "Implementos" is a misspelling of "Implements" (misspell)
    • Line 1699: warning: "DEVELPMENT" is a misspelling of "DEVELOPMENT" (misspell)
    • Line 1733: warning: "MANUFACTURAS" is a misspelling of "MANUFACTURES" (misspell)
    • Line 1966: warning: "Technolgy" is a misspelling of "Technology" (misspell)
    • Line 2396: warning: "infomation" is a misspelling of "information" (misspell)
    • Line 2452: warning: "CONVERS" is a misspelling of "CONVERTS" (misspell)
    • Line 2805: warning: "technolgy" is a misspelling of "technology" (misspell)
    • Line 3073: warning: "Industrias" is a misspelling of "Industries" (misspell)
    • Line 3821: warning: "intergration" is a misspelling of "integration" (misspell)
    • Line 3838: warning: "Electic" is a misspelling of "Electric" (misspell)
    • Line 4593: warning: "Areospace" is a misspelling of "Aerospace" (misspell)
    • Line 4708: warning: "Electornics" is a misspelling of "Electronics" (misspell)
    • Line 5192: warning: "TECHNOLGY" is a misspelling of "TECHNOLOGY" (misspell)
    • Line 5266: warning: "Grammer" is a misspelling of "Grammar" (misspell)
    • Line 9029: warning: "Instituto" is a misspelling of "Institution" (misspell)
    • Line 9553: warning: "ELECTRONICOS" is a misspelling of "ELECTRONICS" (misspell)
    • Line 9755: warning: "Internation" is a misspelling of "International" (misspell)
    • Line 10846: warning: "Aircaft" is a misspelling of "Aircraft" (misspell)
    • Line 11177: warning: "PROCES" is a misspelling of "PROCESS" (misspell)
    • Line 11210: warning: "Enterpirse" is a misspelling of "Enterprise" (misspell)
    • Line 12050: warning: "MANAGMENT" is a misspelling of "MANAGEMENT" (misspell)
    • Line 12098: warning: "COMPONENTES" is a misspelling of "COMPONENTS" (misspell)
    • Line 12218: warning: "ELECTRONIK" is a misspelling of "ELECTION" (misspell)
    • Line 16424: warning: "Instrumentos" is a misspelling of "Instruments" (misspell)
    • Line 16517: warning: "PROTECTRON" is a misspelling of "PROTECTION" (misspell)
    • Line 16536: warning: "ROBOTIS" is a misspelling of "ROBOTICS" (misspell)
    • Line 17444: warning: "Electronicas" is a misspelling of "Electronics" (misspell)
    • Line 17829: warning: "Internation" is a misspelling of "International" (misspell)
    • Line 21205: warning: "Convergens" is a misspelling of "Converse" (misspell)
    • Line 23450: warning: "INDUSTRIAS" is a misspelling of "INDUSTRIES" (misspell)
    • Line 23459: warning: "Electornics" is a misspelling of "Electronics" (misspell)
    • Line 24145: warning: "Corporacion" is a misspelling of "Corporation" (misspell)
    • Line 24270: warning: "Produktions" is a misspelling of "Productions" (misspell)
    • Line 24350: warning: "Electon" is a misspelling of "Election" (misspell)
    • Line 24408: warning: "Electornic" is a misspelling of "Electronic" (misspell)
    • Line 24449: warning: "Definicion" is a misspelling of "Definition" (misspell)
    • Line 24735: warning: "Electricial" is a misspelling of "Electrical" (misspell)
    • Line 25225: warning: "Terminales" is a misspelling of "Terminals" (misspell)
    • Line 26545: warning: "ELECTRONIK" is a misspelling of "ELECTION" (misspell)
    • Line 26583: warning: "corperation" is a misspelling of "corporation" (misspell)
    • Line 30629: warning: "Devialet" is a misspelling of "Deviate" (misspell)
    • Line 30683: warning: "Portalis" is a misspelling of "Portals" (misspell)
    • Line 32078: warning: "Comandos" is a misspelling of "Commandos" (misspell)
    • Line 32368: warning: "electronik" is a misspelling of "election" (misspell)
    • Line 36569: warning: "Internacional" is a misspelling of "International" (misspell)
    • Line 38204: warning: "Electronik" is a misspelling of "Election" (misspell)
    • Line 38222: warning: "Internation" is a misspelling of "International" (misspell)
    • Line 38845: warning: "Produktions" is a misspelling of "Productions" (misspell)
    • Line 39252: warning: "Technolgy" is a misspelling of "Technology" (misspell)
    • Line 39523: warning: "Engeneering" is a misspelling of "Engineering" (misspell)
    • Line 39749: warning: "Corperation" is a misspelling of "Corporation" (misspell)
    • Line 39909: warning: "Medicore" is a misspelling of "Mediocre" (misspell)
    • Line 40618: warning: "Trafic" is a misspelling of "Traffic" (misspell)
    • Line 41798: warning: "REGULACION" is a misspelling of "REGULATION" (misspell)
    • Line 41916: warning: "Controles" is a misspelling of "Controls" (misspell)
    • Line 43470: warning: "Implementos" is a misspelling of "Implements" (misspell)
    • Line 43605: warning: "Corperation" is a misspelling of "Corporation" (misspell)
    • Line 43778: warning: "Controles" is a misspelling of "Controls" (misspell)
    • Line 44028: warning: "Stange" is a misspelling of "Strange" (misspell)
    • Line 44031: warning: "INSTITUTO" is a misspelling of "INSTITUTION" (misspell)
    • Line 44104: warning: "CONVERS" is a misspelling of "CONVERTS" (misspell)
    • Line 44332: warning: "NTO" is a misspelling of "NOT" (misspell)
    • Line 44563: warning: "Developmnet" is a misspelling of "Developments" (misspell)
    • Line 45115: warning: "Technolgy" is a misspelling of "Technology" (misspell)
    • Line 45270: warning: "automotion" is a misspelling of "automation" (misspell)
    • Line 46126: warning: "Electronicos" is a misspelling of "Electronics" (misspell)
    • Line 46131: warning: "Manufacturas" is a misspelling of "Manufactures" (misspell)
    • Line 46561: warning: "Nowe" is a misspelling of "Now" (misspell)
    • Line 46698: warning: "Controles" is a misspelling of "Controls" (misspell)
    • Line 47294: warning: "Intergrated" is a misspelling of "Integrated" (misspell)
    • Line 47746: warning: "Stichting" is a misspelling of "Stitching" (misspell)
    • Line 47854: warning: "Teh" is a misspelling of "The" (misspell)
    • Line 48524: warning: "Sceintific" is a misspelling of "Scientific" (misspell)
    • Line 48582: warning: "Electroncs" is a misspelling of "Electrons" (misspell)
    • Line 48757: warning: "Technolgy" is a misspelling of "Technology" (misspell)
    • Line 48887: warning: "Electronicos" is a misspelling of "Electronics" (misspell)
    • Line 49777: warning: "Controles" is a misspelling of "Controls" (misspell)
    • Line 50495: warning: "Analoge" is a misspelling of "Analogue" (misspell)
    • Line 50546: warning: "Analoge" is a misspelling of "Analogue" (misspell)
    • Line 50985: warning: "Instrumentos" is a misspelling of "Instruments" (misspell)
    • Line 51181: warning: "TECHNOLGY" is a misspelling of "TECHNOLOGY" (misspell)
    • Line 51241: warning: "Devialet" is a misspelling of "Deviate" (misspell)
    • Line 51454: warning: "Controles" is a misspelling of "Controls" (misspell)
    • Line 51510: warning: "Analoge" is a misspelling of "Analogue" (misspell)
    • Line 51768: warning: "Intergrated" is a misspelling of "Integrated" (misspell)
    • Line 52026: warning: "Visable" is a misspelling of "Visible" (misspell)