The world’s fastest framework for building websites.
965 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | main_withdeploy_off_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | main.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | main_withdeploy_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | main_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | releaser/releaser.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | docshelper/docs.go | 1 | // Copyright 2017-present The Hugo Authors. All rights reserved. |
| LOW | metrics/metrics.go | 1 | // Copyright 2017 The Hugo Authors. All rights reserved. |
| LOW | metrics/metrics_test.go | 1 | // Copyright 2017 The Hugo Authors. All rights reserved. |
| LOW | bufferpool/bufpool.go | 1 | // Copyright 2015 The Hugo Authors. All rights reserved. |
| LOW | bufferpool/bufpool_test.go | 1 | // Copyright 2016-present The Hugo Authors. All rights reserved. |
| LOW | cache/dynacache/dynacache_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | cache/dynacache/dynacache.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache_pruner.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache_pruner_test.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache.go | 1 | // Copyright 2026 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache_config_test.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache_integration_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | cache/filecache/filecache_config.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | cache/httpcache/httpcache_integration_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | cache/httpcache/httpcache.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | cache/httpcache/httpcache_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | watcher/batcher.go | 1 | // Copyright 2020 The Hugo Authors. All rights reserved. |
| LOW | identity/finder.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/identity_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/question.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/finder_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/question_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/predicate_identity.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/identity.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | identity/predicate_identity_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/defaultConfigProvider.go | 1 | // Copyright 2021 The Hugo Authors. All rights reserved. |
| LOW | config/env.go | 1 | // Copyright 2019 The Hugo Authors. All rights reserved. |
| LOW | config/configProvider_test.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | config/namespace_test.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/commonConfig.go | 1 | // Copyright 2019 The Hugo Authors. All rights reserved. |
| LOW | config/env_test.go | 1 | // Copyright 2019 The Hugo Authors. All rights reserved. |
| LOW | config/configLoader_test.go | 1 | // Copyright 2019 The Hugo Authors. All rights reserved. |
| LOW | config/commonConfig_test.go | 1 | // Copyright 2020 The Hugo Authors. All rights reserved. |
| LOW | config/configLoader.go | 1 | // Copyright 2025 The Hugo Authors. All rights reserved. |
| LOW | config/defaultConfigProvider_test.go | 1 | // Copyright 2021 The Hugo Authors. All rights reserved. |
| LOW | config/configProvider.go | 1 | // Copyright 2019 The Hugo Authors. All rights reserved. |
| LOW | config/namespace.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/privacy/privacyConfig.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | config/privacy/privacyConfig_test.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | config/security/securityConfig.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | config/security/whitelist.go | 1 | // Copyright 2021 The Hugo Authors. All rights reserved. |
| LOW | config/security/whitelist_test.go | 1 | // Copyright 2021 The Hugo Authors. All rights reserved. |
| LOW | config/security/securityConfig_test.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | config/testconfig/testconfig.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/allconfig/configlanguage.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/allconfig/alldecoders.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/allconfig/allconfig.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/allconfig/docshelper.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/allconfig/load.go | 1 | // Copyright 2024 The Hugo Authors. All rights reserved. |
| LOW | config/services/servicesConfig.go | 1 | // Copyright 2019 The Hugo Authors. All rights reserved. |
| LOW | config/services/servicesConfig_test.go | 1 | // Copyright 2018 The Hugo Authors. All rights reserved. |
| LOW | publisher/htmlElementsCollector.go | 1 | // Copyright 2020 The Hugo Authors. All rights reserved. |
| LOW | publisher/htmlElementsCollector_test.go | 1 | // Copyright 2020 The Hugo Authors. All rights reserved. |
| LOW | publisher/publisher.go | 1 | // Copyright 2020 The Hugo Authors. All rights reserved. |
| 819 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | resources/resource_factories/create/create.go | 166 | fi, err := c.rs.BaseFs.Assets.Fs.Stat(filename) |
| CRITICAL | tpl/images/images.go | 92 | config, _, err := ns.deps.ResourceSpec.Imaging.Codec.DecodeConfig(format, f) |
| CRITICAL | tpl/templates/templates.go | 152 | _, _ = ns.deps.BuildState.DeferredExecutions.Executions.GetOrCreate(id, |
| CRITICAL | hugolib/page__content.go | 500 | cp.po.p.s.Log.Trace(logg.StringFunc(func() string { |
| CRITICAL | hugolib/page__content.go | 504 | cp.po.p.s.h.contentRenderCounter.Add(1) |
| CRITICAL | hugolib/page__content.go | 612 | html := cp.po.p.s.ContentSpec.TrimShortHTML(b.Bytes(), cp.po.p.m.pageConfigSource.Content.Markup) |
| CRITICAL | hugolib/page__content.go | 683 | combined := cp.po.p.m.content.hasShortcode.Load().Or(*cp2.po.p.m.content.hasShortcode.Load()) |
| CRITICAL | hugolib/page__content.go | 684 | cp.po.p.m.content.hasShortcode.Store(&combined) |
| CRITICAL | hugolib/page__content.go | 704 | isHTML := cp.po.p.m.pageConfigSource.ContentMediaType.IsHTML() |
| CRITICAL | hugolib/page__content.go | 776 | v, err := c.pm.cacheContentPlain.GetOrCreateWitTimeout(key, cp.po.p.s.Conf.Timeout(), func(string) (*resources.StaleVal |
| CRITICAL | hugolib/page__content.go | 1018 | combined := pco.po.p.m.content.hasShortcode.Load().Or(parseInfo.shortcodeParseInfo.hasName) |
| CRITICAL | hugolib/page__content.go | 1019 | pco.po.p.m.content.hasShortcode.Store(&combined) |
| CRITICAL | hugolib/page__content.go | 1037 | markup = pco.po.p.s.ContentSpec.ResolveMarkup(opts.Markup) |
| CRITICAL | hugolib/page__content.go | 1039 | rendered = pco.po.p.s.ContentSpec.TrimShortHTML(rendered, markup) |
| CRITICAL | hugolib/page.go | 200 | b := ps.s.conf.Segments.Config.SegmentFilter.ShouldExcludeFine( |
| CRITICAL | hugolib/page__per_output.go | 144 | return pco.po.p.m.content.getOrCreateScope(scope, pco) |
| CRITICAL | hugolib/page__per_output.go | 148 | return pco.po.p.m.content.getOrCreateScope("", pco) |
| CRITICAL | hugolib/page__per_output.go | 184 | pco.po.p.s.h.FatalError(pco.po.p.wrapError(err)) |
| CRITICAL | hugolib/page__per_output.go | 359 | v := pco.po.p.s.TemplateStore.LookupPagesLayout(q) |
| CRITICAL | hugolib/page__per_output.go | 382 | r := pco.po.p.s.ContentSpec.Converters.GetHighlighter() |
| CRITICAL | hugolib/content_map_page_assembler.go | 980 | if pageBundle.m.pageConfig.Dates.Lastmod.After(pageBundle.s.lastmod) { |
| CRITICAL | hugolib/content_map_page_assembler.go | 983 | if sp.m.pageConfig.Dates.Lastmod.After(pageBundle.s.lastmod) { |
| CRITICAL | hugolib/content_map_page_assembler.go | 1241 | sa.s.h.progressReporter.numPagesToRender.Add(1) |
| CRITICAL | hugolib/page__menus.go | 33 | _ = p.p.s.init.menus.Value(context.Background()) |
| CRITICAL | hugolib/page__menus.go | 39 | _ = p.p.s.init.menus.Value(context.Background()) |
| CRITICAL | hugolib/page__menus.go | 46 | _ = p.p.s.init.menus.Value(context.Background()) |
| CRITICAL | hugolib/hugo_sites_build.go | 427 | if s.conf.Segments.Config.SegmentFilter.ShouldExcludeCoarse(segments.SegmentQuery{Site: s.siteVector}) { |
| CRITICAL | hugolib/hugo_sites_build.go | 434 | if s.conf.Segments.Config.SegmentFilter.ShouldExcludeCoarse(segments.SegmentQuery{Output: renderFormat.Name, Site: s. |
| CRITICAL | hugolib/integrationtest_builder.go | 531 | conf, format, err := s.H.ResourceSpec.Imaging.Codec.DecodeConfig(0, bytes.NewReader(b)) |
| CRITICAL | hugolib/integrationtest_builder.go | 533 | img, err := s.H.ResourceSpec.Imaging.Codec.Decode(bytes.NewReader(b)) |
| CRITICAL | hugolib/page__tree.go | 74 | _, n := pt.p.s.pageMap.treePages.LongestPrefix(dir, false, func(n contentNode) bool { |
| CRITICAL | hugolib/page__tree.go | 92 | k, n := pt.p.s.pageMap.treePages.LongestPrefix(s, false, func(n contentNode) bool { return cnh.isBranchNode(n) }) |
| CRITICAL | hugolib/page__tree.go | 136 | _, n := pt.p.s.pageMap.treePages.LongestPrefix(dir, false, nil) |
| CRITICAL | hugolib/filesystems/basefs_test.go | 487 | fi, err := b.H.BaseFs.Content.Fs.Stat(filepath.FromSlash(first.Path)) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tpl/crypto/crypto_test.go | 33 | {"Lorem ipsum dolor", "06ce65ac476fc656bea3fca5d02cfd81"}, |
| LOW | tpl/crypto/crypto_test.go | 60 | {"Lorem ipsum dolor", "45f75b844be4d17b3394c6701768daf39419c99b"}, |
| LOW | tpl/crypto/crypto_test.go | 87 | {"Lorem ipsum dolor", "9b3e1beb7053e0f900a674dd1c99aca3355e1275e1b03d3cb1bc977f5154e196"}, |
| LOW | internal/warpc/deps/parson/parson.c | 856 | Example: "\u006Corem ipsum" -> lorem ipsum */ |
| LOW | docs/content/en/functions/partials/Include.md | 50 | "name" "John Doe" |
| LOW | docs/content/en/templates/rss.md | 41 | name = 'John Doe' |
| LOW | hugolib/page_test.go | 52 | [Lorem ipsum](https://lipsum.com/) dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labo |
| LOW | hugolib/page_test.go | 52 | [Lorem ipsum](https://lipsum.com/) dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labo |
| LOW | hugolib/page_test.go | 146 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor |
| LOW | hugolib/page_test.go | 146 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor |
| LOW | hugolib/page_test.go | 151 | culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit |
| LOW | hugolib/page_test.go | 157 | officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, |
| LOW | hugolib/page_test.go | 157 | officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, |
| LOW | hugolib/page_test.go | 163 | deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur |
| LOW | hugolib/page_test.go | 163 | deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur |
| LOW | hugolib/page_test.go | 169 | id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed |
| LOW | hugolib/page_test.go | 169 | id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed |
| LOW | hugolib/page_test.go | 175 | ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor |
| LOW | hugolib/page_test.go | 180 | culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit |
| LOW | hugolib/page_test.go | 569 | checkPageContent(t, p, normalizeExpected(ext, "<p><a href=\"https://lipsum.com/\">Lorem ipsum</a> dolor sit amet, con |
| LOW | hugolib/page_test.go | 569 | checkPageContent(t, p, normalizeExpected(ext, "<p><a href=\"https://lipsum.com/\">Lorem ipsum</a> dolor sit amet, con |
| LOW | hugolib/page_test.go | 570 | checkPageSummary(t, p, normalizeExpected(ext, "<p><a href=\"https://lipsum.com/\">Lorem ipsum</a> dolor sit amet, con |
| LOW | hugolib/page_test.go | 570 | checkPageSummary(t, p, normalizeExpected(ext, "<p><a href=\"https://lipsum.com/\">Lorem ipsum</a> dolor sit amet, con |
| LOW | hugolib/testdata/what-is-markdown.md | 9399 | "Lorem ipsum dolor\nsit amet." |
| LOW | hugolib/testdata/what-is-markdown.md | 9458 | > Lorem ipsum dolor |
| LOW | hugolib/testdata/what-is-markdown.md | 9473 | > Lorem ipsum dolor |
| LOW | hugolib/testdata/what-is-markdown.md | 9485 | "Lorem ipsum dolor" |
| LOW | hugolib/testdata/what-is-markdown.md | 9501 | "Lorem ipsum dolor\nsit amet." |
| LOW | hugolib/testdata/what-is-markdown.md | 9519 | "Lorem ipsum dolor\nsit amet." |
| LOW | hugolib/testdata/what-is-markdown.md | 9541 | "Lorem ipsum dolor\nsit amet." |
| LOW | hugolib/testdata/what-is-markdown.md | 9564 | str "Lorem ipsum dolor" |
| LOW | hugolib/pagesfromdata/pagesfromgotmpl_test.go | 24 | "largeText": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauri |
| LOW | hugolib/pagesfromdata/pagesfromgotmpl_test.go | 24 | "largeText": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauri |
| LOW | hugofs/hashing_fs_test.go | 60 | content := []byte(strings.Repeat("lorem ipsum ", 1000)) |
| LOW | create/skeletons/theme/content/posts/post-1.md | 10 | Occaecat nulla excepteur dolore excepteur duis eiusmod ullamco officia anim in voluptate ea occaecat officia. Cillum sin |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docs/content/en/host-and-deploy/host-on-render/index.md | 55 | #------------------------------------------------------------------------------ |
| MEDIUM | docs/content/en/host-and-deploy/host-on-render/index.md | 60 | #------------------------------------------------------------------------------ |
| MEDIUM | …content/en/host-and-deploy/host-on-cloudflare/index.md | 45 | #------------------------------------------------------------------------------ |
| MEDIUM | …content/en/host-and-deploy/host-on-cloudflare/index.md | 50 | #------------------------------------------------------------------------------ |
| MEDIUM | docs/content/en/host-and-deploy/host-on-vercel/index.md | 41 | #------------------------------------------------------------------------------ |
| MEDIUM | docs/content/en/host-and-deploy/host-on-vercel/index.md | 46 | #------------------------------------------------------------------------------ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | check.sh | 41 | # Check if staticcheck is installed, install if not |
| LOW | scripts/docker/entrypoint.sh | 3 | # Check if a custom hugo-docker-entrypoint.sh file exists. |
| LOW | scripts/docker/entrypoint.sh | 10 | # Check if a package.json file exists. |
| LOW | scripts/docker/entrypoint.sh | 12 | # Check if node_modules exists. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | livereload/livereload.js | 325 | // #match works fine because it just return the exec results, even if it has |
| MEDIUM | hugofs/fs.go | 173 | // TODO(bep) make this more robust. |
| MEDIUM | hugofs/hglob/filename_filter.go | 178 | // to make this robust. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | livereload/livereload.js | 2173 | getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { |
| LOW | livereload/livereload.js | 3495 | value: function collectImportedStylesheets(link, styleSheet, result) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tpl/internal/go_templates/texttemplate/doc.go | 463 | constant. Here is a simple example: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | internal/js/esbuild/resolve.go | 106 | // We need to check if this is a regular file imported without an extension. |