Preparing report...

Report for github.com/docker-slim/docker-slim

(v0.0.0-20211202083732-87b992d3039a)

A    Great!    Found 164 issues across 207 files

Tweet

gofmt94%

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!


gocyclo84%

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.

    • pkg/util/fsutil/fsutil.go
    • Line 581: warning: cyclomatic complexity 31 of function copyFileObjectHandler() is high (> 15) (gocyclo)
    • Line 460: warning: cyclomatic complexity 28 of function CopyRegularFile() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 18 of function cloneDirPath() is high (> 15) (gocyclo)
    • Line 1162: warning: cyclomatic complexity 18 of function ArchiveDir() is high (> 15) (gocyclo)
    • pkg/app/master/compose/execution.go
    • Line 1204: warning: cyclomatic complexity 27 of function startContainer() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 18 of function NewConfigInfo() is high (> 15) (gocyclo)
    • Line 423: warning: cyclomatic complexity 16 of function (*Execution).initServices() is high (> 15) (gocyclo)
    • pkg/app/sensor/artifacts.go
    • Line 614: warning: cyclomatic complexity 74 of function (*artifactStore).saveArtifacts() is high (> 15) (gocyclo)
    • Line 433: warning: cyclomatic complexity 44 of function (*artifactStore).saveCertsData() is high (> 15) (gocyclo)
    • Line 936: warning: cyclomatic complexity 17 of function (*artifactStore).detectAppStack() is high (> 15) (gocyclo)
    • Line 1439: warning: cyclomatic complexity 16 of function ngxEnsure() is high (> 15) (gocyclo)
    • pkg/docker/dockerimage/dockerimage.go
    • Line 1156: warning: cyclomatic complexity 97 of function inspectFile() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 82 of function LoadPackage() is high (> 15) (gocyclo)
    • Line 881: warning: cyclomatic complexity 49 of function layerFromStream() is high (> 15) (gocyclo)

golint30%

