Preparing report...

Report for github.com/octohelm/cuemod

A+    Excellent!    Found 125 issues across 214 files

Tweet

gofmt99%

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!


gocyclo85%

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.

    • cuemod/pkg/modutil/internal/cmd/go/internals/modfetch/coderepo.go
    • Line 300: warning: cyclomatic complexity 41 of function (*codeRepo).convert() is high (> 15) (gocyclo)
    • Line 547: warning: cyclomatic complexity 27 of function (*codeRepo).validatePseudoVersion() is high (> 15) (gocyclo)
    • Line 707: warning: cyclomatic complexity 27 of function (*codeRepo).findDir() is high (> 15) (gocyclo)
    • Line 940: warning: cyclomatic complexity 23 of function (*codeRepo).Zip() is high (> 15) (gocyclo)
    • cuemod/pkg/modutil/internal/cmd/go/internals/modload/load.go
    • Line 186: warning: cyclomatic complexity 38 of function LoadPackages() is high (> 15) (gocyclo)
    • Line 807: warning: cyclomatic complexity 26 of function loadFromRoots() is high (> 15) (gocyclo)
    • Line 368: warning: cyclomatic complexity 26 of function resolveLocalPackage() is high (> 15) (gocyclo)
    • Line 990: warning: cyclomatic complexity 22 of function (*loader).applyPkgFlags() is high (> 15) (gocyclo)
    • Line 1056: warning: cyclomatic complexity 16 of function (*loader).load() is high (> 15) (gocyclo)
    • cuemod/pkg/extractor/golang/pkg_extractor.go
    • Line 375: warning: cyclomatic complexity 26 of function (*pkgExtractor).addFieldsFromAstStructType() is high (> 15) (gocyclo)
    • Line 286: warning: cyclomatic complexity 21 of function (*pkgExtractor).makeTypeFromAstType() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 20 of function (*pkgExtractor).load() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 20 of function (*pkgExtractor).extractGoFile() is high (> 15) (gocyclo)

golint47%

