Skip to content
Snippets Groups Projects
Commit 771e9374 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 43 additions and 0 deletions
---
title: Enable frozen strings in lib/banzai/filter/*.rb
merge_request: 20775
author:
type: performance
# frozen_string_literal: true
require 'uri'
 
module Banzai
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# Issues, Merge Requests, Snippets, Commits and Commit Ranges share
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
class AsciiDocPostProcessingFilter < HTML::Pipeline::Filter
Loading
Loading
# frozen_string_literal: true
require 'uri'
 
module Banzai
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
class BlockquoteFenceFilter < HTML::Pipeline::TextFilter
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that renders `color` followed by a color "chip".
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that replaces commit range references with links.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that replaces commit references with links.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that replaces users' names and emails in commit trailers
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that replaces :emoji: and unicode with images.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# The actual filter is implemented in the EE mixin
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that replaces external issue tracker references with links.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML Filter to modify the attributes of external links
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML Filter for parsing Gollum's tags in HTML. It's only parses the
Loading
Loading
# frozen_string_literal: true
require 'erb'
 
module Banzai
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that wraps links around inline images.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
class InlineDiffFilter < HTML::Pipeline::Filter
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
class IssuableReferenceFilter < AbstractReferenceFilter
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
# HTML filter that appends state information to issuable links.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment