Preparing report...

Report for github.com/jiusanzhou/injgo

A    Great!    Found 20 issues across 13 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!


gocyclo100%

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.

No problems detected. Good job!


golint53%

Golint is a linter for Go source code.

    • injgo/pkg/w32/constants.go
    • Line 6: warning: exported const NO_ERROR should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported const INVALID_HANDLE should have comment or be unexported (golint)
    • Line 24: warning: exported const MAX_MODULE_NAME32 should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const MEM_COMMIT should have comment (or a comment on this block) or be unexported (golint)
    • injgo/pkg/w32/kernel32.go
    • Line 19: warning: exported var ProcFreeLibrary should have comment or be unexported (golint)
    • Line 35: warning: exported function OpenProcess should have comment or be unexported (golint)
    • Line 52: warning: exported function TerminateProcess should have comment or be unexported (golint)
    • Line 59: warning: exported function CloseHandle should have comment or be unexported (golint)
    • Line 65: warning: exported function CreateToolhelp32Snapshot should have comment or be unexported (golint)
    • Line 77: warning: exported function Process32First should have comment or be unexported (golint)
    • Line 88: warning: exported function Process32Next should have comment or be unexported (golint)
    • Line 99: warning: exported function Module32First should have comment or be unexported (golint)
    • Line 107: warning: exported function Module32Next should have comment or be unexported (golint)
    • Line 115: warning: exported function GetModuleHandleA should have comment or be unexported (golint)
    • Line 127: warning: comment on exported function CreateProcessA should be of the form "CreateProcessA ..." (golint)
    • Line 157: warning: comment on exported function VirtualAllocEx should be of the form "VirtualAllocEx ..." (golint)
    • Line 171: warning: comment on exported function VirtualAlloc should be of the form "VirtualAlloc ..." (golint)
    • Line 184: warning: comment on exported function VirtualFreeEx should be of the form "VirtualFreeEx ..." (golint)
    • Line 196: warning: exported function GetProcAddress should have comment or be unexported (golint)
    • Line 200: warning: comment on exported function CreateRemoteThread should be of the form "CreateRemoteThread ..." (golint)
    • Line 220: warning: comment on exported function WriteProcessMemory should be of the form "WriteProcessMemory ..." (golint)
    • Line 237: warning: comment on exported function WriteProcessMemoryAsUint32 should be of the form "WriteProcessMemoryAsUint32 ..." (golint)
    • Line 249: warning: comment on exported function ReadProcessMemory should be of the form "ReadProcessMemory ..." (golint)
    • Line 267: warning: comment on exported function ReadProcessMemoryAsUint32 should be of the form "ReadProcessMemoryAsUint32 ..." (golint)
    • injgo/pkg/w32/typedef.go
    • Line 6: warning: exported type HANDLE should have comment or be unexported (golint)
    • Line 7: warning: exported type HKEY should have comment or be unexported (golint)
    • Line 8: warning: exported type BOOL should have comment or be unexported (golint)
    • Line 9: warning: exported type HMODULE should have comment or be unexported (golint)
    • Line 10: warning: exported type ULONG_PTR should have comment or be unexported (golint)
    • Line 13: warning: comment on exported type MODULEENTRY32 should be of the form "MODULEENTRY32 ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type PROCESSENTRY32 should be of the form "PROCESSENTRY32 ..." (with optional leading article) (golint)
    • injgo/pkg/w32/utils.go
    • Line 13: warning: exported function MakeIntResource should have comment or be unexported (golint)
    • Line 17: warning: exported function LOWORD should have comment or be unexported (golint)
    • Line 21: warning: exported function HIWORD should have comment or be unexported (golint)
    • Line 25: warning: exported function LOBYTE should have comment or be unexported (golint)
    • Line 29: warning: exported function HIBYTE should have comment or be unexported (golint)
    • Line 33: warning: exported function BoolToBOOL should have comment or be unexported (golint)
    • Line 41: warning: exported function UTF16PtrToString should have comment or be unexported (golint)
    • Line 56: warning: exported function UTF16ToStringArray should have comment or be unexported (golint)
    • Line 74: warning: comment on exported function HexToUint32 should be of the form "HexToUint32 ..." (golint)
    • injgo/pkg/w32/version.go
    • Line 21: warning: exported function GetFileVersionInfoSize should have comment or be unexported (golint)
    • Line 29: warning: exported function GetFileVersionInfo should have comment or be unexported (golint)
    • Line 65: warning: exported function GetFileVersion should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign-23%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/go/pkg/mod/github.com/tadvi/winc@v0.0.0-20190405175627-5454f291903d/w32/user32.go
    • Line 15: warning: NewLazyDLL not declared by package syscall (ineffassign)
    • Line 130: warning: LoadLibrary not declared by package syscall (ineffassign)
    • Line 131: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 132: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 133: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 134: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 135: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 136: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 137: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 139: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 140: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 142: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 143: warning: GetProcAddress not declared by package syscall (ineffassign)
    • injgo/pkg/w32/advapi32.go
    • Line 11: warning: NewLazyDLL not declared by package syscall (ineffassign)
    • Line 20: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 34: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 45: warning: UTF16ToString not declared by package syscall (ineffassign)
    • injgo/pkg/w32/kernel32.go
    • Line 12: warning: NewLazyDLL not declared by package syscall (ineffassign)
    • Line 130: warning: SecurityAttributes not declared by package syscall (ineffassign)
    • Line 131: warning: SecurityAttributes not declared by package syscall (ineffassign)
    • Line 136: warning: StartupInfo not declared by package syscall (ineffassign)
    • Line 137: warning: ProcessInformation not declared by package syscall (ineffassign)
    • Line 202: warning: SecurityAttributes not declared by package syscall (ineffassign)
    • Line 145: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 146: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 197: warning: GetProcAddress not declared by package syscall (ineffassign)
    • Line 197: warning: Handle not declared by package syscall (ineffassign)
    • injgo/pkg/w32/version.go
    • Line 10: warning: NewLazyDLL not declared by package syscall (ineffassign)
    • Line 23: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 31: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 48: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • injgo/examples/combine/w32.go
    • Line 12: warning: MustLoadDLL not declared by package syscall (ineffassign)
    • Line 68: warning: Handle not declared by package syscall (ineffassign)
    • Line 86: warning: Handle not declared by package syscall (ineffassign)
    • Line 86: warning: Handle not declared by package syscall (ineffassign)
    • Line 96: warning: Handle not declared by package syscall (ineffassign)
    • Line 102: warning: Handle not declared by package syscall (ineffassign)
    • Line 102: warning: Handle not declared by package syscall (ineffassign)
    • Line 108: warning: Handle not declared by package syscall (ineffassign)
    • Line 114: warning: Handle not declared by package syscall (ineffassign)
    • Line 121: warning: Handle not declared by package syscall (ineffassign)
    • Line 135: warning: Handle not declared by package syscall (ineffassign)
    • Line 137: warning: Handle not declared by package syscall (ineffassign)
    • Line 143: warning: Handle not declared by package syscall (ineffassign)
    • Line 148: warning: Handle not declared by package syscall (ineffassign)
    • Line 155: warning: Handle not declared by package syscall (ineffassign)
    • Line 208: warning: Handle not declared by package syscall (ineffassign)
    • Line 209: warning: Handle not declared by package syscall (ineffassign)
    • Line 217: warning: Handle not declared by package syscall (ineffassign)
    • Line 56: warning: too many arguments (ineffassign)
    • Line 71: warning: too many arguments (ineffassign)
    • Line 81: warning: UTF16ToString not declared by package syscall (ineffassign)
    • Line 92: warning: Handle not declared by package syscall (ineffassign)
    • Line 104: warning: Handle not declared by package syscall (ineffassign)
    • Line 161: warning: Handle not declared by package syscall (ineffassign)
    • Line 225: warning: Handle not declared by package syscall (ineffassign)
    • Line 225: warning: Handle not declared by package syscall (ineffassign)
    • Line 225: warning: Handle not declared by package syscall (ineffassign)
    • Line 251: warning: NewCallback not declared by package syscall (ineffassign)
    • Line 262: warning: Handle not declared by package syscall (ineffassign)
    • Line 264: warning: Handle not declared by package syscall (ineffassign)
    • Line 272: warning: StringToUTF16Ptr not declared by package syscall (ineffassign)
    • Line 273: warning: too many arguments (ineffassign)
    • Line 275: warning: Handle not declared by package syscall (ineffassign)
    • Line 280: warning: Handle not declared by package syscall (ineffassign)
    • Line 286: warning: NewCallback not declared by package syscall (ineffassign)
    • Line 286: warning: Handle not declared by package syscall (ineffassign)

misspell92%

Misspell Finds commonly misspelled English words