Golint is a linter for Go source code.

    • cuemod/pkg/cuex/translator/core/translator.go
    • Line 9: warning: exported type Translator should have comment or be unexported (golint)
    • Line 15: warning: exported type Translators should have comment or be unexported (golint)
    • Line 49: warning: exported method Translators.Marshal should have comment or be unexported (golint)
    • cuemod/pkg/extractor/crd/extractor.go
    • Line 35: warning: exported method Extractor.Name should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method Extractor.Detect should be of the form "Detect ..." (golint)
    • Line 44: warning: exported method Extractor.Extract should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/internals/lazyregexp/lazyre.go
    • Line 34: warning: exported method Regexp.FindSubmatch should have comment or be unexported (golint)
    • Line 38: warning: exported method Regexp.FindStringSubmatch should have comment or be unexported (golint)
    • Line 42: warning: exported method Regexp.FindStringSubmatchIndex should have comment or be unexported (golint)
    • Line 46: warning: exported method Regexp.ReplaceAllString should have comment or be unexported (golint)
    • Line 50: warning: exported method Regexp.FindString should have comment or be unexported (golint)
    • Line 54: warning: exported method Regexp.FindAllString should have comment or be unexported (golint)
    • Line 58: warning: exported method Regexp.MatchString should have comment or be unexported (golint)
    • Line 62: warning: exported method Regexp.SubexpNames should have comment or be unexported (golint)
    • cuemod/tools/fork/main.go
    • Line 81: warning: exported function TaskFor should have comment or be unexported (golint)
    • Line 113: warning: exported type Task should have comment or be unexported (golint)
    • Line 125: warning: exported method Task.Sync should have comment or be unexported (golint)
    • Line 179: warning: exported method Task.Scan should have comment or be unexported (golint)
    • cuemod/pkg/cuemod/mod.go
    • Line 14: warning: exported type Mod should have comment or be unexported (golint)
    • Line 36: warning: exported method Mod.LoadInfo should have comment or be unexported (golint)
    • Line 67: warning: exported method Mod.Resolved should have comment or be unexported (golint)
    • Line 71: warning: exported method Mod.SetRequire should have comment or be unexported (golint)
    • Line 98: warning: exported method Mod.ResolveImportPath should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/internals/objabi/flag.go
    • Line 19: warning: exported function Flagcount should have comment or be unexported (golint)
    • Line 23: warning: exported function Flagfn1 should have comment or be unexported (golint)
    • Line 27: warning: exported function Flagprint should have comment or be unexported (golint)
    • Line 32: warning: exported function Flagparse should have comment or be unexported (golint)
    • Line 77: warning: exported function AddVersionFlag should have comment or be unexported (golint)
    • cuemod/pkg/cuemod/modfile/path_may_with_version.go
    • Line 8: warning: exported function ParsePathMayWithVersion should have comment or be unexported (golint)
    • Line 28: warning: exported type PathMayWithVersion should have comment or be unexported (golint)
    • Line 33: warning: exported method PathMayWithVersion.UnmarshalText should have comment or be unexported (golint)
    • Line 42: warning: exported method PathMayWithVersion.MarshalText should have comment or be unexported (golint)
    • Line 46: warning: exported method PathMayWithVersion.IsLocalReplace should have comment or be unexported (golint)
    • cuemod/pkg/cuemod/options.go
    • Line 5: warning: exported type Opts should have comment or be unexported (golint)
    • Line 10: warning: exported type OptFn should have comment or be unexported (golint)
    • Line 12: warning: exported function OptUpgrade should have comment or be unexported (golint)
    • Line 18: warning: exported function OptVerbose should have comment or be unexported (golint)
    • Line 26: warning: exported function OptsFromContext should have comment or be unexported (golint)
    • Line 33: warning: exported function WithOpts should have comment or be unexported (golint)
    • cuemod/pkg/apis/release/v1alpha1/types.go
    • Line 14: warning: comment on exported type Release should be of the form "Release ..." (with optional leading article) (golint)
    • Line 23: warning: exported type ReleaseTemplate should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type ReleaseList should be of the form "ReleaseList ..." (with optional leading article) (golint)
    • Line 38: warning: exported type ReleaseSpec should have comment or be unexported (golint)
    • Line 40: warning: exported method ReleaseSpec.DeepCopy should have comment or be unexported (golint)
    • Line 50: warning: exported type ReleaseStatus should have comment or be unexported (golint)
    • Line 54: warning: exported type Resource should have comment or be unexported (golint)
    • cuemod/pkg/cuex/eval.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported type Encoding should have comment or be unexported (golint)
    • Line 18: warning: exported const JSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function Eval should have comment or be unexported (golint)
    • cuemod/pkg/extractor/golang/std/list.go
    • Line 1: warning: package comment should be of the form "Package std ..." (golint)
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 25: warning: exported function IsStd should have comment or be unexported (golint)
    • cuemod/pkg/apiutil/crd.go
    • Line 21: warning: exported type CustomResourceDefinition should have comment or be unexported (golint)
    • Line 29: warning: exported function ToCRD should have comment or be unexported (golint)
    • Line 74: warning: exported function ApplyCRDs should have comment or be unexported (golint)
    • cuemod/pkg/cuemod/context.go
    • Line 16: warning: exported function ContextFor should have comment or be unexported (golint)
    • Line 42: warning: exported type Context should have comment or be unexported (golint)
    • Line 47: warning: exported method Context.Cleanup should have comment or be unexported (golint)
    • Line 64: warning: exported method Context.ListCue should have comment or be unexported (golint)
    • Line 111: warning: exported method Context.Eval should have comment or be unexported (golint)
    • Line 121: warning: exported method Context.Get should have comment or be unexported (golint)
    • Line 128: warning: exported method Context.Resolve should have comment or be unexported (golint)
    • Line 144: warning: exported method Context.CueModRoot should have comment or be unexported (golint)
    • Line 176: warning: exported method Context.Build should have comment or be unexported (golint)
    • cuemod/pkg/cuemoperator/controller_release.go
    • Line 24: warning: exported type ReleaseReconciler should have comment or be unexported (golint)
    • Line 31: warning: exported method ReleaseReconciler.SetupWithManager should have comment or be unexported (golint)
    • Line 52: warning: exported method ReleaseReconciler.Reconcile should have comment or be unexported (golint)
    • cuemod/pkg/cuex/builtin/builtins.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported function IsBuiltIn should have comment or be unexported (golint)
    • cuemod/pkg/kubernetes/client.go
    • Line 31: warning: exported function NewClientForContext should have comment or be unexported (golint)
    • Line 50: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 54: warning: exported type KubeClient should have comment or be unexported (golint)
    • Line 59: warning: exported method KubeClient.Info should have comment or be unexported (golint)
    • Line 63: warning: exported method KubeClient.AllListableGroupVersionKinds should have comment or be unexported (golint)
    • Line 67: warning: exported method KubeClient.ListAll should have comment or be unexported (golint)
    • cuemod/pkg/extractor/golang/extractor.go
    • Line 31: warning: exported method Extractor.Name should have comment or be unexported (golint)
    • Line 35: warning: exported method Extractor.Detect should have comment or be unexported (golint)
    • Line 43: warning: exported method Extractor.Extract should have comment or be unexported (golint)
    • cuemod/pkg/extractor/core/util.go
    • Line 17: warning: exported function SafeIdentifierFromImportPath should have comment or be unexported (golint)
    • Line 60: warning: exported function Extract should have comment or be unexported (golint)
    • Line 68: warning: exported function ExtractWithType should have comment or be unexported (golint)
    • Line 129: warning: exported function NewTripleBytes should have comment or be unexported (golint)
    • Line 137: warning: exported function NewBytes should have comment or be unexported (golint)
    • cuemod/pkg/extractor/core/extractor.go
    • Line 18: warning: exported type Extractor should have comment or be unexported (golint)
    • Line 30: warning: exported var SharedExtractors should have comment or be unexported (golint)
    • Line 32: warning: exported function Register should have comment or be unexported (golint)
    • Line 36: warning: exported type Extractors should have comment or be unexported (golint)
    • Line 38: warning: exported method Extractors.Register should have comment or be unexported (golint)
    • Line 42: warning: exported method Extractors.Detect should have comment or be unexported (golint)
    • Line 51: warning: exported method Extractors.ExtractToDir should have comment or be unexported (golint)
    • cuemod/pkg/apis/release/crd.go
    • Line 9: warning: exported var CRDs should have comment or be unexported (golint)
    • Line 13: warning: exported function ReleaseCustomResourceDefinition should have comment or be unexported (golint)
    • cuemod/pkg/cuemoperator/controller.go
    • Line 8: warning: exported function SetupWithManager should have comment or be unexported (golint)
    • Line 20: warning: exported type Reconciler should have comment or be unexported (golint)
    • Line 24: warning: exported function SetupReconcilerWithManager should have comment or be unexported (golint)
    • cuemod/pkg/modutil/util.go
    • Line 15: warning: exported type Module should have comment or be unexported (golint)
    • Line 23: warning: exported function RepoRootForImportPath should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/go/internals/modfetch/coderepo.go
    • Line 366: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 399: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 478: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 616: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cuemod/pkg/cuemod/build.go
    • Line 15: warning: exported type OptionFunc should have comment or be unexported (golint)
    • Line 17: warning: exported function OptRoot should have comment or be unexported (golint)
    • Line 23: warning: exported type ImportFunc should have comment or be unexported (golint)
    • Line 25: warning: exported function OptImportFunc should have comment or be unexported (golint)
    • Line 55: warning: exported type Instance should have comment or be unexported (golint)
    • Line 57: warning: exported function Build should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/go/internals/vcs/vcs.go
    • Line 33: warning: comment on exported type Cmd should be of the form "Cmd ..." (with optional leading article) (golint)
    • Line 62: warning: exported method Cmd.IsSecure should have comment or be unexported (golint)
    • Line 503: warning: comment on exported method Cmd.TagSync should be of the form "TagSync ..." (golint)
    • Line 795: warning: exported const IgnoreMod should have comment (or a comment on this block) or be unexported (golint)
    • cuemod/pkg/kubernetes/manifest/filter.go
    • Line 9: warning: exported function Filter should have comment or be unexported (golint)
    • Line 23: warning: exported type Matcher should have comment or be unexported (golint)
    • Line 45: warning: exported method Matchers.IgnoreString should have comment or be unexported (golint)
    • Line 66: warning: exported function StrExps should have comment or be unexported (golint)
    • Line 88: warning: exported function MustStrExps should have comment or be unexported (golint)
    • Line 105: warning: exported type NegMatcher should have comment or be unexported (golint)
    • Line 109: warning: exported method NegMatcher.MatchString should have comment or be unexported (golint)
    • Line 113: warning: exported method NegMatcher.IgnoreString should have comment or be unexported (golint)
    • cuemod/pkg/kubernetes/manifest/manifest.go
    • Line 13: warning: exported function Annotated should have comment or be unexported (golint)
    • Line 27: warning: exported type Object should have comment or be unexported (golint)
    • Line 28: warning: exported type ObjectList should have comment or be unexported (golint)
    • Line 30: warning: exported function ObjectFromRuntimeObject should have comment or be unexported (golint)
    • Line 38: warning: exported function ObjectListFromRuntimeObject should have comment or be unexported (golint)
    • Line 46: warning: exported function DeepCopy should have comment or be unexported (golint)
    • Line 50: warning: exported function Identity should have comment or be unexported (golint)
    • Line 60: warning: exported type List should have comment or be unexported (golint)
    • Line 62: warning: exported method List.DeepCopy should have comment or be unexported (golint)
    • Line 69: warning: exported method List.Orphaned should have comment or be unexported (golint)
    • Line 89: warning: exported function KindName should have comment or be unexported (golint)
    • Line 93: warning: exported function NewForGroupVersionKind should have comment or be unexported (golint)
    • Line 99: warning: exported function NewListForGroupVersionKind should have comment or be unexported (golint)
    • cuemod/pkg/plugins/kube/process.go
    • Line 17: warning: exported type Opts should have comment or be unexported (golint)
    • Line 22: warning: exported function ReleaseFromJSONRaw should have comment or be unexported (golint)
    • Line 32: warning: exported function Process should have comment or be unexported (golint)
    • Line 40: warning: exported type LoadResult should have comment or be unexported (golint)
    • Line 45: warning: exported method LoadResult.Connect should have comment or be unexported (golint)
    • cuemod/pkg/cuex/format/format.go
    • Line 15: warning: comment on exported type FormatOpts should be of the form "FormatOpts ..." (with optional leading article) (golint)
    • Line 77: warning: exported function Format should have comment or be unexported (golint)
    • cuemod/pkg/cuemod/path.go
    • Line 12: warning: exported function PathFor should have comment or be unexported (golint)
    • Line 23: warning: exported type Path should have comment or be unexported (golint)
    • Line 29: warning: exported type ReplaceRule should have comment or be unexported (golint)
    • Line 34: warning: exported method Path.WithReplace should have comment or be unexported (golint)
    • Line 42: warning: exported method Path.SymlinkOrImport should have comment or be unexported (golint)
    • Line 113: warning: exported method Path.ImportPath should have comment or be unexported (golint)
    • Line 120: warning: exported method Path.ImportPathDir should have comment or be unexported (golint)
    • Line 127: warning: exported method Path.ResolvedImportPath should have comment or be unexported (golint)
    • Line 131: warning: exported method Path.RepoRootDir should have comment or be unexported (golint)
    • cuemod/pkg/extractor/helm/extractor.go
    • Line 30: warning: exported method Extractor.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method Extractor.Detect should have comment or be unexported (golint)
    • Line 42: warning: exported method Extractor.Extract should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/internals/objabi/funcdata.go
    • Line 14: warning: don't use underscores in Go names; const PCDATA_UnsafePoint should be PCDATAUnsafePoint (golint)
    • Line 14: warning: exported const PCDATA_UnsafePoint should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; const PCDATA_StackMapIndex should be PCDATAStackMapIndex (golint)
    • Line 16: warning: don't use underscores in Go names; const PCDATA_InlTreeIndex should be PCDATAInlTreeIndex (golint)
    • Line 18: warning: don't use underscores in Go names; const FUNCDATA_ArgsPointerMaps should be FUNCDATAArgsPointerMaps (golint)
    • Line 19: warning: don't use underscores in Go names; const FUNCDATA_LocalsPointerMaps should be FUNCDATALocalsPointerMaps (golint)
    • Line 20: warning: don't use underscores in Go names; const FUNCDATA_StackObjects should be FUNCDATAStackObjects (golint)
    • Line 21: warning: don't use underscores in Go names; const FUNCDATA_InlTree should be FUNCDATAInlTree (golint)
    • Line 22: warning: don't use underscores in Go names; const FUNCDATA_OpenCodedDeferInfo should be FUNCDATAOpenCodedDeferInfo (golint)
    • Line 34: warning: don't use underscores in Go names; const PCDATA_UnsafePointSafe should be PCDATAUnsafePointSafe (golint)
    • Line 35: warning: don't use underscores in Go names; const PCDATA_UnsafePointUnsafe should be PCDATAUnsafePointUnsafe (golint)
    • Line 42: warning: don't use underscores in Go names; const PCDATA_Restart1 should be PCDATARestart1 (golint)
    • Line 43: warning: don't use underscores in Go names; const PCDATA_Restart2 should be PCDATARestart2 (golint)
    • Line 46: warning: don't use underscores in Go names; const PCDATA_RestartAtEntry should be PCDATARestartAtEntry (golint)
    • cuemod/pkg/cuex/build.go
    • Line 8: warning: exported function InstanceFromRaw should have comment or be unexported (golint)
    • Line 20: warning: exported function InstanceFromTemplateAndOverwrites should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/internals/execabs/execabs.go
    • Line 22: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 25: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 26: warning: exported type Error should have comment or be unexported (golint)
    • Line 27: warning: exported type ExitError should have comment or be unexported (golint)
    • Line 34: warning: exported function LookPath should have comment or be unexported (golint)
    • Line 59: warning: exported function CommandContext should have comment or be unexported (golint)
    • Line 66: warning: exported function Command should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/internals/objabi/stack.go
    • Line 10: warning: exported const STACKSYSTEM should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported const StackPreempt should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported var StackGuard should be of the form "StackGuard ..." (golint)
    • Line 22: warning: exported var StackLimit should have comment or be unexported (golint)
    • cuemod/pkg/kubernetes/manifest/process.go
    • Line 7: warning: exported function ProcessResources should have comment or be unexported (golint)
    • Line 37: warning: exported function Process should have comment or be unexported (golint)
    • Line 72: warning: exported type ProcessFunc should have comment or be unexported (golint)
    • Line 74: warning: exported function ProcessManifests should have comment or be unexported (golint)
    • cuemod/pkg/cuemod/cache.go
    • Line 35: warning: exported const ModSumFilename should have comment or be unexported (golint)
    • Line 137: warning: exported type VersionFixer should have comment or be unexported (golint)
    • Line 231: 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)
    • cuemod/pkg/extractor/register.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported function Detect should have comment or be unexported (golint)
    • Line 18: warning: exported function ExtractToDir should have comment or be unexported (golint)
    • cuemod/pkg/extractor/jsonnet/extractor.go
    • Line 22: warning: exported method Extractor.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method Extractor.Detect should have comment or be unexported (golint)
    • Line 53: warning: exported method Extractor.Extract should have comment or be unexported (golint)
    • cuemod/internal/version/version.go
    • Line 3: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 8: warning: exported var Version should have comment or be unexported (golint)
    • cuemod/cmd/cuem-operator/main.go
    • Line 35: 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)
    • cuemod/pkg/modutil/internal/cmd/internals/objabi/funcid.go
    • Line 15: warning: don't use underscores in Go names; const FuncID_normal should be FuncIDNormal (golint)
    • Line 15: warning: exported const FuncID_normal should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; const FuncID_runtime_main should be FuncIDRuntimeMain (golint)
    • Line 17: warning: don't use underscores in Go names; const FuncID_goexit should be FuncIDGoexit (golint)
    • Line 18: warning: don't use underscores in Go names; const FuncID_jmpdefer should be FuncIDJmpdefer (golint)
    • Line 19: warning: don't use underscores in Go names; const FuncID_mcall should be FuncIDMcall (golint)
    • Line 20: warning: don't use underscores in Go names; const FuncID_morestack should be FuncIDMorestack (golint)
    • Line 21: warning: don't use underscores in Go names; const FuncID_mstart should be FuncIDMstart (golint)
    • Line 22: warning: don't use underscores in Go names; const FuncID_rt0_go should be FuncIDRt0Go (golint)
    • Line 23: warning: don't use underscores in Go names; const FuncID_asmcgocall should be FuncIDAsmcgocall (golint)
    • Line 24: warning: don't use underscores in Go names; const FuncID_sigpanic should be FuncIDSigpanic (golint)
    • Line 25: warning: don't use underscores in Go names; const FuncID_runfinq should be FuncIDRunfinq (golint)
    • Line 26: warning: don't use underscores in Go names; const FuncID_gcBgMarkWorker should be FuncIDGcBgMarkWorker (golint)
    • Line 27: warning: don't use underscores in Go names; const FuncID_systemstack_switch should be FuncIDSystemstackSwitch (golint)
    • Line 28: warning: don't use underscores in Go names; const FuncID_systemstack should be FuncIDSystemstack (golint)
    • Line 29: warning: don't use underscores in Go names; const FuncID_cgocallback should be FuncIDCgocallback (golint)
    • Line 30: warning: don't use underscores in Go names; const FuncID_gogo should be FuncIDGogo (golint)
    • Line 31: warning: don't use underscores in Go names; const FuncID_externalthreadhandler should be FuncIDExternalthreadhandler (golint)
    • Line 32: warning: don't use underscores in Go names; const FuncID_debugCallV1 should be FuncIDDebugCallV1 (golint)
    • Line 33: warning: don't use underscores in Go names; const FuncID_gopanic should be FuncIDGopanic (golint)
    • Line 34: warning: don't use underscores in Go names; const FuncID_panicwrap should be FuncIDPanicwrap (golint)
    • Line 35: warning: don't use underscores in Go names; const FuncID_handleAsyncEvent should be FuncIDHandleAsyncEvent (golint)
    • Line 36: warning: don't use underscores in Go names; const FuncID_asyncPreempt should be FuncIDAsyncPreempt (golint)
    • Line 37: warning: don't use underscores in Go names; const FuncID_wrapper should be FuncIDWrapper (golint)
    • Line 40: warning: comment on exported function GetFuncID should be of the form "GetFuncID ..." (golint)
    • cuemod/pkg/modutil/internal/cmd/go/internals/base/base.go
    • Line 54: warning: exported var Go should have comment or be unexported (golint)
    • Line 95: warning: exported method Command.Usage should have comment or be unexported (golint)
    • Line 110: warning: exported function AtExit should have comment or be unexported (golint)
    • Line 114: warning: exported function Exit should have comment or be unexported (golint)
    • Line 121: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 126: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 131: warning: exported function ExitIfErrors should have comment or be unexported (golint)
    • Line 140: warning: exported function SetExitStatus should have comment or be unexported (golint)
    • Line 148: warning: exported function GetExitStatus should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/go/internals/modload/init.go
    • Line 43: warning: exported var Target should have comment or be unexported (golint)
    • Line 66: warning: exported type Root should have comment or be unexported (golint)
    • Line 100: warning: exported function BinDir should have comment or be unexported (golint)
    • Line 345: warning: exported var ErrNoModRoot should have comment or be unexported (golint)
    • Line 622: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1068: warning: exported function TrimGoSum should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/internals/objabi/util.go
    • Line 24: warning: exported var GOROOT should have comment or be unexported (golint)
    • Line 38: warning: exported const ElfRelocOffset should have comment (or a comment on this block) or be unexported (golint)
    • Line 122: warning: exported function Getgoextlinkenabled should have comment or be unexported (golint)
    • Line 139: warning: comment on exported var Framepointer_enabled should be of the form "Framepointer_enabled ..." (golint)
    • Line 140: warning: don't use underscores in Go names; var Framepointer_enabled should be FramepointerEnabled (golint)
    • Line 164: warning: don't use underscores in Go names; var Fieldtrack_enabled should be FieldtrackEnabled (golint)
    • Line 164: warning: exported var Fieldtrack_enabled should have comment or be unexported (golint)
    • Line 165: warning: don't use underscores in Go names; var Preemptibleloops_enabled should be PreemptibleloopsEnabled (golint)
    • Line 166: warning: don't use underscores in Go names; var Staticlockranking_enabled should be StaticlockrankingEnabled (golint)
    • Line 167: warning: don't use underscores in Go names; var Regabi_enabled should be RegabiEnabled (golint)
    • Line 186: warning: exported function DefaultExpstring should have comment or be unexported (golint)
    • Line 190: warning: exported function Expstring should have comment or be unexported (golint)
    • cuemod/pkg/modutil/internal/cmd/go/internals/modload/import.go
    • Line 30: warning: exported type ImportMissingError should have comment or be unexported (golint)
    • Line 88: warning: exported method ImportMissingError.ImportPath should have comment or be unexported (golint)
    • Line 101: warning: exported method AmbiguousImportError.ImportPath should have comment or be unexported (golint)
    • Line 185: warning: exported method ImportMissingSumError.ImportPath should have comment or be unexported (golint)
    • Line 427: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cuemod/pkg/modutil/internal/cmd/go/internals/search/search.go
    • Line 49: warning: comment on exported method Match.IsLiteral should be of the form "IsLiteral ..." (golint)
    • Line 56: warning: comment on exported method Match.IsLocal should be of the form "IsLocal ..." (golint)
    • Line 62: warning: comment on exported method Match.IsMeta should be of the form "IsMeta ..." (golint)
    • Line 208: warning: exported function SetModRoot should have comment or be unexported (golint)
    • Line 333: warning: comment on exported function TreeCanMatchPattern should be of the form "TreeCanMatchPattern ..." (golint)
    • Line 348: warning: comment on exported function MatchPattern should be of the form "MatchPattern ..." (golint)
    • cuemod/pkg/cuemod/modfile/modfile.go
    • Line 14: warning: exported const ModFilename should have comment or be unexported (golint)
    • Line 16: warning: exported type ModVersion should have comment or be unexported (golint)
    • Line 21: warning: exported type Require should have comment or be unexported (golint)
    • Line 26: warning: exported type ModFile should have comment or be unexported (golint)
    • Line 41: warning: exported type ReplaceTarget should have comment or be unexported (golint)
    • Line 50: warning: exported method ModFile.Bytes should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words