Commit 771e9374 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sh-freeze-banzai-filter-strings' into 'master'

Enable frozen strings in lib/banzai/filter/*.rb

See merge request gitlab-org/gitlab-ce!20775
parents f0b1780f 8b4154b5
---
title: Enable frozen strings in lib/banzai/filter/*.rb
merge_request: 20775
author:
type: performance
# frozen_string_literal: true
require 'uri' require 'uri'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# Issues, Merge Requests, Snippets, Commits and Commit Ranges share # Issues, Merge Requests, Snippets, Commits and Commit Ranges share
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class AsciiDocPostProcessingFilter < HTML::Pipeline::Filter class AsciiDocPostProcessingFilter < HTML::Pipeline::Filter
......
# frozen_string_literal: true
require 'uri' require 'uri'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class BlockquoteFenceFilter < HTML::Pipeline::TextFilter class BlockquoteFenceFilter < HTML::Pipeline::TextFilter
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that renders `color` followed by a color "chip". # HTML filter that renders `color` followed by a color "chip".
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces commit range references with links. # HTML filter that replaces commit range references with links.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces commit references with links. # HTML filter that replaces commit references with links.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces users' names and emails in commit trailers # HTML filter that replaces users' names and emails in commit trailers
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces :emoji: and unicode with images. # HTML filter that replaces :emoji: and unicode with images.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# The actual filter is implemented in the EE mixin # The actual filter is implemented in the EE mixin
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces external issue tracker references with links. # HTML filter that replaces external issue tracker references with links.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML Filter to modify the attributes of external links # HTML Filter to modify the attributes of external links
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML Filter for parsing Gollum's tags in HTML. It's only parses the # HTML Filter for parsing Gollum's tags in HTML. It's only parses the
......
# frozen_string_literal: true
require 'erb' require 'erb'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that wraps links around inline images. # HTML filter that wraps links around inline images.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class InlineDiffFilter < HTML::Pipeline::Filter class InlineDiffFilter < HTML::Pipeline::Filter
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class IssuableReferenceFilter < AbstractReferenceFilter class IssuableReferenceFilter < AbstractReferenceFilter
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that appends state information to issuable links. # HTML filter that appends state information to issuable links.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces issue references with links. References to # HTML filter that replaces issue references with links. References to
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces label references with links. # HTML filter that replaces label references with links.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class MarkdownFilter < HTML::Pipeline::TextFilter class MarkdownFilter < HTML::Pipeline::TextFilter
......
# frozen_string_literal: true
require 'uri' require 'uri'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces merge request references with links. References # HTML filter that replaces merge request references with links. References
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class MermaidFilter < HTML::Pipeline::Filter class MermaidFilter < HTML::Pipeline::Filter
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces milestone references with links. # HTML filter that replaces milestone references with links.
......
# frozen_string_literal: true
require "nokogiri" require "nokogiri"
require "asciidoctor-plantuml/plantuml" require "asciidoctor-plantuml/plantuml"
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that removes references to records that the current user does # HTML filter that removes references to records that the current user does
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# Base class for GitLab Flavored Markdown reference filters. # Base class for GitLab Flavored Markdown reference filters.
......
# frozen_string_literal: true
require 'uri' require 'uri'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# Sanitize HTML # Sanitize HTML
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that sets dir="auto" for RTL languages support # HTML filter that sets dir="auto" for RTL languages support
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces snippet references with links. References to # HTML filter that replaces snippet references with links. References to
......
# frozen_string_literal: true
require 'task_list/filter' require 'task_list/filter'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# HTML filter that replaces user or group references with links. # HTML filter that replaces user or group references with links.
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
# Find every image that isn't already wrapped in an `a` tag, and that has # Find every image that isn't already wrapped in an `a` tag, and that has
......
# frozen_string_literal: true
require 'uri' require 'uri'
module Banzai module Banzai
......
# frozen_string_literal: true
module Banzai module Banzai
module Filter module Filter
class YamlFrontMatterFilter < HTML::Pipeline::Filter class YamlFrontMatterFilter < HTML::Pipeline::Filter
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment