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
Jérome Perrin
gitlab-ce
Commits
bb406cad
Commit
bb406cad
authored
Sep 13, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve .haml-lint.yml, simplify the haml_lint task and remove CHANGELOG entry
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
9e34c57d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
.haml-lint.yml
.haml-lint.yml
+1
-5
CHANGELOG
CHANGELOG
+0
-1
lib/tasks/haml-lint.rake
lib/tasks/haml-lint.rake
+1
-4
No files found.
.haml-lint.yml
View file @
bb406cad
# Default application configuration that all configurations inherit from.
#
# This is an opinionated list of which hooks are valuable to run and what their
# out of the box settings should be.
# Whether to ignore frontmatter at the beginning of HAML documents for
# Whether to ignore frontmatter at the beginning of HAML documents for
# frameworks such as Jekyll/Middleman
# frameworks such as Jekyll/Middleman
skip_frontmatter
:
false
skip_frontmatter
:
false
exclude
:
exclude
:
-
'
vendor/**/*'
-
'
vendor/**/*'
-
'
spec/**/*'
linters
:
linters
:
AltText
:
AltText
:
...
...
CHANGELOG
View file @
bb406cad
...
@@ -20,7 +20,6 @@ v 8.12.0 (unreleased)
...
@@ -20,7 +20,6 @@ v 8.12.0 (unreleased)
- Fix pagination on user snippets page
- Fix pagination on user snippets page
- Fix sorting of issues in API
- Fix sorting of issues in API
- Ensure specs on sorting of issues in API are deterministic on MySQL
- Ensure specs on sorting of issues in API are deterministic on MySQL
- Use haml_lint for views linting
- Escape search term before passing it to Regexp.new !6241 (winniehell)
- Escape search term before passing it to Regexp.new !6241 (winniehell)
- Fix pinned sidebar behavior in smaller viewports !6169
- Fix pinned sidebar behavior in smaller viewports !6169
- Fix file permissions change when updating a file on the Gitlab UI !5979
- Fix file permissions change when updating a file on the Gitlab UI !5979
...
...
lib/tasks/haml-lint.rake
View file @
bb406cad
unless
Rails
.
env
.
production?
unless
Rails
.
env
.
production?
require
'haml_lint/rake_task'
require
'haml_lint/rake_task'
HamlLint
::
RakeTask
.
new
do
|
t
|
HamlLint
::
RakeTask
.
new
t
.
config
=
'.haml-lint.yml'
t
.
files
=
[
'app/views'
]
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