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
09b44072
Commit
09b44072
authored
May 03, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove stdout/stderr capture in static-analysis
parent
fee5b0a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
lib/tasks/lint.rake
lib/tasks/lint.rake
+1
-15
No files found.
lib/tasks/lint.rake
View file @
09b44072
...
@@ -37,14 +37,8 @@ unless Rails.env.production?
...
@@ -37,14 +37,8 @@ unless Rails.env.production?
lint:static_verification
lint:static_verification
]
.
each
do
|
task
|
]
.
each
do
|
task
|
warn
"
#{
Time
.
now
}
Running
#{
task
}
\n
"
warn
"
#{
Time
.
now
}
Running
#{
task
}
\n
"
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
)
pid
=
Process
.
fork
do
begin
begin
Rake
::
Task
[
task
].
invoke
Rake
::
Task
[
task
].
invoke
rescue
SystemExit
=>
ex
rescue
SystemExit
=>
ex
...
@@ -54,15 +48,7 @@ unless Rails.env.production?
...
@@ -54,15 +48,7 @@ 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