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

Merge branch 'more-frozen-string-enable-lib' into 'master'

Enable more frozen string in lib/**/*.rb

See merge request gitlab-org/gitlab-ce!22174
parents 7f22bc98 d598e4fd
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 43 additions and 0 deletions
---
title: Enable more frozen string in lib/**/*.rb
merge_request:
author: gfyoung
type: performance
# frozen_string_literal: true
module AfterCommitQueue
extend ActiveSupport::Concern
 
Loading
Loading
# frozen_string_literal: true
module Backup
Error = Class.new(StandardError)
end
# frozen_string_literal: true
module Banzai
# if you need to render markdown, then you probably need to post_process as well,
# such as removing references that the current user doesn't have
Loading
Loading
# frozen_string_literal: true
module Banzai
module ColorParser
ALPHA = /0(?:\.\d+)?|\.\d+|1(?:\.0+)?/ # 0.0..1.0
Loading
Loading
# frozen_string_literal: true
module Banzai
module CommitRenderer
ATTRIBUTES = [:description, :title].freeze
Loading
Loading
# frozen_string_literal: true
module Banzai
# Common methods for ReferenceFilters that support an optional cross-project
# reference.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
def self.[](name)
Loading
Loading
# frozen_string_literal: true
# `CommonMark` markdown engine for GitLab's Banzai markdown filter.
# This module is used in Banzai::Filter::MarkdownFilter.
# Used gem is `commonmarker` which is a ruby wrapper for libcmark (CommonMark parser)
Loading
Loading
# frozen_string_literal: true
# `Redcarpet` markdown engine for GitLab's Banzai markdown filter.
# This module is used in Banzai::Filter::MarkdownFilter.
# Used gem is `redcarpet` which is a ruby library for markdown processing.
Loading
Loading
# frozen_string_literal: true
module Banzai
module Filter
class WikiLinkFilter < HTML::Pipeline::Filter
Loading
Loading
# frozen_string_literal: true
module Banzai
class FilterArray < Array
# Insert a value immediately after another value
Loading
Loading
# frozen_string_literal: true
module Banzai
# Extract references to issuables from multiple documents
 
Loading
Loading
# frozen_string_literal: true
module Banzai
# Class for rendering multiple objects (e.g. Note instances) in a single pass,
# using +render_field+ to benefit from caching in the database. Rendering and
Loading
Loading
# frozen_string_literal: true
module Banzai
module Pipeline
def self.[](name)
Loading
Loading
# frozen_string_literal: true
module Banzai
module Pipeline
class AsciiDocPipeline < BasePipeline
Loading
Loading
# frozen_string_literal: true
module Banzai
module Pipeline
class AtomPipeline < FullPipeline
Loading
Loading
# frozen_string_literal: true
module Banzai
module Pipeline
class BasePipeline
Loading
Loading
# frozen_string_literal: true
module Banzai
module Pipeline
class BroadcastMessagePipeline < DescriptionPipeline
Loading
Loading
# frozen_string_literal: true
module Banzai
module Pipeline
module CombinedPipeline
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