-
Notifications
You must be signed in to change notification settings - Fork 0
/
.haml-lint.yml
46 lines (45 loc) · 1.36 KB
/
.haml-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2019-04-04 20:36:08 -0600 using Haml-Lint version 0.28.0.
# The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of Haml-Lint, may require this file to be generated again.
linters:
HtmlAttributes:
enabled: false
LineLength:
max: 105
exclude:
- app/views/application/_meta.haml
InlineStyles:
exclude:
- app/views/components/_section.haml
ViewLength:
max: 120
RuboCop:
enabled: true
# These cops are incredibly noisy when it comes to HAML templates, so we
# ignore them.
ignored_cops:
- Lint/BlockAlignment
- Lint/EndAlignment
- Lint/Void
- Layout/HashAlignment
- Layout/CaseIndentation
- Layout/ElseAlignment
- Layout/EmptyLineAfterGuardClause
- Layout/EmptyLineAfterMagicComment
- Layout/EndOfLine
- Layout/IndentationWidth
- Layout/TrailingWhitespace
- Layout/TrailingEmptyLines
- Layout/LineLength
- Metrics/BlockLength
- Metrics/BlockNesting
- Naming/FileName
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- Style/Next
- Style/StringLiterals
- Style/WhileUntilModifier