Commit 09305bfe authored by gfyoung's avatar gfyoung Committed by Thong Kuah

Turn on frozen string cop for ee/spec

Follow-up to:

https://gitlab.com/gitlab-org/gitlab/merge_requests/17754
parent 2cb2352d
...@@ -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