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
7dbdc0ab
Commit
7dbdc0ab
authored
Jul 03, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it more clear and put heavy condi in the last
parent
842df676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
scripts/ee-specific-lines-check
scripts/ee-specific-lines-check
+4
-4
No files found.
scripts/ee-specific-lines-check
View file @
7dbdc0ab
...
...
@@ -16,11 +16,11 @@ offenses = updated_numstat.select do |file, updated_delta|
more_lines
=
current_delta
&&
updated_delta
>
current_delta
&&
WHITELIST
.
all?
{
|
pattern
|
!
Dir
.
glob
(
pattern
).
include?
(
file
)
}
# Don't complain if we're just adding 1 or 2 more lines, which could be
# `prepend EE::Module` and a blank line that we want.
!
(
current_delta
==
0
&&
updated_delta
<=
2
)
# Don't complain if we're just adding 1 or 2 more lines, which could be
# `prepend EE::Module` and a blank line that we want.
more_lines
&&
!
(
current_delta
==
0
&&
updated_delta
<=
2
)
more_lines
&&
!
WHITELIST
.
any?
{
|
pattern
|
Dir
.
glob
(
pattern
).
include?
(
file
)
}
end
if
offenses
.
empty?
...
...
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