Golint is a linter for Go source code.

    • pkg/pdiscover/pinfo_linux.go
    • Line 13: warning: exported function GetProcInfo should have comment or be unexported (golint)
    • Line 42: warning: exported function GetOwnProcPath should have comment or be unexported (golint)
    • Line 46: warning: exported function GetProcPath should have comment or be unexported (golint)
    • pkg/app/sensor/ipc/ipc.go
    • Line 14: warning: exported type Server should have comment or be unexported (golint)
    • Line 21: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 61: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 65: warning: exported method Server.CommandChan should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.OnRequest should have comment or be unexported (golint)
    • Line 90: warning: exported method Server.Run should have comment or be unexported (golint)
    • Line 119: warning: exported method Server.TryPublishEvt should have comment or be unexported (golint)
    • pkg/docker/dockerfile/spec/spec.go
    • Line 8: warning: exported type ParentImage should have comment or be unexported (golint)
    • Line 22: warning: exported type BuildStage should have comment or be unexported (golint)
    • Line 48: warning: exported function NewBuildStage should have comment or be unexported (golint)
    • Line 60: warning: exported type Dockerfile should have comment or be unexported (golint)
    • Line 77: warning: exported function NewDockerfile should have comment or be unexported (golint)
    • pkg/docker/linter/check/id20010.go
    • Line 31: warning: exported type MultipleEntrypointInstructions should have comment or be unexported (golint)
    • Line 35: warning: exported method MultipleEntrypointInstructions.Run should have comment or be unexported (golint)
    • pkg/monitor/ptrace/ptrace.go
    • Line 22: warning: exported type AppState should have comment or be unexported (golint)
    • Line 25: warning: exported const AppStarted should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported function Run should have comment or be unexported (golint)
    • Line 76: warning: exported type App should have comment or be unexported (golint)
    • Line 96: warning: exported method App.MainPID should have comment or be unexported (golint)
    • Line 100: warning: exported method App.PGID should have comment or be unexported (golint)
    • Line 167: warning: exported method App.Stop should have comment or be unexported (golint)
    • Line 167: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 171: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 187: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 195: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 231: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 293: warning: exported method App.FileActivity should have comment or be unexported (golint)
    • Line 293: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 340: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 410: warning: exported function StopSignalInfo should have comment or be unexported (golint)
    • Line 430: warning: exported function SigTrapCauseInfo should have comment or be unexported (golint)
    • Line 441: warning: exported function PtraceEvenEnum should have comment or be unexported (golint)
    • Line 444: 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 460: warning: receiver name app should be consistent with previous receiver name a for App (golint)
    • Line 739: warning: exported type SyscallTypeName should have comment or be unexported (golint)
    • Line 742: warning: exported const CheckFileType should have comment (or a comment on this block) or be unexported (golint)
    • Line 745: warning: exported type SyscallProcessor should have comment or be unexported (golint)
    • Line 845: warning: exported function SignalEnum should have comment or be unexported (golint)
    • pkg/app/master/commands/build/cli.go
    • Line 17: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var CLI should have comment or be unexported (golint)
    • Line 237: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 248: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/ipc/channel/channel.go
    • Line 20: warning: exported var ErrNoData should have comment or be unexported (golint)
    • Line 59: warning: exported type Frame should have comment or be unexported (golint)
    • Line 99: warning: exported function GenerateTID should have comment or be unexported (golint)
    • Line 121: warning: exported type ConnectionHandler should have comment or be unexported (golint)
    • Line 125: warning: exported type Server should have comment or be unexported (golint)
    • Line 131: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 139: warning: exported method Server.SetConnHandler should have comment or be unexported (golint)
    • Line 143: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 181: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 187: warning: exported type EventServer should have comment or be unexported (golint)
    • Line 192: warning: exported function NewEventServer should have comment or be unexported (golint)
    • Line 201: warning: exported method EventServer.OnConnection should have comment or be unexported (golint)
    • Line 205: warning: exported method EventServer.Publish should have comment or be unexported (golint)
    • Line 241: warning: exported type Client should have comment or be unexported (golint)
    • Line 262: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 400: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 404: warning: exported type EventClient should have comment or be unexported (golint)
    • Line 408: warning: exported function NewEventClient should have comment or be unexported (golint)
    • Line 422: warning: exported method EventClient.Next should have comment or be unexported (golint)
    • Line 436: warning: exported type CommandClient should have comment or be unexported (golint)
    • Line 440: warning: exported function NewCommandClient should have comment or be unexported (golint)
    • Line 524: warning: exported method CommandClient.Call should have comment or be unexported (golint)
    • Line 568: warning: exported type RequestHandler should have comment or be unexported (golint)
    • Line 572: warning: exported type CommandServer should have comment or be unexported (golint)
    • Line 577: warning: exported function NewCommandServer should have comment or be unexported (golint)
    • Line 587: warning: exported method CommandServer.SetReqHandler should have comment or be unexported (golint)
    • Line 591: warning: exported method CommandServer.OnConnection should have comment or be unexported (golint)
    • pkg/app/master/commands/xray/cli.go
    • Line 16: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported var CLI should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/app/master/compose/execution.go
    • Line 25: warning: exported var ErrNoServiceImage should have comment or be unexported (golint)
    • Line 29: warning: exported type ExecutionState should have comment or be unexported (golint)
    • Line 32: warning: exported const XSNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type ExecutionEvent should have comment or be unexported (golint)
    • Line 46: warning: exported const XECreated should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported type ExecutionEvenInfo should have comment or be unexported (golint)
    • Line 63: warning: exported const ComposeVerUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported const ComposeVerOneStr should have comment (or a comment on this block) or be unexported (golint)
    • Line 75: warning: exported type ExecutionOptions should have comment or be unexported (golint)
    • Line 78: warning: exported type Execution should have comment or be unexported (golint)
    • Line 102: warning: exported type ConfigInfo should have comment or be unexported (golint)
    • Line 111: warning: exported type ServiceSelectors should have comment or be unexported (golint)
    • Line 117: warning: exported function NewServiceSelectors should have comment or be unexported (golint)
    • Line 137: warning: exported type ServiceInfo should have comment or be unexported (golint)
    • Line 146: warning: exported type NetworkInfo should have comment or be unexported (golint)
    • Line 151: warning: exported type RunningService should have comment or be unexported (golint)
    • Line 157: warning: exported type ActiveVolume should have comment or be unexported (golint)
    • Line 162: warning: exported type ActiveNetwork should have comment or be unexported (golint)
    • Line 170: warning: exported function NewConfigInfo should have comment or be unexported (golint)
    • Line 271: warning: exported function NewExecution should have comment or be unexported (golint)
    • Line 339: warning: exported type LoaderOptionsFn should have comment or be unexported (golint)
    • Line 362: warning: exported method Execution.ProjectName should have comment or be unexported (golint)
    • Line 366: warning: exported method Execution.ProjectWorkingDir should have comment or be unexported (golint)
    • Line 370: warning: exported method Execution.Service should have comment or be unexported (golint)
    • Line 374: warning: exported method Execution.SelectedHaveImages should have comment or be unexported (golint)
    • Line 384: warning: exported type NetNameInfo should have comment or be unexported (golint)
    • Line 389: warning: exported method Execution.ActiveServiceNetworks should have comment or be unexported (golint)
    • Line 411: warning: exported method Execution.ActiveNetworkNames should have comment or be unexported (golint)
    • Line 540: warning: exported method Execution.Prepare should have comment or be unexported (golint)
    • Line 558: warning: exported method Execution.PrepareServices should have comment or be unexported (golint)
    • Line 587: warning: exported method Execution.PrepareService should have comment or be unexported (golint)
    • Line 648: warning: exported method Execution.DiscoverResources should have comment or be unexported (golint)
    • Line 654: warning: exported method Execution.Start should have comment or be unexported (golint)
    • Line 663: warning: exported method Execution.StartServices should have comment or be unexported (golint)
    • Line 690: warning: exported method Execution.StartService should have comment or be unexported (golint)
    • Line 713: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 765: warning: exported method Execution.StopServices should have comment or be unexported (golint)
    • Line 777: warning: exported method Execution.CleanupServices should have comment or be unexported (golint)
    • Line 789: warning: exported method Execution.StopService should have comment or be unexported (golint)
    • Line 813: warning: exported method Execution.CleanupService should have comment or be unexported (golint)
    • Line 850: warning: exported function ExposedPorts should have comment or be unexported (golint)
    • Line 864: warning: exported function MountsFromVolumeConfigs should have comment or be unexported (golint)
    • Line 928: warning: exported function EnvVarsFromService should have comment or be unexported (golint)
    • Line 964: warning: exported function HasImage should have comment or be unexported (golint)
    • Line 1008: warning: exported type ImageIdentity should have comment or be unexported (golint)
    • Line 1016: warning: exported function ImageToIdentity should have comment or be unexported (golint)
    • Line 1176: warning: exported function VolumesFrom should have comment or be unexported (golint)
    • Line 1492: warning: exported method Execution.CreateVolumes should have comment or be unexported (golint)
    • Line 1516: warning: exported method Execution.DeleteVolumes should have comment or be unexported (golint)
    • Line 1548: warning: exported method Execution.CreateNetworks should have comment or be unexported (golint)
    • Line 1666: warning: exported method Execution.DeleteNetworks should have comment or be unexported (golint)
    • Line 1712: warning: exported method Execution.Stop should have comment or be unexported (golint)
    • Line 1722: warning: exported method Execution.Cleanup should have comment or be unexported (golint)
    • pkg/docker/linter/linter.go
    • Line 18: warning: exported var ErrBadParams should have comment or be unexported (golint)
    • Line 22: warning: exported const DockerfileTargetType should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type Options should have comment or be unexported (golint)
    • Line 41: warning: exported type CheckContext should have comment or be unexported (golint)
    • Line 48: warning: exported type CheckSelector should have comment or be unexported (golint)
    • Line 56: warning: exported const StatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: comment on exported type Report should be of the form "Report ..." (with optional leading article) (golint)
    • Line 74: warning: exported function NewReport should have comment or be unexported (golint)
    • Line 83: warning: exported type CheckState should have comment or be unexported (golint)
    • Line 91: warning: exported function Execute should have comment or be unexported (golint)
    • Line 254: warning: exported function ListChecks should have comment or be unexported (golint)
    • pkg/app/master/commands/profile/cli.go
    • Line 14: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported var CLI should have comment or be unexported (golint)
    • Line 115: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/docker/linter/check/id20008.go
    • Line 31: warning: exported type DeprecatedInstruction should have comment or be unexported (golint)
    • Line 35: warning: exported method DeprecatedInstruction.Run should have comment or be unexported (golint)
    • pkg/docker/dockerimage/dockerimage.go
    • Line 37: warning: exported type Package should have comment or be unexported (golint)
    • Line 50: warning: exported type CertsRefInfo should have comment or be unexported (golint)
    • Line 59: warning: exported type CertsInfo should have comment or be unexported (golint)
    • Line 68: warning: exported type SpecialPermsRefsInfo should have comment or be unexported (golint)
    • Line 74: warning: exported type SpecialPermsInfo should have comment or be unexported (golint)
    • Line 80: warning: exported type ImageReport should have comment or be unexported (golint)
    • Line 89: warning: exported type DuplicateFilesReport should have comment or be unexported (golint)
    • Line 97: warning: exported type LayerReport should have comment or be unexported (golint)
    • Line 114: warning: exported type InstructionSummary should have comment or be unexported (golint)
    • Line 122: warning: exported type ChangesetSummary should have comment or be unexported (golint)
    • Line 128: warning: exported type Layer should have comment or be unexported (golint)
    • Line 146: warning: exported method Layer.HasMatches should have comment or be unexported (golint)
    • Line 162: warning: exported type LayerStats should have comment or be unexported (golint)
    • Line 190: warning: exported type PackageStats should have comment or be unexported (golint)
    • Line 213: warning: exported type ChangeType should have comment or be unexported (golint)
    • Line 216: warning: exported const ChangeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 236: warning: exported const CDMDumpToConsole should have comment or be unexported (golint)
    • Line 238: warning: exported type ChangeDataMatcher should have comment or be unexported (golint)
    • Line 247: warning: exported type ChangeDataHashMatcher should have comment or be unexported (golint)
    • Line 254: warning: exported type ChangePathMatcher should have comment or be unexported (golint)
    • Line 261: warning: exported type UTF8Detector should have comment or be unexported (golint)
    • Line 271: warning: exported type UTF8DetectorMatcher should have comment or be unexported (golint)
    • Line 277: warning: exported type TarWriter should have comment or be unexported (golint)
    • Line 283: warning: exported function NewTarWriter should have comment or be unexported (golint)
    • Line 301: warning: exported method TarWriter.Close should have comment or be unexported (golint)
    • Line 317: warning: exported method UTF8Detector.Close should have comment or be unexported (golint)
    • Line 333: warning: exported method ChangeType.MarshalJSON should have comment or be unexported (golint)
    • Line 346: warning: exported method ChangeType.UnmarshalJSON should have comment or be unexported (golint)
    • Line 363: warning: exported const ContentTypeUTF8 should have comment (or a comment on this block) or be unexported (golint)
    • Line 367: warning: exported type ObjectMetadata should have comment or be unexported (golint)
    • Line 388: warning: exported type ObjectHistory should have comment or be unexported (golint)
    • Line 394: warning: exported type ChangeInfo should have comment or be unexported (golint)
    • Line 399: warning: exported type Changeset should have comment or be unexported (golint)
    • Line 457: warning: exported function LoadPackage should have comment or be unexported (golint)
    • Line 1558: warning: exported type TarReadCloser should have comment or be unexported (golint)
    • Line 1563: warning: exported function FileReaderFromTar should have comment or be unexported (golint)
    • Line 1602: warning: exported function FileDataFromTar should have comment or be unexported (golint)
    • Line 1638: warning: exported function LoadManifestObject should have comment or be unexported (golint)
    • Line 1642: warning: exported function LoadConfigObject should have comment or be unexported (golint)
    • Line 1646: warning: exported function LoadLayer should have comment or be unexported (golint)
    • pkg/errors/errors.go
    • Line 8: warning: exported type SensorError should have comment or be unexported (golint)
    • Line 15: warning: exported type WrappedError should have comment or be unexported (golint)
    • Line 38: warning: exported function SE should have comment or be unexported (golint)
    • pkg/docker/dockerimage/metadata.go
    • Line 9: warning: exported function IsDeletedFileObject should have comment or be unexported (golint)
    • Line 14: warning: exported function NormalizeFileObjectLayerPath should have comment or be unexported (golint)
    • Line 32: warning: exported type ManifestObject should have comment or be unexported (golint)
    • Line 60: warning: exported type V1ConfigObject should have comment or be unexported (golint)
    • Line 89: warning: exported type ConfigObject should have comment or be unexported (golint)
    • Line 100: warning: exported const TypeLayers should have comment or be unexported (golint)
    • Line 102: warning: exported type RootFS should have comment or be unexported (golint)
    • Line 133: warning: exported type ContainerConfig should have comment or be unexported (golint)
    • Line 163: warning: exported type HealthConfig should have comment or be unexported (golint)
    • pkg/docker/linter/check/id20022.go
    • Line 44: warning: exported type BadContainerCommands should have comment or be unexported (golint)
    • Line 49: warning: exported method BadContainerCommands.Run should have comment or be unexported (golint)
    • pkg/pdiscover/pevents_linux.go
    • Line 3: warning: package comment should be of the form "Package pdiscover ..." (golint)
    • Line 23: warning: comment on exported const PROC_EVENT_FORK should be of the form "PROC_EVENT_FORK ..." (golint)
    • Line 25: warning: exported const PROC_EVENT_EXEC should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported const PROC_EVENT_ALL should be of the form "PROC_EVENT_ALL ..." (golint)
    • pkg/app/master/container/execution.go
    • Line 27: warning: exported const ContainerNamePat should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type ExecutionState should have comment or be unexported (golint)
    • Line 35: warning: exported const XSNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ExecutionEvent should have comment or be unexported (golint)
    • Line 49: warning: exported const XECreated should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported type ExecutionEvenInfo should have comment or be unexported (golint)
    • Line 65: warning: exported type VolumeInfo should have comment or be unexported (golint)
    • Line 71: warning: exported type ExecutionOptions should have comment or be unexported (golint)
    • Line 82: warning: exported type ExecutionIO should have comment or be unexported (golint)
    • Line 88: warning: exported type Execution should have comment or be unexported (golint)
    • Line 112: warning: exported function NewExecution should have comment or be unexported (golint)
    • Line 565: warning: exported method Execution.ShowContainerLogs should have comment or be unexported (golint)
    • pkg/docker/dockerfile/ast/parser.go
    • Line 21: warning: exported const UnknownInstMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var ErrDockerfileUnknownInst should have comment or be unexported (golint)
    • Line 28: warning: exported type ParseError should have comment or be unexported (golint)
    • pkg/app/master/commands/clifvparser.go
    • Line 26: warning: exported const DefaultStateArchiveVolumeName should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported function IsInContainer should have comment or be unexported (golint)
    • Line 37: warning: exported function ArchiveState should have comment or be unexported (golint)
    • Line 53: warning: comment on exported function ParseDockerExposeOpt should be of the form "ParseDockerExposeOpt ..." (golint)
    • Line 80: warning: exported function ParsePortBindings should have comment or be unexported (golint)
    • Line 133: warning: exported function IsOneSpace should have comment or be unexported (golint)
    • Line 144: warning: exported var AllImageOverrides should have comment or be unexported (golint)
    • Line 154: warning: exported function ParseImageOverrides should have comment or be unexported (golint)
    • Line 173: warning: exported function ParseExec should have comment or be unexported (golint)
    • Line 190: warning: exported function ParseTokenSet should have comment or be unexported (golint)
    • Line 204: warning: exported function ParseTokenMap should have comment or be unexported (golint)
    • Line 223: warning: exported function ParseCheckTags should have comment or be unexported (golint)
    • Line 246: warning: exported function ParseTokenSetFile should have comment or be unexported (golint)
    • Line 284: warning: exported function ParseVolumeMounts should have comment or be unexported (golint)
    • Line 317: warning: exported function ParseVolumeMountsAsList should have comment or be unexported (golint)
    • Line 355: warning: exported function ParsePathPerms should have comment or be unexported (golint)
    • Line 426: warning: exported function ParsePaths should have comment or be unexported (golint)
    • Line 442: warning: exported function ValidateFiles should have comment or be unexported (golint)
    • Line 469: warning: exported function ParsePathsFile should have comment or be unexported (golint)
    • Line 513: warning: exported function ParseHTTPProbes should have comment or be unexported (golint)
    • Line 584: warning: exported function ParseHTTPProbesFile should have comment or be unexported (golint)
    • Line 681: warning: exported function ParseHTTPProbesPorts should have comment or be unexported (golint)
    • Line 701: warning: exported function ParseHTTPProbeExecFile should have comment or be unexported (golint)
    • Line 739: warning: exported function ParseEnvFile should have comment or be unexported (golint)
    • pkg/ipc/event/event.go
    • Line 28: warning: exported type Message should have comment or be unexported (golint)
    • Line 33: warning: exported method Message.UnmarshalJSON should have comment or be unexported (golint)
    • pkg/app/master/commands/cliflags.go
    • Line 227: warning: exported function GlobalFlags should have comment or be unexported (golint)
    • Line 300: warning: exported var CommonFlags should have comment or be unexported (golint)
    • Line 717: warning: exported function Cflag should have comment or be unexported (golint)
    • pkg/system/kernel_linux.go
    • Line 11: warning: exported type KernelFeatures should have comment or be unexported (golint)
    • Line 16: warning: exported method KernelFeatures.IsConfigured should have comment or be unexported (golint)
    • Line 24: warning: exported method KernelFeatures.RawValue should have comment or be unexported (golint)
    • Line 32: warning: exported method KernelFeatures.IsFlag should have comment or be unexported (golint)
    • Line 56: warning: exported method KernelFeatures.IsCompiled should have comment or be unexported (golint)
    • Line 60: warning: exported method KernelFeatures.IsLoadable should have comment or be unexported (golint)
    • Line 64: warning: exported function NewKernelFeatures should have comment or be unexported (golint)
    • Line 68: warning: exported function NewKernelFeaturesWithProps should have comment or be unexported (golint)
    • Line 103: warning: exported var DefaultKernelFeatures should have comment or be unexported (golint)
    • pkg/system/system_linux_amd64.go
    • Line 21: warning: exported function LookupCallName should have comment or be unexported (golint)
    • Line 25: warning: exported function LookupCallNumber should have comment or be unexported (golint)
    • Line 29: warning: exported function CallNumber should have comment or be unexported (golint)
    • Line 33: warning: exported function CallReturnValue should have comment or be unexported (golint)
    • Line 37: warning: exported function CallFirstParam should have comment or be unexported (golint)
    • Line 41: warning: exported function CallSecondParam should have comment or be unexported (golint)
    • pkg/util/fsutil/fsutil.go
    • Line 29: warning: comment on exported const FMSpecialBits should be of the form "FMSpecialBits ..." (golint)
    • Line 163: warning: exported function NewAccessInfo should have comment or be unexported (golint)
    • Line 816: warning: error should be the last type when returning multiple items (golint)
    • Line 1098: warning: exported function ArchiveFiles should have comment or be unexported (golint)
    • Line 1162: warning: exported function ArchiveDir should have comment or be unexported (golint)
    • pkg/app/master/commands/build/flags.go
    • Line 130: warning: exported var Flags should have comment or be unexported (golint)
    • Line 345: warning: exported function GetContainerBuildOptions should have comment or be unexported (golint)
    • Line 425: warning: exported function GetImageInstructions should have comment or be unexported (golint)
    • pkg/docker/dockerfile/parser/parser.go
    • Line 17: warning: exported var ErrInvalidDockerfile should have comment or be unexported (golint)
    • Line 24: warning: exported function FromFile should have comment or be unexported (golint)
    • Line 324: warning: exported function GetRefName should have comment or be unexported (golint)
    • pkg/docker/linter/check/check.go
    • Line 10: warning: exported type Context should have comment or be unexported (golint)
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported type Info should have comment or be unexported (golint)
    • Line 31: warning: exported const LabelLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported const LevelAny should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported const ScopeAll should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported method Info.Get should have comment or be unexported (golint)
    • Line 69: warning: exported type Result should have comment or be unexported (golint)
    • Line 77: warning: exported type Match should have comment or be unexported (golint)
    • Line 83: warning: exported type Runner should have comment or be unexported (golint)
    • Line 93: warning: exported var AllChecks should have comment or be unexported (golint)
    • pkg/system/os_shells.go
    • Line 14: warning: exported const OSShellsFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported var OSShellReferences should have comment or be unexported (golint)
    • Line 67: warning: exported var OSShells should have comment or be unexported (golint)
    • Line 147: warning: exported type OSShell should have comment or be unexported (golint)
    • Line 156: warning: exported function IsOSShellsFile should have comment or be unexported (golint)
    • Line 164: warning: exported function IsShellExePath should have comment or be unexported (golint)
    • Line 173: warning: exported function LookupShellByExePath should have comment or be unexported (golint)
    • Line 199: warning: exported function ParseOSShells should have comment or be unexported (golint)
    • Line 224: warning: exported function NewOSShellsFromData should have comment or be unexported (golint)
    • Line 229: warning: exported function NewOSShells should have comment or be unexported (golint)
    • pkg/app/master/commands/lint/cli.go
    • Line 11: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported var CLI should have comment or be unexported (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/docker/dockerfile/ast/line_parsers.go
    • Line 22: warning: exported type NameValError should have comment or be unexported (golint)
    • Line 32: warning: exported type OldFormatNameValError should have comment or be unexported (golint)
    • Line 42: warning: exported type NewFormatNameValError should have comment or be unexported (golint)
    • Line 53: warning: exported var ErrDockerfileNotStringArray should have comment or be unexported (golint)
    • pkg/app/master/commands/common.go
    • Line 16: warning: exported const ImagesStateRootPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type GenericParams should have comment or be unexported (golint)
    • Line 52: warning: exported const AppName should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported function DoArchiveState should have comment or be unexported (golint)
    • Line 90: warning: exported function CopyMetaArtifacts should have comment or be unexported (golint)
    • Line 121: warning: exported function ConfirmNetwork should have comment or be unexported (golint)
    • Line 139: warning: exported var CLI should have comment or be unexported (golint)
    • pkg/app/execontext.go
    • Line 14: warning: exported type ExecutionContext should have comment or be unexported (golint)
    • Line 19: warning: exported method ExecutionContext.Exit should have comment or be unexported (golint)
    • Line 24: warning: exported method ExecutionContext.AddCleanupHandler should have comment or be unexported (golint)
    • Line 38: warning: exported method ExecutionContext.FailOn should have comment or be unexported (golint)
    • Line 51: warning: exported function NewExecutionContext should have comment or be unexported (golint)
    • Line 59: warning: exported type Output should have comment or be unexported (golint)
    • Line 63: warning: exported function NewOutput should have comment or be unexported (golint)
    • Line 71: warning: exported function NoColor should have comment or be unexported (golint)
    • Line 75: warning: exported type OutVars should have comment or be unexported (golint)
    • Line 77: warning: exported method Output.LogDump should have comment or be unexported (golint)
    • Line 99: warning: exported method Output.Prompt should have comment or be unexported (golint)
    • Line 113: warning: exported method Output.Message should have comment or be unexported (golint)
    • Line 120: warning: exported method Output.State should have comment or be unexported (golint)
    • Line 168: warning: exported method Output.Info should have comment or be unexported (golint)
    • Line 192: warning: exported function ShowCommunityInfo should have comment or be unexported (golint)
    • pkg/docker/dockerignore/dockerignore.go
    • Line 21: warning: exported type Matcher should have comment or be unexported (golint)
    • Line 27: warning: exported method Matcher.Match should have comment or be unexported (golint)
    • Line 42: warning: exported function Load should have comment or be unexported (golint)
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/acounter/acounter.go
    • Line 7: warning: exported type Type should have comment or be unexported (golint)
    • Line 11: warning: exported method Type.Value should have comment or be unexported (golint)
    • Line 11: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 15: warning: exported method Type.Inc should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: exported method Type.Add should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • pkg/docker/linter/check/id20009.go
    • Line 29: warning: exported type StagelessInstruction should have comment or be unexported (golint)
    • Line 33: warning: exported method StagelessInstruction.Run should have comment or be unexported (golint)
    • pkg/certdiscover/certdiscover.go
    • Line 109: warning: exported function CertFileList should have comment or be unexported (golint)
    • Line 113: warning: exported function IsCertFile should have comment or be unexported (golint)
    • Line 118: warning: exported function IsCertDirPath should have comment or be unexported (golint)
    • Line 129: warning: exported function CertDirList should have comment or be unexported (golint)
    • Line 133: warning: exported function IsCertDir should have comment or be unexported (golint)
    • Line 138: warning: exported function CertExtraDirList should have comment or be unexported (golint)
    • Line 142: warning: exported function CertPKDirList should have comment or be unexported (golint)
    • Line 146: warning: exported function IsCertPKDir should have comment or be unexported (golint)
    • Line 151: warning: exported function IsCertPKDirPath should have comment or be unexported (golint)
    • Line 162: warning: exported function CACertFileList should have comment or be unexported (golint)
    • Line 166: warning: exported function IsCACertFile should have comment or be unexported (golint)
    • Line 171: warning: exported function CACertDirList should have comment or be unexported (golint)
    • Line 175: warning: exported function IsCACertDir should have comment or be unexported (golint)
    • Line 180: warning: exported function IsCACertDirPath should have comment or be unexported (golint)
    • Line 191: warning: exported function CACertPKFileList should have comment or be unexported (golint)
    • Line 195: warning: exported function IsCACertPKFile should have comment or be unexported (golint)
    • Line 200: warning: exported function IsCACertPKDir should have comment or be unexported (golint)
    • Line 205: warning: exported function IsCACertPKDirPath should have comment or be unexported (golint)
    • Line 216: warning: exported function CACertPKDirList should have comment or be unexported (golint)
    • Line 221: warning: exported const LanguageNomatch should have comment (or a comment on this block) or be unexported (golint)
    • Line 228: warning: exported const AppCertPackageName should have comment or be unexported (golint)
    • Line 231: warning: exported const AppCertPathSuffixPython should have comment (or a comment on this block) or be unexported (golint)
    • Line 238: warning: exported const AppCertPathMatcherPython should have comment (or a comment on this block) or be unexported (golint)
    • Line 252: warning: exported function IsAppCertFile should have comment or be unexported (golint)
    • Line 262: warning: exported function IsAppCertFileWithInfo should have comment or be unexported (golint)
    • Line 277: warning: exported function IsCertData should have comment or be unexported (golint)
    • Line 303: warning: exported function IsPrivateKeyData should have comment or be unexported (golint)
    • Line 320: warning: exported function IsCertHashName should have comment or be unexported (golint)
    • pkg/system/architecture.go
    • Line 3: warning: exported type ArchName should have comment or be unexported (golint)
    • Line 6: warning: exported const ArchNameUknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type MachineName should have comment or be unexported (golint)
    • Line 17: warning: exported const MachineNameNamei386 should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type ArchBits should have comment or be unexported (golint)
    • Line 28: warning: exported const ArchBits32 should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type ArchFamily should have comment or be unexported (golint)
    • Line 35: warning: exported const ArchFamilyX86 should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type ArchInfo should have comment or be unexported (golint)
    • Line 58: warning: exported var ArmFamily32Arch should have comment or be unexported (golint)
    • Line 64: warning: exported var ArmFamily64Arch should have comment or be unexported (golint)
    • Line 87: warning: exported function MachineToArchName should have comment or be unexported (golint)
    • Line 95: warning: exported function MachineToArch should have comment or be unexported (golint)
    • pkg/system/system.go
    • Line 8: warning: exported type SystemInfo should have comment or be unexported (golint)
    • Line 19: warning: exported type DistroInfo should have comment or be unexported (golint)
    • Line 25: warning: exported function ResolveUser should have comment or be unexported (golint)
    • Line 52: warning: exported function ResolveGroup should have comment or be unexported (golint)
    • pkg/app/master/commands/run/cli.go
    • Line 13: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type CommandParams should have comment or be unexported (golint)
    • Line 36: warning: exported function CommandFlagValues should have comment or be unexported (golint)
    • Line 80: warning: exported var CLI should have comment or be unexported (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/docker/buildpackinfo/buildpackinfo.go
    • Line 5: warning: exported const LabelKeyStackID should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported const StackHeroku18 should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported const VendorHeroku should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported const Entrypoint should have comment or be unexported (golint)
    • Line 26: warning: exported var Labels should have comment or be unexported (golint)
    • Line 34: warning: exported function HasBuildbackLabels should have comment or be unexported (golint)
    • pkg/app/master/commands/cliprompt.go
    • Line 29: warning: exported type InteractiveApp should have comment or be unexported (golint)
    • Line 36: warning: exported function NewInteractiveApp should have comment or be unexported (golint)
    • Line 160: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 164: 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 186: warning: exported method InteractiveApp.Run should have comment or be unexported (golint)
    • Line 190: warning: exported type CompleteValue should have comment or be unexported (golint)
    • Line 192: warning: exported type FlagSuggestions should have comment or be unexported (golint)
    • Line 197: warning: exported var CommandFlagSuggestions should have comment or be unexported (golint)
    • Line 199: warning: exported var CommandSuggestions should have comment or be unexported (golint)
    • Line 205: warning: exported var GlobalFlagSuggestions should have comment or be unexported (golint)
    • Line 223: warning: exported function FullFlagName should have comment or be unexported (golint)
    • Line 246: warning: exported function CompleteProgress should have comment or be unexported (golint)
    • Line 255: warning: exported function CompleteBool should have comment or be unexported (golint)
    • Line 259: warning: exported function CompleteTBool should have comment or be unexported (golint)
    • Line 263: warning: exported function CompleteContinueAfter should have comment or be unexported (golint)
    • Line 267: warning: exported function CompleteTarget should have comment or be unexported (golint)
    • Line 292: warning: exported function CompleteVolume should have comment or be unexported (golint)
    • Line 311: warning: exported function CompleteNetwork should have comment or be unexported (golint)
    • Line 330: warning: exported function CompleteFile should have comment or be unexported (golint)
    • pkg/app/master/inspectors/container/ipc/ipc.go
    • Line 21: warning: exported type Client should have comment or be unexported (golint)
    • Line 30: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 95: warning: exported method Client.Stop should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.SendCommand should have comment or be unexported (golint)
    • Line 129: warning: exported method Client.GetEvent should have comment or be unexported (golint)
    • pkg/app/master/version/version.go
    • Line 28: warning: exported type CheckVersionRequest should have comment or be unexported (golint)
    • Line 32: warning: exported type CheckVersionInfo should have comment or be unexported (golint)
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • pkg/pdiscover/pevents.go
    • Line 10: warning: exported type ProcEventFork should have comment or be unexported (golint)
    • Line 15: warning: exported type ProcEventExec should have comment or be unexported (golint)
    • Line 19: warning: exported type ProcEventExit should have comment or be unexported (golint)
    • Line 31: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 43: warning: exported function NewAllWatcher should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function NewWatcher should be of the form "NewWatcher ..." (golint)
    • Line 95: warning: comment on exported method Watcher.Close should be of the form "Close ..." (golint)
    • Line 114: warning: comment on exported method Watcher.Watch should be of the form "Watch ..." (golint)
    • Line 136: warning: exported method Watcher.WatchAll should have comment or be unexported (golint)
    • Line 144: warning: comment on exported method Watcher.RemoveWatch should be of the form "RemoveWatch ..." (golint)
    • pkg/docker/linter/check/id20013.go
    • Line 32: warning: exported type MalformedInstExecForm should have comment or be unexported (golint)
    • Line 36: warning: exported method MalformedInstExecForm.Run should have comment or be unexported (golint)
    • pkg/sysenv/sysenv_linux.go
    • Line 20: warning: exported function HasDSImageFlag should have comment or be unexported (golint)
    • Line 25: warning: exported function HasDockerEnvPath should have comment or be unexported (golint)
    • Line 30: warning: exported function HasContainerCgroups should have comment or be unexported (golint)
    • Line 38: warning: exported function InDSContainer should have comment or be unexported (golint)
    • Line 45: warning: exported function InContainer should have comment or be unexported (golint)
    • Line 57: warning: exported function IsPrivileged should have comment or be unexported (golint)
    • Line 72: warning: exported function WithAllCapabilities should have comment or be unexported (golint)
    • Line 87: warning: exported function Capabilities should have comment or be unexported (golint)
    • Line 112: warning: exported function IsDefaultCapSet should have comment or be unexported (golint)
    • Line 129: warning: exported var DefaultCapStrings should have comment or be unexported (golint)
    • Line 146: warning: exported var DefaultCapNums should have comment or be unexported (golint)
    • Line 163: warning: exported type SeccompModeName should have comment or be unexported (golint)
    • Line 166: warning: exported const SMDisabled should have comment (or a comment on this block) or be unexported (golint)
    • Line 182: warning: exported function SeccompMode should have comment or be unexported (golint)
    • pkg/docker/instruction/instruction.go
    • Line 30: warning: exported type Field should have comment or be unexported (golint)
    • Line 48: warning: exported type Format should have comment or be unexported (golint)
    • Line 132: warning: exported function IsKnown should have comment or be unexported (golint)
    • Line 138: warning: exported function SupportsJSONForm should have comment or be unexported (golint)
    • pkg/docker/linter/check/id20012.go
    • Line 35: warning: exported type EntrypointCmdShellForm should have comment or be unexported (golint)
    • Line 40: warning: exported method EntrypointCmdShellForm.Run should have comment or be unexported (golint)
    • pkg/docker/dockerutil/dockerutil.go
    • Line 22: warning: exported var ErrBadParam should have comment or be unexported (golint)
    • Line 34: warning: exported type BasicImageProps should have comment or be unexported (golint)
    • Line 40: warning: exported type ImageIdentity should have comment or be unexported (golint)
    • Line 48: warning: exported function APIImagesToIdentity should have comment or be unexported (golint)
    • Line 58: warning: exported function ImageToIdentity should have comment or be unexported (golint)
    • Line 82: warning: exported function CleanImageID should have comment or be unexported (golint)
    • Line 90: warning: exported function HasEmptyImage should have comment or be unexported (golint)
    • Line 95: warning: exported function HasImage should have comment or be unexported (golint)
    • Line 124: warning: exported function ListImages should have comment or be unexported (golint)
    • Line 182: warning: exported function BuildEmptyImage should have comment or be unexported (golint)
    • Line 227: warning: exported function SaveImage should have comment or be unexported (golint)
    • Line 306: warning: exported function HasVolume should have comment or be unexported (golint)
    • Line 344: warning: exported function DeleteVolume should have comment or be unexported (golint)
    • Line 375: warning: exported function CopyToVolume should have comment or be unexported (golint)
    • Line 469: warning: exported function GenStateDirsTar should have comment or be unexported (golint)
    • Line 507: warning: exported function CreateVolumeWithData should have comment or be unexported (golint)
    • Line 548: warning: exported function CopyFromContainer should have comment or be unexported (golint)
    • Line 614: warning: exported function PrepareContainerDataArchive should have comment or be unexported (golint)
    • Line 692: warning: exported function ListNetworks should have comment or be unexported (golint)
    • Line 722: warning: exported function ListVolumes should have comment or be unexported (golint)
    • pkg/system/os_release.go
    • Line 14: warning: exported const OSReleaseFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function IsOSReleaseFile should have comment or be unexported (golint)
    • Line 89: warning: exported method OsRelease.ParseOsRelease should have comment or be unexported (golint)
    • Line 106: warning: exported function NewOsRelease should have comment or be unexported (golint)
    • pkg/aflag/aflag.go
    • Line 8: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Type should have comment or be unexported (golint)
    • Line 17: warning: exported method Type.Value should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 21: warning: exported method Type.On should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 25: warning: exported method Type.Off should have comment or be unexported (golint)
    • Line 25: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported method Type.Set should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported method Type.IsOn should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 37: warning: exported method Type.IsOff should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: exported method Type.IsNone should have comment or be unexported (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 45: warning: exported method Type.Is should have comment or be unexported (golint)
    • Line 45: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 49: warning: exported method Type.Has should have comment or be unexported (golint)
    • Line 49: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • pkg/app/master/commands/clifvgetter.go
    • Line 21: warning: exported function GetContainerRunOptions should have comment or be unexported (golint)
    • Line 47: warning: exported function GetHTTPProbes should have comment or be unexported (golint)
    • Line 65: warning: exported function GetContinueAfter should have comment or be unexported (golint)
    • Line 100: warning: exported function GetContainerOverrides should have comment or be unexported (golint)
    • Line 165: warning: exported function GlobalFlagValues should have comment or be unexported (golint)
    • Line 185: warning: exported function GetDockerClientConfig should have comment or be unexported (golint)
    • pkg/report/command_report.go
    • Line 78: warning: exported type ContainerEntryInfo should have comment or be unexported (golint)
    • Line 87: warning: exported type ContainerFileInfo should have comment or be unexported (golint)
    • Line 92: warning: exported type BuildpackInfo should have comment or be unexported (golint)
    • Line 105: warning: comment on exported const OVBuildCommand should be of the form "OVBuildCommand ..." (golint)
    • Line 126: warning: comment on exported const OVProfileCommand should be of the form "OVProfileCommand ..." (golint)
    • Line 146: warning: comment on exported const OVXrayCommand should be of the form "OVXrayCommand ..." (golint)
    • Line 163: warning: comment on exported const OVLintCommand should be of the form "OVLintCommand ..." (golint)
    • Line 179: warning: comment on exported const OVContainerizeCommand should be of the form "OVContainerizeCommand ..." (golint)
    • Line 187: warning: comment on exported const OVConvertCommand should be of the form "OVConvertCommand ..." (golint)
    • Line 195: warning: comment on exported const OVEditCommand should be of the form "OVEditCommand ..." (golint)
    • Line 203: warning: comment on exported const OVDebugCommand should be of the form "OVDebugCommand ..." (golint)
    • Line 211: warning: comment on exported const OVProbeCommand should be of the form "OVProbeCommand ..." (golint)
    • Line 219: warning: comment on exported const OVServerCommand should be of the form "OVServerCommand ..." (golint)
    • Line 227: warning: comment on exported const OVRunCommand should be of the form "OVRunCommand ..." (golint)
    • Line 413: warning: exported method Command.ReportLocation should have comment or be unexported (golint)
    • Line 413: warning: receiver name p should be consistent with previous receiver name cmd for Command (golint)
    • Line 417: warning: receiver name p should be consistent with previous receiver name cmd for Command (golint)
    • Line 463: warning: receiver name p should be consistent with previous receiver name cmd for Command (golint)
    • pkg/app/master/config/config.go
    • Line 59: warning: exported type CBOBuildArg should have comment or be unexported (golint)
    • Line 83: warning: exported const ProtoHTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 91: warning: exported function IsProto should have comment or be unexported (golint)
    • Line 134: warning: exported const CAMProbe should have comment (or a comment on this block) or be unexported (golint)
    • pkg/docker/dockerimage/topobjects.go
    • Line 7: warning: exported type TopObjects should have comment or be unexported (golint)
    • Line 9: warning: exported function NewTopObjects should have comment or be unexported (golint)
    • Line 27: warning: exported method TopObjects.Push should have comment or be unexported (golint)
    • Line 32: warning: exported method TopObjects.Pop should have comment or be unexported (golint)
    • Line 41: warning: exported method TopObjects.List should have comment or be unexported (golint)
    • pkg/system/syscalls.go
    • Line 9: warning: exported const SyscallX86MinNum should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type NumberResolverFunc should have comment or be unexported (golint)
    • Line 15: warning: exported type NameResolverFunc should have comment or be unexported (golint)
    • Line 17: warning: exported function CallNumberResolver should have comment or be unexported (golint)
    • Line 32: warning: exported function CallNameResolver should have comment or be unexported (golint)
    • pkg/docker/linter/check/id20011.go
    • Line 31: warning: exported type MultipleCmdInstructions should have comment or be unexported (golint)
    • Line 35: warning: exported method MultipleCmdInstructions.Run should have comment or be unexported (golint)
    • pkg/app/master/inspectors/container/probes/http/wsclient.go
    • Line 14: warning: exported const ProtoWS should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type WebsocketClient should have comment or be unexported (golint)
    • Line 30: warning: exported type WebsocketMessage should have comment or be unexported (golint)
    • Line 35: warning: exported function NewWebsocketClient should have comment or be unexported (golint)
    • Line 53: warning: exported function IsValidWSProto should have comment or be unexported (golint)
    • Line 62: warning: exported method WebsocketClient.Connect should have comment or be unexported (golint)
    • Line 139: warning: exported method WebsocketClient.CheckConnection should have comment or be unexported (golint)
    • Line 158: warning: exported method WebsocketClient.WriteString should have comment or be unexported (golint)
    • Line 168: warning: exported method WebsocketClient.WriteBinary should have comment or be unexported (golint)
    • Line 178: warning: exported method WebsocketClient.Disconnect should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words