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
9e34c57d
Commit
9e34c57d
authored
Sep 12, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add haml_lint rake task
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
427fc10d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
lib/tasks/haml-lint.rake
lib/tasks/haml-lint.rake
+8
-0
No files found.
.gitlab-ci.yml
View file @
9e34c57d
...
...
@@ -206,7 +206,7 @@ spinach 9 10 ruby21: *spinach-knapsack-ruby21
-
bundle exec $CI_BUILD_NAME
rubocop
:
*exec
rake haml
-
lint
:
*exec
rake haml
_
lint
:
*exec
rake scss_lint
:
*exec
rake brakeman
:
*exec
rake flog
:
*exec
...
...
lib/tasks/haml-lint.rake
0 → 100644
View file @
9e34c57d
unless
Rails
.
env
.
production?
require
'haml_lint/rake_task'
HamlLint
::
RakeTask
.
new
do
|
t
|
t
.
config
=
'.haml-lint.yml'
t
.
files
=
[
'app/views'
]
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