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
670956b2
Commit
670956b2
authored
May 22, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
bf65d479
c342c078
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
+5
-4
.haml-lint.yml
.haml-lint.yml
+1
-1
haml_lint/inline_javascript.rb
haml_lint/inline_javascript.rb
+1
-1
haml_lint/linter/no_plain_nodes.rb
haml_lint/linter/no_plain_nodes.rb
+1
-1
lib/tasks/haml-lint.rake
lib/tasks/haml-lint.rake
+1
-1
spec/haml_lint/linter/no_plain_nodes_spec.rb
spec/haml_lint/linter/no_plain_nodes_spec.rb
+1
-0
No files found.
.haml-lint.yml
View file @
670956b2
...
...
@@ -7,7 +7,7 @@ exclude:
-
'
vendor/**/*'
-
'
spec/**/*'
require
:
-
'
./
lib/
haml_lint/linter/no_plain_nodes.rb'
-
'
./haml_lint/linter/no_plain_nodes.rb'
linters
:
AltText
:
...
...
lib/
haml_lint/inline_javascript.rb
→
haml_lint/inline_javascript.rb
View file @
670956b2
...
...
@@ -7,7 +7,7 @@ unless Rails.env.production?
module
HamlLint
class
Linter::InlineJavaScript
<
Linter
include
LinterRegistry
include
::
HamlLint
::
LinterRegistry
def
visit_filter
(
node
)
return
unless
node
.
filter_type
==
'javascript'
...
...
lib/
haml_lint/linter/no_plain_nodes.rb
→
haml_lint/linter/no_plain_nodes.rb
View file @
670956b2
...
...
@@ -5,7 +5,7 @@ require 'active_support/core_ext/array/grouping'
module
HamlLint
class
Linter
class
NoPlainNodes
<
Linter
include
LinterRegistry
include
::
HamlLint
::
LinterRegistry
def
visit_tag
(
node
)
if
inline_plain_node?
(
node
)
...
...
lib/tasks/haml-lint.rake
View file @
670956b2
unless
Rails
.
env
.
production?
require
'haml_lint/rake_task'
require
'haml_lint/inline_javascript'
require
Rails
.
root
.
join
(
'haml_lint/inline_javascript'
)
# Workaround for warnings from parser/current
# Keep it even if it no longer emits any warnings,
...
...
spec/
lib/
haml_lint/linter/no_plain_nodes_spec.rb
→
spec/haml_lint/linter/no_plain_nodes_spec.rb
View file @
670956b2
...
...
@@ -3,6 +3,7 @@
require
'spec_helper'
require
'haml_lint'
require
'haml_lint/spec'
require
Rails
.
root
.
join
(
'haml_lint/linter/no_plain_nodes'
)
describe
HamlLint
::
Linter
::
NoPlainNodes
do
include_context
'linter'
...
...
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