Preparing report...

Report for github.com/fenny/fiber

A+    Excellent!    Found 87 issues across 294 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!


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.

    • fiber/internal/wmi/wmi.go
    • Line 256: warning: cyclomatic complexity 51 of function (*Client).loadEntity() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 22 of function (*Client).Query() is high (> 15) (gocyclo)
    • fiber/internal/msgp/extension.go
    • Line 274: warning: cyclomatic complexity 34 of function (*Reader).ReadExtension() is high (> 15) (gocyclo)
    • Line 124: warning: cyclomatic complexity 24 of function (*Writer).WriteExtension() is high (> 15) (gocyclo)
    • Line 481: warning: cyclomatic complexity 16 of function ReadExtensionBytes() is high (> 15) (gocyclo)
    • fiber/internal/msgp/write.go
    • Line 631: warning: cyclomatic complexity 30 of function (*Writer).WriteIntf() is high (> 15) (gocyclo)
    • Line 818: warning: cyclomatic complexity 18 of function GuessSize() is high (> 15) (gocyclo)
    • fiber/internal/gopsutil/cpu/cpu_linux.go
    • Line 116: warning: cyclomatic complexity 28 of function InfoWithContext() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 27 of function CountsWithContext() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 17 of function parseStatLine() is high (> 15) (gocyclo)
    • fiber/internal/msgp/read.go
    • Line 709: warning: cyclomatic complexity 25 of function (*Reader).ReadUint64() is high (> 15) (gocyclo)
    • Line 1266: warning: cyclomatic complexity 22 of function (*Reader).ReadIntf() is high (> 15) (gocyclo)
    • Line 563: warning: cyclomatic complexity 22 of function (*Reader).ReadInt64() is high (> 15) (gocyclo)
    • fiber/internal/gopsutil/common/binary.go
    • Line 230: warning: cyclomatic complexity 35 of function Write() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 31 of function Read() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 25 of function (*encoder).value() is high (> 15) (gocyclo)
    • Line 454: warning: cyclomatic complexity 21 of function (*decoder).value() is high (> 15) (gocyclo)
    • fiber/internal/gopsutil/process/process_linux.go
    • Line 960: warning: cyclomatic complexity 53 of function (*Process).fillFromStatusWithContext() is high (> 15) (gocyclo)
    • Line 672: warning: cyclomatic complexity 25 of function (*Process).fillFromLimitsWithContext() is high (> 15) (gocyclo)
    • Line 561: warning: cyclomatic complexity 23 of function (*Process).MemoryMapsWithContext() is high (> 15) (gocyclo)
    • Line 296: warning: cyclomatic complexity 19 of function (*Process).RlimitUsageWithContext() is high (> 15) (gocyclo)
    • Line 1139: warning: cyclomatic complexity 16 of function (*Process).fillFromTIDStatWithContext() is high (> 15) (gocyclo)
    • fiber/internal/msgp/read_bytes.go
    • Line 514: warning: cyclomatic complexity 25 of function ReadUint64Bytes() is high (> 15) (gocyclo)
    • Line 1034: warning: cyclomatic complexity 22 of function ReadIntfBytes() is high (> 15) (gocyclo)
    • Line 350: warning: cyclomatic complexity 22 of function ReadInt64Bytes() is high (> 15) (gocyclo)

golint79%

