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
a5620a0d
Commit
a5620a0d
authored
May 05, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert changes in lib/tasks/lint.rake
parent
525a9f92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
lib/tasks/lint.rake
lib/tasks/lint.rake
+15
-2
No files found.
lib/tasks/lint.rake
View file @
a5620a0d
...
@@ -36,9 +36,14 @@ unless Rails.env.production?
...
@@ -36,9 +36,14 @@ unless Rails.env.production?
gettext:updated_check
gettext:updated_check
lint:static_verification
lint:static_verification
]
.
each
do
|
task
|
]
.
each
do
|
task
|
warn
"
#{
Time
.
now
}
Running
#{
task
}
\n
"
pid
=
Process
.
fork
do
pid
=
Process
.
fork
do
rd_out
,
wr_out
=
IO
.
pipe
rd_err
,
wr_err
=
IO
.
pipe
stdout
=
$stdout
.
dup
stderr
=
$stderr
.
dup
$stdout
.
reopen
(
wr_out
)
$stderr
.
reopen
(
wr_err
)
begin
begin
Rake
::
Task
[
task
].
invoke
Rake
::
Task
[
task
].
invoke
rescue
SystemExit
=>
ex
rescue
SystemExit
=>
ex
...
@@ -48,7 +53,15 @@ unless Rails.env.production?
...
@@ -48,7 +53,15 @@ unless Rails.env.production?
msg
=
"*** Rake task
#{
task
}
raised
#{
ex
.
class
}
:"
msg
=
"*** Rake task
#{
task
}
raised
#{
ex
.
class
}
:"
raise
ex
raise
ex
ensure
ensure
$stdout
.
reopen
(
stdout
)
$stderr
.
reopen
(
stderr
)
wr_out
.
close
wr_err
.
close
warn
"
\n
#{
msg
}
\n\n
"
if
msg
warn
"
\n
#{
msg
}
\n\n
"
if
msg
IO
.
copy_stream
(
rd_out
,
$stdout
)
IO
.
copy_stream
(
rd_err
,
$stderr
)
end
end
end
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