-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.slim-lint.yml
69 lines (59 loc) · 1.85 KB
/
.slim-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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 Slim documents for
# frameworks such as Jekyll/Middleman
skip_frontmatter: false
linters:
CommentControlStatement:
enabled: true
ConsecutiveControlStatements:
enabled: true
max_consecutive: 2
EmptyControlStatment:
enabled: true
ExplicitDiv:
enabled: true
LineLength:
enabled: true
max: 120
RuboCop:
enabled: true
# These cops are incredibly noisy since the Ruby we extract from Slim
# templates isn't well-formatted, so we ignore them.
# WARNING: If you define this list in your own .slim-lint.yml file, you'll
# be overriding the list defined here.
ignored_cops:
- Layout/AlignHash
- Layout/AlignParameters
- Layout/FirstParameterIndentation
- Layout/IndentationConsistency
- Layout/IndentationWidth
- Layout/MultilineArrayBraceLayout
- Layout/MultilineAssignmentLayout
- Layout/MultilineHashBraceLayout
- Layout/MultilineMethodCallBraceLayout
- Layout/MultilineMethodCallIndentation
- Layout/MultilineMethodDefinitionBraceLayout
- Layout/MultilineOperationIndentation
- Layout/TrailingBlankLines
- Layout/TrailingWhitespace
- Lint/BlockAlignment
- Lint/EndAlignment
- Lint/Void
- Metrics/BlockLength
- Metrics/LineLength
- Style/BlockNesting
- Style/FileName
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- Style/Next
- Style/WhileUntilModifier
- Style/ConditionalAssignment
TagCase:
enabled: true
TrailingWhitespace:
enabled: true
exclude:
- lib/templates/slim/scaffold/_form.html.slim