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
f65a6475
Commit
f65a6475
authored
Apr 21, 2021
by
Huzaifa Iftikhar
Committed by
Rémy Coutable
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EmptyLineAfterFinalLetItBe offenses in spec/lib/gitlab/ci
parent
836963e4
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
24 additions
and
19 deletions
+24
-19
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-19
changelogs/unreleased/issue-325836-fix-empty-line-after-let-it-be-gitlab-ci.yml
...issue-325836-fix-empty-line-after-let-it-be-gitlab-ci.yml
+5
-0
spec/lib/gitlab/ci/build/policy/changes_spec.rb
spec/lib/gitlab/ci/build/policy/changes_spec.rb
+1
-0
spec/lib/gitlab/ci/config/external/file/local_spec.rb
spec/lib/gitlab/ci/config/external/file/local_spec.rb
+1
-0
spec/lib/gitlab/ci/config/external/file/project_spec.rb
spec/lib/gitlab/ci/config/external/file/project_spec.rb
+1
-0
spec/lib/gitlab/ci/config/external/file/template_spec.rb
spec/lib/gitlab/ci/config/external/file/template_spec.rb
+1
-0
spec/lib/gitlab/ci/config/external/mapper_spec.rb
spec/lib/gitlab/ci/config/external/mapper_spec.rb
+1
-0
spec/lib/gitlab/ci/config/external/processor_spec.rb
spec/lib/gitlab/ci/config/external/processor_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/chain/build_spec.rb
spec/lib/gitlab/ci/pipeline/chain/build_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
...gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb
spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/chain/validate/repository_spec.rb
.../lib/gitlab/ci/pipeline/chain/validate/repository_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/seed/deployment_spec.rb
spec/lib/gitlab/ci/pipeline/seed/deployment_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb
spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb
+1
-0
spec/lib/gitlab/ci/pipeline/seed/processable/resource_group_spec.rb
...itlab/ci/pipeline/seed/processable/resource_group_spec.rb
+1
-0
spec/lib/gitlab/ci/reports/test_failure_history_spec.rb
spec/lib/gitlab/ci/reports/test_failure_history_spec.rb
+1
-0
spec/lib/gitlab/ci/syntax_templates_spec.rb
spec/lib/gitlab/ci/syntax_templates_spec.rb
+1
-0
spec/lib/gitlab/ci/trace/chunked_io_spec.rb
spec/lib/gitlab/ci/trace/chunked_io_spec.rb
+1
-0
spec/lib/gitlab/ci/trace_spec.rb
spec/lib/gitlab/ci/trace_spec.rb
+1
-0
No files found.
.rubocop_manual_todo.yml
View file @
f65a6475
...
...
@@ -787,25 +787,6 @@ RSpec/EmptyLineAfterFinalLetItBe:
-
spec/lib/gitlab/auth/otp/strategies/forti_token_cloud_spec.rb
-
spec/lib/gitlab/auth_spec.rb
-
spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb
-
spec/lib/gitlab/ci/build/policy/changes_spec.rb
-
spec/lib/gitlab/ci/config/external/file/local_spec.rb
-
spec/lib/gitlab/ci/config/external/file/project_spec.rb
-
spec/lib/gitlab/ci/config/external/file/template_spec.rb
-
spec/lib/gitlab/ci/config/external/mapper_spec.rb
-
spec/lib/gitlab/ci/config/external/processor_spec.rb
-
spec/lib/gitlab/ci/pipeline/chain/build_spec.rb
-
spec/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
-
spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb
-
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
-
spec/lib/gitlab/ci/pipeline/chain/validate/repository_spec.rb
-
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
-
spec/lib/gitlab/ci/pipeline/seed/deployment_spec.rb
-
spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb
-
spec/lib/gitlab/ci/pipeline/seed/processable/resource_group_spec.rb
-
spec/lib/gitlab/ci/reports/test_failure_history_spec.rb
-
spec/lib/gitlab/ci/syntax_templates_spec.rb
-
spec/lib/gitlab/ci/trace/chunked_io_spec.rb
-
spec/lib/gitlab/ci/trace_spec.rb
-
spec/lib/gitlab/closing_issue_extractor_spec.rb
-
spec/lib/gitlab/composer/cache_spec.rb
-
spec/lib/gitlab/data_builder/wiki_page_spec.rb
...
...
changelogs/unreleased/issue-325836-fix-empty-line-after-let-it-be-gitlab-ci.yml
0 → 100644
View file @
f65a6475
---
title
:
Fix EmptyLineAfterFinalLetItBe offenses in spec/lib/gitlab/ci
merge_request
:
58249
author
:
Huzaifa Iftikhar @huzaifaiftikhar
type
:
fixed
spec/lib/gitlab/ci/build/policy/changes_spec.rb
View file @
f65a6475
...
...
@@ -120,6 +120,7 @@ RSpec.describe Gitlab::Ci::Build::Policy::Changes do
context
'when branch is created'
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
do
create
(
:ci_empty_pipeline
,
project:
project
,
ref:
'feature'
,
...
...
spec/lib/gitlab/ci/config/external/file/local_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Config
::
External
::
File
::
Local
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:sha
)
{
'12345'
}
let
(
:context
)
{
Gitlab
::
Ci
::
Config
::
External
::
Context
.
new
(
**
context_params
)
}
let
(
:params
)
{
{
local:
location
}
}
...
...
spec/lib/gitlab/ci/config/external/file/project_spec.rb
View file @
f65a6475
...
...
@@ -6,6 +6,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Project do
let_it_be
(
:context_project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:context_user
)
{
user
}
let
(
:parent_pipeline
)
{
double
(
:parent_pipeline
)
}
let
(
:context
)
{
Gitlab
::
Ci
::
Config
::
External
::
Context
.
new
(
**
context_params
)
}
...
...
spec/lib/gitlab/ci/config/external/file/template_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Config
::
External
::
File
::
Template
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:context_params
)
{
{
project:
project
,
sha:
'12345'
,
user:
user
}
}
let
(
:context
)
{
Gitlab
::
Ci
::
Config
::
External
::
Context
.
new
(
**
context_params
)
}
let
(
:template
)
{
'Auto-DevOps.gitlab-ci.yml'
}
...
...
spec/lib/gitlab/ci/config/external/mapper_spec.rb
View file @
f65a6475
...
...
@@ -7,6 +7,7 @@ RSpec.describe Gitlab::Ci::Config::External::Mapper do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:local_file
)
{
'/lib/gitlab/ci/templates/non-existent-file.yml'
}
let
(
:remote_url
)
{
'https://gitlab.com/gitlab-org/gitlab-foss/blob/1234/.gitlab-ci-1.yml'
}
let
(
:template_file
)
{
'Auto-DevOps.gitlab-ci.yml'
}
...
...
spec/lib/gitlab/ci/config/external/processor_spec.rb
View file @
f65a6475
...
...
@@ -8,6 +8,7 @@ RSpec.describe Gitlab::Ci::Config::External::Processor do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:another_project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:sha
)
{
'12345'
}
let
(
:context_params
)
{
{
project:
project
,
sha:
sha
,
user:
user
}
}
let
(
:context
)
{
Gitlab
::
Ci
::
Config
::
External
::
Context
.
new
(
**
context_params
)
}
...
...
spec/lib/gitlab/ci/pipeline/chain/build_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Chain
::
Build
do
let_it_be
(
:project
,
reload:
true
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
,
developer_projects:
[
project
])
}
let
(
:pipeline
)
{
Ci
::
Pipeline
.
new
}
let
(
:variables_attributes
)
do
...
...
spec/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Chain
::
CancelPendingPipelines
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:prev_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:new_commit
)
{
create
(
:commit
,
project:
project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
sha:
new_commit
.
sha
)
}
...
...
spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Chain
::
TemplateUsage
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:command
)
do
...
...
spec/lib/gitlab/ci/pipeline/chain/validate/external_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Chain
::
Validate
::
External
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:pipeline
)
{
build
(
:ci_empty_pipeline
,
user:
user
,
project:
project
)
}
let!
(
:step
)
{
described_class
.
new
(
pipeline
,
command
)
}
...
...
spec/lib/gitlab/ci/pipeline/chain/validate/repository_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Chain
::
Validate
::
Repository
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:pipeline
)
{
build_stubbed
(
:ci_pipeline
)
}
let!
(
:step
)
{
described_class
.
new
(
pipeline
,
command
)
}
...
...
spec/lib/gitlab/ci/pipeline/seed/build_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Seed
::
Build
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:head_sha
)
{
project
.
repository
.
head_commit
.
id
}
let
(
:pipeline
)
{
build
(
:ci_empty_pipeline
,
project:
project
,
sha:
head_sha
)
}
let
(
:root_variables
)
{
[]
}
let
(
:seed_context
)
{
double
(
pipeline:
pipeline
,
root_variables:
root_variables
)
}
...
...
spec/lib/gitlab/ci/pipeline/seed/deployment_spec.rb
View file @
f65a6475
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Seed
::
Deployment
do
let_it_be
(
:project
,
refind:
true
)
{
create
(
:project
,
:repository
)
}
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
sha:
'b83d6e391c22777fca1ed3012fce84f633d7fed0'
)
...
...
spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb
View file @
f65a6475
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Seed
::
Environment
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:job
)
{
build
(
:ci_build
,
project:
project
)
}
let
(
:seed
)
{
described_class
.
new
(
job
)
}
let
(
:attributes
)
{
{}
}
...
...
spec/lib/gitlab/ci/pipeline/seed/processable/resource_group_spec.rb
View file @
f65a6475
...
...
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Pipeline
::
Seed
::
Processable
::
ResourceGroup
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:job
)
{
build
(
:ci_build
,
project:
project
)
}
let
(
:seed
)
{
described_class
.
new
(
job
,
resource_group_key
)
}
...
...
spec/lib/gitlab/ci/reports/test_failure_history_spec.rb
View file @
f65a6475
...
...
@@ -7,6 +7,7 @@ RSpec.describe Gitlab::Ci::Reports::TestFailureHistory, :aggregate_failures do
describe
'#load!'
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:failed_rspec
)
{
create_test_case_rspec_failed
}
let
(
:failed_java
)
{
create_test_case_java_failed
}
...
...
spec/lib/gitlab/ci/syntax_templates_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
'ci/syntax_templates'
do
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:lint
)
{
Gitlab
::
Ci
::
Lint
.
new
(
project:
project
,
current_user:
user
)
}
before
do
...
...
spec/lib/gitlab/ci/trace/chunked_io_spec.rb
View file @
f65a6475
...
...
@@ -6,6 +6,7 @@ RSpec.describe Gitlab::Ci::Trace::ChunkedIO, :clean_gitlab_redis_cache do
include
ChunkedIOHelpers
let_it_be
(
:build
)
{
create
(
:ci_build
,
:running
)
}
let
(
:chunked_io
)
{
described_class
.
new
(
build
)
}
before
do
...
...
spec/lib/gitlab/ci/trace_spec.rb
View file @
f65a6475
...
...
@@ -5,6 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Trace
,
:clean_gitlab_redis_shared_state
,
factory_default: :keep
do
let_it_be
(
:project
)
{
create_default
(
:project
).
freeze
}
let_it_be_with_reload
(
:build
)
{
create
(
:ci_build
,
:success
)
}
let
(
:trace
)
{
described_class
.
new
(
build
)
}
describe
"associations"
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