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
766f5fb6
Commit
766f5fb6
authored
Jun 11, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Remove RuboCop debugging code that's not needed anymore
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
8baad3c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
50 deletions
+0
-50
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+0
-14
scripts/debug-rubocop
scripts/debug-rubocop
+0
-36
No files found.
.gitlab/ci/rails.gitlab-ci.yml
View file @
766f5fb6
...
...
@@ -203,13 +203,6 @@ update-static-analysis-cache:
-
.shared:rules:update-cache
stage
:
prepare
script
:
-
git log -n 1 --pretty=format:%H -- .rubocop.yml
-
git log -n 1 --pretty=format:%H -- .rubocop_manual_todo.yml
-
git log -n 1 --pretty=format:%H -- .rubocop_todo.yml
-
git log -n 1 --pretty=format:%H -- rubocop/rubocop-migrations.yml
-
git log -n 1 --pretty=format:%H -- rubocop/rubocop-usage-data.yml
-
git log -n 1 --pretty=format:%H -- rubocop/rubocop-code_reuse.yml
-
bundle exec scripts/debug-rubocop spec/factories/namespace/aggregation_schedules.rb
-
run_timed_command "bundle exec rubocop --parallel"
# For the moment we only cache `tmp/rubocop_cache` so we don't need to run all the tasks.
static-analysis
:
...
...
@@ -220,13 +213,6 @@ static-analysis:
parallel
:
4
script
:
-
run_timed_command "retry yarn install --frozen-lockfile"
-
git log -n 1 --pretty=format:%H -- .rubocop.yml
-
git log -n 1 --pretty=format:%H -- .rubocop_manual_todo.yml
-
git log -n 1 --pretty=format:%H -- .rubocop_todo.yml
-
git log -n 1 --pretty=format:%H -- rubocop/rubocop-migrations.yml
-
git log -n 1 --pretty=format:%H -- rubocop/rubocop-usage-data.yml
-
git log -n 1 --pretty=format:%H -- rubocop/rubocop-code_reuse.yml
-
bundle exec scripts/debug-rubocop spec/factories/namespace/aggregation_schedules.rb
-
scripts/static-analysis
static-analysis as-if-foss
:
...
...
scripts/debug-rubocop
deleted
100755 → 0
View file @
8baad3c7
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'rubocop'
file
=
ARGV
[
0
]
unless
file
warn
(
'Error: missing file, please supply one'
)
abort
end
# Taken from https://github.com/rubocop/rubocop/blob/v0.93.1/lib/rubocop/result_cache.rb#L159-L171
def
file_checksum
(
file
,
config_store
)
digester
=
Digest
::
SHA1
.
new
mode
=
File
.
stat
(
file
).
mode
puts
"mode of
#{
file
}
is
#{
mode
}
"
puts
"signature of
#{
file
}
is
#{
config_store
.
for_file
(
file
).
signature
}
"
puts
"config is:"
puts
config_store
.
for_file
(
file
).
to_h
digester
.
update
(
"
#{
file
}#{
mode
}#{
config_store
.
for_file
(
file
).
signature
}
"
)
digester
.
file
(
file
)
digester
.
hexdigest
rescue
Errno
::
ENOENT
# Spurious files that come and go should not cause a crash, at least not
# here.
'_'
end
config_store
=
RuboCop
::
ConfigStore
.
new
checksum
=
file_checksum
(
file
,
config_store
)
puts
"File checksum for
#{
file
}
is
#{
checksum
}
"
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