Preparing report...

Report for github.com/u-root/NiChrome

A+    Excellent!    Found 19 issues across 37 files

Tweet

gofmt97%

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


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!


gocyclo94%

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.


golint54%

Golint is a linter for Go source code.

    • NiChrome/cmds/upspinsos/service.go
    • Line 23: warning: exported type UpspinService should have comment or be unexported (golint)
    • Line 98: warning: exported method UpspinService.Update should have comment or be unexported (golint)
    • Line 105: warning: exported method UpspinService.ToggleFlag should have comment or be unexported (golint)
    • Line 109: warning: exported method UpspinService.SetConfig should have comment or be unexported (golint)
    • Line 126: warning: exported function NewUpspinService should have comment or be unexported (golint)
    • NiChrome/pkg/wifi/stub.go
    • Line 9: warning: exported type StubWorker should have comment or be unexported (golint)
    • Line 14: warning: exported method StubWorker.Scan should have comment or be unexported (golint)
    • Line 18: warning: exported method StubWorker.GetID should have comment or be unexported (golint)
    • Line 22: warning: exported method StubWorker.Connect should have comment or be unexported (golint)
    • Line 26: warning: exported function NewStubWorker should have comment or be unexported (golint)
    • NiChrome/pkg/wifi/wireless.go
    • Line 1191: warning: comment on exported const WIRELESS_EXT should be of the form "WIRELESS_EXT ..." (golint)
    • Line 1344: warning: comment on exported const SIOCSIWCOMMIT should be of the form "SIOCSIWCOMMIT ..." (golint)
    • Line 1346: warning: exported const SIOCGIWNAME should have comment or be unexported (golint)
    • Line 1351: warning: comment on exported const SIOCSIWNWID should be of the form "SIOCSIWNWID ..." (golint)
    • Line 1353: warning: exported const SIOCGIWNWID should have comment or be unexported (golint)
    • Line 1354: warning: exported const SIOCSIWFREQ should have comment or be unexported (golint)
    • Line 1355: warning: exported const SIOCGIWFREQ should have comment or be unexported (golint)
    • Line 1356: warning: exported const SIOCSIWMODE should have comment or be unexported (golint)
    • Line 1357: warning: exported const SIOCGIWMODE should have comment or be unexported (golint)
    • Line 1358: warning: exported const SIOCSIWSENS should have comment or be unexported (golint)
    • Line 1359: warning: exported const SIOCGIWSENS should have comment or be unexported (golint)
    • Line 1361: warning: comment on exported const SIOCSIWRANGE should be of the form "SIOCSIWRANGE ..." (golint)
    • Line 1363: warning: exported const SIOCGIWRANGE should have comment or be unexported (golint)
    • Line 1364: warning: exported const SIOCSIWPRIV should have comment or be unexported (golint)
    • Line 1365: warning: exported const SIOCGIWPRIV should have comment or be unexported (golint)
    • Line 1366: warning: exported const SIOCSIWSTATS should have comment or be unexported (golint)
    • Line 1367: warning: exported const SIOCGIWSTATS should have comment or be unexported (golint)
    • Line 1371: warning: comment on exported const SIOCSIWSPY should be of the form "SIOCSIWSPY ..." (golint)
    • Line 1373: warning: exported const SIOCGIWSPY should have comment or be unexported (golint)
    • Line 1374: warning: exported const SIOCSIWTHRSPY should have comment or be unexported (golint)
    • Line 1375: warning: exported const SIOCGIWTHRSPY should have comment or be unexported (golint)
    • Line 1377: warning: comment on exported const SIOCSIWAP should be of the form "SIOCSIWAP ..." (golint)
    • Line 1379: warning: exported const SIOCGIWAP should have comment or be unexported (golint)
    • Line 1380: warning: exported const SIOCGIWAPLIST should have comment or be unexported (golint)
    • Line 1381: warning: exported const SIOCSIWSCAN should have comment or be unexported (golint)
    • Line 1382: warning: exported const SIOCGIWSCAN should have comment or be unexported (golint)
    • Line 1384: warning: comment on exported const SIOCSIWESSID should be of the form "SIOCSIWESSID ..." (golint)
    • Line 1386: warning: exported const SIOCGIWESSID should have comment or be unexported (golint)
    • Line 1387: warning: exported const SIOCSIWNICKN should have comment or be unexported (golint)
    • Line 1388: warning: exported const SIOCGIWNICKN should have comment or be unexported (golint)
    • Line 1393: warning: comment on exported const SIOCSIWRATE should be of the form "SIOCSIWRATE ..." (golint)
    • Line 1395: warning: exported const SIOCGIWRATE should have comment or be unexported (golint)
    • Line 1396: warning: exported const SIOCSIWRTS should have comment or be unexported (golint)
    • Line 1397: warning: exported const SIOCGIWRTS should have comment or be unexported (golint)
    • Line 1398: warning: exported const SIOCSIWFRAG should have comment or be unexported (golint)
    • Line 1399: warning: exported const SIOCGIWFRAG should have comment or be unexported (golint)
    • Line 1400: warning: exported const SIOCSIWTXPOW should have comment or be unexported (golint)
    • Line 1401: warning: exported const SIOCGIWTXPOW should have comment or be unexported (golint)
    • Line 1402: warning: exported const SIOCSIWRETRY should have comment or be unexported (golint)
    • Line 1403: warning: exported const SIOCGIWRETRY should have comment or be unexported (golint)
    • Line 1405: warning: comment on exported const SIOCSIWENCODE should be of the form "SIOCSIWENCODE ..." (golint)
    • Line 1407: warning: exported const SIOCGIWENCODE should have comment or be unexported (golint)
    • Line 1408: warning: comment on exported const SIOCSIWPOWER should be of the form "SIOCSIWPOWER ..." (golint)
    • Line 1410: warning: exported const SIOCGIWPOWER should have comment or be unexported (golint)
    • Line 1412: warning: comment on exported const SIOCSIWGENIE should be of the form "SIOCSIWGENIE ..." (golint)
    • Line 1420: warning: exported const SIOCGIWGENIE should have comment or be unexported (golint)
    • Line 1422: warning: comment on exported const SIOCSIWMLME should be of the form "SIOCSIWMLME ..." (golint)
    • Line 1425: warning: comment on exported const SIOCSIWAUTH should be of the form "SIOCSIWAUTH ..." (golint)
    • Line 1427: warning: exported const SIOCGIWAUTH should have comment or be unexported (golint)
    • Line 1429: warning: comment on exported const SIOCSIWENCODEEXT should be of the form "SIOCSIWENCODEEXT ..." (golint)
    • Line 1431: warning: exported const SIOCGIWENCODEEXT should have comment or be unexported (golint)
    • Line 1433: warning: comment on exported const SIOCSIWPMKSA should be of the form "SIOCSIWPMKSA ..." (golint)
    • Line 1438: warning: comment on exported const SIOCIWFIRSTPRIV should be of the form "SIOCIWFIRSTPRIV ..." (golint)
    • Line 1446: warning: exported const SIOCIWLASTPRIV should have comment or be unexported (golint)
    • Line 1461: warning: comment on exported const SIOCIWFIRST should be of the form "SIOCIWFIRST ..." (golint)
    • Line 1463: warning: exported const SIOCIWLAST should have comment or be unexported (golint)
    • Line 1467: warning: comment on exported function IW_IS_SET should be of the form "IW_IS_SET ..." (golint)
    • Line 1473: warning: exported function IW_IS_GET should have comment or be unexported (golint)
    • Line 1481: warning: exported const IWEVTXDROP should have comment or be unexported (golint)
    • Line 1482: warning: exported const IWEVQUAL should have comment or be unexported (golint)
    • Line 1483: warning: exported const IWEVCUSTOM should have comment or be unexported (golint)
    • Line 1484: warning: exported const IWEVREGISTERED should have comment or be unexported (golint)
    • Line 1485: warning: exported const IWEVEXPIRED should have comment or be unexported (golint)
    • Line 1486: warning: exported const IWEVGENIE should have comment or be unexported (golint)
    • Line 1492: warning: exported const IWEVMICHAELMICFAILURE should have comment or be unexported (golint)
    • Line 1495: warning: exported const IWEVASSOCREQIE should have comment or be unexported (golint)
    • Line 1504: warning: exported const IWEVASSOCRESPIE should have comment or be unexported (golint)
    • Line 1511: warning: exported const IWEVPMKIDCAND should have comment or be unexported (golint)
    • Line 1515: warning: exported const IWEVFIRST should have comment or be unexported (golint)
    • Line 1517: warning: exported function IW_EVENT_IDX should have comment or be unexported (golint)
    • Line 1528: warning: exported const IW_PRIV_TYPE_MASK should have comment or be unexported (golint)
    • Line 1529: warning: exported const IW_PRIV_TYPE_NONE should have comment or be unexported (golint)
    • Line 1530: warning: exported const IW_PRIV_TYPE_BYTE should have comment or be unexported (golint)
    • Line 1531: warning: exported const IW_PRIV_TYPE_CHAR should have comment or be unexported (golint)
    • Line 1532: warning: exported const IW_PRIV_TYPE_INT should have comment or be unexported (golint)
    • Line 1533: warning: exported const IW_PRIV_TYPE_FLOAT should have comment or be unexported (golint)
    • Line 1534: warning: exported const IW_PRIV_TYPE_ADDR should have comment or be unexported (golint)
    • Line 1536: warning: exported const IW_PRIV_SIZE_FIXED should have comment or be unexported (golint)
    • Line 1538: warning: exported const IW_PRIV_SIZE_MASK should have comment or be unexported (golint)
    • Line 1547: warning: comment on exported const IW_MAX_FREQUENCIES should be of the form "IW_MAX_FREQUENCIES ..." (golint)
    • Line 1554: warning: comment on exported const IW_MAX_BITRATES should be of the form "IW_MAX_BITRATES ..." (golint)
    • Line 1557: warning: comment on exported const IW_MAX_TXPOWER should be of the form "IW_MAX_TXPOWER ..." (golint)
    • Line 1563: warning: comment on exported const IW_MAX_SPY should be of the form "IW_MAX_SPY ..." (golint)
    • Line 1566: warning: comment on exported const IW_MAX_AP should be of the form "IW_MAX_AP ..." (golint)
    • Line 1570: warning: comment on exported const IW_ESSID_MAX_SIZE should be of the form "IW_ESSID_MAX_SIZE ..." (golint)
    • Line 1573: warning: comment on exported const IW_MODE_AUTO should be of the form "IW_MODE_AUTO ..." (golint)
    • Line 1575: warning: exported const IW_MODE_ADHOC should have comment or be unexported (golint)
    • Line 1576: warning: exported const IW_MODE_INFRA should have comment or be unexported (golint)
    • Line 1577: warning: exported const IW_MODE_MASTER should have comment or be unexported (golint)
    • Line 1578: warning: exported const IW_MODE_REPEAT should have comment or be unexported (golint)
    • Line 1579: warning: exported const IW_MODE_SECOND should have comment or be unexported (golint)
    • Line 1580: warning: exported const IW_MODE_MONITOR should have comment or be unexported (golint)
    • Line 1581: warning: exported const IW_MODE_MESH should have comment or be unexported (golint)
    • Line 1583: warning: comment on exported const IW_QUAL_QUAL_UPDATED should be of the form "IW_QUAL_QUAL_UPDATED ..." (golint)
    • Line 1585: warning: exported const IW_QUAL_LEVEL_UPDATED should have comment or be unexported (golint)
    • Line 1586: warning: exported const IW_QUAL_NOISE_UPDATED should have comment or be unexported (golint)
    • Line 1587: warning: exported const IW_QUAL_ALL_UPDATED should have comment or be unexported (golint)
    • Line 1588: warning: exported const IW_QUAL_DBM should have comment or be unexported (golint)
    • Line 1589: warning: exported const IW_QUAL_QUAL_INVALID should have comment or be unexported (golint)
    • Line 1590: warning: exported const IW_QUAL_LEVEL_INVALID should have comment or be unexported (golint)
    • Line 1591: warning: exported const IW_QUAL_NOISE_INVALID should have comment or be unexported (golint)
    • Line 1592: warning: exported const IW_QUAL_RCPI should have comment or be unexported (golint)
    • Line 1593: warning: exported const IW_QUAL_ALL_INVALID should have comment or be unexported (golint)
    • Line 1595: warning: comment on exported const IW_FREQ_AUTO should be of the form "IW_FREQ_AUTO ..." (golint)
    • Line 1597: warning: exported const IW_FREQ_FIXED should have comment or be unexported (golint)
    • Line 1599: warning: comment on exported const IW_MAX_ENCODING_SIZES should be of the form "IW_MAX_ENCODING_SIZES ..." (golint)
    • Line 1603: warning: comment on exported const IW_ENCODING_TOKEN_MAX should be of the form "IW_ENCODING_TOKEN_MAX ..." (golint)
    • Line 1606: warning: comment on exported const IW_ENCODE_INDEX should be of the form "IW_ENCODE_INDEX ..." (golint)
    • Line 1608: warning: exported const IW_ENCODE_FLAGS should have comment or be unexported (golint)
    • Line 1609: warning: exported const IW_ENCODE_MODE should have comment or be unexported (golint)
    • Line 1610: warning: exported const IW_ENCODE_DISABLED should have comment or be unexported (golint)
    • Line 1611: warning: exported const IW_ENCODE_ENABLED should have comment or be unexported (golint)
    • Line 1612: warning: exported const IW_ENCODE_RESTRICTED should have comment or be unexported (golint)
    • Line 1613: warning: exported const IW_ENCODE_OPEN should have comment or be unexported (golint)
    • Line 1614: warning: exported const IW_ENCODE_NOKEY should have comment or be unexported (golint)
    • Line 1615: warning: exported const IW_ENCODE_TEMP should have comment or be unexported (golint)
    • Line 1617: warning: comment on exported const IW_POWER_ON should be of the form "IW_POWER_ON ..." (golint)
    • Line 1619: warning: exported const IW_POWER_TYPE should have comment or be unexported (golint)
    • Line 1620: warning: exported const IW_POWER_PERIOD should have comment or be unexported (golint)
    • Line 1621: warning: exported const IW_POWER_TIMEOUT should have comment or be unexported (golint)
    • Line 1622: warning: exported const IW_POWER_MODE should have comment or be unexported (golint)
    • Line 1623: warning: exported const IW_POWER_UNICAST_R should have comment or be unexported (golint)
    • Line 1624: warning: exported const IW_POWER_MULTICAST_R should have comment or be unexported (golint)
    • Line 1625: warning: exported const IW_POWER_ALL_R should have comment or be unexported (golint)
    • Line 1626: warning: exported const IW_POWER_FORCE_S should have comment or be unexported (golint)
    • Line 1627: warning: exported const IW_POWER_REPEATER should have comment or be unexported (golint)
    • Line 1628: warning: exported const IW_POWER_MODIFIER should have comment or be unexported (golint)
    • Line 1629: warning: exported const IW_POWER_MIN should have comment or be unexported (golint)
    • Line 1630: warning: exported const IW_POWER_MAX should have comment or be unexported (golint)
    • Line 1631: warning: exported const IW_POWER_RELATIVE should have comment or be unexported (golint)
    • Line 1633: warning: comment on exported const IW_TXPOW_TYPE should be of the form "IW_TXPOW_TYPE ..." (golint)
    • Line 1635: warning: exported const IW_TXPOW_DBM should have comment or be unexported (golint)
    • Line 1636: warning: exported const IW_TXPOW_MWATT should have comment or be unexported (golint)
    • Line 1637: warning: exported const IW_TXPOW_RELATIVE should have comment or be unexported (golint)
    • Line 1638: warning: exported const IW_TXPOW_RANGE should have comment or be unexported (golint)
    • Line 1640: warning: comment on exported const IW_RETRY_ON should be of the form "IW_RETRY_ON ..." (golint)
    • Line 1642: warning: exported const IW_RETRY_TYPE should have comment or be unexported (golint)
    • Line 1643: warning: exported const IW_RETRY_LIMIT should have comment or be unexported (golint)
    • Line 1644: warning: exported const IW_RETRY_LIFETIME should have comment or be unexported (golint)
    • Line 1645: warning: exported const IW_RETRY_MODIFIER should have comment or be unexported (golint)
    • Line 1646: warning: exported const IW_RETRY_MIN should have comment or be unexported (golint)
    • Line 1647: warning: exported const IW_RETRY_MAX should have comment or be unexported (golint)
    • Line 1648: warning: exported const IW_RETRY_RELATIVE should have comment or be unexported (golint)
    • Line 1649: warning: exported const IW_RETRY_SHORT should have comment or be unexported (golint)
    • Line 1650: warning: exported const IW_RETRY_LONG should have comment or be unexported (golint)
    • Line 1652: warning: comment on exported const IW_SCAN_DEFAULT should be of the form "IW_SCAN_DEFAULT ..." (golint)
    • Line 1654: warning: exported const IW_SCAN_ALL_ESSID should have comment or be unexported (golint)
    • Line 1655: warning: exported const IW_SCAN_THIS_ESSID should have comment or be unexported (golint)
    • Line 1656: warning: exported const IW_SCAN_ALL_FREQ should have comment or be unexported (golint)
    • Line 1657: warning: exported const IW_SCAN_THIS_FREQ should have comment or be unexported (golint)
    • Line 1658: warning: exported const IW_SCAN_ALL_MODE should have comment or be unexported (golint)
    • Line 1659: warning: exported const IW_SCAN_THIS_MODE should have comment or be unexported (golint)
    • Line 1660: warning: exported const IW_SCAN_ALL_RATE should have comment or be unexported (golint)
    • Line 1661: warning: exported const IW_SCAN_THIS_RATE should have comment or be unexported (golint)
    • Line 1662: warning: comment on exported const IW_SCAN_TYPE_ACTIVE should be of the form "IW_SCAN_TYPE_ACTIVE ..." (golint)
    • Line 1664: warning: exported const IW_SCAN_TYPE_PASSIVE should have comment or be unexported (golint)
    • Line 1666: warning: comment on exported const IW_SCAN_MAX_DATA should be of the form "IW_SCAN_MAX_DATA ..." (golint)
    • Line 1669: warning: comment on exported const IW_SCAN_CAPA_NONE should be of the form "IW_SCAN_CAPA_NONE ..." (golint)
    • Line 1671: warning: exported const IW_SCAN_CAPA_ESSID should have comment or be unexported (golint)
    • Line 1672: warning: exported const IW_SCAN_CAPA_BSSID should have comment or be unexported (golint)
    • Line 1673: warning: exported const IW_SCAN_CAPA_CHANNEL should have comment or be unexported (golint)
    • Line 1674: warning: exported const IW_SCAN_CAPA_MODE should have comment or be unexported (golint)
    • Line 1675: warning: exported const IW_SCAN_CAPA_RATE should have comment or be unexported (golint)
    • Line 1676: warning: exported const IW_SCAN_CAPA_TYPE should have comment or be unexported (golint)
    • Line 1677: warning: exported const IW_SCAN_CAPA_TIME should have comment or be unexported (golint)
    • Line 1679: warning: comment on exported const IW_CUSTOM_MAX should be of the form "IW_CUSTOM_MAX ..." (golint)
    • Line 1682: warning: comment on exported const IW_GENERIC_IE_MAX should be of the form "IW_GENERIC_IE_MAX ..." (golint)
    • Line 1685: warning: comment on exported const IW_MLME_DEAUTH should be of the form "IW_MLME_DEAUTH ..." (golint)
    • Line 1687: warning: exported const IW_MLME_DISASSOC should have comment or be unexported (golint)
    • Line 1688: warning: exported const IW_MLME_AUTH should have comment or be unexported (golint)
    • Line 1689: warning: exported const IW_MLME_ASSOC should have comment or be unexported (golint)
    • Line 1691: warning: comment on exported const IW_AUTH_INDEX should be of the form "IW_AUTH_INDEX ..." (golint)
    • Line 1693: warning: exported const IW_AUTH_FLAGS should have comment or be unexported (golint)
    • Line 1695: warning: comment on exported const IW_AUTH_WPA_VERSION should be of the form "IW_AUTH_WPA_VERSION ..." (golint)
    • Line 1700: warning: exported const IW_AUTH_CIPHER_PAIRWISE should have comment or be unexported (golint)
    • Line 1701: warning: exported const IW_AUTH_CIPHER_GROUP should have comment or be unexported (golint)
    • Line 1702: warning: exported const IW_AUTH_KEY_MGMT should have comment or be unexported (golint)
    • Line 1703: warning: exported const IW_AUTH_TKIP_COUNTERMEASURES should have comment or be unexported (golint)
    • Line 1704: warning: exported const IW_AUTH_DROP_UNENCRYPTED should have comment or be unexported (golint)
    • Line 1705: warning: exported const IW_AUTH_80211_AUTH_ALG should have comment or be unexported (golint)
    • Line 1706: warning: exported const IW_AUTH_WPA_ENABLED should have comment or be unexported (golint)
    • Line 1707: warning: exported const IW_AUTH_RX_UNENCRYPTED_EAPOL should have comment or be unexported (golint)
    • Line 1708: warning: exported const IW_AUTH_ROAMING_CONTROL should have comment or be unexported (golint)
    • Line 1709: warning: exported const IW_AUTH_PRIVACY_INVOKED should have comment or be unexported (golint)
    • Line 1710: warning: exported const IW_AUTH_CIPHER_GROUP_MGMT should have comment or be unexported (golint)
    • Line 1711: warning: exported const IW_AUTH_MFP should have comment or be unexported (golint)
    • Line 1713: warning: comment on exported const IW_AUTH_WPA_VERSION_DISABLED should be of the form "IW_AUTH_WPA_VERSION_DISABLED ..." (golint)
    • Line 1715: warning: exported const IW_AUTH_WPA_VERSION_WPA should have comment or be unexported (golint)
    • Line 1716: warning: exported const IW_AUTH_WPA_VERSION_WPA2 should have comment or be unexported (golint)
    • Line 1718: warning: comment on exported const IW_AUTH_CIPHER_NONE should be of the form "IW_AUTH_CIPHER_NONE ..." (golint)
    • Line 1721: warning: exported const IW_AUTH_CIPHER_WEP40 should have comment or be unexported (golint)
    • Line 1722: warning: exported const IW_AUTH_CIPHER_TKIP should have comment or be unexported (golint)
    • Line 1723: warning: exported const IW_AUTH_CIPHER_CCMP should have comment or be unexported (golint)
    • Line 1724: warning: exported const IW_AUTH_CIPHER_WEP104 should have comment or be unexported (golint)
    • Line 1725: warning: exported const IW_AUTH_CIPHER_AES_CMAC should have comment or be unexported (golint)
    • Line 1727: warning: comment on exported const IW_AUTH_KEY_MGMT_802_1X should be of the form "IW_AUTH_KEY_MGMT_802_1X ..." (golint)
    • Line 1729: warning: exported const IW_AUTH_KEY_MGMT_PSK should have comment or be unexported (golint)
    • Line 1731: warning: comment on exported const IW_AUTH_ALG_OPEN_SYSTEM should be of the form "IW_AUTH_ALG_OPEN_SYSTEM ..." (golint)
    • Line 1733: warning: exported const IW_AUTH_ALG_SHARED_KEY should have comment or be unexported (golint)
    • Line 1734: warning: exported const IW_AUTH_ALG_LEAP should have comment or be unexported (golint)
    • Line 1736: warning: comment on exported const IW_AUTH_ROAMING_ENABLE should be of the form "IW_AUTH_ROAMING_ENABLE ..." (golint)
    • Line 1738: warning: exported const IW_AUTH_ROAMING_DISABLE should have comment or be unexported (golint)
    • Line 1741: warning: comment on exported const IW_AUTH_MFP_DISABLED should be of the form "IW_AUTH_MFP_DISABLED ..." (golint)
    • Line 1743: warning: exported const IW_AUTH_MFP_OPTIONAL should have comment or be unexported (golint)
    • Line 1744: warning: exported const IW_AUTH_MFP_REQUIRED should have comment or be unexported (golint)
    • Line 1746: warning: comment on exported const IW_ENCODE_SEQ_MAX_SIZE should be of the form "IW_ENCODE_SEQ_MAX_SIZE ..." (golint)
    • Line 1749: warning: comment on exported const IW_ENCODE_ALG_NONE should be of the form "IW_ENCODE_ALG_NONE ..." (golint)
    • Line 1751: warning: exported const IW_ENCODE_ALG_WEP should have comment or be unexported (golint)
    • Line 1752: warning: exported const IW_ENCODE_ALG_TKIP should have comment or be unexported (golint)
    • Line 1753: warning: exported const IW_ENCODE_ALG_CCMP should have comment or be unexported (golint)
    • Line 1754: warning: exported const IW_ENCODE_ALG_PMK should have comment or be unexported (golint)
    • Line 1755: warning: exported const IW_ENCODE_ALG_AES_CMAC should have comment or be unexported (golint)
    • Line 1757: warning: comment on exported const IW_ENCODE_EXT_TX_SEQ_VALID should be of the form "IW_ENCODE_EXT_TX_SEQ_VALID ..." (golint)
    • Line 1759: warning: exported const IW_ENCODE_EXT_RX_SEQ_VALID should have comment or be unexported (golint)
    • Line 1760: warning: exported const IW_ENCODE_EXT_GROUP_KEY should have comment or be unexported (golint)
    • Line 1761: warning: exported const IW_ENCODE_EXT_SET_TX_KEY should have comment or be unexported (golint)
    • Line 1763: warning: comment on exported const IW_MICFAILURE_KEY_ID should be of the form "IW_MICFAILURE_KEY_ID ..." (golint)
    • Line 1765: warning: exported const IW_MICFAILURE_GROUP should have comment or be unexported (golint)
    • Line 1766: warning: exported const IW_MICFAILURE_PAIRWISE should have comment or be unexported (golint)
    • Line 1767: warning: exported const IW_MICFAILURE_STAKEY should have comment or be unexported (golint)
    • Line 1768: warning: exported const IW_MICFAILURE_COUNT should have comment or be unexported (golint)
    • Line 1771: warning: comment on exported const IW_ENC_CAPA_WPA should be of the form "IW_ENC_CAPA_WPA ..." (golint)
    • Line 1773: warning: exported const IW_ENC_CAPA_WPA2 should have comment or be unexported (golint)
    • Line 1774: warning: exported const IW_ENC_CAPA_CIPHER_TKIP should have comment or be unexported (golint)
    • Line 1775: warning: exported const IW_ENC_CAPA_CIPHER_CCMP should have comment or be unexported (golint)
    • Line 1776: warning: exported const IW_ENC_CAPA_4WAY_HANDSHAKE should have comment or be unexported (golint)
    • Line 1778: warning: comment on exported function IW_EVENT_CAPA_BASE should be of the form "IW_EVENT_CAPA_BASE ..." (golint)
    • Line 1787: warning: exported function IW_EVENT_CAPA_INDEX should have comment or be unexported (golint)
    • Line 1790: warning: exported function IW_EVENT_CAPA_MASK should have comment or be unexported (golint)
    • Line 1794: warning: comment on exported var IW_EVENT_CAPA_K_0 should be of the form "IW_EVENT_CAPA_K_0 ..." (golint)
    • Line 1797: warning: exported var IW_EVENT_CAPA_K_1 should have comment or be unexported (golint)
    • Line 1799: warning: comment on exported function IW_EVENT_CAPA_SET should be of the form "IW_EVENT_CAPA_SET ..." (golint)
    • Line 1800: warning: don't use underscores in Go names; func parameter event_capa should be eventCapa (golint)
    • Line 1804: warning: exported function IW_EVENT_CAPA_SET_KERNEL should have comment or be unexported (golint)
    • Line 1804: warning: don't use underscores in Go names; func parameter event_capa should be eventCapa (golint)
    • Line 1815: warning: don't use underscores in Go names; type iw_param should be iwParam (golint)
    • Line 1826: warning: don't use underscores in Go names; type iw_point should be iwPoint (golint)
    • Line 1840: warning: don't use underscores in Go names; type iw_freq should be iwFreq (golint)
    • Line 1850: warning: don't use underscores in Go names; type iw_quality should be iwQuality (golint)
    • Line 1865: warning: don't use underscores in Go names; type iw_discarded should be iwDiscarded (golint)
    • Line 1877: warning: don't use underscores in Go names; type iw_missed should be iwMissed (golint)
    • Line 1886: warning: don't use underscores in Go names; type iw_thrspy should be iwThrspy (golint)
    • Line 1904: warning: don't use underscores in Go names; type iw_scan_req should be iwScanReq (golint)
    • Line 1905: warning: don't use underscores in Go names; struct field scan_type should be scanType (golint)
    • Line 1906: warning: don't use underscores in Go names; struct field essid_len should be essidLen (golint)
    • Line 1907: warning: don't use underscores in Go names; struct field num_channels should be numChannels (golint)
    • Line 1932: warning: don't use underscores in Go names; struct field min_channel_time should be minChannelTime (golint)
    • Line 1933: warning: don't use underscores in Go names; struct field max_channel_time should be maxChannelTime (golint)
    • Line 1935: warning: don't use underscores in Go names; struct field channel_list should be channelList (golint)
    • Line 1964: warning: don't use underscores in Go names; type iw_encode_ext should be iwEncodeExt (golint)
    • Line 1965: warning: don't use underscores in Go names; struct field ext_flags should be extFlags (golint)
    • Line 1966: warning: don't use underscores in Go names; struct field tx_seq should be txSeq (golint)
    • Line 1967: warning: don't use underscores in Go names; struct field rx_seq should be rxSeq (golint)
    • Line 1972: warning: don't use underscores in Go names; struct field key_len should be keyLen (golint)
    • Line 1977: warning: don't use underscores in Go names; type iw_mlme should be iwMlme (golint)
    • Line 1979: warning: don't use underscores in Go names; struct field reason_code should be reasonCode (golint)
    • Line 1983: warning: comment on exported const IW_PMKSA_ADD should be of the form "IW_PMKSA_ADD ..." (golint)
    • Line 1985: warning: exported const IW_PMKSA_REMOVE should have comment or be unexported (golint)
    • Line 1986: warning: exported const IW_PMKSA_FLUSH should have comment or be unexported (golint)
    • Line 1988: warning: exported const IW_PMKID_LEN should have comment or be unexported (golint)
    • Line 1990: warning: don't use underscores in Go names; type iw_pmksa should be iwPmksa (golint)
    • Line 1997: warning: don't use underscores in Go names; type iw_michaelmicfailure should be iwMichaelmicfailure (golint)
    • Line 1999: warning: don't use underscores in Go names; struct field src_addr should be srcAddr (golint)
    • Line 2003: warning: comment on exported const IW_PMKID_CAND_PREAUTH should be of the form "IW_PMKID_CAND_PREAUTH ..." (golint)
    • Line 2005: warning: don't use underscores in Go names; type iw_pmkid_cand should be iwPmkidCand (golint)
    • Line 2016: warning: don't use underscores in Go names; type iw_statistics should be iwStatistics (golint)
    • Line 2095: warning: exported type IWRange should have comment or be unexported (golint)
    • Line 2106: warning: don't use underscores in Go names; struct field min_nwid should be minNwid (golint)
    • Line 2107: warning: don't use underscores in Go names; struct field max_nwid should be maxNwid (golint)
    • Line 2110: warning: don't use underscores in Go names; struct field old_num_channels should be oldNumChannels (golint)
    • Line 2111: warning: don't use underscores in Go names; struct field old_num_frequency should be oldNumFrequency (golint)
    • Line 2114: warning: don't use underscores in Go names; struct field scan_capa should be scanCapa (golint)
    • Line 2117: warning: don't use underscores in Go names; struct field event_capa should be eventCapa (golint)
    • Line 2127: warning: don't use underscores in Go names; struct field max_qual should be maxQual (golint)
    • Line 2137: warning: don't use underscores in Go names; struct field avg_qual should be avgQual (golint)
    • Line 2140: warning: don't use underscores in Go names; struct field num_bitrates should be numBitrates (golint)
    • Line 2144: warning: don't use underscores in Go names; struct field min_rts should be minRts (golint)
    • Line 2145: warning: don't use underscores in Go names; struct field max_rts should be maxRts (golint)
    • Line 2148: warning: don't use underscores in Go names; struct field min_frag should be minFrag (golint)
    • Line 2149: warning: don't use underscores in Go names; struct field max_frag should be maxFrag (golint)
    • Line 2152: warning: don't use underscores in Go names; struct field min_pmp should be minPmp (golint)
    • Line 2153: warning: don't use underscores in Go names; struct field max_pmp should be maxPmp (golint)
    • Line 2154: warning: don't use underscores in Go names; struct field min_pmt should be minPmt (golint)
    • Line 2155: warning: don't use underscores in Go names; struct field max_pmt should be maxPmt (golint)
    • Line 2156: warning: don't use underscores in Go names; struct field pmp_flags should be pmpFlags (golint)
    • Line 2157: warning: don't use underscores in Go names; struct field pmt_flags should be pmtFlags (golint)
    • Line 2158: warning: don't use underscores in Go names; struct field pm_capa should be pmCapa (golint)
    • Line 2161: warning: don't use underscores in Go names; struct field encoding_size should be encodingSize (golint)
    • Line 2162: warning: don't use underscores in Go names; struct field num_encoding_sizes should be numEncodingSizes (golint)
    • Line 2163: warning: don't use underscores in Go names; struct field max_encoding_tokens should be maxEncodingTokens (golint)
    • Line 2165: warning: don't use underscores in Go names; struct field encoding_login_index should be encodingLoginIndex (golint)
    • Line 2168: warning: don't use underscores in Go names; struct field txpower_capa should be txpowerCapa (golint)
    • Line 2169: warning: don't use underscores in Go names; struct field num_txpower should be numTxpower (golint)
    • Line 2173: warning: don't use underscores in Go names; struct field we_version_compiled should be weVersionCompiled (golint)
    • Line 2174: warning: don't use underscores in Go names; struct field we_version_source should be weVersionSource (golint)
    • Line 2177: warning: don't use underscores in Go names; struct field retry_capa should be retryCapa (golint)
    • Line 2178: warning: don't use underscores in Go names; struct field retry_flags should be retryFlags (golint)
    • Line 2179: warning: don't use underscores in Go names; struct field r_time_flags should be rTimeFlags (golint)
    • Line 2180: warning: don't use underscores in Go names; struct field min_retry should be minRetry (golint)
    • Line 2181: warning: don't use underscores in Go names; struct field max_retry should be maxRetry (golint)
    • Line 2182: warning: don't use underscores in Go names; struct field min_r_time should be minRTime (golint)
    • Line 2183: warning: don't use underscores in Go names; struct field max_r_time should be maxRTime (golint)
    • Line 2186: warning: don't use underscores in Go names; struct field num_channels should be numChannels (golint)
    • Line 2187: warning: don't use underscores in Go names; struct field num_frequency should be numFrequency (golint)
    • Line 2192: warning: don't use underscores in Go names; struct field enc_capa should be encCapa (golint)
    • Line 2195: warning: comment on exported const IFNAMSIZ should be of the form "IFNAMSIZ ..." (golint)
    • Line 2200: warning: don't use underscores in Go names; type iw_priv_args should be iwPrivArgs (golint)
    • Line 2202: warning: don't use underscores in Go names; struct field set_args should be setArgs (golint)
    • Line 2203: warning: don't use underscores in Go names; struct field get_args should be getArgs (golint)
    • Line 2217: warning: don't use underscores in Go names; type iw_event should be iwEvent (golint)
    • Line 2223: warning: comment on exported const IW_EV_LCP_PK_LEN should be of the form "IW_EV_LCP_PK_LEN ..." (golint)
    • Line 2244: warning: comment on exported const IW_EV_POINT_PK_LEN should be of the form "IW_EV_POINT_PK_LEN ..." (golint)
    • NiChrome/pkg/sos/service.go
    • Line 12: warning: exported type Registry should have comment or be unexported (golint)
    • Line 14: warning: exported type SosService should have comment or be unexported (golint)
    • Line 29: warning: exported method SosService.Register should have comment or be unexported (golint)
    • Line 40: warning: exported method SosService.Unregister should have comment or be unexported (golint)
    • Line 46: warning: exported method SosService.SnapshotRegistry should have comment or be unexported (golint)
    • Line 56: warning: exported function NewSosService should have comment or be unexported (golint)
    • NiChrome/cmds/upspinsos/server.go
    • Line 20: warning: exported const DefHtmlPage should have comment (or a comment on this block) or be unexported (golint)
    • Line 140: warning: exported type UpspinServer should have comment or be unexported (golint)
    • Line 145: warning: exported var Port should have comment or be unexported (golint)
    • Line 153: warning: exported type UpspinAcctJsonMsg should have comment or be unexported (golint)
    • Line 210: warning: exported method UpspinServer.Start should have comment or be unexported (golint)
    • Line 219: warning: exported function NewUpspinServer should have comment or be unexported (golint)
    • NiChrome/pkg/wifi/types.go
    • Line 7: warning: exported type Option should have comment or be unexported (golint)
    • Line 12: warning: exported type WiFi should have comment or be unexported (golint)
    • NiChrome/pkg/sos/server.go
    • Line 20: warning: exported const PortNum should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type SosServer should have comment or be unexported (golint)
    • Line 70: warning: exported type RegisterReqJson should have comment or be unexported (golint)
    • Line 75: warning: comment on exported function SetHTMLRoot should be of the form "SetHTMLRoot ..." (golint)
    • Line 108: warning: exported type UnRegisterReqJson should have comment or be unexported (golint)
    • Line 126: warning: exported type GetServiceResJson should have comment or be unexported (golint)
    • Line 178: warning: exported function StartServer should have comment or be unexported (golint)
    • NiChrome/examples/sos/service.go
    • Line 13: warning: comment on exported type ExampleService should be of the form "ExampleService ..." (with optional leading article) (golint)
    • Line 21: warning: comment on exported method ExampleService.ExampleServiceFunc1 should be of the form "ExampleServiceFunc1 ..." (golint)
    • Line 28: warning: comment on exported method ExampleService.ExampleServiceFunc2 should be of the form "ExampleServiceFunc2 ..." (golint)
    • Line 34: warning: comment on exported function NewExampleService should be of the form "NewExampleService ..." (golint)
    • NiChrome/examples/sos/server.go
    • Line 19: warning: comment on exported const DefHtmlPage should be of the form "DefHtmlPage ..." (golint)
    • Line 98: warning: exported var Port should have comment or be unexported (golint)
    • Line 100: warning: comment on exported type ExampleServer should be of the form "ExampleServer ..." (with optional leading article) (golint)
    • Line 128: warning: comment on exported type ExampleJsonMsg should be of the form "ExampleJsonMsg ..." (with optional leading article) (golint)
    • Line 185: warning: comment on exported method ExampleServer.Start should be of the form "Start ..." (golint)
    • Line 197: warning: comment on exported function NewExampleServer should be of the form "NewExampleServer ..." (golint)
    • NiChrome/cmds/timesos/server.go
    • Line 20: warning: exported const DefHtmlPage should have comment (or a comment on this block) or be unexported (golint)
    • Line 104: warning: exported type TimeServer should have comment or be unexported (golint)
    • Line 109: warning: exported var Port should have comment or be unexported (golint)
    • Line 140: warning: exported type TimeJsonMsg should have comment or be unexported (golint)
    • NiChrome/cmds/wifi/server.go
    • Line 22: warning: exported const DefHtmlPage should have comment (or a comment on this block) or be unexported (golint)
    • Line 185: warning: exported var Port should have comment or be unexported (golint)
    • Line 188: warning: exported type WifiServer should have comment or be unexported (golint)
    • Line 214: warning: exported type ConnectJsonMsg should have comment or be unexported (golint)
    • Line 262: warning: exported method WifiServer.Start should have comment or be unexported (golint)
    • Line 291: warning: exported function NewWifiServer should have comment or be unexported (golint)
    • NiChrome/cmds/wifi/service.go
    • Line 16: warning: exported var DefaultBufferSize should have comment or be unexported (golint)
    • Line 21: warning: exported type State should have comment or be unexported (golint)
    • Line 28: warning: exported type ConnectReqMsg should have comment or be unexported (golint)
    • Line 34: warning: exported type RefreshReqMsg should have comment or be unexported (golint)
    • Line 36: warning: exported type StateReqMsg should have comment or be unexported (golint)
    • Line 38: warning: exported type WifiService should have comment or be unexported (golint)
    • Line 183: warning: exported function NewWifiService should have comment or be unexported (golint)
    • Line 196: warning: exported method WifiService.Start should have comment or be unexported (golint)
    • Line 202: warning: exported method WifiService.Shutdown should have comment or be unexported (golint)
    • Line 208: warning: exported method WifiService.GetState should have comment or be unexported (golint)
    • Line 214: warning: exported method WifiService.Connect should have comment or be unexported (golint)
    • Line 220: warning: exported method WifiService.Refresh should have comment or be unexported (golint)
    • NiChrome/pkg/wifi/iwl.go
    • Line 43: warning: exported type SecProto should have comment or be unexported (golint)
    • Line 46: warning: exported const NoEnc should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported function NewIWLWorker should have comment or be unexported (golint)
    • Line 64: warning: exported method IWLWorker.Scan should have comment or be unexported (golint)
    • Line 130: warning: exported method IWLWorker.GetID should have comment or be unexported (golint)
    • Line 138: warning: exported method IWLWorker.Connect should have comment or be unexported (golint)
    • NiChrome/pkg/wifi/native.go
    • Line 13: warning: exported type NativeWorker should have comment or be unexported (golint)
    • Line 19: warning: exported function NewNativeWorker should have comment or be unexported (golint)
    • Line 27: warning: exported method NativeWorker.Scan should have comment or be unexported (golint)
    • Line 31: warning: exported method NativeWorker.GetID should have comment or be unexported (golint)
    • Line 35: warning: exported method NativeWorker.Connect should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!