Preparing report...

Report for github.com/icexin/eggos

A+    Excellent!    Found 46 issues across 80 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!


gocyclo95%

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.

    • eggos/cga/ansi.go
    • Line 34: warning: cyclomatic complexity 18 of function (*ansiParser).step() is high (> 15) (gocyclo)

golint45%

Golint is a linter for Go source code.

    • eggos/app/phy/draw.go
    • Line 12: warning: exported const LineWidth should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type DrawOption should have comment or be unexported (golint)
    • Line 24: warning: exported type Drawer should have comment or be unexported (golint)
    • Line 29: warning: exported function NewDrawer should have comment or be unexported (golint)
    • Line 39: warning: exported method Drawer.NewFrame should have comment or be unexported (golint)
    • Line 44: warning: exported method Drawer.Image should have comment or be unexported (golint)
    • Line 52: warning: exported method Drawer.DrawCircle should have comment or be unexported (golint)
    • Line 62: warning: exported method Drawer.DrawSegment should have comment or be unexported (golint)
    • Line 69: warning: exported method Drawer.DrawFatSegment should have comment or be unexported (golint)
    • Line 83: warning: exported method Drawer.DrawPolygon should have comment or be unexported (golint)
    • Line 95: warning: exported method Drawer.DrawDot should have comment or be unexported (golint)
    • Line 102: warning: exported method Drawer.Flags should have comment or be unexported (golint)
    • Line 106: warning: exported method Drawer.OutlineColor should have comment or be unexported (golint)
    • Line 110: warning: exported method Drawer.ShapeColor should have comment or be unexported (golint)
    • Line 114: warning: exported method Drawer.ConstraintColor should have comment or be unexported (golint)
    • Line 118: warning: exported method Drawer.CollisionPointColor should have comment or be unexported (golint)
    • Line 122: warning: exported method Drawer.Data should have comment or be unexported (golint)
    • Line 126: warning: exported function ColorForShape should have comment or be unexported (golint)
    • eggos/console/console.go
    • Line 15: warning: exported const CON_BUFLEN should have comment (or a comment on this block) or be unexported (golint)
    • Line 170: warning: exported function Console should have comment or be unexported (golint)
    • Line 174: warning: exported function Init should have comment or be unexported (golint)
    • eggos/fs/vfs.go
    • Line 21: warning: exported var Root should have comment or be unexported (golint)
    • Line 24: warning: exported type Ioctler should have comment or be unexported (golint)
    • Line 28: warning: exported type Inode should have comment or be unexported (golint)
    • Line 34: warning: exported method Inode.Release should have comment or be unexported (golint)
    • Line 40: warning: exported function AllocInode should have comment or be unexported (golint)
    • Line 61: warning: exported function AllocFileNode should have comment or be unexported (golint)
    • Line 67: warning: exported function GetInode should have comment or be unexported (golint)
    • Line 260: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 302: warning: exported function Mount should have comment or be unexported (golint)
    • Line 334: warning: exported function Init should have comment or be unexported (golint)
    • eggos/uart/uart.go
    • Line 18: warning: comment on exported function ReadByte should be of the form "ReadByte ..." (golint)
    • Line 26: warning: comment on exported function WriteByte should be of the form "WriteByte ..." (golint)
    • Line 38: warning: comment on exported function Write should be of the form "Write ..." (golint)
    • Line 46: warning: comment on exported function WriteString should be of the form "WriteString ..." (golint)
    • Line 69: warning: comment on exported function PreInit should be of the form "PreInit ..." (golint)
    • Line 84: warning: exported function OnInput should have comment or be unexported (golint)
    • Line 88: warning: exported function Init should have comment or be unexported (golint)
    • eggos/kernel/syscall.go
    • Line 17: warning: don't use underscores in Go names; const SYS_read should be SYSRead (golint)
    • Line 17: warning: exported const SYS_read should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; const SYS_write should be SYSWrite (golint)
    • Line 19: warning: don't use underscores in Go names; const SYS_open should be SYSOpen (golint)
    • Line 20: warning: don't use underscores in Go names; const SYS_close should be SYSClose (golint)
    • Line 21: warning: don't use underscores in Go names; const SYS_brk should be SYSBrk (golint)
    • Line 22: warning: don't use underscores in Go names; const SYS_munmap should be SYSMunmap (golint)
    • Line 23: warning: don't use underscores in Go names; const SYS_clone should be SYSClone (golint)
    • Line 24: warning: don't use underscores in Go names; const SYS_uname should be SYSUname (golint)
    • Line 25: warning: don't use underscores in Go names; const SYS_sched_yield should be SYSSchedYield (golint)
    • Line 26: warning: don't use underscores in Go names; const SYS_nanosleep should be SYSNanosleep (golint)
    • Line 27: warning: don't use underscores in Go names; const SYS_rt_sigaction should be SYSRtSigaction (golint)
    • Line 28: warning: don't use underscores in Go names; const SYS_rt_sigprocmask should be SYSRtSigprocmask (golint)
    • Line 29: warning: don't use underscores in Go names; const SYS_sigaltstack should be SYSSigaltstack (golint)
    • Line 30: warning: don't use underscores in Go names; const SYS_mmap2 should be SYSMmap2 (golint)
    • Line 31: warning: don't use underscores in Go names; const SYS_madvise should be SYSMadvise (golint)
    • Line 32: warning: don't use underscores in Go names; const SYS_gettid should be SYSGettid (golint)
    • Line 33: warning: don't use underscores in Go names; const SYS_futex should be SYSFutex (golint)
    • Line 34: warning: don't use underscores in Go names; const SYS_sched_getaffinity should be SYSSchedGetaffinity (golint)
    • Line 35: warning: don't use underscores in Go names; const SYS_set_thread_area should be SYSSetThreadArea (golint)
    • Line 36: warning: don't use underscores in Go names; const SYS_exit_group should be SYSExitGroup (golint)
    • Line 37: warning: don't use underscores in Go names; const SYS_clock_gettime should be SYSClockGettime (golint)
    • Line 92: warning: don't use underscores in Go names; struct field tv_sec should be tvSec (golint)
    • Line 93: warning: don't use underscores in Go names; struct field tv_nsec should be tvNsec (golint)
    • Line 276: warning: don't use underscores in Go names; func syscal_init should be syscalInit (golint)
    • eggos/cga/fbcga/fbcga.go
    • Line 32: warning: exported var Backend should have comment or be unexported (golint)
    • Line 143: warning: exported function Init should have comment or be unexported (golint)
    • eggos/fs/chdir/chdir.go
    • Line 12: warning: exported type Chdirfs should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported method Chdirfs.Chdir should have comment or be unexported (golint)
    • Line 95: warning: comment on exported method Chdirfs.Name should be of the form "Name ..." (golint)
    • eggos/mm/pool.go
    • Line 21: warning: comment on exported function PoolInit should be of the form "PoolInit ..." (golint)
    • Line 38: warning: comment on exported method Pool.Alloc should be of the form "Alloc ..." (golint)
    • Line 50: warning: comment on exported method Pool.Free should be of the form "Free ..." (golint)
    • eggos/kernel/trap.go
    • Line 18: warning: exported const STS_IG32 should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; func idt_init should be idtInit (golint)
    • Line 97: warning: comment on exported function PreparePanic should be of the form "PreparePanic ..." (golint)
    • Line 158: warning: don't use underscores in Go names; func trap_init should be trapInit (golint)
    • eggos/inet/stack.go
    • Line 30: warning: exported function Listen should have comment or be unexported (golint)
    • Line 42: warning: exported function DialTCP should have comment or be unexported (golint)
    • Line 61: warning: exported function Init should have comment or be unexported (golint)
    • eggos/kernel/preinit.go
    • Line 14: warning: exported const STA_X should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: don't use underscores in Go names; func sse_init should be sseInit (golint)
    • Line 41: warning: don't use underscores in Go names; func gdt_init should be gdtInit (golint)
    • eggos/app/context.go
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • Line 25: warning: exported method Context.Init should have comment or be unexported (golint)
    • Line 29: warning: exported method Context.Printf should have comment or be unexported (golint)
    • Line 33: warning: exported method Context.Flag should have comment or be unexported (golint)
    • Line 41: warning: exported method Context.ParseFlags should have comment or be unexported (golint)
    • Line 45: warning: exported method Context.LineReader should have comment or be unexported (golint)
    • eggos/e1000/defs.go
    • Line 4: warning: comment on exported const REG_CTRL should be of the form "REG_CTRL ..." (golint)
    • Line 6: warning: comment on exported const CTRL_ASDE should be of the form "CTRL_ASDE ..." (golint)
    • Line 8: warning: comment on exported const CTRL_SLU should be of the form "CTRL_SLU ..." (golint)
    • Line 10: warning: comment on exported const CTRL_RST should be of the form "CTRL_RST ..." (golint)
    • Line 13: warning: comment on exported const REG_IMS should be of the form "REG_IMS ..." (golint)
    • Line 15: warning: exported const IMS_RXT0 should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported const REG_IMC should be of the form "REG_IMC ..." (golint)
    • Line 20: warning: comment on exported const REG_ICR should be of the form "REG_ICR ..." (golint)
    • Line 22: warning: comment on exported const ICR_RXT0 should be of the form "ICR_RXT0 ..." (golint)
    • Line 25: warning: comment on exported const REG_MTA_BASE should be of the form "REG_MTA_BASE ..." (golint)
    • Line 27: warning: comment on exported const REG_RECEIVE_ADDR_LOW should be of the form "REG_RECEIVE_ADDR_LOW ..." (golint)
    • Line 29: warning: comment on exported const REG_RECEIVE_ADDR_HIGH should be of the form "REG_RECEIVE_ADDR_HIGH ..." (golint)
    • Line 32: warning: comment on exported const REG_RCTL should be of the form "REG_RCTL ..." (golint)
    • Line 34: warning: comment on exported const RCTL_EN should be of the form "RCTL_EN ..." (golint)
    • Line 36: warning: comment on exported const RCTL_SECRC should be of the form "RCTL_SECRC ..." (golint)
    • Line 38: warning: comment on exported const RCTL_BSIZE should be of the form "RCTL_BSIZE ..." (golint)
    • Line 40: warning: comment on exported const RCTL_BAM should be of the form "RCTL_BAM ..." (golint)
    • Line 43: warning: comment on exported const REG_RDBAL should be of the form "REG_RDBAL ..." (golint)
    • Line 45: warning: comment on exported const REG_RDBAH should be of the form "REG_RDBAH ..." (golint)
    • Line 47: warning: comment on exported const REG_RDLEN should be of the form "REG_RDLEN ..." (golint)
    • Line 49: warning: comment on exported const REG_RDH should be of the form "REG_RDH ..." (golint)
    • Line 51: warning: comment on exported const REG_RDT should be of the form "REG_RDT ..." (golint)
    • Line 54: warning: comment on exported const REG_TCTL should be of the form "REG_TCTL ..." (golint)
    • Line 56: warning: comment on exported const REG_TIPG should be of the form "REG_TIPG ..." (golint)
    • Line 58: warning: comment on exported const TCTL_EN should be of the form "TCTL_EN ..." (golint)
    • Line 60: warning: comment on exported const TCTL_PSP should be of the form "TCTL_PSP ..." (golint)
    • Line 63: warning: comment on exported const REG_TDBAL should be of the form "REG_TDBAL ..." (golint)
    • Line 65: warning: comment on exported const REG_TDBAH should be of the form "REG_TDBAH ..." (golint)
    • Line 67: warning: comment on exported const REG_TDLEN should be of the form "REG_TDLEN ..." (golint)
    • Line 69: warning: comment on exported const REG_TDH should be of the form "REG_TDH ..." (golint)
    • Line 71: warning: comment on exported const REG_TDT should be of the form "REG_TDT ..." (golint)
    • Line 74: warning: comment on exported const TX_DESC_IFCS should be of the form "TX_DESC_IFCS ..." (golint)
    • Line 76: warning: comment on exported const TX_DESC_EOP should be of the form "TX_DESC_EOP ..." (golint)
    • Line 78: warning: comment on exported const TX_DESC_RS should be of the form "TX_DESC_RS ..." (golint)
    • Line 81: warning: comment on exported const REG_EEPROM should be of the form "REG_EEPROM ..." (golint)
    • Line 85: warning: comment on exported const RX_DESC_DD should be of the form "RX_DESC_DD ..." (golint)
    • Line 87: warning: comment on exported const RX_DESC_EOP should be of the form "RX_DESC_EOP ..." (golint)
    • Line 92: warning: comment on exported const BUFFER_SIZE should be of the form "BUFFER_SIZE ..." (golint)
    • Line 94: warning: comment on exported const NUM_RX_DESCS should be of the form "NUM_RX_DESCS ..." (golint)
    • Line 96: warning: comment on exported const NUM_TX_DESCS should be of the form "NUM_TX_DESCS ..." (golint)
    • Line 99: warning: exported const TX_BUF_SZ should have comment (or a comment on this block) or be unexported (golint)
    • eggos/kernel/trap/registry.go
    • Line 5: warning: exported type TrapHandler should have comment or be unexported (golint)
    • Line 7: warning: comment on exported function Handler should be of the form "Handler ..." (golint)
    • Line 12: warning: comment on exported function Register should be of the form "Register ..." (golint)
    • eggos/cga/backend.go
    • Line 11: warning: exported type Backend should have comment or be unexported (golint)
    • Line 21: warning: exported const CRTPORT should have comment (or a comment on this block) or be unexported (golint)
    • eggos/fs/smb/fs.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 18: warning: exported type Fs should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 55: warning: exported method Fs.Close should have comment or be unexported (golint)
    • Line 76: warning: comment on exported method Fs.Name should be of the form "Name ..." (golint)
    • eggos/kernel/signal.go
    • Line 29: warning: don't use underscores in Go names; struct field si_signo should be siSigno (golint)
    • Line 30: warning: don't use underscores in Go names; struct field si_errno should be siErrno (golint)
    • Line 31: warning: don't use underscores in Go names; struct field si_code should be siCode (golint)
    • Line 33: warning: don't use underscores in Go names; struct field si_addr should be siAddr (golint)
    • Line 37: warning: don't use underscores in Go names; struct field uc_flags should be ucFlags (golint)
    • Line 38: warning: don't use underscores in Go names; struct field uc_link should be ucLink (golint)
    • Line 39: warning: don't use underscores in Go names; struct field uc_stack should be ucStack (golint)
    • Line 40: warning: don't use underscores in Go names; struct field uc_mcontext should be ucMcontext (golint)
    • Line 41: warning: don't use underscores in Go names; struct field uc_sigmask should be ucSigmask (golint)
    • Line 46: warning: don't use underscores in Go names; struct field __gsh should be _Gsh (golint)
    • Line 48: warning: don't use underscores in Go names; struct field __fsh should be _Fsh (golint)
    • Line 50: warning: don't use underscores in Go names; struct field __esh should be _Esh (golint)
    • Line 52: warning: don't use underscores in Go names; struct field __dsh should be _Dsh (golint)
    • Line 65: warning: don't use underscores in Go names; struct field __csh should be _Csh (golint)
    • Line 67: warning: don't use underscores in Go names; struct field esp_at_signal should be espAtSignal (golint)
    • Line 69: warning: don't use underscores in Go names; struct field __ssh should be _SSH (golint)
    • Line 86: warning: don't use underscores in Go names; struct field _fxsr_env should be _fxsrEnv (golint)
    • Line 89: warning: don't use underscores in Go names; struct field _fxsr_st should be _fxsrSt (golint)
    • Line 111: warning: don't use underscores in Go names; struct field sa_handler should be saHandler (golint)
    • Line 112: warning: don't use underscores in Go names; struct field sa_flags should be saFlags (golint)
    • Line 113: warning: don't use underscores in Go names; struct field sa_restorer should be saRestorer (golint)
    • Line 114: warning: don't use underscores in Go names; struct field sa_mask should be saMask (golint)
    • Line 118: warning: don't use underscores in Go names; struct field ss_sp should be ssSp (golint)
    • Line 119: warning: don't use underscores in Go names; struct field ss_flags should be ssFlags (golint)
    • Line 120: warning: don't use underscores in Go names; struct field ss_size should be ssSize (golint)
    • Line 176: warning: don't use underscores in Go names; func rt_sigaction should be rtSigaction (golint)
    • Line 193: warning: comment on exported function Signal should be of the form "Signal ..." (golint)
    • eggos/kernel/thread.go
    • Line 19: warning: exported const UNUSED should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; var idle_thread should be idleThread (golint)
    • Line 42: warning: exported type TrapFrame should have comment or be unexported (golint)
    • Line 50: warning: exported type Thread should have comment or be unexported (golint)
    • Line 98: warning: don't use underscores in Go names; func set_fs should be setFs (golint)
    • Line 100: warning: comment on exported function Mythread should be of the form "Mythread ..." (golint)
    • Line 104: warning: don't use underscores in Go names; func set_mythread should be setMythread (golint)
    • Line 107: warning: don't use underscores in Go names; func set_gs should be setGs (golint)
    • Line 116: warning: don't use underscores in Go names; func ktls_init should be ktlsInit (golint)
    • Line 123: warning: don't use underscores in Go names; func go_entry should be goEntry (golint)
    • Line 126: warning: don't use underscores in Go names; func thread0_init should be thread0Init (golint)
    • Line 143: warning: don't use underscores in Go names; func sys_clone should be sysClone (golint)
    • Line 146: warning: don't use underscores in Go names; func sys_yield should be sysYield (golint)
    • Line 204: warning: don't use underscores in Go names; func thread_init should be threadInit (golint)
    • Line 266: warning: exported function ThreadStat should have comment or be unexported (golint)
    • Line 272: warning: comment on exported function Sched should be of the form "Sched ..." (golint)
    • Line 278: warning: comment on exported function Yield should be of the form "Yield ..." (golint)
    • eggos/app/app.go
    • Line 7: warning: exported type AppEntry should have comment or be unexported (golint)
    • Line 11: warning: exported function Register should have comment or be unexported (golint)
    • Line 15: warning: exported function Get should have comment or be unexported (golint)
    • Line 19: warning: exported function AppNames should have comment or be unexported (golint)
    • eggos/mm/mm.go
    • Line 11: warning: exported const PGSIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: comment on exported const MEMSTART should be of the form "MEMSTART ..." (golint)
    • Line 14: warning: comment on exported const DEFAULT_MEMTOP should be of the form "DEFAULT_MEMTOP ..." (golint)
    • Line 16: warning: comment on exported const VMSTART should be of the form "VMSTART ..." (golint)
    • Line 32: warning: don't use underscores in Go names; func get_cr2 should be getCr2 (golint)
    • Line 35: warning: don't use underscores in Go names; func page_enable should be pageEnable (golint)
    • Line 186: warning: comment on exported function Sbrk should be of the form "Sbrk ..." (golint)
    • Line 191: warning: comment on exported function Mmap should be of the form "Mmap ..." (golint)
    • Line 200: warning: comment on exported function Fixmap should be of the form "Fixmap ..." (golint)
    • Line 205: warning: comment on exported function Alloc should be of the form "Alloc ..." (golint)
    • Line 282: warning: comment on exported function Init should be of the form "Init ..." (golint)
    • eggos/sys/sys.go
    • Line 5: warning: exported const PtrSize should have comment or be unexported (golint)
    • Line 7: warning: exported const PageSize should have comment or be unexported (golint)
    • Line 9: warning: comment on exported function Outb should be of the form "Outb ..." (golint)
    • Line 12: warning: comment on exported function Inb should be of the form "Inb ..." (golint)
    • Line 15: warning: comment on exported function Outl should be of the form "Outl ..." (golint)
    • Line 18: warning: comment on exported function Inl should be of the form "Inl ..." (golint)
    • Line 21: warning: comment on exported function Cli should be of the form "Cli ..." (golint)
    • Line 24: warning: comment on exported function Sti should be of the form "Sti ..." (golint)
    • Line 27: warning: comment on exported function Hlt should be of the form "Hlt ..." (golint)
    • Line 30: warning: comment on exported function Cr2 should be of the form "Cr2 ..." (golint)
    • Line 33: warning: comment on exported function Flags should be of the form "Flags ..." (golint)
    • Line 36: warning: comment on exported function UnsafeBuffer should be of the form "UnsafeBuffer ..." (golint)
    • Line 41: warning: comment on exported function Memclr should be of the form "Memclr ..." (golint)
    • Line 50: warning: comment on exported function FuncPC should be of the form "FuncPC ..." (golint)
    • Line 62: warning: comment on exported function Mfence should be of the form "Mfence ..." (golint)
    • eggos/inet/ndev.go
    • Line 5: warning: exported var DefaultDevice should have comment or be unexported (golint)
    • Line 7: warning: exported type Device should have comment or be unexported (golint)
    • Line 13: warning: exported function RegisterDevice should have comment or be unexported (golint)
    • eggos/pci/driver.go
    • Line 5: warning: exported type Driver should have comment or be unexported (golint)
    • Line 12: warning: exported function Register should have comment or be unexported (golint)
    • eggos/fs/mount/mountfs.go
    • Line 25: warning: should not use dot imports (golint)
    • Line 47: warning: exported function NewMountableFs should have comment or be unexported (golint)
    • Line 112: warning: exported method MountableFs.Umount should have comment or be unexported (golint)
    • Line 142: warning: exported method MountableFs.Remount should have comment or be unexported (golint)
    • Line 149: warning: exported method MountableFs.Mkdir should have comment or be unexported (golint)
    • Line 172: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 179: warning: exported method MountableFs.MkdirAll should have comment or be unexported (golint)
    • Line 191: warning: exported method MountableFs.Create should have comment or be unexported (golint)
    • Line 195: warning: exported method MountableFs.Open should have comment or be unexported (golint)
    • Line 199: warning: exported method MountableFs.OpenFile should have comment or be unexported (golint)
    • Line 207: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 256: warning: exported method MountableFs.Remove should have comment or be unexported (golint)
    • Line 261: warning: exported method MountableFs.RemoveAll should have comment or be unexported (golint)
    • Line 272: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 285: warning: exported method MountableFs.Rename should have comment or be unexported (golint)
    • Line 291: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 296: warning: exported method MountableFs.Stat should have comment or be unexported (golint)
    • Line 309: warning: exported method MountableFs.Name should have comment or be unexported (golint)
    • Line 313: warning: exported method MountableFs.Chmod should have comment or be unexported (golint)
    • Line 318: warning: exported method MountableFs.Chtimes should have comment or be unexported (golint)
    • Line 331: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 523: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 612: warning: exported function IsErrCrossFsRename should have comment or be unexported (golint)
    • Line 613: warning: exported function IsErrRecursiveMount should have comment or be unexported (golint)
    • Line 614: warning: exported function IsErrShortCopy should have comment or be unexported (golint)
    • Line 615: warning: exported function IsErrAlreadyMounted should have comment or be unexported (golint)
    • Line 616: warning: exported function IsErrNotMounted should have comment or be unexported (golint)
    • Line 617: warning: exported function IsErrNotAFile should have comment or be unexported (golint)
    • Line 618: warning: exported function IsErrOsFs should have comment or be unexported (golint)
    • Line 632: warning: exported function IsMountNode should have comment or be unexported (golint)
    • eggos/kernel/isyscall/syscall.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: don't use underscores in Go names; const _SYS_futex should be _SYSFutex (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 23: warning: exported type Request should have comment or be unexported (golint)
    • Line 31: warning: exported method Request.Done should have comment or be unexported (golint)
    • Line 36: warning: exported function GetHandler should have comment or be unexported (golint)
    • Line 40: warning: exported function Register should have comment or be unexported (golint)
    • Line 44: warning: exported function Errno should have comment or be unexported (golint)
    • Line 48: warning: exported function Error should have comment or be unexported (golint)
    • eggos/vbe/fb.go
    • Line 26: warning: exported var DefaultView should have comment or be unexported (golint)
    • Line 43: warning: exported function SaveCurrView should have comment or be unexported (golint)
    • Line 47: warning: exported function SetCurrView should have comment or be unexported (golint)
    • Line 52: warning: exported function IsEnable should have comment or be unexported (golint)
    • Line 56: warning: exported function Init should have comment or be unexported (golint)
    • eggos/assets/pkg.go
    • Line 17: warning: exported function FS should have comment or be unexported (golint)
    • Line 28: warning: exported function Open should have comment or be unexported (golint)
    • eggos/multiboot/multiboot.go
    • Line 7: warning: exported var BootInfo should have comment or be unexported (golint)
    • Line 10: warning: exported function Enabled should have comment or be unexported (golint)
    • Line 14: warning: exported function Init should have comment or be unexported (golint)
    • eggos/vbe/view.go
    • Line 8: warning: exported type View should have comment or be unexported (golint)
    • Line 12: warning: exported function NewView should have comment or be unexported (golint)
    • Line 18: warning: exported method View.Canvas should have comment or be unexported (golint)
    • Line 22: warning: exported method View.Clear should have comment or be unexported (golint)
    • Line 28: warning: exported method View.CommitRect should have comment or be unexported (golint)
    • Line 51: warning: exported method View.Commit should have comment or be unexported (golint)
    • eggos/kbd/kbd.go
    • Line 14: warning: exported const KBSTATP should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported const KEY_HOME should be of the form "KEY_HOME ..." (golint)
    • Line 133: warning: comment on exported function ReadByte should be of the form "ReadByte ..." (golint)
    • Line 221: warning: exported function OnInput should have comment or be unexported (golint)
    • Line 225: warning: exported function Pressed should have comment or be unexported (golint)
    • Line 229: warning: exported function Init should have comment or be unexported (golint)
    • eggos/inet/endpoint.go
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • eggos/cga/cga.go
    • Line 12: warning: exported function WriteString should have comment or be unexported (golint)
    • Line 62: warning: exported function WriteByte should have comment or be unexported (golint)
    • eggos/multiboot/info.go
    • Line 10: warning: exported const MemoryAvailable should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Flag should have comment or be unexported (golint)
    • Line 20: warning: exported const FlagInfoMemory should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported method Info.MmapEntries should have comment or be unexported (golint)
    • Line 83: warning: exported type MmapEntry should have comment or be unexported (golint)
    • eggos/pic/pic.go
    • Line 6: warning: exported const PIC1_CMD should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported function Init should be of the form "Init ..." (golint)
    • Line 49: warning: comment on exported function EnableIRQ should be of the form "EnableIRQ ..." (golint)
    • Line 59: warning: comment on exported function DisableIRQ should be of the form "DisableIRQ ..." (golint)
    • Line 69: warning: comment on exported function EOI should be of the form "EOI ..." (golint)
    • eggos/pci/addr.go
    • Line 10: warning: exported type Address should have comment or be unexported (golint)
    • Line 14: warning: exported method Address.ReadBAR should have comment or be unexported (golint)
    • Line 42: warning: exported method Address.ReadCapOffset should have comment or be unexported (golint)
    • Line 46: warning: exported method Address.ReadStatus should have comment or be unexported (golint)
    • Line 50: warning: exported method Address.ReadDeviceID should have comment or be unexported (golint)
    • Line 54: warning: exported method Address.ReadVendorID should have comment or be unexported (golint)
    • Line 62: warning: exported method Address.ReadPCIClass should have comment or be unexported (golint)
    • Line 66: warning: exported method Address.ReadIRQLine should have comment or be unexported (golint)
    • Line 70: warning: exported method Address.EnableBusMaster should have comment or be unexported (golint)
    • Line 78: warning: exported method Address.ReadPCIRegister should have comment or be unexported (golint)
    • Line 87: warning: exported method Address.WritePCIRegister should have comment or be unexported (golint)
    • eggos/pci/pci.go
    • Line 9: warning: exported type Identity should have comment or be unexported (golint)
    • Line 14: warning: exported type Device should have comment or be unexported (golint)
    • Line 26: warning: exported function Scan should have comment or be unexported (golint)
    • Line 72: warning: exported function Init should have comment or be unexported (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!


misspell96%

Misspell Finds commonly misspelled English words