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
a97ebdb3
Commit
a97ebdb3
authored
Jan 26, 2022
by
Markus Koller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_220040_15' into 'master'
Fix Rails/SaveBang offenses See merge request gitlab-org/gitlab!75983
parents
51673c40
01b295e5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
12 deletions
+7
-12
.rubocop_todo/rails/save_bang.yml
.rubocop_todo/rails/save_bang.yml
+0
-5
spec/lib/gitlab/import_export/fast_hash_serializer_spec.rb
spec/lib/gitlab/import_export/fast_hash_serializer_spec.rb
+1
-1
spec/lib/gitlab/import_export/fork_spec.rb
spec/lib/gitlab/import_export/fork_spec.rb
+2
-2
spec/lib/gitlab/import_export/group/legacy_tree_saver_spec.rb
.../lib/gitlab/import_export/group/legacy_tree_saver_spec.rb
+2
-2
spec/lib/gitlab/import_export/group/relation_factory_spec.rb
spec/lib/gitlab/import_export/group/relation_factory_spec.rb
+1
-1
spec/lib/gitlab/import_export/group/tree_saver_spec.rb
spec/lib/gitlab/import_export/group/tree_saver_spec.rb
+1
-1
No files found.
.rubocop_todo/rails/save_bang.yml
View file @
a97ebdb3
...
...
@@ -15,11 +15,6 @@ Rails/SaveBang:
-
spec/lib/gitlab/database/custom_structure_spec.rb
-
spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb
-
spec/lib/gitlab/database_importers/self_monitoring/project/create_service_spec.rb
-
spec/lib/gitlab/import_export/fast_hash_serializer_spec.rb
-
spec/lib/gitlab/import_export/fork_spec.rb
-
spec/lib/gitlab/import_export/group/legacy_tree_saver_spec.rb
-
spec/lib/gitlab/import_export/group/relation_factory_spec.rb
-
spec/lib/gitlab/import_export/group/tree_saver_spec.rb
-
spec/lib/gitlab/import_export/importer_spec.rb
-
spec/lib/gitlab/import_export/lfs_restorer_spec.rb
-
spec/lib/gitlab/import_export/lfs_saver_spec.rb
...
...
spec/lib/gitlab/import_export/fast_hash_serializer_spec.rb
View file @
a97ebdb3
...
...
@@ -240,7 +240,7 @@ RSpec.describe Gitlab::ImportExport::FastHashSerializer do
merge_request
=
create
(
:merge_request
,
source_project:
project
,
milestone:
milestone
)
ci_build
=
create
(
:ci_build
,
project:
project
,
when:
nil
)
ci_build
.
pipeline
.
update
(
project:
project
)
ci_build
.
pipeline
.
update
!
(
project:
project
)
create
(
:commit_status
,
project:
project
,
pipeline:
ci_build
.
pipeline
)
create_list
(
:ci_pipeline
,
5
,
:success
,
project:
project
)
...
...
spec/lib/gitlab/import_export/fork_spec.rb
View file @
a97ebdb3
...
...
@@ -38,8 +38,8 @@ RSpec.describe 'forked project import' do
allow
(
instance
).
to
receive
(
:storage_path
).
and_return
(
export_path
)
end
saver
.
save
repo_saver
.
save
saver
.
save
# rubocop:disable Rails/SaveBang
repo_saver
.
save
# rubocop:disable Rails/SaveBang
repo_restorer
.
restore
restorer
.
restore
...
...
spec/lib/gitlab/import_export/group/legacy_tree_saver_spec.rb
View file @
a97ebdb3
...
...
@@ -31,7 +31,7 @@ RSpec.describe Gitlab::ImportExport::Group::LegacyTreeSaver do
# ^ These are specific for the Group::LegacyTreeSaver
context
'JSON'
do
let
(
:saved_group_json
)
do
group_tree_saver
.
save
group_tree_saver
.
save
# rubocop:disable Rails/SaveBang
group_json
(
group_tree_saver
.
full_path
)
end
...
...
@@ -88,7 +88,7 @@ RSpec.describe Gitlab::ImportExport::Group::LegacyTreeSaver do
end
before
do
user2
.
update
(
public_email:
user2
.
email
)
user2
.
update
!
(
public_email:
user2
.
email
)
group
.
add_developer
(
user2
)
end
...
...
spec/lib/gitlab/import_export/group/relation_factory_spec.rb
View file @
a97ebdb3
...
...
@@ -9,7 +9,7 @@ RSpec.describe Gitlab::ImportExport::Group::RelationFactory do
let
(
:importer_user
)
{
admin
}
let
(
:excluded_keys
)
{
[]
}
let
(
:created_object
)
do
described_class
.
create
(
described_class
.
create
(
# rubocop:disable Rails/SaveBang
relation_sym:
relation_sym
,
relation_hash:
relation_hash
,
relation_index:
1
,
...
...
spec/lib/gitlab/import_export/group/tree_saver_spec.rb
View file @
a97ebdb3
...
...
@@ -42,7 +42,7 @@ RSpec.describe Gitlab::ImportExport::Group::TreeSaver do
context
'exported files'
do
before
do
group_tree_saver
.
save
group_tree_saver
.
save
# rubocop:disable Rails/SaveBang
end
it
'has one group per line'
do
...
...
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