BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cb7974b8
Commit
cb7974b8
authored
Jan 24, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert parser warnings to stdout in haml_lint
So we ignore it in static-analysis when status is 0, yet still report it if it's not.
parent
b0b6abde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
haml-lint.rake
lib/tasks/haml-lint.rake
+9
-0
No files found.
lib/tasks/haml-lint.rake
View file @
cb7974b8
...
...
@@ -2,5 +2,14 @@ unless Rails.env.production?
require
'haml_lint/rake_task'
require
'haml_lint/inline_javascript'
# Workaround for warnings from parser/current
# TODO: Remove this after we update parser gem
task
:haml_lint
do
require
'parser'
def
Parser
.
warn
(
*
args
)
puts
(
*
args
)
# static-analysis ignores stdout if status is 0
end
end
HamlLint
::
RakeTask
.
new
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