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