Preparing report...

Report for github.com/spf13/hugo

A+    Excellent!    Found 196 issues across 705 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!


golint80%

Golint is a linter for Go source code.

    • hugo/modules/collect.go
    • Line 45: warning: exported var ErrNotExist should have comment or be unexported (golint)
    • Line 68: warning: exported method Client.Collect should have comment or be unexported (golint)
    • Line 115: warning: exported type ModulesConfig should have comment or be unexported (golint)
    • hugo/hugofs/glob/glob.go
    • Line 44: warning: exported function GetGlob should have comment or be unexported (golint)
    • Line 66: warning: exported function NormalizePath should have comment or be unexported (golint)
    • hugo/hugofs/files/classifier.go
    • Line 30: warning: comment on exported const FilenamePackageHugoJSON should be of the form "FilenamePackageHugoJSON ..." (golint)
    • Line 32: warning: comment on exported const FilenamePackageJSON should be of the form "FilenamePackageJSON ..." (golint)
    • Line 68: warning: exported function IsContentFile should have comment or be unexported (golint)
    • Line 72: warning: exported function IsHTMLFile should have comment or be unexported (golint)
    • Line 76: warning: exported function IsContentExt should have comment or be unexported (golint)
    • Line 80: warning: exported type ContentClass should have comment or be unexported (golint)
    • Line 83: warning: exported const ContentClassLeaf should have comment (or a comment on this block) or be unexported (golint)
    • Line 89: warning: exported method ContentClass.IsBundle should have comment or be unexported (golint)
    • Line 93: warning: exported function ClassifyContentFile should have comment or be unexported (golint)
    • Line 166: warning: exported const ComponentFolderArchetypes should have comment (or a comment on this block) or be unexported (golint)
    • Line 179: warning: exported var JsConfigFolderMountPrefix should have comment or be unexported (golint)
    • Line 213: warning: exported function IsComponentFolder should have comment or be unexported (golint)
    • hugo/markup/converter/hooks/hooks.go
    • Line 24: warning: exported type AttributesProvider should have comment or be unexported (golint)
    • Line 28: warning: exported type LinkContext should have comment or be unexported (golint)
    • Line 36: warning: exported type LinkRenderer should have comment or be unexported (golint)
    • Line 66: warning: exported type Renderers should have comment or be unexported (golint)
    • Line 72: warning: exported method Renderers.Eq should have comment or be unexported (golint)
    • Line 110: warning: exported method Renderers.IsZero should have comment or be unexported (golint)
    • hugo/hugofs/createcounting_fs.go
    • Line 36: warning: exported function NewCreateCountingFs should have comment or be unexported (golint)
    • Line 78: warning: receiver name fs should be consistent with previous receiver name c for createCountingFs (golint)
    • Line 85: warning: receiver name fs should be consistent with previous receiver name c for createCountingFs (golint)
    • Line 93: warning: receiver name fs should be consistent with previous receiver name c for createCountingFs (golint)
    • hugo/resources/resource/resourcetypes.go
    • Line 56: warning: exported type ImageOps should have comment or be unexported (golint)
    • Line 69: warning: exported type ResourceTypeProvider should have comment or be unexported (golint)
    • Line 76: warning: exported type ResourceTypesProvider should have comment or be unexported (golint)
    • Line 81: warning: exported type MediaTypeProvider should have comment or be unexported (golint)
    • Line 86: warning: exported type ResourceLinksProvider should have comment or be unexported (golint)
    • Line 94: warning: exported type ResourceMetaProvider should have comment or be unexported (golint)
    • Line 107: warning: exported type ResourceParamsProvider should have comment or be unexported (golint)
    • Line 112: warning: exported type ResourceDataProvider should have comment or be unexported (golint)
    • Line 161: warning: exported type ReadSeekCloserProvider should have comment or be unexported (golint)
    • Line 200: warning: exported function NewResourceTypesProvider should have comment or be unexported (golint)
    • Line 212: warning: exported function NewLanguageProvider should have comment or be unexported (golint)
    • hugo/hugolib/page__output.go
    • Line 148: warning: receiver name p should be consistent with previous receiver name o for pageOutput (golint)
    • Line 157: warning: receiver name p should be consistent with previous receiver name o for pageOutput (golint)
    • hugo/parser/lowercase_camel_json.go
    • Line 30: warning: comment on exported type LowerCaseCamelJSONMarshaller should be of the form "LowerCaseCamelJSONMarshaller ..." (with optional leading article) (golint)
    • Line 35: warning: exported method LowerCaseCamelJSONMarshaller.MarshalJSON should have comment or be unexported (golint)
    • hugo/hugofs/walk.go
    • Line 31: warning: exported type WalkFunc should have comment or be unexported (golint)
    • Line 32: warning: exported type WalkHook should have comment or be unexported (golint)
    • Line 35: warning: exported type Walkway should have comment or be unexported (golint)
    • Line 57: warning: exported type WalkwayConfig should have comment or be unexported (golint)
    • Line 73: warning: exported function NewWalkway should have comment or be unexported (golint)
    • Line 105: warning: exported method Walkway.Walk should have comment or be unexported (golint)
    • hugo/parser/pageparser/pageparser.go
    • Line 43: warning: exported type ContentFrontMatter should have comment or be unexported (golint)
    • Line 82: warning: exported function FormatFromFrontMatterType should have comment or be unexported (golint)
    • Line 123: warning: comment on exported method Iterator.Next should be of the form "Next ..." (golint)
    • Line 144: warning: comment on exported method Iterator.Backup should be of the form "Backup ..." (golint)
    • Line 152: warning: comment on exported method Iterator.IsValueNext should be of the form "IsValueNext ..." (golint)
    • Line 158: warning: comment on exported method Iterator.Peek should be of the form "Peek ..." (golint)
    • hugo/tpl/internal/resourcehelpers/helpers.go
    • Line 28: warning: comment on exported function ResolveIfFirstArgIsString should be of the form "ResolveIfFirstArgIsString ..." (golint)
    • Line 43: warning: comment on exported function ResolveArgs should be of the form "ResolveArgs ..." (golint)
    • hugo/resources/resource_spec.go
    • Line 48: warning: exported function NewSpec should have comment or be unexported (golint)
    • Line 106: warning: exported type Spec should have comment or be unexported (golint)
    • Line 133: warning: exported type PostBuildAssets should have comment or be unexported (golint)
    • Line 139: warning: exported method Spec.New should have comment or be unexported (golint)
    • Line 143: warning: exported method Spec.CacheStats should have comment or be unexported (golint)
    • Line 161: warning: exported method Spec.ClearCaches should have comment or be unexported (golint)
    • Line 166: warning: exported method Spec.DeleteBySubstring should have comment or be unexported (golint)
    • Line 170: warning: receiver name s should be consistent with previous receiver name r for Spec (golint)
    • hugo/hugolib/content_map.go
    • Line 859: warning: receiver name c should be consistent with previous receiver name t for contentTrees (golint)
    • Line 866: warning: receiver name c should be consistent with previous receiver name t for contentTrees (golint)
    • Line 873: warning: receiver name c should be consistent with previous receiver name t for contentTrees (golint)
    • Line 882: warning: receiver name c should be consistent with previous receiver name t for contentTrees (golint)
    • hugo/resources/postpub/postpub.go
    • Line 29: warning: exported type PostPublishedResource should have comment or be unexported (golint)
    • Line 41: warning: exported const PostProcessPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported function NewPostPublishResource should have comment or be unexported (golint)
    • Line 52: warning: comment on exported type PostPublishResource should be of the form "PostPublishResource ..." (with optional leading article) (golint)
    • Line 62: warning: exported method PostPublishResource.Permalink should have comment or be unexported (golint)
    • Line 66: warning: exported method PostPublishResource.RelPermalink should have comment or be unexported (golint)
    • Line 70: warning: exported method PostPublishResource.Origin should have comment or be unexported (golint)
    • Line 74: warning: exported method PostPublishResource.GetFieldString should have comment or be unexported (golint)
    • Line 141: warning: exported method PostPublishResource.Data should have comment or be unexported (golint)
    • Line 149: warning: exported method PostPublishResource.MediaType should have comment or be unexported (golint)
    • Line 154: warning: exported method PostPublishResource.ResourceType should have comment or be unexported (golint)
    • Line 158: warning: exported method PostPublishResource.Name should have comment or be unexported (golint)
    • Line 162: warning: exported method PostPublishResource.Title should have comment or be unexported (golint)
    • Line 166: warning: exported method PostPublishResource.Params should have comment or be unexported (golint)
    • Line 170: warning: exported method PostPublishResource.Content should have comment or be unexported (golint)
    • hugo/deploy/google.go
    • Line 26: warning: comment on exported function InvalidateGoogleCloudCDN should be of the form "InvalidateGoogleCloudCDN ..." (golint)
    • hugo/resources/page/pages.go
    • Line 46: warning: receiver name pages should be consistent with previous receiver name ps for Pages (golint)
    • Line 94: warning: exported method Pages.Group should have comment or be unexported (golint)
    • Line 94: warning: receiver name p should be consistent with previous receiver name ps for Pages (golint)
    • Line 103: warning: receiver name p should be consistent with previous receiver name ps for Pages (golint)
    • Line 108: warning: receiver name pages should be consistent with previous receiver name ps for Pages (golint)
    • hugo/markup/highlight/config.go
    • Line 29: warning: exported var DefaultConfig should have comment or be unexported (golint)
    • Line 40: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 61: warning: don't use underscores in Go names; struct field Hl_Lines should be HlLines (golint)
    • Line 69: warning: exported method Config.ToHTMLOptions should have comment or be unexported (golint)
    • hugo/helpers/path.go
    • Line 353: warning: exported type NamedSlice should have comment or be unexported (golint)
    • Line 365: warning: exported function ExtractAndGroupRootPaths should have comment or be unexported (golint)
    • hugo/hugofs/rootmapping_fs.go
    • Line 138: warning: receiver name r should be consistent with previous receiver name rm for RootMapping (golint)
    • Line 153: warning: exported method RootMappingFs.Dirs should have comment or be unexported (golint)
    • hugo/resources/resource/dates.go
    • Line 37: warning: exported method Dates.UpdateDateAndLastmodIfAfter should have comment or be unexported (golint)
    • Line 67: warning: exported method Dates.Date should have comment or be unexported (golint)
    • Line 67: warning: receiver name p should be consistent with previous receiver name d for Dates (golint)
    • Line 71: warning: exported method Dates.Lastmod should have comment or be unexported (golint)
    • Line 71: warning: receiver name p should be consistent with previous receiver name d for Dates (golint)
    • Line 75: warning: exported method Dates.PublishDate should have comment or be unexported (golint)
    • Line 75: warning: receiver name p should be consistent with previous receiver name d for Dates (golint)
    • Line 79: warning: exported method Dates.ExpiryDate should have comment or be unexported (golint)
    • Line 79: warning: receiver name p should be consistent with previous receiver name d for Dates (golint)
    • hugo/navigation/pagemenus.go
    • Line 23: warning: exported type PageMenusProvider should have comment or be unexported (golint)
    • Line 28: warning: exported type PageMenusGetter should have comment or be unexported (golint)
    • Line 32: warning: exported type MenusGetter should have comment or be unexported (golint)
    • Line 36: warning: exported type MenuQueryProvider should have comment or be unexported (golint)
    • Line 41: warning: exported function PageMenusFromPage should have comment or be unexported (golint)
    • Line 99: warning: exported function NewMenuQueryProvider should have comment or be unexported (golint)
    • Line 221: warning: exported var NopPageMenus should have comment or be unexported (golint)
    • hugo/resources/images/image.go
    • Line 40: warning: exported function NewImage should have comment or be unexported (golint)
    • Line 55: warning: exported type Image should have comment or be unexported (golint)
    • Line 62: warning: exported method Image.EncodeTo should have comment or be unexported (golint)
    • Line 121: warning: exported method Image.WithImage should have comment or be unexported (golint)
    • Line 131: warning: exported method Image.WithSpec should have comment or be unexported (golint)
    • Line 171: warning: exported function NewImageProcessor should have comment or be unexported (golint)
    • Line 189: warning: exported type ImageProcessor should have comment or be unexported (golint)
    • Line 194: warning: exported method ImageProcessor.DecodeExif should have comment or be unexported (golint)
    • Line 198: warning: exported method ImageProcessor.ApplyFiltersFromConfig should have comment or be unexported (golint)
    • Line 237: warning: exported method ImageProcessor.Filter should have comment or be unexported (golint)
    • Line 244: warning: exported function GetDefaultImageConfig should have comment or be unexported (golint)
    • Line 252: warning: exported type Spec should have comment or be unexported (golint)
    • Line 261: warning: exported const JPEG should have comment (or a comment on this block) or be unexported (golint)
    • Line 317: warning: exported function ToFilters should have comment or be unexported (golint)
    • hugo/common/maps/maps.go
    • Line 54: warning: exported function ToStringMapE should have comment or be unexported (golint)
    • Line 63: warning: exported function ToStringMap should have comment or be unexported (golint)
    • Line 68: warning: exported function ToSliceStringMap should have comment or be unexported (golint)
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hugo/cache/filecache/filecache_config.go
    • Line 50: warning: exported type Configs should have comment or be unexported (golint)
    • Line 52: warning: exported method Configs.CacheDirModules should have comment or be unexported (golint)
    • Line 73: warning: exported type Config should have comment or be unexported (golint)
    • Line 112: warning: exported function DecodeConfig should have comment or be unexported (golint)
    • hugo/identity/identity.go
    • Line 10: warning: comment on exported function NewManager should be of the form "NewManager ..." (golint)
    • Line 161: warning: exported method IncrementByOne.Incr should have comment or be unexported (golint)
    • hugo/hugofs/fileinfo.go
    • Line 64: warning: exported type FileMeta should have comment or be unexported (golint)
    • Line 66: warning: exported method FileMeta.GetInt should have comment or be unexported (golint)
    • Line 70: warning: exported method FileMeta.GetString should have comment or be unexported (golint)
    • Line 74: warning: exported method FileMeta.GetBool should have comment or be unexported (golint)
    • Line 78: warning: exported method FileMeta.Filename should have comment or be unexported (golint)
    • Line 82: warning: exported method FileMeta.OriginalFilename should have comment or be unexported (golint)
    • Line 86: warning: exported method FileMeta.SkipDir should have comment or be unexported (golint)
    • Line 90: warning: exported method FileMeta.TranslationBaseName should have comment or be unexported (golint)
    • Line 94: warning: exported method FileMeta.TranslationBaseNameWithExt should have comment or be unexported (golint)
    • Line 98: warning: exported method FileMeta.Translations should have comment or be unexported (golint)
    • Line 102: warning: exported method FileMeta.Name should have comment or be unexported (golint)
    • Line 106: warning: exported method FileMeta.Classifier should have comment or be unexported (golint)
    • Line 115: warning: exported method FileMeta.Lang should have comment or be unexported (golint)
    • Line 133: warning: exported method FileMeta.SourceRoot should have comment or be unexported (golint)
    • Line 137: warning: exported method FileMeta.MountRoot should have comment or be unexported (golint)
    • Line 141: warning: exported method FileMeta.Module should have comment or be unexported (golint)
    • Line 145: warning: exported method FileMeta.Weight should have comment or be unexported (golint)
    • Line 149: warning: exported method FileMeta.Ordinal should have comment or be unexported (golint)
    • Line 153: warning: exported method FileMeta.IsOrdered should have comment or be unexported (golint)
    • Line 162: warning: exported method FileMeta.Watch should have comment or be unexported (golint)
    • Line 169: warning: exported method FileMeta.Fs should have comment or be unexported (golint)
    • Line 176: warning: exported method FileMeta.GetOpener should have comment or be unexported (golint)
    • Line 184: warning: exported method FileMeta.Open should have comment or be unexported (golint)
    • Line 192: warning: exported method FileMeta.JoinStat should have comment or be unexported (golint)
    • Line 214: warning: exported type FileMetaInfo should have comment or be unexported (golint)
    • Line 239: warning: exported function NewFileMetaInfo should have comment or be unexported (golint)
    • hugo/publisher/htmlElementsCollector.go
    • Line 74: warning: exported method HTMLElements.Merge should have comment or be unexported (golint)
    • Line 84: warning: exported method HTMLElements.Sort should have comment or be unexported (golint)
    • Line 176: warning: receiver name l should be consistent with previous receiver name w for htmlElementsCollectorWriter (golint)
    • Line 272: warning: receiver name l should be consistent with previous receiver name w for htmlElementsCollectorWriter (golint)
    • hugo/hugolib/filesystems/basefs.go
    • Line 61: warning: comment on exported method BaseFs.WatchDirs should be of the form "WatchDirs ..." (golint)
    • Line 73: warning: exported method BaseFs.AllDirs should have comment or be unexported (golint)
    • Line 93: warning: receiver name b should be consistent with previous receiver name fs for BaseFs (golint)
    • Line 292: warning: exported method SourceFilesystem.RealFilename should have comment or be unexported (golint)
    • hugo/config/commonConfig.go
    • Line 32: warning: exported var DefaultBuild should have comment or be unexported (golint)
    • Line 50: warning: exported method Build.UseResourceCache should have comment or be unexported (golint)
    • Line 62: warning: exported function DecodeBuild should have comment or be unexported (golint)
    • Line 90: warning: exported function DecodeSitemap should have comment or be unexported (golint)
    • Line 107: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • Line 128: warning: exported method Server.MatchHeaders should have comment or be unexported (golint)
    • Line 153: warning: exported method Server.MatchRedirect should have comment or be unexported (golint)
    • Line 178: warning: exported type Headers should have comment or be unexported (golint)
    • Line 183: warning: exported type Redirect should have comment or be unexported (golint)
    • Line 190: warning: exported method Redirect.IsZero should have comment or be unexported (golint)
    • Line 194: warning: exported function DecodeServer should have comment or be unexported (golint)
    • hugo/hugolib/hugo_sites.go
    • Line 184: warning: exported method HugoSites.Data should have comment or be unexported (golint)
    • Line 246: warning: exported method HugoSites.IsMultihost should have comment or be unexported (golint)
    • Line 250: warning: comment on exported method HugoSites.LanguageSet should be of the form "LanguageSet ..." (golint)
    • Line 259: warning: exported method HugoSites.NumLogErrors should have comment or be unexported (golint)
    • Line 266: warning: exported method HugoSites.PrintProcessingStats should have comment or be unexported (golint)
    • hugo/resources/page/pagination.go
    • Line 56: warning: exported type Paginator should have comment or be unexported (golint)
    • Line 251: warning: exported function ResolvePagerSize should have comment or be unexported (golint)
    • Line 269: warning: exported function Paginate should have comment or be unexported (golint)
    • hugo/resources/page/page.go
    • Line 384: warning: exported type DeprecatedWarningPageMethods1 should have comment or be unexported (golint)
    • Line 393: warning: comment on exported type DeprecatedErrorPageMethods should be of the form "DeprecatedErrorPageMethods ..." (with optional leading article) (golint)
    • hugo/langs/language.go
    • Line 142: warning: exported method Languages.AsSet should have comment or be unexported (golint)
    • Line 151: warning: exported method Languages.AsOrdinalSet should have comment or be unexported (golint)
    • hugo/markup/markup_config/config.go
    • Line 14: warning: don't use an underscore in package name (golint)
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 46: warning: exported function Decode should have comment or be unexported (golint)
    • Line 107: warning: exported var Default should have comment or be unexported (golint)
    • hugo/markup/highlight/highlight.go
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported type Highlighter should have comment or be unexported (golint)
    • Line 39: warning: exported method Highlighter.Highlight should have comment or be unexported (golint)
    • Line 100: warning: exported function GetCodeBlockOptions should have comment or be unexported (golint)
    • Line 135: warning: exported function WriteCodeTag should have comment or be unexported (golint)
    • hugo/source/fileInfo.go
    • Line 62: warning: exported type FileWithoutOverlap should have comment or be unexported (golint)
    • Line 189: warning: exported method FileInfo.IsZero should have comment or be unexported (golint)
    • Line 225: warning: exported method SourceSpec.NewFileInfoFrom should have comment or be unexported (golint)
    • Line 234: warning: exported method SourceSpec.NewFileInfo should have comment or be unexported (golint)
    • hugo/resources/page/permalinks.go
    • Line 106: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 116: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 181: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 222: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 245: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 250: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 262: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 269: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 273: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 293: warning: receiver name l should be consistent with previous receiver name p for PermalinkExpander (golint)
    • Line 309: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hugo/resources/page/weighted.go
    • Line 58: warning: exported function NewWeightedPage should have comment or be unexported (golint)
    • Line 68: warning: receiver name p should be consistent with previous receiver name w for WeightedPage (golint)
    • Line 88: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 98: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 112: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 124: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 125: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 128: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 131: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • Line 133: warning: receiver name wp should be consistent with previous receiver name p for WeightedPages (golint)
    • hugo/resources/page/page_kinds.go
    • Line 19: warning: exported const KindPage should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: comment on exported const KindTaxonomy should be of the form "KindTaxonomy ..." (golint)
    • hugo/common/hugo/hugo.go
    • Line 34: warning: exported const EnvironmentDevelopment should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported method Info.IsProduction should have comment or be unexported (golint)
    • Line 76: warning: exported method Info.IsExtended should have comment or be unexported (golint)
    • Line 92: warning: exported function GetExecEnviron should have comment or be unexported (golint)
    • hugo/common/herrors/error_locator.go
    • Line 88: warning: exported method ErrorWithFileContext.Cause should have comment or be unexported (golint)
    • Line 94: warning: error should be the last type when returning multiple items (golint)
    • Line 103: warning: comment on exported function WithFileContext should be of the form "WithFileContext ..." (golint)
    • Line 105: warning: error should be the last type when returning multiple items (golint)
    • hugo/tpl/template.go
    • Line 55: warning: exported type TemplateLookup should have comment or be unexported (golint)
    • Line 59: warning: exported type TemplateLookupVariant should have comment or be unexported (golint)
    • hugo/resources/resource_cache.go
    • Line 37: warning: exported const CACHE_CLEAR_ALL should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type ResourceCache should have comment or be unexported (golint)
    • Line 144: warning: exported method ResourceCache.Contains should have comment or be unexported (golint)
    • Line 161: warning: exported method ResourceCache.GetOrCreate should have comment or be unexported (golint)
    • Line 169: warning: exported method ResourceCache.GetOrCreateResources should have comment or be unexported (golint)
    • Line 263: warning: exported method ResourceCache.DeletePartitions should have comment or be unexported (golint)
    • Line 296: warning: exported method ResourceCache.DeleteMatches should have comment or be unexported (golint)
    • hugo/helpers/content.go
    • Line 196: warning: exported method ContentSpec.RenderMarkdown should have comment or be unexported (golint)
    • Line 204: warning: exported method ContentSpec.SanitizeAnchorName should have comment or be unexported (golint)
    • Line 208: warning: exported method ContentSpec.ResolveMarkup should have comment or be unexported (golint)
    • hugo/resources/page/pagemeta/pagemeta.go
    • Line 20: warning: exported type URLPath should have comment or be unexported (golint)
    • Line 28: warning: exported const Never should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: exported method BuildConfig.IsZero should have comment or be unexported (golint)
    • Line 78: warning: exported function DecodeBuildConfig should have comment or be unexported (golint)
    • hugo/resources/images/exif/exif.go
    • Line 35: warning: exported type Exif should have comment or be unexported (golint)
    • Line 42: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 49: warning: exported function IncludeFields should have comment or be unexported (golint)
    • Line 60: warning: exported function ExcludeFields should have comment or be unexported (golint)
    • Line 71: warning: exported function WithLatLongDisabled should have comment or be unexported (golint)
    • Line 78: warning: exported function WithDateDisabled should have comment or be unexported (golint)
    • Line 98: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 109: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • Line 249: warning: exported type Tags should have comment or be unexported (golint)
    • Line 251: warning: exported method Tags.UnmarshalJSON should have comment or be unexported (golint)
    • Line 262: warning: exported method Tags.MarshalJSON should have comment or be unexported (golint)
    • hugo/resources/resource.go
    • Line 57: warning: exported type ResourceSourceDescriptor should have comment or be unexported (golint)
    • Line 86: warning: exported method ResourceSourceDescriptor.Filename should have comment or be unexported (golint)
    • Line 93: warning: exported type ResourceTransformer should have comment or be unexported (golint)
    • Line 98: warning: exported type Transformer should have comment or be unexported (golint)
    • Line 102: warning: exported function NewFeatureNotAvailableTransformer should have comment or be unexported (golint)
    • Line 365: warning: receiver name r should be consistent with previous receiver name l for genericResource (golint)
    • Line 378: warning: receiver name r should be consistent with previous receiver name l for genericResource (golint)
    • Line 392: warning: receiver name rc should be consistent with previous receiver name l for genericResource (golint)
    • Line 462: warning: receiver name r should be consistent with previous receiver name l for genericResource (golint)
    • hugo/docshelper/docs.go
    • Line 19: warning: exported type DocProviderFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type DocProvider should have comment or be unexported (golint)
    • Line 25: warning: exported function AddDocProviderFunc should have comment or be unexported (golint)
    • Line 29: warning: exported function GetDocProvider should have comment or be unexported (golint)
    • hugo/hugofs/slice_fs.go
    • Line 32: warning: exported function NewSliceFs should have comment or be unexported (golint)
    • Line 55: warning: exported method SliceFs.Chmod should have comment or be unexported (golint)
    • Line 59: warning: exported method SliceFs.Chtimes should have comment or be unexported (golint)
    • Line 63: warning: exported method SliceFs.Chown should have comment or be unexported (golint)
    • Line 67: warning: exported method SliceFs.LstatIfPossible should have comment or be unexported (golint)
    • Line 80: warning: exported method SliceFs.Mkdir should have comment or be unexported (golint)
    • Line 84: warning: exported method SliceFs.MkdirAll should have comment or be unexported (golint)
    • Line 88: warning: exported method SliceFs.Name should have comment or be unexported (golint)
    • Line 92: warning: exported method SliceFs.Open should have comment or be unexported (golint)
    • Line 109: warning: exported method SliceFs.OpenFile should have comment or be unexported (golint)
    • Line 113: warning: exported method SliceFs.ReadDir should have comment or be unexported (golint)
    • Line 117: warning: exported method SliceFs.Remove should have comment or be unexported (golint)
    • Line 121: warning: exported method SliceFs.RemoveAll should have comment or be unexported (golint)
    • Line 125: warning: exported method SliceFs.Rename should have comment or be unexported (golint)
    • Line 129: warning: exported method SliceFs.Stat should have comment or be unexported (golint)
    • Line 134: warning: exported method SliceFs.Create should have comment or be unexported (golint)
    • Line 172: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • hugo/markup/internal/external.go
    • Line 13: warning: exported function ExternallyRenderContent should have comment or be unexported (golint)
    • Line 48: warning: exported function GetPythonExecPath should have comment or be unexported (golint)
    • hugo/hugolib/page__per_output.go
    • Line 372: warning: receiver name cp should be consistent with previous receiver name p for pageContentOutput (golint)
    • Line 377: warning: receiver name cp should be consistent with previous receiver name p for pageContentOutput (golint)
    • hugo/common/loggers/loggers.go
    • Line 32: warning: comment on exported var GlobalErrorCounter should be of the form "GlobalErrorCounter ..." (golint)
    • Line 40: warning: exported function LoggerToWriterWithPrefix should have comment or be unexported (golint)
    • Line 57: warning: exported type Logger should have comment or be unexported (golint)
    • Line 81: warning: exported type LogCounters should have comment or be unexported (golint)
    • Line 187: warning: comment on exported function NewLogger should be of the form "NewLogger ..." (golint)
    • hugo/markup/goldmark/goldmark_config/config.go
    • Line 15: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported const AutoHeadingIDTypeGitHub should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: comment on exported var Default should be of the form "Default ..." (golint)
    • Line 54: warning: exported type Extensions should have comment or be unexported (golint)
    • Line 66: warning: exported type Renderer should have comment or be unexported (golint)
    • Line 77: warning: exported type Parser should have comment or be unexported (golint)
    • Line 91: warning: exported type ParserAttribute should have comment or be unexported (golint)
    • hugo/modules/module.go
    • Line 25: warning: exported type Module should have comment or be unexported (golint)
    • Line 72: warning: exported type Modules should have comment or be unexported (golint)
    • hugo/hugolib/paths/paths.go
    • Line 29: warning: exported var FilePathSeparator should have comment or be unexported (golint)
    • Line 31: warning: exported type Paths should have comment or be unexported (golint)
    • Line 82: warning: exported function New should have comment or be unexported (golint)
    • Line 200: warning: exported method Paths.Lang should have comment or be unexported (golint)
    • Line 207: warning: exported method Paths.GetTargetLanguageBasePath should have comment or be unexported (golint)
    • Line 215: warning: exported method Paths.GetURLLanguageBasePath should have comment or be unexported (golint)
    • Line 222: warning: exported method Paths.GetLanguagePrefix should have comment or be unexported (golint)
    • hugo/markup/markup.go
    • Line 35: warning: exported function NewConverterProvider should have comment or be unexported (golint)
    • Line 98: warning: exported type ConverterProvider should have comment or be unexported (golint)
    • hugo/common/herrors/file_error.go
    • Line 63: warning: receiver name f should be consistent with previous receiver name e for fileError (golint)
    • Line 96: warning: comment on exported function ToFileErrorWithLineNumber should be of the form "ToFileErrorWithLineNumber ..." (golint)
    • hugo/navigation/menu.go
    • Line 47: warning: exported method MenuEntry.URL should have comment or be unexported (golint)
    • Line 59: warning: comment on exported type Page should be of the form "Page ..." (with optional leading article) (golint)
    • Line 113: warning: exported method MenuEntry.MarshallMap should have comment or be unexported (golint)
    • Line 139: warning: exported method Menu.Add should have comment or be unexported (golint)
    • Line 240: warning: exported method Menu.Clone should have comment or be unexported (golint)
    • Line 244: warning: exported method MenuEntry.Title should have comment or be unexported (golint)
    • hugo/parser/pageparser/item.go
    • Line 23: warning: exported type Item should have comment or be unexported (golint)
    • Line 30: warning: exported type Items should have comment or be unexported (golint)
    • Line 32: warning: exported method Item.ValStr should have comment or be unexported (golint)
    • Line 36: warning: exported method Item.ValTyped should have comment or be unexported (golint)
    • Line 66: warning: exported method Item.IsText should have comment or be unexported (golint)
    • Line 70: warning: exported method Item.IsNonWhitespace should have comment or be unexported (golint)
    • Line 74: warning: exported method Item.IsShortcodeName should have comment or be unexported (golint)
    • Line 78: warning: exported method Item.IsInlineShortcodeName should have comment or be unexported (golint)
    • Line 82: warning: exported method Item.IsLeftShortcodeDelim should have comment or be unexported (golint)
    • Line 86: warning: exported method Item.IsRightShortcodeDelim should have comment or be unexported (golint)
    • Line 90: warning: exported method Item.IsShortcodeClose should have comment or be unexported (golint)
    • Line 94: warning: exported method Item.IsShortcodeParam should have comment or be unexported (golint)
    • Line 98: warning: exported method Item.IsShortcodeParamVal should have comment or be unexported (golint)
    • Line 102: warning: exported method Item.IsShortcodeMarkupDelimiter should have comment or be unexported (golint)
    • Line 106: warning: exported method Item.IsFrontMatter should have comment or be unexported (golint)
    • Line 110: warning: exported method Item.IsDone should have comment or be unexported (golint)
    • Line 114: warning: exported method Item.IsEOF should have comment or be unexported (golint)
    • Line 118: warning: exported method Item.IsError should have comment or be unexported (golint)
    • Line 136: warning: exported type ItemType should have comment or be unexported (golint)
    • Line 142: warning: comment on exported const TypeLeadSummaryDivider should be of the form "TypeLeadSummaryDivider ..." (golint)
    • Line 144: warning: exported const TypeFrontMatterYAML should have comment (or a comment on this block) or be unexported (golint)
    • hugo/hugolib/site.go
    • Line 171: warning: exported method Site.Taxonomies should have comment or be unexported (golint)
    • Line 325: warning: exported method Site.Menus should have comment or be unexported (golint)
    • Line 359: warning: exported method Site.GetRelatedDocsHandler should have comment or be unexported (golint)
    • Line 363: warning: exported method Site.Language should have comment or be unexported (golint)
    • Line 635: warning: exported type SiteInfo should have comment or be unexported (golint)
    • Line 664: warning: exported method SiteInfo.Pages should have comment or be unexported (golint)
    • Line 668: warning: exported method SiteInfo.RegularPages should have comment or be unexported (golint)
    • Line 672: warning: exported method SiteInfo.AllPages should have comment or be unexported (golint)
    • Line 676: warning: exported method SiteInfo.AllRegularPages should have comment or be unexported (golint)
    • Line 680: warning: exported method SiteInfo.Permalinks should have comment or be unexported (golint)
    • Line 686: warning: exported method SiteInfo.LastChange should have comment or be unexported (golint)
    • Line 690: warning: exported method SiteInfo.Title should have comment or be unexported (golint)
    • Line 694: warning: exported method SiteInfo.Site should have comment or be unexported (golint)
    • Line 698: warning: exported method SiteInfo.Menus should have comment or be unexported (golint)
    • Line 702: warning: comment on exported method SiteInfo.Taxonomies should be of the form "Taxonomies ..." (golint)
    • Line 707: warning: exported method SiteInfo.Params should have comment or be unexported (golint)
    • Line 711: warning: exported method SiteInfo.Data should have comment or be unexported (golint)
    • Line 715: warning: exported method SiteInfo.Language should have comment or be unexported (golint)
    • Line 719: warning: exported method SiteInfo.Config should have comment or be unexported (golint)
    • Line 723: warning: exported method SiteInfo.Hugo should have comment or be unexported (golint)
    • Line 736: warning: exported method SiteInfo.BaseURL should have comment or be unexported (golint)
    • Line 784: warning: exported method SiteInfo.IsMultiLingual should have comment or be unexported (golint)
    • Line 788: warning: exported method SiteInfo.IsServer should have comment or be unexported (golint)
    • Line 1252: warning: exported method Site.Initialise should have comment or be unexported (golint)
    • Line 1607: warning: exported method SiteInfo.GetPageWithTemplateInfo should have comment or be unexported (golint)
    • hugo/tpl/internal/go_templates/texttemplate/parse/node.go
    • Line 42: warning: exported method Pos.Position should have comment or be unexported (golint)
    • Line 53: warning: exported const NodeText should have comment (or a comment on this block) or be unexported (golint)
    • Line 110: warning: exported method ListNode.CopyList should have comment or be unexported (golint)
    • Line 121: warning: exported method ListNode.Copy should have comment or be unexported (golint)
    • Line 149: warning: exported method TextNode.Copy should have comment or be unexported (golint)
    • Line 181: warning: exported method CommentNode.Copy should have comment or be unexported (golint)
    • Line 232: warning: exported method PipeNode.CopyPipe should have comment or be unexported (golint)
    • Line 248: warning: exported method PipeNode.Copy should have comment or be unexported (golint)
    • Line 283: warning: exported method ActionNode.Copy should have comment or be unexported (golint)
    • Line 329: warning: exported method CommandNode.Copy should have comment or be unexported (golint)
    • Line 381: warning: exported method IdentifierNode.Copy should have comment or be unexported (golint)
    • Line 417: warning: exported method VariableNode.Copy should have comment or be unexported (golint)
    • Line 432: warning: exported method DotNode.Type should have comment or be unexported (golint)
    • Line 451: warning: exported method DotNode.Copy should have comment or be unexported (golint)
    • Line 466: warning: exported method NilNode.Type should have comment or be unexported (golint)
    • Line 485: warning: exported method NilNode.Copy should have comment or be unexported (golint)
    • Line 520: warning: exported method FieldNode.Copy should have comment or be unexported (golint)
    • Line 575: warning: exported method ChainNode.Copy should have comment or be unexported (golint)
    • Line 606: warning: exported method BoolNode.Copy should have comment or be unexported (golint)
    • Line 743: warning: exported method NumberNode.Copy should have comment or be unexported (golint)
    • Line 774: warning: exported method StringNode.Copy should have comment or be unexported (golint)
    • Line 884: warning: exported method BranchNode.Copy should have comment or be unexported (golint)
    • Line 906: warning: exported method IfNode.Copy should have comment or be unexported (golint)
    • Line 919: warning: exported method RangeNode.Copy should have comment or be unexported (golint)
    • Line 932: warning: exported method WithNode.Copy should have comment or be unexported (golint)
    • Line 970: warning: exported method TemplateNode.Copy should have comment or be unexported (golint)
    • hugo/modules/config.go
    • Line 31: warning: exported var DefaultModuleConfig should have comment or be unexported (golint)
    • Line 365: warning: exported type Import should have comment or be unexported (golint)
    • Line 375: warning: exported type Mount should have comment or be unexported (golint)
    • Line 383: warning: exported method Mount.Component should have comment or be unexported (golint)
    • Line 387: warning: exported method Mount.ComponentAndName should have comment or be unexported (golint)
    • hugo/langs/config.go
    • Line 31: warning: exported type LanguagesConfig should have comment or be unexported (golint)
    • Line 37: warning: exported function LoadLanguageSettings should have comment or be unexported (golint)
    • hugo/parser/metadecoders/format.go
    • Line 23: warning: exported type Format should have comment or be unexported (golint)
    • Line 26: warning: comment on exported const ORG should be of the form "ORG ..." (golint)
    • Line 29: warning: exported const JSON should have comment (or a comment on this block) or be unexported (golint)
    • hugo/resources/page/pages_related.go
    • Line 143: warning: exported type RelatedDocsHandler should have comment or be unexported (golint)
    • Line 150: warning: exported function NewRelatedDocsHandler should have comment or be unexported (golint)
    • Line 154: warning: exported method RelatedDocsHandler.Clone should have comment or be unexported (golint)
    • hugo/lazy/init.go
    • Line 66: warning: comment on exported method Init.BranchWithTimeout should be of the form "BranchWithTimeout ..." (golint)
    • hugo/publisher/publisher.go
    • Line 134: warning: exported method DestinationPublisher.PublishStats should have comment or be unexported (golint)
    • Line 144: warning: exported type PublishStats should have comment or be unexported (golint)
    • hugo/resources/page/pagegroup.go
    • Line 382: warning: receiver name psg should be consistent with previous receiver name p for PagesGroup (golint)
    • Line 391: warning: receiver name psg should be consistent with previous receiver name p for PagesGroup (golint)
    • hugo/resources/images/config.go
    • Line 96: warning: exported function ImageFormatFromExt should have comment or be unexported (golint)
    • Line 115: warning: exported function DecodeConfig should have comment or be unexported (golint)
    • Line 163: warning: exported function DecodeImageConfig should have comment or be unexported (golint)
    • Line 317: warning: exported method ImageConfig.GetKey should have comment or be unexported (golint)
    • Line 363: warning: exported type ImagingConfig should have comment or be unexported (golint)
    • Line 413: warning: exported type ExifConfig should have comment or be unexported (golint)
    • hugo/resources/resource_transformers/tocss/dartsass/client.go
    • Line 14: warning: package comment should be of the form "Package dartsass ..." (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: exported type Client should have comment or be unexported (golint)
    • Line 53: warning: exported method Client.ToCSS should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 81: warning: exported type Options should have comment or be unexported (golint)
    • hugo/tpl/template_info.go
    • Line 20: warning: comment on exported const TemplateVersion should be of the form "TemplateVersion ..." (golint)
    • Line 23: warning: exported type Info should have comment or be unexported (golint)
    • Line 30: warning: exported type InfoManager should have comment or be unexported (golint)
    • Line 42: warning: exported function NewInfo should have comment or be unexported (golint)
    • Line 53: warning: exported type ParseInfo should have comment or be unexported (golint)
    • Line 64: warning: exported method ParseInfo.IsZero should have comment or be unexported (golint)
    • Line 68: warning: comment on exported type Info1 should be of the form "Info1 ..." (with optional leading article) (golint)
    • Line 72: warning: exported type ParseConfig should have comment or be unexported (golint)
    • Line 76: warning: exported var DefaultParseConfig should have comment or be unexported (golint)
    • Line 80: warning: exported var DefaultParseInfo should have comment or be unexported (golint)
    • hugo/helpers/general.go
    • Line 111: warning: comment on exported function UniqueStringsSorted should be of the form "UniqueStringsSorted ..." (golint)
    • Line 261: warning: exported method DistinctLogger.Reset should have comment or be unexported (golint)
    • hugo/hugolib/page.go
    • Line 377: warning: receiver name ps should be consistent with previous receiver name p for pageState (golint)
    • Line 749: 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)
    • hugo/hugolib/page__meta.go
    • Line 307: warning: receiver name pm should be consistent with previous receiver name p for pageMeta (golint)
    • Line 330: warning: receiver name pm should be consistent with previous receiver name p for pageMeta (golint)
    • Line 796: warning: receiver name m should be consistent with previous receiver name p for pageMeta (golint)
    • hugo/parser/frontmatter.go
    • Line 33: warning: exported function InterfaceToConfig should have comment or be unexported (golint)
    • Line 69: warning: exported function InterfaceToFrontMatter should have comment or be unexported (golint)
    • hugo/deps/deps.go
    • Line 168: warning: exported method Deps.Tmpl should have comment or be unexported (golint)
    • Line 172: warning: exported method Deps.TextTmpl should have comment or be unexported (golint)
    • Line 176: warning: exported method Deps.SetTmpl should have comment or be unexported (golint)
    • Line 180: warning: exported method Deps.SetTextTmpl should have comment or be unexported (golint)
    • Line 304: warning: exported method Deps.Close should have comment or be unexported (golint)
    • Line 403: warning: exported method BuildState.Incr should have comment or be unexported (golint)
    • Line 407: warning: exported function NewBuildState should have comment or be unexported (golint)
    • Line 411: warning: exported type Closer should have comment or be unexported (golint)
    • Line 415: warning: exported type Closers should have comment or be unexported (golint)
    • Line 420: warning: exported method Closers.Add should have comment or be unexported (golint)
    • Line 426: warning: exported method Closers.Close should have comment or be unexported (golint)
    • hugo/hugofs/filter_fs.go
    • Line 37: warning: exported function NewLanguageFs should have comment or be unexported (golint)
    • Line 107: warning: exported function NewFilterFs should have comment or be unexported (golint)
    • Line 132: warning: exported method FilterFs.Chmod should have comment or be unexported (golint)
    • Line 136: warning: exported method FilterFs.Chtimes should have comment or be unexported (golint)
    • Line 140: warning: exported method FilterFs.Chown should have comment or be unexported (golint)
    • Line 144: warning: exported method FilterFs.LstatIfPossible should have comment or be unexported (golint)
    • Line 160: warning: exported method FilterFs.Mkdir should have comment or be unexported (golint)
    • Line 164: warning: exported method FilterFs.MkdirAll should have comment or be unexported (golint)
    • Line 168: warning: exported method FilterFs.Name should have comment or be unexported (golint)
    • Line 172: warning: exported method FilterFs.Open should have comment or be unexported (golint)
    • Line 184: warning: exported method FilterFs.OpenFile should have comment or be unexported (golint)
    • Line 188: warning: exported method FilterFs.ReadDir should have comment or be unexported (golint)
    • Line 192: warning: exported method FilterFs.Remove should have comment or be unexported (golint)
    • Line 196: warning: exported method FilterFs.RemoveAll should have comment or be unexported (golint)
    • Line 200: warning: exported method FilterFs.Rename should have comment or be unexported (golint)
    • Line 204: warning: exported method FilterFs.Stat should have comment or be unexported (golint)
    • Line 209: warning: exported method FilterFs.Create should have comment or be unexported (golint)
    • hugo/resources/page/page_paths.go
    • Line 74: warning: comment on exported type TargetPaths should be of the form "TargetPaths ..." (with optional leading article) (golint)
    • Line 90: warning: exported method TargetPaths.RelPermalink should have comment or be unexported (golint)
    • Line 94: warning: exported method TargetPaths.PermalinkForOutputFormat should have comment or be unexported (golint)
    • Line 113: warning: exported function CreateTargetPaths should have comment or be unexported (golint)

