summaryrefslogtreecommitdiff
path: root/.haml-lint.yml
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-04-23 20:04:11 +0100
committerLuke Bennett <lbennett@gitlab.com>2019-05-20 20:25:32 +0100
commit95afdfaeeb301699df3bbac0fde9cad0dda4d5f1 (patch)
tree5ffe60d88969bec005c09965faeabadfa440de4d /.haml-lint.yml
parent712282cdcc4a97df23829284bfa031613bb05571 (diff)
downloadgitlab-ce-95afdfaeeb301699df3bbac0fde9cad0dda4d5f1.tar.gz
Add HamlLint::Linter::NoPlainNodes linterhaml-lint-no-plain-nodes
Add a simple haml_lint linter to report all plain nodes. "Plain nodes" in HAML are scritpless plaintext leaf nodes. Add haml-lint_todo to onboard new haml linters. Excludes existing NoPlainNodes lints.
Diffstat (limited to '.haml-lint.yml')
-rw-r--r--.haml-lint.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.haml-lint.yml b/.haml-lint.yml
index e9cc4a91a21..30f94aa8507 100644
--- a/.haml-lint.yml
+++ b/.haml-lint.yml
@@ -1,9 +1,13 @@
+inherits_from:
+ - .haml-lint_todo.yml
# Whether to ignore frontmatter at the beginning of HAML documents for
# frameworks such as Jekyll/Middleman
skip_frontmatter: false
exclude:
- 'vendor/**/*'
- 'spec/**/*'
+require:
+ - './lib/haml_lint/linter/no_plain_nodes.rb'
linters:
AltText: