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
26eaa109
Commit
26eaa109
authored
Sep 02, 2020
by
Rajendra Kadam
Committed by
Rémy Coutable
Sep 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Lint/NonDeterministicRequireOrder cop
parent
257f2901
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
19 deletions
+16
-19
.rubocop_todo.yml
.rubocop_todo.yml
+0
-8
changelogs/unreleased/non-deter-cop.yml
changelogs/unreleased/non-deter-cop.yml
+5
-0
ee/spec/spec_helper.rb
ee/spec/spec_helper.rb
+4
-4
qa/spec/spec_helper.rb
qa/spec/spec_helper.rb
+3
-3
spec/spec_helper.rb
spec/spec_helper.rb
+4
-4
No files found.
.rubocop_todo.yml
View file @
26eaa109
...
...
@@ -101,14 +101,6 @@ Layout/SpaceInsideParens:
Lint/MissingCopEnableDirective
:
Enabled
:
false
# Offense count: 11
# Cop supports --auto-correct.
Lint/NonDeterministicRequireOrder
:
Exclude
:
-
'
ee/spec/spec_helper.rb'
-
'
qa/spec/spec_helper.rb'
-
'
spec/spec_helper.rb'
# Offense count: 27
# Cop supports --auto-correct.
Lint/RedundantCopDisableDirective
:
...
...
changelogs/unreleased/non-deter-cop.yml
0 → 100644
View file @
26eaa109
---
title
:
Fix Lint/NonDeterministicRequireOrder cop
merge_request
:
41098
author
:
Rajendra Kadam
type
:
fixed
ee/spec/spec_helper.rb
View file @
26eaa109
...
...
@@ -2,10 +2,10 @@
require
Rails
.
root
.
join
(
"spec/support/helpers/stub_requests.rb"
)
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/helpers/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/shared_contexts/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/shared_examples/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/**/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/helpers/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/shared_contexts/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/shared_examples/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"ee/spec/support/**/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
RSpec
.
configure
do
|
config
|
config
.
include
EE
::
LicenseHelpers
...
...
qa/spec/spec_helper.rb
View file @
26eaa109
...
...
@@ -13,9 +13,9 @@ QA::Runtime::Browser.configure!
QA
::
Runtime
::
Scenario
.
from_env
(
QA
::
Runtime
::
Env
.
runtime_scenario_attributes
)
if
QA
::
Runtime
::
Env
.
runtime_scenario_attributes
Dir
[
::
File
.
join
(
__dir__
,
"support/helpers/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
::
File
.
join
(
__dir__
,
"support/shared_contexts/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
::
File
.
join
(
__dir__
,
"support/shared_examples/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
::
File
.
join
(
__dir__
,
"support/helpers/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
::
File
.
join
(
__dir__
,
"support/shared_contexts/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
::
File
.
join
(
__dir__
,
"support/shared_examples/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
RSpec
.
configure
do
|
config
|
QA
::
Specs
::
Helpers
::
Quarantine
.
configure_rspec
...
...
spec/spec_helper.rb
View file @
26eaa109
...
...
@@ -47,10 +47,10 @@ require_relative('../ee/spec/spec_helper') if Gitlab.ee?
require
Rails
.
root
.
join
(
"spec/support/helpers/git_helpers.rb"
)
# Then the rest
Dir
[
Rails
.
root
.
join
(
"spec/support/helpers/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/shared_contexts/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/shared_examples/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/**/*.rb"
)].
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/helpers/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/shared_contexts/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/shared_examples/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
Dir
[
Rails
.
root
.
join
(
"spec/support/**/*.rb"
)].
sort
.
each
{
|
f
|
require
f
}
quality_level
=
Quality
::
TestLevel
.
new
...
...
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