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
60b99cf0
Commit
60b99cf0
authored
Apr 20, 2021
by
Huzaifa Iftikhar
Committed by
James Lopez
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang Rubocop offenses for ci models
parent
20a537c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-2
changelogs/unreleased/issue-220040-fix-rails-savebang-ci-modules.yml
...unreleased/issue-220040-fix-rails-savebang-ci-modules.yml
+5
-0
spec/lib/gitlab/ci/ansi2json/style_spec.rb
spec/lib/gitlab/ci/ansi2json/style_spec.rb
+2
-2
spec/lib/gitlab/ci/status/build/common_spec.rb
spec/lib/gitlab/ci/status/build/common_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
60b99cf0
...
...
@@ -166,8 +166,6 @@ Rails/SaveBang:
-
'
spec/lib/gitlab/auth_spec.rb'
-
'
spec/lib/gitlab/authorized_keys_spec.rb'
-
'
spec/lib/gitlab/bitbucket_server_import/importer_spec.rb'
-
'
spec/lib/gitlab/ci/ansi2json/style_spec.rb'
-
'
spec/lib/gitlab/ci/status/build/common_spec.rb'
-
'
spec/lib/gitlab/cycle_analytics/base_event_fetcher_spec.rb'
-
'
spec/lib/gitlab/database/custom_structure_spec.rb'
-
'
spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb'
...
...
changelogs/unreleased/issue-220040-fix-rails-savebang-ci-modules.yml
0 → 100644
View file @
60b99cf0
---
title
:
Fix Rails/SaveBang Rubocop offenses for ci models
merge_request
:
58104
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/lib/gitlab/ci/ansi2json/style_spec.rb
View file @
60b99cf0
...
...
@@ -160,9 +160,9 @@ RSpec.describe Gitlab::Ci::Ansi2json::Style do
with_them
do
it
'change the style'
do
style
=
described_class
.
new
style
.
update
(
initial_state
)
style
.
update
(
initial_state
)
# rubocop:disable Rails/SaveBang
style
.
update
(
ansi_commands
)
style
.
update
(
ansi_commands
)
# rubocop:disable Rails/SaveBang
expect
(
style
.
to_s
).
to
eq
(
result
)
end
...
...
spec/lib/gitlab/ci/status/build/common_spec.rb
View file @
60b99cf0
...
...
@@ -28,7 +28,7 @@ RSpec.describe Gitlab::Ci::Status::Build::Common do
context
'when user does not have access to read build'
do
before
do
project
.
update
(
public_builds:
false
)
project
.
update
!
(
public_builds:
false
)
end
it
{
is_expected
.
not_to
have_details
}
...
...
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