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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
db40a7c4
Commit
db40a7c4
authored
Jun 01, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preserve warnings even if it passed
parent
e57ad62d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lib/tasks/lint.rake
lib/tasks/lint.rake
+10
-10
No files found.
lib/tasks/lint.rake
View file @
db40a7c4
...
...
@@ -30,11 +30,12 @@ unless Rails.env.production?
lint:static_verification
]
.
each
do
|
task
|
pid
=
Process
.
fork
do
rd
,
wr
=
IO
.
pipe
rd_out
,
wr_out
=
IO
.
pipe
rd_err
,
wr_err
=
IO
.
pipe
stdout
=
$stdout
.
dup
stderr
=
$stderr
.
dup
$stdout
.
reopen
(
wr
)
$stderr
.
reopen
(
wr
)
$stdout
.
reopen
(
wr
_out
)
$stderr
.
reopen
(
wr
_err
)
begin
begin
...
...
@@ -48,14 +49,13 @@ unless Rails.env.production?
ensure
$stdout
.
reopen
(
stdout
)
$stderr
.
reopen
(
stderr
)
wr
.
close
wr_out
.
close
wr_err
.
close
if
msg
warn
"
\n
#{
msg
}
\n\n
"
IO
.
copy_stream
(
rd
,
$stderr
)
else
IO
.
copy_stream
(
rd
,
$stdout
)
end
warn
"
\n
#{
msg
}
\n\n
"
if
msg
IO
.
copy_stream
(
rd_out
,
$stdout
)
IO
.
copy_stream
(
rd_err
,
$stderr
)
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