parent
b9ea4e35ac
commit
0bdd2ed577
5 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module ProjectServicesLoggable
|
module ProjectServicesLoggable
|
||||||
def log_info(message, params = {})
|
def log_info(message, params = {})
|
||||||
message = build_message(message, params)
|
message = build_message(message, params)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ActiveHookFilter
|
class ActiveHookFilter
|
||||||
def initialize(hook)
|
def initialize(hook)
|
||||||
@hook = hook
|
@hook = hook
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# BranchFilterValidator
|
# BranchFilterValidator
|
||||||
#
|
#
|
||||||
# Custom validator for branch names. Squishes whitespace and ignores empty
|
# Custom validator for branch names. Squishes whitespace and ignores empty
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class JsRegexValidator < ActiveModel::EachValidator
|
class JsRegexValidator < ActiveModel::EachValidator
|
||||||
def validate_each(record, attribute, value)
|
def validate_each(record, attribute, value)
|
||||||
return true if value.blank?
|
return true if value.blank?
|
||||||
|
|
5
changelogs/unreleased/frozen-string-enable-vestigial.yml
Normal file
5
changelogs/unreleased/frozen-string-enable-vestigial.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Enable frozen string in vestigial files
|
||||||
|
merge_request:
|
||||||
|
author: gfyoung
|
||||||
|
type: performance
|
Loading…
Reference in a new issue