forked from ekylibre/ekylibre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.haml-lint.yml
98 lines (91 loc) · 2.65 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
inherits_from:
- .haml-lint_todo.yml
exclude:
- lib/templates/haml/scaffold/*
linters:
InlineStyles:
enabled: false
InstanceVariables:
enabled: false
LineLength:
enabled: false
max: 80
ConsecutiveComments:
enabled: false
RuboCop:
enabled: true
ignored_cops:
# These cops are incredibly noisy when it comes to HAML templates, so we
# ignore them.
- Layout/BlockAlignment
- Layout/EndAlignment
- Layout/EmptyLineAfterGuardClause
- Layout/LineLength
- Lint/Void
- Lint/InterpolationCheck
- Naming/FileName
- Style/AlignParameters
- Style/BlockNesting
- Style/ElseAlignment
- Style/FileName
- Style/FinalNewline
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- Style/IndentationWidth
- Style/Next
- Style/TrailingWhitespace
- Style/WhileUntilModifier
- Cop/StaticTranslationDefinition
# Too many offenses to enable this for now.
- Style/For
- Layout/TrailingEmptyLines
- Layout/SpaceInsideHashLiteralBraces
- Layout/SpaceAfterComma
- Style/HashSyntax
- Style/QuotedSymbols
- Layout/SpaceInsideStringInterpolation
- Layout/SpaceInsideArrayLiteralBrackets
- Layout/SpaceAfterColon
- Layout/SpaceBeforeComma
- Style/SymbolArray
- Lint/AmbiguousOperatorPrecedence
- Layout/LeadingCommentSpace
- Style/SymbolProc
- Style/WordArray
- Style/EachWithObject
- Style/MapToHash
- Style/ParallelAssignment
- Style/MethodCallWithoutArgsParentheses
- Security/Eval
- Lint/SymbolConversion
- Style/PercentLiteralDelimiters
- Style/RedundantInterpolation
- Style/RandomWithOffset
- Style/CaseEquality
- Style/MultilineBlockChain
- Layout/MultilineMethodCallBraceLayout
- Style/RedundantConditional
- Style/IfWithBooleanLiteralBranches
- Lint/RedundantSplatExpansion
- Style/UnlessElse
- Style/ZeroLengthPredicate
- Layout/TrailingWhitespace
- Style/CommentAnnotation
- Style/NumericLiteralPrefix
- Style/StringLiteralsInInterpolation
- Lint/BooleanSymbol
- Style/NestedParenthesizedCalls
- Style/SignalException
- Layout/ElseAlignment
- Layout/IndentationWidth
- Style/IfInsideElse
- Style/RedundantCondition
- Style/SelfAssignment
- Layout/EmptyLines
- Style/SymbolLiteral
- Style/RegexpLiteral
- Style/PreferredHashMethods
- Style/NilComparison
- Style/CommentedKeyword
- Layout/EmptyComment
- Style/RedundantStringEscape