Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ade74215
Commit
ade74215
authored
Feb 12, 2021
by
Markus Koller
Committed by
Vitali Tatarintev
Feb 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/FrozenStringLiteralComment violations in scripts
Auto-corrected with Rubocop
parent
bb5eea20
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
34 additions
and
33 deletions
+34
-33
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-24
bin/secpick
bin/secpick
+8
-8
scripts/flaky_examples/detect-new-flaky-examples
scripts/flaky_examples/detect-new-flaky-examples
+1
-0
scripts/flaky_examples/prune-old-flaky-examples
scripts/flaky_examples/prune-old-flaky-examples
+1
-0
scripts/gather-test-memory-data
scripts/gather-test-memory-data
+1
-0
scripts/generate-gems-memory-metrics-static
scripts/generate-gems-memory-metrics-static
+1
-0
scripts/generate-gems-size-metrics-static
scripts/generate-gems-size-metrics-static
+1
-0
scripts/generate-memory-metrics-on-boot
scripts/generate-memory-metrics-on-boot
+1
-0
scripts/generate-test-mapping
scripts/generate-test-mapping
+1
-0
scripts/gitaly-test-build
scripts/gitaly-test-build
+1
-0
scripts/gitaly-test-spawn
scripts/gitaly-test-spawn
+1
-0
scripts/gitaly_test.rb
scripts/gitaly_test.rb
+3
-1
scripts/insert-rspec-profiling-data
scripts/insert-rspec-profiling-data
+1
-0
scripts/lint-rugged
scripts/lint-rugged
+1
-0
scripts/merge-html-reports
scripts/merge-html-reports
+1
-0
scripts/merge-reports
scripts/merge-reports
+1
-0
scripts/merge-simplecov
scripts/merge-simplecov
+1
-0
scripts/no-ee-check
scripts/no-ee-check
+2
-0
scripts/pack-test-mapping
scripts/pack-test-mapping
+1
-0
scripts/static-analysis
scripts/static-analysis
+1
-0
scripts/sync-reports
scripts/sync-reports
+1
-0
scripts/unpack-test-mapping
scripts/unpack-test-mapping
+1
-0
scripts/update-feature-categories
scripts/update-feature-categories
+1
-0
scripts/used-feature-flags
scripts/used-feature-flags
+1
-0
scripts/verify-tff-mapping
scripts/verify-tff-mapping
+1
-0
No files found.
.rubocop_manual_todo.yml
View file @
ade74215
...
@@ -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'
bin/secpick
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal:
fals
e
# frozen_string_literal:
tru
e
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
...
...
scripts/flaky_examples/detect-new-flaky-examples
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'json'
require
'json'
...
...
scripts/flaky_examples/prune-old-flaky-examples
View file @
ade74215
#!/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`
...
...
scripts/gather-test-memory-data
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'csv'
require
'csv'
...
...
scripts/generate-gems-memory-metrics-static
View file @
ade74215
#!/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
...
...
scripts/generate-gems-size-metrics-static
View file @
ade74215
#!/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
...
...
scripts/generate-memory-metrics-on-boot
View file @
ade74215
#!/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
...
...
scripts/generate-test-mapping
View file @
ade74215
#!/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'
...
...
scripts/gitaly-test-build
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'fileutils'
require
'fileutils'
...
...
scripts/gitaly-test-spawn
View file @
ade74215
#!/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.
...
...
scripts/gitaly_test.rb
View file @
ade74215
# 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
...
...
scripts/insert-rspec-profiling-data
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'csv'
require
'csv'
require
'rspec_profiling'
require
'rspec_profiling'
...
...
scripts/lint-rugged
View file @
ade74215
#!/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
...
...
scripts/merge-html-reports
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'nokogiri'
require
'nokogiri'
...
...
scripts/merge-reports
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'json'
require
'json'
...
...
scripts/merge-simplecov
View file @
ade74215
#!/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
...
...
scripts/no-ee-check
View file @
ade74215
#!/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
)
...
...
scripts/pack-test-mapping
View file @
ade74215
#!/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'
...
...
scripts/static-analysis
View file @
ade74215
#!/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'
...
...
scripts/sync-reports
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'rubygems'
require
'rubygems'
require
'fog/aws'
require
'fog/aws'
...
...
scripts/unpack-test-mapping
View file @
ade74215
#!/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'
...
...
scripts/update-feature-categories
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'uri'
require
'uri'
require
'net/http'
require
'net/http'
...
...
scripts/used-feature-flags
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'set'
require
'set'
...
...
scripts/verify-tff-mapping
View file @
ade74215
#!/usr/bin/env ruby
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'set'
require
'set'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment