Skip to content
Snippets Groups Projects
Commit c858f70d authored by gfyoung's avatar gfyoung Committed by Rémy Coutable
Browse files

Enable frozen string for lib/gitlab/*.rb

parent 173b1436
No related branches found
No related tags found
No related merge requests found
Showing
with 42 additions and 1 deletion
---
title: Enable frozen string for lib/gitlab/*.rb
merge_request:
author: gfyoung
type: performance
Loading
Loading
@@ -164,7 +164,7 @@ module Backup
 
def tar_version
tar_version, _ = Gitlab::Popen.popen(%w(tar --version))
tar_version.force_encoding('locale').split("\n").first
tar_version.dup.force_encoding('locale').split("\n").first
end
 
def skipped?(item)
Loading
Loading
# frozen_string_literal: true
# Gitlab::Access module
#
# Define allowed roles that can be used
Loading
Loading
# frozen_string_literal: true
module Gitlab
# This class implements a simple rate limiter that can be used to throttle
# certain actions. Unlike Rack Attack and Rack::Throttle, which operate at
Loading
Loading
# frozen_string_literal: true
module Gitlab
module Allowable
def can?(*args)
Loading
Loading
# frozen_string_literal: true
module Gitlab
class AppLogger < Gitlab::Logger
def self.file_name_noext
Loading
Loading
# frozen_string_literal: true
require 'asciidoctor'
require 'asciidoctor/converter/html5'
require "asciidoctor-plantuml"
Loading
Loading
# frozen_string_literal: true
module Gitlab
module Auth
MissingPersonalAccessTokenError = Class.new(StandardError)
Loading
Loading
# frozen_string_literal: true
module Gitlab
module BackgroundMigration
def self.queue
Loading
Loading
# frozen_string_literal: true
# This is a base controller for doorkeeper.
# It adds the `can?` helper used in the views.
module Gitlab
Loading
Loading
# frozen_string_literal: true
module Gitlab
class Blame
attr_accessor :blob, :commit
Loading
Loading
# frozen_string_literal: true
# This has been extracted from https://github.com/github/linguist/blob/master/lib/linguist/blob_helper.rb
module Gitlab
module BlobHelper
Loading
Loading
# frozen_string_literal: true
module Gitlab
class BuildAccess < UserAccess
attr_accessor :user, :project
Loading
Loading
# frozen_string_literal: true
module Gitlab
class ChangesList
include Enumerable
Loading
Loading
# frozen_string_literal: true
require 'json'
 
module Gitlab
Loading
Loading
# frozen_string_literal: true
module Gitlab
# For backwards compatibility, generic CI (which is a build without a user) is
# allowed to :build_download_code without any other checks.
Loading
Loading
# frozen_string_literal: true
module Gitlab
class ClosingIssueExtractor
ISSUE_CLOSING_REGEX = begin
Loading
Loading
# frozen_string_literal: true
module Gitlab
# Module containing GitLab's syntax color scheme definitions and helper
# methods for accessing them.
Loading
Loading
# frozen_string_literal: true
module Gitlab::ConfigHelper
def gitlab_config_features
Gitlab.config.gitlab.default_projects_features
Loading
Loading
# frozen_string_literal: true
module Gitlab
class ContributionsCalendar
attr_reader :contributor
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