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
11ea3d0b
Commit
11ea3d0b
authored
May 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
fe10ea1f
96aa0838
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
rubocop/qa_helpers.rb
rubocop/qa_helpers.rb
+1
-1
rubocop/spec_helpers.rb
rubocop/spec_helpers.rb
+4
-2
No files found.
rubocop/qa_helpers.rb
View file @
11ea3d0b
...
...
@@ -5,7 +5,7 @@ module RuboCop
def
in_qa_file?
(
node
)
path
=
node
.
location
.
expression
.
source_buffer
.
name
path
.
start_with?
(
File
.
join
(
Dir
.
pwd
,
'qa'
))
path
.
start_with?
(
File
.
join
(
RuboCop
::
PathUtil
.
pwd
,
'qa'
))
end
end
end
rubocop/spec_helpers.rb
View file @
11ea3d0b
...
...
@@ -6,14 +6,16 @@ module RuboCop
# Returns true if the given node originated from the spec directory.
def
in_spec?
(
node
)
path
=
node
.
location
.
expression
.
source_buffer
.
name
pwd
=
RuboCop
::
PathUtil
.
pwd
!
SPEC_HELPERS
.
include?
(
File
.
basename
(
path
))
&&
path
.
start_with?
(
File
.
join
(
Dir
.
pwd
,
'spec'
),
File
.
join
(
Dir
.
pwd
,
'ee'
,
'spec'
))
path
.
start_with?
(
File
.
join
(
pwd
,
'spec'
),
File
.
join
(
pwd
,
'ee'
,
'spec'
))
end
def
migration_directories
@migration_directories
||=
MIGRATION_SPEC_DIRECTORIES
.
map
do
|
dir
|
[
File
.
join
(
Dir
.
pwd
,
dir
),
File
.
join
(
Dir
.
pwd
,
'ee'
,
dir
)]
pwd
=
RuboCop
::
PathUtil
.
pwd
[
File
.
join
(
pwd
,
dir
),
File
.
join
(
pwd
,
'ee'
,
dir
)]
end
.
flatten
end
...
...
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