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

104 lines
1.8 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
ImplicitDiv:
2017-08-17 22:00:37 +05:30
enabled: true
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
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