debian-mirror-gitlab/.haml-lint.yml

122 lines
2 KiB
YAML
Raw Normal View History

2016-09-29 09:46:39 +05:30
# Whether to ignore frontmatter at the beginning of HAML documents for
# frameworks such as Jekyll/Middleman
skip_frontmatter: false
exclude:
- 'vendor/**/*'
- 'spec/**/*'
linters:
AltText:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
ClassAttributeWithStaticValue:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
ClassesBeforeIds:
enabled: false
ConsecutiveComments:
enabled: false
ConsecutiveSilentScripts:
enabled: false
max_consecutive: 2
EmptyObjectReference:
enabled: true
EmptyScript:
enabled: true
FinalNewline:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
present: true
HtmlAttributes:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
2017-09-10 17:25:29 +05:30
IdNames:
enabled: false
2016-09-29 09:46:39 +05:30
ImplicitDiv:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
2017-09-10 17:25:29 +05:30
InlineJavaScript:
enabled: true
InlineStyles:
enabled: false
InstanceVariables:
enabled: false
2016-09-29 09:46:39 +05:30
LeadingCommentSpace:
enabled: false
LineLength:
enabled: false
max: 80
MultilinePipe:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
MultilineScript:
enabled: true
ObjectReferenceAttributes:
enabled: true
2017-09-10 17:25:29 +05:30
RepeatedId:
enabled: false
2016-09-29 09:46:39 +05:30
RuboCop:
enabled: false
# These cops are incredibly noisy when it comes to HAML templates, so we
# ignore them.
ignored_cops:
- Lint/BlockAlignment
- Lint/EndAlignment
- Lint/Void
- Metrics/LineLength
- Style/AlignParameters
- Style/BlockNesting
- Style/ElseAlignment
- Style/FileName
- Style/FinalNewline
- Style/FrozenStringLiteralComment
- Style/IfUnlessModifier
- Style/IndentationWidth
- Style/Next
- Style/TrailingBlankLines
- Style/TrailingWhitespace
- Style/WhileUntilModifier
RubyComments:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
SpaceBeforeScript:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
SpaceInsideHashAttributes:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
style: space
Indentation:
enabled: true
character: space # or tab
TagName:
enabled: true
TrailingWhitespace:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
UnnecessaryInterpolation:
2017-08-17 22:00:37 +05:30
enabled: true
2016-09-29 09:46:39 +05:30
UnnecessaryStringOutput:
2017-08-17 22:00:37 +05:30
enabled: true
2017-09-10 17:25:29 +05:30
ViewLength:
enabled: false