Preparing report...

Report for github.com/mdlayher/wifi

A+    Excellent!    Found 2 issues across 11 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!


gocyclo90%

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.


golint90%

Golint is a linter for Go source code.

    • wifi/internal/nl80211/const.go
    • Line 108: warning: don't use underscores in Go names; const __WowlanPktpatInvalid should be _WowlanPktpatInvalid (golint)
    • Line 116: warning: don't use underscores in Go names; const Num_WowlanPktpat should be NumWowlanPktpat (golint)
    • Line 118: warning: don't use underscores in Go names; const Max_WowlanPktpat should be MaxWowlanPktpat (golint)
    • Line 270: warning: don't use underscores in Go names; const __CmdAfterLast should be _CmdAfterLast (golint)
    • Line 521: warning: don't use underscores in Go names; const __AttrAfterLast should be _AttrAfterLast (golint)
    • Line 522: warning: don't use underscores in Go names; const Num_Attr should be NumAttr (golint)
    • Line 544: warning: don't use underscores in Go names; const Num_Iftypes should be NumIftypes (golint)
    • Line 553: warning: don't use underscores in Go names; const __StaFlagInvalid should be _StaFlagInvalid (golint)
    • Line 561: warning: don't use underscores in Go names; const __StaFlagAfterLast should be _StaFlagAfterLast (golint)
    • Line 572: warning: don't use underscores in Go names; const Num_P2pPsStatus should be NumP2pPsStatus (golint)
    • Line 580: warning: don't use underscores in Go names; const __RateInfoInvalid should be _RateInfoInvalid (golint)
    • Line 593: warning: don't use underscores in Go names; const __RateInfoAfterLast should be _RateInfoAfterLast (golint)
    • Line 602: warning: don't use underscores in Go names; const __StaBssParamInvalid should be _StaBssParamInvalid (golint)
    • Line 608: warning: don't use underscores in Go names; const __StaBssParamAfterLast should be _StaBssParamAfterLast (golint)
    • Line 617: warning: don't use underscores in Go names; const __StaInfoInvalid should be _StaInfoInvalid (golint)
    • Line 651: warning: don't use underscores in Go names; const __StaInfoAfterLast should be _StaInfoAfterLast (golint)
    • Line 660: warning: don't use underscores in Go names; const __TidStatsInvalid should be _TidStatsInvalid (golint)
    • Line 666: warning: don't use underscores in Go names; const Num_TidStats should be NumTidStats (golint)
    • Line 687: warning: don't use underscores in Go names; const __MpathInfoInvalid should be _MpathInfoInvalid (golint)
    • Line 695: warning: don't use underscores in Go names; const __MpathInfoAfterLast should be _MpathInfoAfterLast (golint)
    • Line 704: warning: don't use underscores in Go names; const __BandAttrInvalid should be _BandAttrInvalid (golint)
    • Line 713: warning: don't use underscores in Go names; const __BandAttrAfterLast should be _BandAttrAfterLast (golint)
    • Line 722: warning: don't use underscores in Go names; const __FrequencyAttrInvalid should be _FrequencyAttrInvalid (golint)
    • Line 726: warning: don't use underscores in Go names; const __FrequencyAttrNoIbss should be _FrequencyAttrNoIbss (golint)
    • Line 740: warning: don't use underscores in Go names; const __FrequencyAttrAfterLast should be _FrequencyAttrAfterLast (golint)
    • Line 749: warning: don't use underscores in Go names; const __BitrateAttrInvalid should be _BitrateAttrInvalid (golint)
    • Line 752: warning: don't use underscores in Go names; const __BitrateAttrAfterLast should be _BitrateAttrAfterLast (golint)
    • Line 783: warning: don't use underscores in Go names; const __RegRuleAttrInvalid should be _RegRuleAttrInvalid (golint)
    • Line 791: warning: don't use underscores in Go names; const __RegRuleAttrAfterLast should be _RegRuleAttrAfterLast (golint)
    • Line 800: warning: don't use underscores in Go names; const __SchedScanMatchAttrInvalid should be _SchedScanMatchAttrInvalid (golint)
    • Line 803: warning: don't use underscores in Go names; const __SchedScanMatchAttrAfterLast should be _SchedScanMatchAttrAfterLast (golint)
    • Line 820: warning: don't use underscores in Go names; const __RrfNoIbss should be _RrfNoIbss (golint)
    • Line 855: warning: don't use underscores in Go names; const __SurveyInfoInvalid should be _SurveyInfoInvalid (golint)
    • Line 866: warning: don't use underscores in Go names; const __SurveyInfoAfterLast should be _SurveyInfoAfterLast (golint)
    • Line 875: warning: don't use underscores in Go names; const __MntrFlagInvalid should be _MntrFlagInvalid (golint)
    • Line 882: warning: don't use underscores in Go names; const __MntrFlagAfterLast should be _MntrFlagAfterLast (golint)
    • Line 895: warning: don't use underscores in Go names; const __MeshPowerAfterLast should be _MeshPowerAfterLast (golint)
    • Line 904: warning: don't use underscores in Go names; const __MeshconfInvalid should be _MeshconfInvalid (golint)
    • Line 933: warning: don't use underscores in Go names; const __MeshconfAttrAfterLast should be _MeshconfAttrAfterLast (golint)
    • Line 942: warning: don't use underscores in Go names; const __MeshSetupInvalid should be _MeshSetupInvalid (golint)
    • Line 951: warning: don't use underscores in Go names; const __MeshSetupAttrAfterLast should be _MeshSetupAttrAfterLast (golint)
    • Line 960: warning: don't use underscores in Go names; const __TxqAttrInvalid should be _TxqAttrInvalid (golint)
    • Line 966: warning: don't use underscores in Go names; const __TxqAttrAfterLast should be _TxqAttrAfterLast (golint)
    • Line 1023: warning: don't use underscores in Go names; const __BssInvalid should be _BssInvalid (golint)
    • Line 1042: warning: don't use underscores in Go names; const __BssAfterLast should be _BssAfterLast (golint)
    • Line 1066: warning: don't use underscores in Go names; const __AuthtypeNum should be _AuthtypeNum (golint)
    • Line 1079: warning: don't use underscores in Go names; const Num_Keytypes should be NumKeytypes (golint)
    • Line 1105: warning: don't use underscores in Go names; const __KeyDefaultTypeInvalid should be _KeyDefaultTypeInvalid (golint)
    • Line 1108: warning: don't use underscores in Go names; const Num_KeyDefaultTypes should be NumKeyDefaultTypes (golint)
    • Line 1116: warning: don't use underscores in Go names; const __KeyInvalid should be _KeyInvalid (golint)
    • Line 1125: warning: don't use underscores in Go names; const __KeyAfterLast should be _KeyAfterLast (golint)
    • Line 1134: warning: don't use underscores in Go names; const __TxrateInvalid should be _TxrateInvalid (golint)
    • Line 1139: warning: don't use underscores in Go names; const __TxrateAfterLast should be _TxrateAfterLast (golint)
    • Line 1161: warning: don't use underscores in Go names; const Num_Bands should be NumBands (golint)
    • Line 1178: warning: don't use underscores in Go names; const __AttrCqmInvalid should be _AttrCqmInvalid (golint)
    • Line 1187: warning: don't use underscores in Go names; const __AttrCqmAfterLast should be _AttrCqmAfterLast (golint)
    • Line 1216: warning: don't use underscores in Go names; const __PktpatInvalid should be _PktpatInvalid (golint)
    • Line 1220: warning: don't use underscores in Go names; const Num_Pktpat should be NumPktpat (golint)
    • Line 1221: warning: don't use underscores in Go names; const Max_Pktpat should be MaxPktpat (golint)
    • Line 1229: warning: don't use underscores in Go names; const __WowlanTrigInvalid should be _WowlanTrigInvalid (golint)
    • Line 1249: warning: don't use underscores in Go names; const Num_WowlanTrig should be NumWowlanTrig (golint)
    • Line 1250: warning: don't use underscores in Go names; const Max_WowlanTrig should be MaxWowlanTrig (golint)
    • Line 1258: warning: don't use underscores in Go names; const __WowlanTcpInvalid should be _WowlanTCPInvalid (golint)
    • Line 1270: warning: don't use underscores in Go names; const Num_WowlanTcp should be NumWowlanTCP (golint)
    • Line 1271: warning: don't use underscores in Go names; const Max_WowlanTcp should be MaxWowlanTCP (golint)
    • Line 1279: warning: don't use underscores in Go names; const __CoalesceRuleInvalid should be _CoalesceRuleInvalid (golint)
    • Line 1283: warning: don't use underscores in Go names; const Num_AttrCoalesceRule should be NumAttrCoalesceRule (golint)
    • Line 1304: warning: don't use underscores in Go names; const Num_IfaceLimit should be NumIfaceLimit (golint)
    • Line 1305: warning: don't use underscores in Go names; const Max_IfaceLimit should be MaxIfaceLimit (golint)
    • Line 1320: warning: don't use underscores in Go names; const Num_IfaceComb should be NumIfaceComb (golint)
    • Line 1321: warning: don't use underscores in Go names; const Max_IfaceComb should be MaxIfaceComb (golint)
    • Line 1336: warning: don't use underscores in Go names; const Num_PlinkStates should be NumPlinkStates (golint)
    • Line 1337: warning: don't use underscores in Go names; const Max_PlinkStates should be MaxPlinkStates (golint)
    • Line 1348: warning: don't use underscores in Go names; const Num_PlinkActions should be NumPlinkActions (golint)
    • Line 1356: warning: don't use underscores in Go names; const __RekeyDataInvalid should be _RekeyDataInvalid (golint)
    • Line 1360: warning: don't use underscores in Go names; const Num_RekeyData should be NumRekeyData (golint)
    • Line 1361: warning: don't use underscores in Go names; const Max_RekeyData should be MaxRekeyData (golint)
    • Line 1379: warning: don't use underscores in Go names; const __StaWmeInvalid should be _StaWmeInvalid (golint)
    • Line 1382: warning: don't use underscores in Go names; const __StaWmeAfterLast should be _StaWmeAfterLast (golint)
    • Line 1391: warning: don't use underscores in Go names; const __PmksaCandidateInvalid should be _PmksaCandidateInvalid (golint)
    • Line 1395: warning: don't use underscores in Go names; const Num_PmksaCandidate should be NumPmksaCandidate (golint)
    • Line 1396: warning: don't use underscores in Go names; const Max_PmksaCandidate should be MaxPmksaCandidate (golint)
    • Line 1463: warning: don't use underscores in Go names; const Num_ExtFeatures should be NumExtFeatures (golint)
    • Line 1464: warning: don't use underscores in Go names; const Max_ExtFeatures should be MaxExtFeatures (golint)
    • Line 1515: warning: don't use underscores in Go names; const __SmpsAfterLast should be _SmpsAfterLast (golint)
    • Line 1557: warning: don't use underscores in Go names; const Num_CritProto should be NumCritProto (golint)
    • Line 1583: warning: don't use underscores in Go names; const __SchedScanPlanInvalid should be _SchedScanPlanInvalid (golint)
    • Line 1586: warning: don't use underscores in Go names; const __SchedScanPlanAfterLast should be _SchedScanPlanAfterLast (golint)
    • Line 1595: warning: don't use underscores in Go names; const __BssSelectAttrInvalid should be _BssSelectAttrInvalid (golint)
    • Line 1599: warning: don't use underscores in Go names; const __BssSelectAttrAfterLast should be _BssSelectAttrAfterLast (golint)
    • Line 1621: warning: don't use underscores in Go names; const __NanFuncTypeAfterLast should be _NanFuncTypeAfterLast (golint)
    • Line 1649: warning: don't use underscores in Go names; const __NanFuncInvalid should be _NanFuncInvalid (golint)
    • Line 1666: warning: don't use underscores in Go names; const Num_NanFuncAttr should be NumNanFuncAttr (golint)
    • Line 1675: warning: don't use underscores in Go names; const __NanSrfInvalid should be _NanSrfInvalid (golint)
    • Line 1680: warning: don't use underscores in Go names; const Num_NanSrfAttr should be NumNanSrfAttr (golint)
    • Line 1689: warning: don't use underscores in Go names; const __NanMatchInvalid should be _NanMatchInvalid (golint)
    • Line 1692: warning: don't use underscores in Go names; const Num_NanMatchAttr should be NumNanMatchAttr (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!