Commit 4d3b1d55 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'frozen-string-enable-ee-spec' into 'master'

Enable frozen string for ee/spec

See merge request gitlab-org/gitlab!18167
parents 2cb2352d 09305bfe
...@@ -51,7 +51,6 @@ Style/FrozenStringLiteralComment: ...@@ -51,7 +51,6 @@ Style/FrozenStringLiteralComment:
- 'danger/**/*' - 'danger/**/*'
- 'db/**/*' - 'db/**/*'
- 'ee/db/**/*' - 'ee/db/**/*'
- 'ee/spec/**/*'
- 'ee/lib/tasks/**/*' - 'ee/lib/tasks/**/*'
- 'lib/tasks/**/*' - 'lib/tasks/**/*'
- 'qa/**/*' - 'qa/**/*'
......
...@@ -104,7 +104,7 @@ class CsvBuilder ...@@ -104,7 +104,7 @@ class CsvBuilder
def excel_sanitize(line) def excel_sanitize(line)
return if line.nil? return if line.nil?
line.prepend("'") if line =~ /^[=\+\-@;]/ line = ["'", line].join if line =~ /^[=\+\-@;]/
line line
end end
end end
...@@ -12,7 +12,9 @@ module Gitlab ...@@ -12,7 +12,9 @@ module Gitlab
end end
def call(env) def call(env)
env['HTTP_AUTHORIZATION']&.sub!('token', 'Bearer') if self.class.jira_dvcs_connector?(env) if self.class.jira_dvcs_connector?(env)
env['HTTP_AUTHORIZATION'] = env['HTTP_AUTHORIZATION']&.sub('token', 'Bearer')
end
@app.call(env) @app.call(env)
end end
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe CsvBuilder do describe CsvBuilder do
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Gitlab::Jira::Middleware do describe Gitlab::Jira::Middleware do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment