Commit ade74215 authored by Markus Koller's avatar Markus Koller Committed by Vitali Tatarintev

Fix Style/FrozenStringLiteralComment violations in scripts

Auto-corrected with Rubocop
parent bb5eea20
...@@ -2494,29 +2494,5 @@ Style/FrozenStringLiteralComment: ...@@ -2494,29 +2494,5 @@ Style/FrozenStringLiteralComment:
- 'app/views/projects/tags/_tag.atom.builder' - 'app/views/projects/tags/_tag.atom.builder'
- 'app/views/projects/tags/index.atom.builder' - 'app/views/projects/tags/index.atom.builder'
- 'app/views/users/show.atom.builder' - 'app/views/users/show.atom.builder'
- 'bin/secpick'
- 'danger/changes_size/Dangerfile' - 'danger/changes_size/Dangerfile'
- 'danger/metadata/Dangerfile' - 'danger/metadata/Dangerfile'
- 'scripts/flaky_examples/detect-new-flaky-examples'
- 'scripts/flaky_examples/prune-old-flaky-examples'
- 'scripts/gather-test-memory-data'
- 'scripts/generate-gems-memory-metrics-static'
- 'scripts/generate-gems-size-metrics-static'
- 'scripts/generate-memory-metrics-on-boot'
- 'scripts/generate-test-mapping'
- 'scripts/gitaly-test-build'
- 'scripts/gitaly-test-spawn'
- 'scripts/gitaly_test.rb'
- 'scripts/insert-rspec-profiling-data'
- 'scripts/lint-rugged'
- 'scripts/merge-html-reports'
- 'scripts/merge-reports'
- 'scripts/merge-simplecov'
- 'scripts/no-ee-check'
- 'scripts/pack-test-mapping'
- 'scripts/static-analysis'
- 'scripts/sync-reports'
- 'scripts/unpack-test-mapping'
- 'scripts/update-feature-categories'
- 'scripts/used-feature-flags'
- 'scripts/verify-tff-mapping'
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: false # frozen_string_literal: true
require 'active_support/core_ext/object/to_query' require 'active_support/core_ext/object/to_query'
require 'optparse' require 'optparse'
...@@ -9,12 +9,12 @@ require 'rainbow/refinement' ...@@ -9,12 +9,12 @@ require 'rainbow/refinement'
using Rainbow using Rainbow
module Secpick module Secpick
BRANCH_PREFIX = 'security'.freeze BRANCH_PREFIX = 'security'
STABLE_SUFFIX = 'stable'.freeze STABLE_SUFFIX = 'stable'
DEFAULT_REMOTE = 'security'.freeze DEFAULT_REMOTE = 'security'
SECURITY_MR_URL = 'https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/new'.freeze SECURITY_MR_URL = 'https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/new'
class SecurityFix class SecurityFix
def initialize def initialize
...@@ -27,12 +27,12 @@ module Secpick ...@@ -27,12 +27,12 @@ module Secpick
def source_branch def source_branch
branch = "#{@options[:branch]}-#{@options[:version]}" branch = "#{@options[:branch]}-#{@options[:version]}"
branch.prepend("#{BRANCH_PREFIX}-") unless branch.start_with?("#{BRANCH_PREFIX}-") branch = "#{BRANCH_PREFIX}-#{branch}" unless branch.start_with?("#{BRANCH_PREFIX}-")
branch.freeze branch
end end
def stable_branch def stable_branch
"#{@options[:version]}-#{STABLE_SUFFIX}-ee".freeze "#{@options[:version]}-#{STABLE_SUFFIX}-ee"
end end
def git_commands def git_commands
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json' require 'json'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# lib/rspec_flaky/flaky_examples_collection.rb is requiring # lib/rspec_flaky/flaky_examples_collection.rb is requiring
# `active_support/hash_with_indifferent_access`, and we install the `activesupport` # `active_support/hash_with_indifferent_access`, and we install the `activesupport`
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'csv' require 'csv'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
abort "usage: #{__FILE__} <memory_bundle_objects_file_name>" unless ARGV.length == 1 abort "usage: #{__FILE__} <memory_bundle_objects_file_name>" unless ARGV.length == 1
memory_bundle_objects_file_name = ARGV.first memory_bundle_objects_file_name = ARGV.first
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
abort "usage: #{__FILE__} <memory_bundle_mem_file_name>" unless ARGV.length == 1 abort "usage: #{__FILE__} <memory_bundle_mem_file_name>" unless ARGV.length == 1
memory_bundle_mem_file_name = ARGV.first memory_bundle_mem_file_name = ARGV.first
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
abort "usage: #{__FILE__} <memory_bundle_mem_file_name>" unless ARGV.length == 1 abort "usage: #{__FILE__} <memory_bundle_mem_file_name>" unless ARGV.length == 1
memory_bundle_mem_file_name = ARGV.first memory_bundle_mem_file_name = ARGV.first
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json' require 'json'
require_relative '../tooling/lib/tooling/test_map_generator' require_relative '../tooling/lib/tooling/test_map_generator'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'fileutils' require 'fileutils'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# This script is used both in CI and in local development 'rspec' runs. # This script is used both in CI and in local development 'rspec' runs.
......
# frozen_string_literal: true
# This file contains environment settings for gitaly when it's running # This file contains environment settings for gitaly when it's running
# as part of the gitlab-ce/ee test suite. # as part of the gitlab-ce/ee test suite.
# #
...@@ -52,7 +54,7 @@ module GitalyTest ...@@ -52,7 +54,7 @@ module GitalyTest
if ENV['CI'] if ENV['CI']
bundle_path = File.expand_path('../vendor/gitaly-ruby', __dir__) bundle_path = File.expand_path('../vendor/gitaly-ruby', __dir__)
env_hash['BUNDLE_FLAGS'] << " --path=#{bundle_path}" env_hash['BUNDLE_FLAGS'] += " --path=#{bundle_path}"
end end
env_hash env_hash
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'csv' require 'csv'
require 'rspec_profiling' require 'rspec_profiling'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
ALLOWED = [ ALLOWED = [
# https://gitlab.com/gitlab-org/gitaly/issues/760 # https://gitlab.com/gitlab-org/gitaly/issues/760
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'nokogiri' require 'nokogiri'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json' require 'json'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require_relative '../spec/simplecov_env' require_relative '../spec/simplecov_env'
SimpleCovEnv.configure_profile SimpleCovEnv.configure_profile
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
ee_path = File.join(File.expand_path(__dir__), '../ee') ee_path = File.join(File.expand_path(__dir__), '../ee')
if Dir.exist?(ee_path) if Dir.exist?(ee_path)
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json' require 'json'
require_relative '../tooling/lib/tooling/test_map_packer' require_relative '../tooling/lib/tooling/test_map_packer'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
# We don't have auto-loading here # We don't have auto-loading here
require_relative '../lib/gitlab' require_relative '../lib/gitlab'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'rubygems' require 'rubygems'
require 'fog/aws' require 'fog/aws'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json' require 'json'
require_relative '../tooling/lib/tooling/test_map_packer' require_relative '../tooling/lib/tooling/test_map_packer'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'uri' require 'uri'
require 'net/http' require 'net/http'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'set' require 'set'
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true
require 'set' require 'set'
......
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