gocyclo88%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • hugo/deploy/deploy_test.go
    • Line 272: warning: cyclomatic complexity 19 of function TestLocalFile() is high (> 15) (gocyclo)
    • Line 556: warning: cyclomatic complexity 18 of function TestEndToEndSync() is high (> 15) (gocyclo)
    • Line 643: warning: cyclomatic complexity 18 of function TestMaxDeletes() is high (> 15) (gocyclo)
    • hugo/helpers/path.go
    • Line 134: warning: cyclomatic complexity 21 of function (*PathSpec).UnicodeSanitize() is high (> 15) (gocyclo)
    • Line 365: warning: cyclomatic complexity 20 of function ExtractAndGroupRootPaths() is high (> 15) (gocyclo)
    • hugo/tpl/internal/go_templates/texttemplate/exec.go
    • Line 587: warning: cyclomatic complexity 25 of function (*state).evalFieldOld() is high (> 15) (gocyclo)
    • Line 793: warning: cyclomatic complexity 19 of function (*state).evalArg() is high (> 15) (gocyclo)
    • Line 337: warning: cyclomatic complexity 18 of function (*state).walkRange() is high (> 15) (gocyclo)
    • Line 751: warning: cyclomatic complexity 17 of function (*state).validateType() is high (> 15) (gocyclo)
    • Line 674: warning: cyclomatic complexity 16 of function (*state).evalCallOld() is high (> 15) (gocyclo)
    • hugo/hugolib/page__meta.go
    • Line 330: warning: cyclomatic complexity 95 of function (*pageMeta).setMetadata() is high (> 15) (gocyclo)
    • Line 687: warning: cyclomatic complexity 20 of function (*pageMeta).applyDefaultValues() is high (> 15) (gocyclo)
    • hugo/parser/pageparser/pagelexer_shortcode.go
    • Line 86: warning: cyclomatic complexity 19 of function lexShortcodeParam() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 19 of function lexInsideShortcode() is high (> 15) (gocyclo)
    • Line 174: warning: cyclomatic complexity 16 of function lexShortcodeQuotedParamVal() is high (> 15) (gocyclo)
    • hugo/modules/config.go
    • Line 57: warning: cyclomatic complexity 22 of function ApplyProjectConfigDefaults() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 16 of function decodeConfig() is high (> 15) (gocyclo)
    • hugo/tpl/collections/where.go
    • Line 53: warning: cyclomatic complexity 100 of function (*Namespace).checkCondition() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 23 of function evaluateSubElem() is high (> 15) (gocyclo)
    • hugo/hugolib/content_map_page.go
    • Line 88: warning: cyclomatic complexity 19 of function (*pageMap).newPageFromContentNode() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 17 of function (*pageMap).assembleSections() is high (> 15) (gocyclo)
    • hugo/codegen/methods.go
    • Line 56: warning: cyclomatic complexity 18 of function (*Inspector).MethodsFromTypes() is high (> 15) (gocyclo)
    • Line 369: warning: cyclomatic complexity 17 of function (Methods).ToMarshalJSON() is high (> 15) (gocyclo)
    • Line 172: warning: cyclomatic complexity 16 of function (*Inspector).parseSource() is high (> 15) (gocyclo)
    • hugo/hugolib/shortcode.go
    • Line 441: warning: cyclomatic complexity 34 of function (*shortcodeHandler).extractShortcode() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 25 of function renderShortcode() is high (> 15) (gocyclo)
    • hugo/modules/collect.go
    • Line 222: warning: cyclomatic complexity 23 of function (*collector).add() is high (> 15) (gocyclo)
    • Line 396: warning: cyclomatic complexity 16 of function (*collector).applyThemeConfig() is high (> 15) (gocyclo)
    • hugo/deploy/deploy.go
    • Line 129: warning: cyclomatic complexity 41 of function (*Deployer).Deploy() is high (> 15) (gocyclo)
    • Line 488: warning: cyclomatic complexity 16 of function walkLocal() is high (> 15) (gocyclo)
    • hugo/commands/import_jekyll.go
    • Line 304: warning: cyclomatic complexity 17 of function (*importCmd).copyJekyllFilesAndFolders() is high (> 15) (gocyclo)
    • Line 79: warning: cyclomatic complexity 16 of function (*importCmd).importFromJekyll() is high (> 15) (gocyclo)
    • hugo/commands/server.go
    • Line 303: warning: cyclomatic complexity 30 of function (*fileServer).createEndpoint() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 29 of function (*serverCmd).server() is high (> 15) (gocyclo)
    • hugo/hugolib/hugo_sites_build.go
    • Line 342: warning: cyclomatic complexity 23 of function (*HugoSites).postProcess() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 23 of function (*HugoSites).Build() is high (> 15) (gocyclo)
    • Line 273: warning: cyclomatic complexity 17 of function (*HugoSites).render() is high (> 15) (gocyclo)
    • hugo/hugolib/pages_capture.go
    • Line 327: warning: cyclomatic complexity 34 of function (*pagesCollector).collectDir() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 16 of function (*pagesCollector).addToBundle() is high (> 15) (gocyclo)
    • hugo/hugolib/config.go
    • Line 125: warning: cyclomatic complexity 30 of function LoadConfig() is high (> 15) (gocyclo)
    • Line 338: warning: cyclomatic complexity 20 of function (configLoader).loadConfigFromConfigDir() is high (> 15) (gocyclo)
    • hugo/hugolib/site.go
    • Line 1004: warning: cyclomatic complexity 40 of function (*Site).processPartial() is high (> 15) (gocyclo)
    • Line 399: warning: cyclomatic complexity 31 of function newSite() is high (> 15) (gocyclo)
    • Line 820: warning: cyclomatic complexity 18 of function (*siteRefLinker).refLink() is high (> 15) (gocyclo)

ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

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