:globe_with_meridians: Jekyll is a blog-aware static site generator in Ruby
145 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .rubocop.yml | 1 | # ----------------------------------------------------------------------------- |
| MEDIUM | .rubocop.yml | 7 | # ----------------------------------------------------------------------------- |
| MEDIUM | .rubocop.yml | 38 | # ======================= |
| MEDIUM | .rubocop.yml | 41 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 50 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 97 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 210 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 248 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 321 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 335 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 380 | # ---------------------------------------- |
| MEDIUM | .rubocop.yml | 395 | # ---------------------------------------- |
| MEDIUM | benchmark/conditional_liquid.rb | 76 | # ------------------------------------------------------------------------ |
| MEDIUM | benchmark/conditional_liquid.rb | 92 | # ------------------------------------------------------------------------ |
| MEDIUM | rake/task_utils/rubocop_config_formatter.rb | 33 | # ----------------------------------------------------------------------------- |
| MEDIUM | rake/task_utils/rubocop_config_formatter.rb | 39 | # ----------------------------------------------------------------------------- |
| MEDIUM | rake/task_utils/rubocop_config_formatter.rb | 60 | # ======================= |
| MEDIUM | docs/_data/jekyll_filters.yml | 2 | # --------------------------------------------------------------------------------------- |
| MEDIUM | docs/_data/jekyll_filters.yml | 17 | # --------------------------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .rubocop_todo.yml | 1 | # This configuration was generated by |
| LOW | benchmark/schwartzian_transform.rb | 1 | #!/usr/bin/env ruby |
| LOW | test/helper.rb | 101 | # file `test/source/symlink-test/symlinked-file-outside-source` but errors out since the linked |
| LOW | docs/_data/jekyll_filters.yml | 1 | # |
| LOW | rubocop/jekyll/assert_equal_literal_actual.rb | 1 | # frozen_string_literal: true |
| LOW | .github/workflows/codeql.yml | 41 | # Prefix the list here with "+" to use these queries and those in the config file. |
| LOW | .github/workflows/spelling.yml | 1 | name: Spell Check |
| LOW | .github/workflows/spelling.yml | 21 | # |
| LOW | lib/jekyll.rb | 141 | |
| LOW | lib/site_template/_config.yml | 1 | # Welcome to Jekyll! |
| LOW | lib/site_template/_config.yml | 41 | # |
| LOW | lib/jekyll/convertible.rb | 1 | # frozen_string_literal: true |
| LOW | lib/jekyll/static_file.rb | 141 | # and additionally removes any multiple periods in the string. |
| LOW | lib/jekyll/filters.rb | 41 | ).convert(input) |
| LOW | lib/jekyll/filters.rb | 61 | # See Utils.slugify for more detail. |
| LOW | lib/jekyll/filters.rb | 81 | # CGI escape a string for use in a URL. Replaces any special characters |
| LOW | lib/jekyll/filters.rb | 101 | # |
| LOW | lib/jekyll/filters.rb | 141 | # word "and" for the last one. |
| LOW | lib/jekyll/filters.rb | 161 | "#{array[0...-1].join(", ")}, #{connector} #{array[-1]}" |
| LOW | lib/jekyll/filters.rb | 221 | end |
| LOW | lib/jekyll/filters.rb | 281 | |
| LOW | lib/jekyll/log_adapter.rb | 61 | # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc. |
| LOW | lib/jekyll/log_adapter.rb | 81 | # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc. |
| LOW | lib/jekyll/log_adapter.rb | 121 | # |
| LOW | lib/jekyll/excerpt.rb | 101 | # the first two new lines: |
| LOW | lib/jekyll/excerpt.rb | 121 | # |
| LOW | lib/jekyll/document.rb | 21 | |
| LOW | lib/jekyll/document.rb | 81 | |
| LOW | lib/jekyll/document.rb | 141 | # The "cleaned" relative path is the relative path without the extname |
| LOW | lib/jekyll/document.rb | 321 | |
| LOW | lib/jekyll/path_manager.rb | 1 | # frozen_string_literal: true |
| LOW | lib/jekyll/frontmatter_defaults.rb | 141 | collections_dir = @site.config["collections_dir"] |
| LOW | lib/jekyll/frontmatter_defaults.rb | 161 | end |
| LOW | lib/jekyll/plugin.rb | 41 | # set the priority. |
| LOW | lib/jekyll/collection.rb | 121 | end |
| LOW | lib/jekyll/collection.rb | 161 | |
| LOW | lib/jekyll/reader.rb | 81 | |
| LOW | lib/jekyll/reader.rb | 121 | # Retrieve all the static files from the current directory, |
| LOW | lib/jekyll/url.rb | 1 | # frozen_string_literal: true |
| LOW | lib/jekyll/url.rb | 121 | end |
| LOW | lib/jekyll/url.rb | 141 | # segment = *pchar |
| LOW | lib/jekyll/utils.rb | 21 | def titleize_slug(slug) |
| LOW | lib/jekyll/utils.rb | 121 | end |
| LOW | lib/jekyll/utils.rb | 161 | # cased - whether to replace all uppercase letters with their |
| LOW | lib/jekyll/utils.rb | 181 | # |
| LOW | lib/jekyll/utils.rb | 221 | slug.downcase! unless cased |
| LOW | lib/jekyll/utils.rb | 241 | # # => "/:basename/" |
| LOW | lib/jekyll/utils.rb | 261 | else |
| LOW | lib/jekyll/utils.rb | 281 | # # => ["path/.", "path/..", "path/file1"] |
| LOW | lib/jekyll/site.rb | 241 | |
| LOW | lib/jekyll/site.rb | 281 | @site_data ||= (config["data"] || data) |
| LOW | lib/jekyll/filters/date_filters.rb | 1 | # frozen_string_literal: true |
| LOW | lib/jekyll/filters/date_filters.rb | 21 | # Format a date in long format e.g. "27 January 2011". |
| LOW | lib/jekyll/filters/date_filters.rb | 41 | # |
| LOW | lib/jekyll/drops/drop.rb | 101 | list.reject! { |item| item.end_with?("=") } |
| LOW | lib/jekyll/drops/drop.rb | 221 | # Returns a Hash ready for JSON generation. |
| LOW | lib/jekyll/converters/markdown.rb | 61 | # |
| LOW | lib/jekyll/utils/internet.rb | 1 | # frozen_string_literal: true |
| LOW | lib/jekyll/commands/new.rb | 61 | # Internal: Gets the filename of the sample post to be created |
| LOW | lib/jekyll/readers/post_reader.rb | 21 | # Read all the files in <source>/<dir>/_posts and create a new Document |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | lib/jekyll/plugin_manager.rb | 7 | # Create an instance of this class. |
| MEDIUM | lib/jekyll/document.rb | 34 | # Create a new Document. |
| MEDIUM | lib/jekyll/document.rb | 143 | # This method is useful when building the URL of the document. |
| MEDIUM | lib/jekyll/document.rb | 315 | # Create a Liquid-understandable version of this Document. |
| MEDIUM | lib/jekyll/frontmatter_defaults.rb | 4 | # This class handles custom defaults for YAML frontmatter settings. |
| MEDIUM | lib/jekyll/collection.rb | 8 | # Create a new Collection. |
| MEDIUM | lib/jekyll/reader.rb | 174 | # Create a single PostReader instance to retrieve drafts and posts from all valid |
| MEDIUM | lib/jekyll/command.rb | 36 | # Create a full Jekyll configuration with the options passed in as overrides |
| MEDIUM | lib/jekyll/drops/drop.rb | 106 | # Create a new Drop |
| MEDIUM | lib/jekyll/commands/build.rb | 7 | # Create the Mercenary command for the Jekyll CLI for this Command |
| MEDIUM | lib/jekyll/commands/serve/servlet.rb | 8 | # This class is used to determine if the Servlet should modify a served file |
| MEDIUM | lib/jekyll/readers/page_reader.rb | 13 | # Create a new `Jekyll::Page` object for each entry in a given array. |
| MEDIUM | lib/jekyll/readers/static_file_reader.rb | 13 | # Create a new StaticFile object for every entry in a given list of basenames. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | benchmark/schwartzian_transform.rb | 33 | def sort_by_property_directly(docs, meta_key) |
| LOW | test/test_document.rb | 18 | def setup_document_with_dates(filename) |
| LOW | test/test_tag_highlight.rb | 6 | def render_content_with_text_to_highlight(code) |
| LOW | test/test_tag_highlight.rb | 29 | def highlight_block_with_markup(markup) |
| LOW | test/test_static_file.rb | 24 | def setup_static_file_with_collection(base, dir, name, metadata) |
| LOW | test/test_static_file.rb | 31 | def setup_static_file_with_defaults(base, dir, name, defaults) |
| LOW | test/test_tag_link.rb | 6 | def render_content_with_collection(content, collection_label) |
| LOW | test/test_theme_assets_reader.rb | 14 | def assert_file_with_relative_path(haystack, relative_path) |
| LOW | test/test_theme_assets_reader.rb | 20 | def refute_file_with_relative_path(haystack, relative_path) |
| LOW | rubocop/jekyll/assert_equal_literal_actual.rb | 111 | def replace_based_on_line_length(first_expression, second_expression) |
| LOW | rubocop/jekyll/assert_equal_literal_actual.rb | 124 | def replace_hash_with_variable(first_expression, second_expression) |
| LOW | rubocop/jekyll/assert_equal_literal_actual.rb | 136 | def replace_array_with_variable(first_expression, second_expression) |
| LOW | lib/jekyll/filters.rb | 400 | def compare_property_vs_target(property, target) |
| LOW | lib/jekyll/external.rb | 54 | def require_with_graceful_fail(names) |
| LOW | lib/jekyll/excerpt.rb | 167 | def extract_markdown_link_reference_definitions(head, tail) |
| LOW | lib/jekyll/reader.rb | 200 | def conditionally_generate_entry(entry_path, container, reader) |
| LOW | lib/jekyll/utils.rb | 70 | def pluralized_array_from_hash(hash, singular_key, plural_key) |
| LOW | lib/jekyll/utils.rb | 349 | def replace_character_sequence_with_hyphen(string, mode: "default") |
| LOW | lib/jekyll/renderer.rb | 200 | def add_regenerator_dependencies(layout) |
| LOW | lib/jekyll/command.rb | 41 | def configuration_from_options(options) |
| LOW | lib/jekyll/command.rb | 90 | def process_with_graceful_fail(cmd, options, *klass) |
| LOW | lib/jekyll/configuration.rb | 100 | def get_config_value_with_override(config_key, override) |
| LOW | lib/jekyll/tags/highlight.rb | 93 | def line_highlighter_formatter(formatter) |
| LOW | lib/jekyll/tags/include.rb | 131 | def add_include_to_dependency(site, path, context) |
| LOW | lib/jekyll/tags/include.rb | 236 | def add_include_to_dependency(inclusion, context) |
| LOW | lib/jekyll/commands/doctor.rb | 60 | def deprecated_relative_permalinks(site) |
| LOW | lib/jekyll/commands/serve/servlet.rb | 187 | def conditionally_inject_charset(res) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | benchmark/conditional_liquid.rb | 15 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor libero at |
| LOW | benchmark/conditional_liquid.rb | 15 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor libero at |
| LOW | benchmark/conditional_liquid.rb | 27 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor libero at |
| LOW | benchmark/conditional_liquid.rb | 27 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor libero at |
| LOW | benchmark/conditional_liquid.rb | 32 | ligula, {% if author == "Jane Doe" %} at finibus eros laoreet id. {% else %} |
| LOW | benchmark/conditional_liquid.rb | 40 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor libero at |
| LOW | benchmark/conditional_liquid.rb | 40 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce auctor libero at |
| LOW | benchmark/conditional_liquid.rb | 62 | "author" => "John Doe", |
| LOW | test/test_page_without_a_file.rb | 37 | %w(lorem ipsum) => "lorem/ipsum", |
| LOW | test/test_page_without_a_file.rb | 117 | "author" => "John Doe", |
| LOW | test/test_page_without_a_file.rb | 127 | assert_equal "John Doe", @page.data["author"] |
| LOW | test/test_page_without_a_file.rb | 157 | @page.content = "Lorem ipsum dolor sit amet" |
| LOW | test/test_page_without_a_file.rb | 157 | @page.content = "Lorem ipsum dolor sit amet" |
| LOW | lib/theme_template/example/index.html | 5 | Lorem ipsum dolor sit amet, quo id prima corrumpit pertinacia, id ius dolor dolores, an veri pertinax explicari mea. Aga |
| LOW | lib/theme_template/example/index.html | 5 | Lorem ipsum dolor sit amet, quo id prima corrumpit pertinacia, id ius dolor dolores, an veri pertinax explicari mea. Aga |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | lib/jekyll/regenerator.rb | 133 | # Check if metadata has been disabled |
| LOW | lib/jekyll/entry_filter.rb | 37 | # Check if the current entry is explicitly included and cache the result |
| LOW | lib/jekyll/entry_filter.rb | 80 | # Check if a file is a symlink. |
| LOW | lib/jekyll/entry_filter.rb | 89 | # Check if given path is outside of current site's configured source directory. |
| LOW | lib/jekyll/entry_filter.rb | 95 | # Check if an entry matches a specific pattern. |
| LOW | lib/jekyll/excerpt.rb | 54 | # Check if excerpt includes a string |
| LOW | lib/jekyll/cache.rb | 120 | # Check if `key` already exists in this cache |
| LOW | lib/jekyll/drops/drop.rb | 174 | # Check if key exists in Drop |
| LOW | lib/jekyll/commands/serve.rb | 302 | # Add SSL to the stack if the user triggers --enable-ssl and they |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | lib/jekyll/commands/serve.rb | 269 | # Keep in our area with a thread or detach the server as requested |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | lib/jekyll/filters.rb | 380 | # We also utilize the Schwartzian transform to make this more efficient. |