Skip to content
Snippets Groups Projects
Commit d598e4fd authored by gfyoung's avatar gfyoung :thinking:
Browse files

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

Enables frozen for the following:

* lib/*.rb
* lib/banzai/**/*.rb
* lib/bitbucket/**/*.rb
* lib/constraints/**/*.rb
* lib/container_registry/**/*.rb
* lib/declarative_policy/**/*.rb

Partially addresses #47424.
parent c3389c80
No related branches found
No related tags found
Loading
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
......
# 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
......
# frozen_string_literal: true
module Banzai
module ColorParser
ALPHA = /0(?:\.\d+)?|\.\d+|1(?:\.0+)?/ # 0.0..1.0
......
# frozen_string_literal: true
module Banzai
module CommitRenderer
ATTRIBUTES = [:description, :title].freeze
......
# frozen_string_literal: true
module Banzai
# Common methods for ReferenceFilters that support an optional cross-project
# reference.
......
# frozen_string_literal: true
module Banzai
module Filter
def self.[](name)
......
# 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)
......
# 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.
......
# frozen_string_literal: true
module Banzai
module Filter
class WikiLinkFilter < HTML::Pipeline::Filter
......
# frozen_string_literal: true
module Banzai
class FilterArray < Array
# Insert a value immediately after another value
......
# frozen_string_literal: true
module Banzai
# Extract references to issuables from multiple documents
......
# 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
......
# frozen_string_literal: true
module Banzai
module Pipeline
def self.[](name)
......
# frozen_string_literal: true
module Banzai
module Pipeline
class AsciiDocPipeline < BasePipeline
......
# frozen_string_literal: true
module Banzai
module Pipeline
class AtomPipeline < FullPipeline
......
# frozen_string_literal: true
module Banzai
module Pipeline
class BasePipeline
......
# frozen_string_literal: true
module Banzai
module Pipeline
class BroadcastMessagePipeline < DescriptionPipeline
......
# frozen_string_literal: true
module Banzai
module Pipeline
module CombinedPipeline
......
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