Commit cc48bb8f authored by Thong Kuah's avatar Thong Kuah

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

Enable frozen string for spec/rubocop

See merge request gitlab-org/gitlab!19277
parents bc8581ab f288f2fe
...@@ -56,7 +56,7 @@ Style/FrozenStringLiteralComment: ...@@ -56,7 +56,7 @@ Style/FrozenStringLiteralComment:
- 'qa/**/*' - 'qa/**/*'
- 'rubocop/**/*' - 'rubocop/**/*'
- 'scripts/**/*' - 'scripts/**/*'
- 'spec/**/*' - 'spec/lib/**/*'
RSpec/FilePath: RSpec/FilePath:
Exclude: Exclude:
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
require 'rubocop' require 'rubocop'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# #
# # generate-seed-repo-rb # # generate-seed-repo-rb
# #
...@@ -15,9 +16,9 @@ ...@@ -15,9 +16,9 @@
require 'erb' require 'erb'
require 'tempfile' require 'tempfile'
SOURCE = File.expand_path('gitlab-git-test.git', __dir__).freeze SOURCE = File.expand_path('gitlab-git-test.git', __dir__)
SCRIPT_NAME = 'generate-seed-repo-rb'.freeze SCRIPT_NAME = 'generate-seed-repo-rb'
REPO_NAME = 'gitlab-git-test.git'.freeze REPO_NAME = 'gitlab-git-test.git'
def main def main
Dir.mktmpdir do |dir| Dir.mktmpdir do |dir|
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
abort unless [ abort unless [
system('spec/support/generate-seed-repo-rb', out: 'spec/support/helpers/seed_repo.rb'), system('spec/support/generate-seed-repo-rb', out: 'spec/support/helpers/seed_repo.rb'),
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'fileutils' require 'fileutils'
REPO = 'spec/support/gitlab-git-test.git'.freeze REPO = 'spec/support/gitlab-git-test.git'
PACK_DIR = REPO + '/objects/pack' PACK_DIR = REPO + '/objects/pack'
GIT = %W[git --git-dir=#{REPO}].freeze GIT = %W[git --git-dir=#{REPO}].freeze
BASE_PACK = 'pack-691247af2a6acb0b63b73ac0cb90540e93614043'.freeze BASE_PACK = 'pack-691247af2a6acb0b63b73ac0cb90540e93614043'
def main def main
unpack unpack
......
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