Golint is a linter for Go source code.

    • fiber/app.go
    • Line 574: warning: comment on exported method App.ListenTLS should be of the form "ListenTLS ..." (golint)
    • fiber/internal/gotiny/encoder.go
    • Line 8: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 18: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function NewEncoderWithPtr should be of the form "NewEncoderWithPtr ..." (golint)
    • Line 39: warning: comment on exported function NewEncoder should be of the form "NewEncoder ..." (golint)
    • Line 52: warning: exported function NewEncoderWithType should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method Encoder.Encode should be of the form "Encode ..." (golint)
    • Line 73: warning: comment on exported method Encoder.EncodePtr should be of the form "EncodePtr ..." (golint)
    • Line 82: warning: comment on exported method Encoder.EncodeValue should be of the form "EncodeValue ..." (golint)
    • Line 91: warning: comment on exported method Encoder.AppendTo should be of the form "AppendTo ..." (golint)
    • fiber/internal/gopsutil/common/common_linux.go
    • Line 16: warning: exported function DoSysctrl should have comment or be unexported (golint)
    • Line 34: warning: exported function NumProcs should have comment or be unexported (golint)
    • Line 56: warning: exported function BootTimeWithContext should have comment or be unexported (golint)
    • Line 109: warning: exported function Virtualization should have comment or be unexported (golint)
    • Line 113: warning: exported function VirtualizationWithContext should have comment or be unexported (golint)
    • Line 237: warning: exported function GetOSRelease should have comment or be unexported (golint)
    • fiber/internal/go-ole/iunknown.go
    • Line 5: warning: exported type IUnknown should have comment or be unexported (golint)
    • Line 9: warning: exported type IUnknownVtbl should have comment or be unexported (golint)
    • Line 15: warning: exported type UnknownLike should have comment or be unexported (golint)
    • Line 21: warning: exported method IUnknown.VTable should have comment or be unexported (golint)
    • Line 25: warning: exported method IUnknown.PutQueryInterface should have comment or be unexported (golint)
    • Line 29: warning: exported method IUnknown.IDispatch should have comment or be unexported (golint)
    • Line 34: warning: exported method IUnknown.IEnumVARIANT should have comment or be unexported (golint)
    • Line 39: warning: exported method IUnknown.QueryInterface should have comment or be unexported (golint)
    • Line 43: warning: exported method IUnknown.MustQueryInterface should have comment or be unexported (golint)
    • Line 51: warning: exported method IUnknown.AddRef should have comment or be unexported (golint)
    • Line 55: warning: exported method IUnknown.Release should have comment or be unexported (golint)
    • fiber/internal/gopsutil/process/process.go
    • Line 18: warning: exported var ErrorNoChildren should have comment or be unexported (golint)
    • Line 22: warning: exported type Process should have comment or be unexported (golint)
    • Line 42: warning: exported type OpenFilesStat should have comment or be unexported (golint)
    • Line 47: warning: exported type MemoryInfoStat should have comment or be unexported (golint)
    • Line 57: warning: exported type SignalInfoStat should have comment or be unexported (golint)
    • Line 65: warning: exported type RlimitStat should have comment or be unexported (golint)
    • Line 72: warning: exported type IOCountersStat should have comment or be unexported (golint)
    • Line 79: warning: exported type NumCtxSwitchesStat should have comment or be unexported (golint)
    • Line 84: warning: exported type PageFaultsStat should have comment or be unexported (golint)
    • Line 147: warning: exported function PidsWithContext should have comment or be unexported (golint)
    • Line 171: warning: exported function PidExists should have comment or be unexported (golint)
    • Line 180: warning: exported method Process.BackgroundWithContext should have comment or be unexported (golint)
    • Line 188: warning: comment on exported method Process.Percent should be of the form "Percent ..." (golint)
    • Line 194: warning: exported method Process.PercentWithContext should have comment or be unexported (golint)
    • Line 234: warning: exported method Process.IsRunningWithContext should have comment or be unexported (golint)
    • Line 255: warning: exported method Process.CreateTimeWithContext should have comment or be unexported (golint)
    • Line 268: warning: don't use underscores in Go names; var delta_proc should be deltaProc (golint)
    • Line 269: warning: don't use underscores in Go names; var overall_percent should be overallPercent (golint)
    • Line 278: warning: exported method Process.MemoryPercentWithContext should have comment or be unexported (golint)
    • Line 294: warning: comment on exported method Process.CPUPercent should be of the form "CPUPercent ..." (golint)
    • Line 299: warning: exported method Process.CPUPercentWithContext should have comment or be unexported (golint)
    • Line 300: warning: don't use underscores in Go names; var crt_time should be crtTime (golint)
    • fiber/utils/convert.go
    • Line 14: warning: comment on exported function UnsafeString should be of the form "UnsafeString ..." (golint)
    • Line 20: warning: comment on exported function UnsafeBytes should be of the form "UnsafeBytes ..." (golint)
    • fiber/internal/go-ole/guid.go
    • Line 8: warning: don't use underscores in Go names; var IID_IUnknown should be IIDIUnknown (golint)
    • Line 11: warning: don't use underscores in Go names; var IID_IDispatch should be IIDIDispatch (golint)
    • Line 14: warning: don't use underscores in Go names; var IID_IEnumVariant should be IIDIEnumVariant (golint)
    • Line 17: warning: don't use underscores in Go names; var IID_IConnectionPointContainer should be IIDIConnectionPointContainer (golint)
    • Line 20: warning: don't use underscores in Go names; var IID_IConnectionPoint should be IIDIConnectionPoint (golint)
    • Line 23: warning: don't use underscores in Go names; var IID_IInspectable should be IIDIInspectable (golint)
    • Line 26: warning: don't use underscores in Go names; var IID_IProvideClassInfo should be IIDIProvideClassInfo (golint)
    • Line 34: warning: don't use underscores in Go names; var IID_ICOMTestString should be IIDICOMTestString (golint)
    • Line 39: warning: don't use underscores in Go names; var IID_ICOMTestInt8 should be IIDICOMTestInt8 (golint)
    • Line 44: warning: don't use underscores in Go names; var IID_ICOMTestInt16 should be IIDICOMTestInt16 (golint)
    • Line 49: warning: don't use underscores in Go names; var IID_ICOMTestInt32 should be IIDICOMTestInt32 (golint)
    • Line 54: warning: don't use underscores in Go names; var IID_ICOMTestInt64 should be IIDICOMTestInt64 (golint)
    • Line 59: warning: don't use underscores in Go names; var IID_ICOMTestFloat should be IIDICOMTestFloat (golint)
    • Line 64: warning: don't use underscores in Go names; var IID_ICOMTestDouble should be IIDICOMTestDouble (golint)
    • Line 69: warning: don't use underscores in Go names; var IID_ICOMTestBoolean should be IIDICOMTestBoolean (golint)
    • Line 74: warning: don't use underscores in Go names; var IID_ICOMEchoTestObject should be IIDICOMEchoTestObject (golint)
    • Line 79: warning: don't use underscores in Go names; var IID_ICOMTestTypes should be IIDICOMTestTypes (golint)
    • Line 84: warning: don't use underscores in Go names; var CLSID_COMEchoTestObject should be CLSIDCOMEchoTestObject (golint)
    • Line 89: warning: don't use underscores in Go names; var CLSID_COMTestScalarClass should be CLSIDCOMTestScalarClass (golint)
    • fiber/internal/gopsutil/process/process_linux.go
    • Line 24: warning: exported var PageSize should have comment or be unexported (golint)
    • Line 27: warning: exported const PrioProcess should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type MemoryMapsStat should have comment or be unexported (golint)
    • Line 72: warning: exported method Process.PpidWithContext should have comment or be unexported (golint)
    • Line 85: warning: exported method Process.NameWithContext should have comment or be unexported (golint)
    • Line 109: warning: exported method Process.ExeWithContext should have comment or be unexported (golint)
    • Line 119: warning: exported method Process.CmdlineWithContext should have comment or be unexported (golint)
    • Line 129: warning: exported method Process.CmdlineSliceWithContext should have comment or be unexported (golint)
    • Line 146: warning: exported method Process.CwdWithContext should have comment or be unexported (golint)
    • Line 155: warning: exported method Process.ParentWithContext should have comment or be unexported (golint)
    • Line 175: warning: exported method Process.StatusWithContext should have comment or be unexported (golint)
    • Line 188: warning: exported method Process.ForegroundWithContext should have comment or be unexported (golint)
    • Line 210: warning: exported method Process.UidsWithContext should have comment or be unexported (golint)
    • Line 223: warning: exported method Process.GidsWithContext should have comment or be unexported (golint)
    • Line 231: warning: exported method Process.GroupsWithContext should have comment or be unexported (golint)
    • Line 244: warning: exported method Process.TerminalWithContext should have comment or be unexported (golint)
    • Line 263: warning: exported method Process.NiceWithContext should have comment or be unexported (golint)
    • Line 276: warning: exported method Process.IOniceWithContext should have comment or be unexported (golint)
    • Line 285: warning: exported method Process.RlimitWithContext should have comment or be unexported (golint)
    • Line 296: warning: exported method Process.RlimitUsageWithContext should have comment or be unexported (golint)
    • Line 356: warning: exported method Process.IOCountersWithContext should have comment or be unexported (golint)
    • Line 365: warning: exported method Process.NumCtxSwitchesWithContext should have comment or be unexported (golint)
    • Line 378: warning: exported method Process.NumFDsWithContext should have comment or be unexported (golint)
    • Line 388: warning: exported method Process.NumThreadsWithContext should have comment or be unexported (golint)
    • Line 396: warning: exported method Process.Threads should have comment or be unexported (golint)
    • Line 400: warning: exported method Process.ThreadsWithContext should have comment or be unexported (golint)
    • Line 425: warning: exported method Process.TimesWithContext should have comment or be unexported (golint)
    • Line 440: warning: exported method Process.CPUAffinityWithContext should have comment or be unexported (golint)
    • Line 449: warning: exported method Process.MemoryInfoWithContext should have comment or be unexported (golint)
    • Line 462: warning: exported method Process.MemoryInfoExWithContext should have comment or be unexported (golint)
    • Line 470: warning: comment on exported method Process.PageFaults should be of the form "PageFaults ..." (golint)
    • Line 475: warning: exported method Process.PageFaultsWithContext should have comment or be unexported (golint)
    • Line 489: warning: exported method Process.ChildrenWithContext should have comment or be unexported (golint)
    • Line 514: warning: exported method Process.OpenFilesWithContext should have comment or be unexported (golint)
    • Line 533: warning: exported method Process.ConnectionsWithContext should have comment or be unexported (golint)
    • Line 537: warning: comment on exported method Process.ConnectionsMax should be of the form "ConnectionsMax ..." (golint)
    • Line 542: warning: exported method Process.ConnectionsMaxWithContext should have comment or be unexported (golint)
    • Line 551: warning: exported method Process.NetIOCountersWithContext should have comment or be unexported (golint)
    • Line 561: warning: exported method Process.MemoryMapsWithContext should have comment or be unexported (golint)
    • Line 662: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1252: warning: comment on exported function Processes should be of the form "Processes ..." (golint)
    • Line 1258: warning: exported function ProcessesWithContext should have comment or be unexported (golint)
    • fiber/internal/gopsutil/net/net_linux.go
    • Line 23: warning: exported const CT_ENTRIES should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: comment on exported function IOCounters should be of the form "IOCounters ..." (golint)
    • Line 51: warning: exported function IOCountersWithContext should have comment or be unexported (golint)
    • Line 56: warning: exported function IOCountersByFile should have comment or be unexported (golint)
    • Line 60: warning: exported function IOCountersByFileWithContext should have comment or be unexported (golint)
    • Line 159: warning: comment on exported function ProtoCounters should be of the form "ProtoCounters ..." (golint)
    • Line 168: warning: exported function ProtoCountersWithContext should have comment or be unexported (golint)
    • Line 224: warning: comment on exported function FilterCounters should be of the form "FilterCounters ..." (golint)
    • Line 231: warning: exported function FilterCountersWithContext should have comment or be unexported (golint)
    • Line 308: warning: comment on exported var TCPStatuses should be of the form "TCPStatuses ..." (golint)
    • Line 385: warning: comment on exported function Connections should be of the form "Connections ..." (golint)
    • Line 390: warning: exported function ConnectionsWithContext should have comment or be unexported (golint)
    • Line 394: warning: comment on exported function ConnectionsMax should be of the form "ConnectionsMax ..." (golint)
    • Line 400: warning: exported function ConnectionsMaxWithContext should have comment or be unexported (golint)
    • Line 404: warning: comment on exported function ConnectionsWithoutUids should be of the form "ConnectionsWithoutUids ..." (golint)
    • Line 411: warning: exported function ConnectionsWithoutUidsWithContext should have comment or be unexported (golint)
    • Line 415: warning: exported function ConnectionsMaxWithoutUidsWithContext should have comment or be unexported (golint)
    • Line 419: warning: comment on exported function ConnectionsPid should be of the form "ConnectionsPid ..." (golint)
    • Line 424: warning: exported function ConnectionsPidWithoutUids should have comment or be unexported (golint)
    • Line 428: warning: exported function ConnectionsPidWithContext should have comment or be unexported (golint)
    • Line 432: warning: exported function ConnectionsPidWithoutUidsWithContext should have comment or be unexported (golint)
    • Line 436: warning: comment on exported function ConnectionsPidMax should be of the form "ConnectionsPidMax ..." (golint)
    • Line 441: warning: exported function ConnectionsPidMaxWithoutUids should have comment or be unexported (golint)
    • Line 445: warning: exported function ConnectionsPidMaxWithContext should have comment or be unexported (golint)
    • Line 449: warning: exported function ConnectionsPidMaxWithoutUidsWithContext should have comment or be unexported (golint)
    • Line 591: warning: exported function PidsWithContext should have comment or be unexported (golint)
    • Line 728: warning: exported function ReverseWithContext should have comment or be unexported (golint)
    • fiber/internal/go-ole/ienumvariant_func.go
    • Line 5: warning: exported method IEnumVARIANT.Clone should have comment or be unexported (golint)
    • Line 9: warning: exported method IEnumVARIANT.Reset should have comment or be unexported (golint)
    • Line 13: warning: exported method IEnumVARIANT.Skip should have comment or be unexported (golint)
    • Line 17: warning: exported method IEnumVARIANT.Next should have comment or be unexported (golint)
    • fiber/internal/go-ole/iinspectable.go
    • Line 5: warning: exported type IInspectable should have comment or be unexported (golint)
    • Line 9: warning: exported type IInspectableVtbl should have comment or be unexported (golint)
    • Line 16: warning: exported method IInspectable.VTable should have comment or be unexported (golint)
    • fiber/utils/bytes.go
    • Line 58: warning: comment on exported function EqualFoldBytes should be of the form "EqualFoldBytes ..." (golint)
    • fiber/internal/encoding/ascii/valid.go
    • Line 17: warning: comment on exported function ValidByte should be of the form "ValidByte ..." (golint)
    • Line 22: warning: comment on exported function ValidRune should be of the form "ValidRune ..." (golint)
    • Line 62: warning: comment on exported function ValidPrint should be of the form "ValidPrint ..." (golint)
    • Line 67: warning: comment on exported function ValidPrintString should be of the form "ValidPrintString ..." (golint)
    • Line 72: warning: comment on exported function ValidPrintByte should be of the form "ValidPrintByte ..." (golint)
    • Line 77: warning: comment on exported function ValidPrintRune should be of the form "ValidPrintRune ..." (golint)
    • fiber/internal/gopsutil/net/net.go
    • Line 13: warning: exported type IOCountersStat should have comment or be unexported (golint)
    • Line 34: warning: exported type ConnectionStat should have comment or be unexported (golint)
    • Line 45: warning: comment on exported type ProtoCountersStat should be of the form "ProtoCountersStat ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type InterfaceAddr should be of the form "InterfaceAddr ..." (with optional leading article) (golint)
    • Line 56: warning: exported type InterfaceStat should have comment or be unexported (golint)
    • Line 65: warning: exported type FilterStat should have comment or be unexported (golint)
    • Line 91: warning: exported function NewConntrackStat should have comment or be unexported (golint)
    • Line 113: warning: exported type ConntrackStatList should have comment or be unexported (golint)
    • Line 117: warning: exported function NewConntrackStatList should have comment or be unexported (golint)
    • Line 123: warning: exported method ConntrackStatList.Append should have comment or be unexported (golint)
    • Line 127: warning: exported method ConntrackStatList.Items should have comment or be unexported (golint)
    • Line 195: warning: exported function Interfaces should have comment or be unexported (golint)
    • Line 199: warning: exported function InterfacesWithContext should have comment or be unexported (golint)
    • fiber/internal/msgp/errors.go
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 114: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • fiber/internal/encoding/json/decode.go
    • Line 635: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 714: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 795: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 876: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 957: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 1039: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 1123: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 1213: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • fiber/internal/go-ole/iconnectionpoint.go
    • Line 5: warning: exported type IConnectionPoint should have comment or be unexported (golint)
    • Line 9: warning: exported type IConnectionPointVtbl should have comment or be unexported (golint)
    • Line 18: warning: exported method IConnectionPoint.VTable should have comment or be unexported (golint)
    • fiber/internal/go-ole/itypeinfo.go
    • Line 5: warning: exported type ITypeInfo should have comment or be unexported (golint)
    • Line 9: warning: exported type ITypeInfoVtbl should have comment or be unexported (golint)
    • Line 32: warning: exported method ITypeInfo.VTable should have comment or be unexported (golint)
    • fiber/internal/gotiny/register.go
    • Line 13: warning: exported function GetName should have comment or be unexported (golint)
    • Line 16: warning: exported function GetNameByType should have comment or be unexported (golint)
    • Line 111: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 116: warning: exported function Register should have comment or be unexported (golint)
    • Line 126: warning: exported function RegisterName should have comment or be unexported (golint)
    • fiber/internal/gopsutil/process/process_posix.go
    • Line 74: warning: exported function PidExistsWithContext should have comment or be unexported (golint)
    • Line 123: warning: exported method Process.SendSignalWithContext should have comment or be unexported (golint)
    • Line 142: warning: exported method Process.SuspendWithContext should have comment or be unexported (golint)
    • Line 151: warning: exported method Process.ResumeWithContext should have comment or be unexported (golint)
    • Line 160: warning: exported method Process.TerminateWithContext should have comment or be unexported (golint)
    • Line 169: warning: exported method Process.KillWithContext should have comment or be unexported (golint)
    • Line 178: warning: exported method Process.UsernameWithContext should have comment or be unexported (golint)
    • fiber/internal/gopsutil/cpu/cpu_linux.go
    • Line 17: warning: exported var ClocksPerSec should have comment or be unexported (golint)
    • Line 34: warning: exported function Times should have comment or be unexported (golint)
    • Line 38: warning: exported function TimesWithContext should have comment or be unexported (golint)
    • Line 105: warning: comment on exported function Info should be of the form "Info ..." (golint)
    • Line 116: warning: exported function InfoWithContext should have comment or be unexported (golint)
    • Line 287: warning: exported function CountsWithContext should have comment or be unexported (golint)
    • fiber/internal/go-ole/ienumvariant.go
    • Line 5: warning: exported type IEnumVARIANT should have comment or be unexported (golint)
    • Line 9: warning: exported type IEnumVARIANTVtbl should have comment or be unexported (golint)
    • Line 17: warning: exported method IEnumVARIANT.VTable should have comment or be unexported (golint)
    • fiber/internal/go-ole/winrt_doc.go
    • Line 5: warning: comment on exported function RoInitialize should be of the form "RoInitialize ..." (golint)
    • Line 6: warning: don't use underscores in Go names; func parameter thread_type should be threadType (golint)
    • Line 10: warning: comment on exported function RoActivateInstance should be of the form "RoActivateInstance ..." (golint)
    • Line 15: warning: comment on exported function RoGetActivationFactory should be of the form "RoGetActivationFactory ..." (golint)
    • fiber/internal/gotiny/decoder.go
    • Line 8: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 18: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 22: warning: exported function NewDecoderWithPtr should have comment or be unexported (golint)
    • Line 38: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 50: warning: exported function NewDecoderWithType should have comment or be unexported (golint)
    • Line 70: warning: comment on exported method Decoder.Decode should be of the form "Decode ..." (golint)
    • Line 80: warning: comment on exported method Decoder.DecodePtr should be of the form "DecodePtr ..." (golint)
    • Line 90: warning: exported method Decoder.DecodeValue should have comment or be unexported (golint)
    • fiber/internal/go-ole/iconnectionpoint_func.go
    • Line 7: warning: exported method IConnectionPoint.GetConnectionInterface should have comment or be unexported (golint)
    • Line 11: warning: exported method IConnectionPoint.Advise should have comment or be unexported (golint)
    • Line 15: warning: exported method IConnectionPoint.Unadvise should have comment or be unexported (golint)
    • Line 19: warning: exported method IConnectionPoint.EnumConnections should have comment or be unexported (golint)
    • fiber/internal/go-ole/idispatch.go
    • Line 5: warning: exported type IDispatch should have comment or be unexported (golint)
    • Line 9: warning: exported type IDispatchVtbl should have comment or be unexported (golint)
    • Line 17: warning: exported method IDispatch.VTable should have comment or be unexported (golint)
    • Line 21: warning: exported method IDispatch.GetIDsOfName should have comment or be unexported (golint)
    • Line 26: warning: exported method IDispatch.Invoke should have comment or be unexported (golint)
    • Line 31: warning: exported method IDispatch.GetTypeInfoCount should have comment or be unexported (golint)
    • Line 36: warning: exported method IDispatch.GetTypeInfo should have comment or be unexported (golint)
    • fiber/internal/go-ole/iprovideclassinfo.go
    • Line 5: warning: exported type IProvideClassInfo should have comment or be unexported (golint)
    • Line 9: warning: exported type IProvideClassInfoVtbl should have comment or be unexported (golint)
    • Line 14: warning: exported method IProvideClassInfo.VTable should have comment or be unexported (golint)
    • Line 18: warning: exported method IProvideClassInfo.GetClassInfo should have comment or be unexported (golint)
    • fiber/internal/go-ole/constants.go
    • Line 4: warning: exported const CLSCTX_INPROC_SERVER should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported const COINIT_APARTMENTTHREADED should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const DISPATCH_METHOD should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; const S_OK should be SOK (golint)
    • Line 29: warning: exported const S_OK should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported const CC_FASTCALL should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported type VT should have comment or be unexported (golint)
    • Line 62: warning: exported const VT_EMPTY should have comment (or a comment on this block) or be unexported (golint)
    • Line 116: warning: exported const DISPID_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 127: warning: exported const TKIND_ENUM should have comment (or a comment on this block) or be unexported (golint)
    • Line 141: warning: exported const FADF_AUTO should have comment (or a comment on this block) or be unexported (golint)
    • fiber/ctx.go
    • Line 788: warning: exported var ErrRangeMalformed should have comment or be unexported (golint)
    • fiber/internal/gopsutil/mem/mem.go
    • Line 11: warning: comment on exported type VirtualMemoryStat should be of the form "VirtualMemoryStat ..." (with optional leading article) (golint)
    • Line 81: warning: exported type SwapMemoryStat should have comment or be unexported (golint)
    • fiber/internal/gopsutil/common/common.go
    • Line 29: warning: exported var Timeout should have comment or be unexported (golint)
    • Line 33: warning: exported type Invoker should have comment or be unexported (golint)
    • Line 38: warning: exported type Invoke should have comment or be unexported (golint)
    • Line 40: warning: exported method Invoke.Command should have comment or be unexported (golint)
    • Line 46: warning: exported method Invoke.CommandWithContext should have comment or be unexported (golint)
    • Line 64: warning: exported type FakeInvoke should have comment or be unexported (golint)
    • Line 91: warning: exported method FakeInvoke.CommandWithContext should have comment or be unexported (golint)
    • Line 95: warning: exported var ErrNotImplementedError should have comment or be unexported (golint)
    • Line 114: warning: comment on exported function ReadLinesOffsetN should be of the form "ReadLinesOffsetN ..." (golint)
    • Line 143: warning: exported function IntToString should have comment or be unexported (golint)
    • Line 160: warning: exported function UintToString should have comment or be unexported (golint)
    • Line 177: warning: exported function ByteToString should have comment or be unexported (golint)
    • Line 227: warning: comment on exported function HexToUint32 should be of the form "HexToUint32 ..." (golint)
    • Line 304: warning: exported function PathExists should have comment or be unexported (golint)
    • Line 331: warning: exported function HostProc should have comment or be unexported (golint)
    • Line 335: warning: exported function HostSys should have comment or be unexported (golint)
    • Line 339: warning: exported function HostEtc should have comment or be unexported (golint)
    • Line 343: warning: exported function HostVar should have comment or be unexported (golint)
    • Line 347: warning: exported function HostRun should have comment or be unexported (golint)
    • Line 351: warning: exported function HostDev should have comment or be unexported (golint)
    • fiber/utils/deprecated.go
    • Line 3: warning: comment on exported function GetString should be of the form "GetString ..." (golint)
    • Line 9: warning: comment on exported function GetBytes should be of the form "GetBytes ..." (golint)
    • Line 15: warning: comment on exported function ImmutableString should be of the form "ImmutableString ..." (golint)
    • Line 20: warning: comment on exported function EqualsFold should be of the form "EqualsFold ..." (golint)
    • Line 25: warning: comment on exported function SafeString should be of the form "SafeString ..." (golint)
    • Line 30: warning: comment on exported function SafeBytes should be of the form "SafeBytes ..." (golint)
    • fiber/internal/gopsutil/mem/mem_linux.go
    • Line 17: warning: exported type VirtualMemoryExStat should have comment or be unexported (golint)
    • Line 30: warning: exported function VirtualMemory should have comment or be unexported (golint)
    • Line 34: warning: exported function VirtualMemoryWithContext should have comment or be unexported (golint)
    • Line 42: warning: exported function VirtualMemoryEx should have comment or be unexported (golint)
    • Line 46: warning: exported function VirtualMemoryExWithContext should have comment or be unexported (golint)
    • Line 176: warning: exported function SwapMemory should have comment or be unexported (golint)
    • Line 180: warning: exported function SwapMemoryWithContext should have comment or be unexported (golint)
    • fiber/internal/go-ole/iconnectionpointcontainer.go
    • Line 5: warning: exported type IConnectionPointContainer should have comment or be unexported (golint)
    • Line 9: warning: exported type IConnectionPointContainerVtbl should have comment or be unexported (golint)
    • Line 15: warning: exported method IConnectionPointContainer.VTable should have comment or be unexported (golint)
    • fiber/internal/go-ole/iinspectable_func.go
    • Line 5: warning: exported method IInspectable.GetIids should have comment or be unexported (golint)
    • Line 9: warning: exported method IInspectable.GetRuntimeClassName should have comment or be unexported (golint)
    • Line 13: warning: exported method IInspectable.GetTrustLevel should have comment or be unexported (golint)
    • fiber/internal/go-ole/safearrayconversion.go
    • Line 9: warning: exported type SafeArrayConversion should have comment or be unexported (golint)
    • Line 13: warning: exported method SafeArrayConversion.ToStringArray should have comment or be unexported (golint)
    • Line 24: warning: exported method SafeArrayConversion.ToByteArray should have comment or be unexported (golint)
    • Line 35: warning: exported method SafeArrayConversion.ToValueArray should have comment or be unexported (golint)
    • Line 102: warning: exported method SafeArrayConversion.GetType should have comment or be unexported (golint)
    • Line 106: warning: exported method SafeArrayConversion.GetDimensions should have comment or be unexported (golint)
    • Line 110: warning: exported method SafeArrayConversion.GetSize should have comment or be unexported (golint)
    • Line 114: warning: exported method SafeArrayConversion.TotalElements should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 3)


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)